chore(builds): 重編成品——把 #108 的租戶修法放進執行檔

cypher source 10d150a → b223a698(#108 併入)。
重編時新的租戶來源閘第一行就報:
  ✔ 租戶來源檢查通過:cypher-executor 資料面 owner_id 全部來自 src/lib/tenant.ts

⇒ 那道閘現在長在建置線上:以後有人再寫 env.XXX || 'leo',成品編不出來。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
uncle6me-web
2026-08-13 00:25:46 +08:00
parent 2fcae722e7
commit 9ff933ba98
6 changed files with 99 additions and 85 deletions
+19 -15
View File
@@ -1,7 +1,12 @@
var __defProp = Object.defineProperty; var __defProp = Object.defineProperty;
var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropNames = Object.getOwnPropertyNames;
var __esm = (fn, res) => function __init() { var __esm = (fn, res, err2) => function __init() {
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; if (err2) throw err2[0];
try {
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
} catch (e) {
throw err2 = [e], e;
}
}; };
var __export = (target, all) => { var __export = (target, all) => {
for (var name in all) for (var name in all)
@@ -102,7 +107,7 @@ function applyBaseRuntimeOptions(runtime, options) {
function applyModuleEvalRuntimeOptions(runtime, options) { function applyModuleEvalRuntimeOptions(runtime, options) {
options.moduleLoader && runtime.setModuleLoader(options.moduleLoader), options.shouldInterrupt && runtime.setInterruptHandler(options.shouldInterrupt), options.memoryLimitBytes !== void 0 && runtime.setMemoryLimit(options.memoryLimitBytes), options.maxStackSizeBytes !== void 0 && runtime.setMaxStackSize(options.maxStackSizeBytes); options.moduleLoader && runtime.setModuleLoader(options.moduleLoader), options.shouldInterrupt && runtime.setInterruptHandler(options.shouldInterrupt), options.memoryLimitBytes !== void 0 && runtime.setMemoryLimit(options.memoryLimitBytes), options.maxStackSizeBytes !== void 0 && runtime.setMaxStackSize(options.maxStackSizeBytes);
} }
var __defProp2, __export2, QTS_DEBUG, errors_exports, QuickJSUnwrapError, QuickJSWrongOwner, QuickJSUseAfterFree, QuickJSNotImplemented, QuickJSAsyncifyError, QuickJSAsyncifySuspended, QuickJSMemoryLeakDetected, QuickJSEmscriptenModuleError, QuickJSUnknownIntrinsic, QuickJSPromisePending, QuickJSEmptyGetOwnPropertyNames, AwaitYield, UsingDisposable, SymbolDispose, prototypeAsAny, Lifetime, StaticLifetime, WeakLifetime, Scope, AbstractDisposableResult, DisposableSuccess, DisposableFail, DisposableResult, QuickJSDeferredPromise, ModuleMemory, UnstableSymbol, DefaultIntrinsics, QuickJSIterator, ContextMemory, QuickJSContext, QuickJSRuntime, QuickJSEmscriptenModuleCallbacks, QuickJSModuleCallbacks, QuickJSWASMModule; var __defProp2, __export2, QTS_DEBUG, errors_exports, QuickJSUnwrapError, QuickJSWrongOwner, QuickJSUseAfterFree, QuickJSNotImplemented, QuickJSAsyncifyError, QuickJSAsyncifySuspended, QuickJSMemoryLeakDetected, QuickJSEmscriptenModuleError, QuickJSUnknownIntrinsic, QuickJSPromisePending, QuickJSEmptyGetOwnPropertyNames, AwaitYield, UsingDisposable, SymbolDispose, prototypeAsAny, Lifetime, StaticLifetime, WeakLifetime, Scope, AbstractDisposableResult, DisposableSuccess, DisposableFail, DisposableResult, QuickJSDeferredPromise, ModuleMemory, DefaultIntrinsics, QuickJSIterator, ContextMemory, QuickJSContext, QuickJSRuntime, QuickJSEmscriptenModuleCallbacks, QuickJSModuleCallbacks, QuickJSWASMModule;
var init_chunk_JTKJZQYV = __esm({ var init_chunk_JTKJZQYV = __esm({
"registry/components/code/node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs"() { "registry/components/code/node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs"() {
init_dist(); init_dist();
@@ -190,7 +195,7 @@ var init_chunk_JTKJZQYV = __esm({
return this.dispose(); return this.dispose();
} }
}; };
SymbolDispose = Symbol.dispose ?? Symbol.for("Symbol.dispose"); SymbolDispose = Symbol.dispose ?? /* @__PURE__ */ Symbol.for("Symbol.dispose");
prototypeAsAny = UsingDisposable.prototype; prototypeAsAny = UsingDisposable.prototype;
prototypeAsAny[SymbolDispose] || (prototypeAsAny[SymbolDispose] = function() { prototypeAsAny[SymbolDispose] || (prototypeAsAny[SymbolDispose] = function() {
return this.dispose(); return this.dispose();
@@ -409,7 +414,6 @@ Lifetime used`) : new QuickJSUseAfterFree("Lifetime not alive");
return this.module._free(ptr), str; return this.module._free(ptr), str;
} }
}; };
UnstableSymbol = Symbol("Unstable");
DefaultIntrinsics = Object.freeze({ BaseObjects: true, Date: true, Eval: true, StringNormalize: true, RegExp: true, JSON: true, Proxy: true, MapSet: true, TypedArrays: true, Promise: true }); DefaultIntrinsics = Object.freeze({ BaseObjects: true, Date: true, Eval: true, StringNormalize: true, RegExp: true, JSON: true, Proxy: true, MapSet: true, TypedArrays: true, Promise: true });
QuickJSIterator = class extends UsingDisposable { QuickJSIterator = class extends UsingDisposable {
constructor(handle, context) { constructor(handle, context) {
@@ -773,7 +777,7 @@ ${cause.stack}Host: ${hostStack}`), Object.assign(exception, rest), exception;
} }
return result.value; return result.value;
} }
[Symbol.for("nodejs.util.inspect.custom")]() { [/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")]() {
return this.alive ? `${this.constructor.name} { ctx: ${this.ctx.value} rt: ${this.rt.value} }` : `${this.constructor.name} { disposed }`; return this.alive ? `${this.constructor.name} { ctx: ${this.ctx.value} rt: ${this.rt.value} }` : `${this.constructor.name} { disposed }`;
} }
getFunction(fn_id) { getFunction(fn_id) {
@@ -909,7 +913,7 @@ ${cause.stack}Host: ${hostStack}`), Object.assign(exception, rest), exception;
debugLog(...msg) { debugLog(...msg) {
this._debugMode && console.log("quickjs-emscripten:", ...msg); this._debugMode && console.log("quickjs-emscripten:", ...msg);
} }
[Symbol.for("nodejs.util.inspect.custom")]() { [/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")]() {
return this.alive ? `${this.constructor.name} { rt: ${this.rt.value} }` : `${this.constructor.name} { disposed }`; return this.alive ? `${this.constructor.name} { rt: ${this.rt.value} }` : `${this.constructor.name} { disposed }`;
} }
getSystemContext() { getSystemContext() {
@@ -1339,10 +1343,10 @@ async function QuickJSRaw(moduleArg = {}) {
x ? (0 === h && (h = ra()), g[m] = x(e[m])) : g[m] = e[m]; x ? (0 === h && (h = ra()), g[m] = x(e[m])) : g[m] = e[m];
} }
b = a(...g); b = a(...g);
return b = function(k) { return b = (function(k) {
0 !== h && sa(h); 0 !== h && sa(h);
return "string" === d ? R(k) : "boolean" === d ? !!k : k; return "string" === d ? R(k) : "boolean" === d ? !!k : k;
}(b); })(b);
}; };
c.wasmMemory ? r = c.wasmMemory : r = new WebAssembly.Memory({ initial: (c.INITIAL_MEMORY || 16777216) / 65536, maximum: 32768 }); c.wasmMemory ? r = c.wasmMemory : r = new WebAssembly.Memory({ initial: (c.INITIAL_MEMORY || 16777216) / 65536, maximum: 32768 });
K(); K();
@@ -1464,7 +1468,7 @@ async function QuickJSRaw(moduleArg = {}) {
}, t: function(a, d) { }, t: function(a, d) {
c.callbacks.freeHostRef(void 0, a, d); c.callbacks.freeHostRef(void 0, a, d);
} }, Z; } }, Z;
Z = await async function() { Z = await (async function() {
function a(b) { function a(b) {
b = Z = b.exports; b = Z = b.exports;
c._malloc = b.v; c._malloc = b.v;
@@ -1551,7 +1555,7 @@ async function QuickJSRaw(moduleArg = {}) {
}); });
M ??= c.locateFile ? c.locateFile ? c.locateFile("emscripten-module.wasm", u) : u + "emscripten-module.wasm" : new URL("emscripten-module.wasm", import.meta.url).href; M ??= c.locateFile ? c.locateFile ? c.locateFile("emscripten-module.wasm", u) : u + "emscripten-module.wasm" : new URL("emscripten-module.wasm", import.meta.url).href;
return a((await ea(d)).instance); return a((await ea(d)).instance);
}(); })();
(function() { (function() {
function a() { function a() {
c.calledRun = true; c.calledRun = true;
@@ -3034,7 +3038,7 @@ var Hono = class _Hono {
var emptyParam = []; var emptyParam = [];
function match(method, path) { function match(method, path) {
const matchers = this.buildAllMatchers(); const matchers = this.buildAllMatchers();
const match2 = (method2, path2) => { const match2 = ((method2, path2) => {
const matcher = matchers[method2] || matchers[METHOD_NAME_ALL]; const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
const staticMatch = matcher[2][path2]; const staticMatch = matcher[2][path2];
if (staticMatch) { if (staticMatch) {
@@ -3046,7 +3050,7 @@ function match(method, path) {
} }
const index = match3.indexOf("", 1); const index = match3.indexOf("", 1);
return [matcher[1][index], match3]; return [matcher[1][index], match3];
}; });
this.match = match2; this.match = match2;
return match2(method, path); return match2(method, path);
} }
@@ -4008,7 +4012,7 @@ app.post("/", async (c) => {
); );
} }
}); });
var code_default = app; var index_default = app;
export { export {
code_default as default index_default as default
}; };
@@ -1,7 +1,12 @@
var __defProp = Object.defineProperty; var __defProp = Object.defineProperty;
var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropNames = Object.getOwnPropertyNames;
var __esm = (fn, res) => function __init() { var __esm = (fn, res, err) => function __init() {
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; if (err) throw err[0];
try {
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
} catch (e) {
throw err = [e], e;
}
}; };
var __export = (target, all) => { var __export = (target, all) => {
for (var name in all) for (var name in all)
@@ -1501,7 +1506,7 @@ var init_hono_base = __esm({
// cypher-executor/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/matcher.js // cypher-executor/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/matcher.js
function match(method, path) { function match(method, path) {
const matchers = this.buildAllMatchers(); const matchers = this.buildAllMatchers();
const match2 = (method2, path2) => { const match2 = ((method2, path2) => {
const matcher = matchers[method2] || matchers[METHOD_NAME_ALL]; const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
const staticMatch = matcher[2][path2]; const staticMatch = matcher[2][path2];
if (staticMatch) { if (staticMatch) {
@@ -1513,7 +1518,7 @@ function match(method, path) {
} }
const index = match3.indexOf("", 1); const index = match3.indexOf("", 1);
return [matcher[1][index], match3]; return [matcher[1][index], match3];
}; });
this.match = match2; this.match = match2;
return match2(method, path); return match2(method, path);
} }
@@ -7433,7 +7438,7 @@ var init_lib = __esm({
...processCreateParams(params) ...processCreateParams(params)
}); });
}; };
BRAND = Symbol("zod_brand"); BRAND = /* @__PURE__ */ Symbol("zod_brand");
ZodBranded = class extends ZodType { ZodBranded = class extends ZodType {
_parse(input) { _parse(input) {
const { ctx } = this._processInputParams(input); const { ctx } = this._processInputParams(input);
@@ -7607,14 +7612,14 @@ var init_lib = __esm({
onumber = () => numberType().optional(); onumber = () => numberType().optional();
oboolean = () => booleanType().optional(); oboolean = () => booleanType().optional();
coerce = { coerce = {
string: (arg) => ZodString.create({ ...arg, coerce: true }), string: ((arg) => ZodString.create({ ...arg, coerce: true })),
number: (arg) => ZodNumber.create({ ...arg, coerce: true }), number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
boolean: (arg) => ZodBoolean.create({ boolean: ((arg) => ZodBoolean.create({
...arg, ...arg,
coerce: true coerce: true
}), })),
bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }), bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
date: (arg) => ZodDate.create({ ...arg, coerce: true }) date: ((arg) => ZodDate.create({ ...arg, coerce: true }))
}; };
NEVER = INVALID; NEVER = INVALID;
z = /* @__PURE__ */ Object.freeze({ z = /* @__PURE__ */ Object.freeze({
@@ -7835,6 +7840,7 @@ var init_recipe_loader = __esm({
super(message); super(message);
this.recipe = recipe; this.recipe = recipe;
} }
recipe;
}; };
} }
}); });
@@ -8841,7 +8847,7 @@ function recordRecipeStats(env, recipeKeys, ok, at, ctx) {
) )
).then(() => void 0); ).then(() => void 0);
if (ctx?.waitUntil) ctx.waitUntil(promise); if (ctx?.waitUntil) ctx.waitUntil(promise);
else ; else void promise;
} }
function generateToken() { function generateToken() {
const tokenBytes = crypto.getRandomValues(new Uint8Array(16)); const tokenBytes = crypto.getRandomValues(new Uint8Array(16));
@@ -8883,7 +8889,7 @@ async function executeWebhookGraph(env, graph, triggerContext, token, apiKey, ct
result.trace result.trace
); );
if (ctx?.waitUntil) ctx.waitUntil(statsPromise); if (ctx?.waitUntil) ctx.waitUntil(statsPromise);
else ; else void statsPromise;
} }
return { success: true, data: result.data, duration_ms }; return { success: true, data: result.data, duration_ms };
} catch (err) { } catch (err) {
@@ -8907,7 +8913,7 @@ async function executeWebhookGraph(env, graph, triggerContext, token, apiKey, ct
err.trace err.trace
); );
if (ctx?.waitUntil) ctx.waitUntil(statsPromise); if (ctx?.waitUntil) ctx.waitUntil(statsPromise);
else ; else void statsPromise;
} }
if (err instanceof ExecutionError) { if (err instanceof ExecutionError) {
const traceFormatted = err.trace.map((s) => ({ const traceFormatted = err.trace.map((s) => ({
@@ -9374,6 +9380,7 @@ function extractTarget(input) {
return typeof raw2 === "string" ? raw2 : JSON.stringify(raw2); return typeof raw2 === "string" ? raw2 : JSON.stringify(raw2);
} }
async function writeExecutionVerdict(env, workflowId, nodes, verdict, durationMs, message, input, apiKey) { async function writeExecutionVerdict(env, workflowId, nodes, verdict, durationMs, message, input, apiKey) {
void nodes;
try { try {
const { base, headers } = kbdbBase(env); const { base, headers } = kbdbBase(env);
await fetch(`${base}/execution-log/record`, { await fetch(`${base}/execution-log/record`, {
@@ -15654,10 +15661,10 @@ app.route("/", consoleAuthRouter);
app.route("/", consoleDashboardRouter); app.route("/", consoleDashboardRouter);
app.route("/", portalRouter); app.route("/", portalRouter);
app.route("/", portalDataRouter); app.route("/", portalDataRouter);
var src_default = { var index_default = {
fetch: app.fetch, fetch: app.fetch,
scheduled: handleScheduled scheduled: handleScheduled
}; };
export { export {
src_default as default index_default as default
}; };
@@ -1427,7 +1427,7 @@ var Hono = class _Hono {
var emptyParam = []; var emptyParam = [];
function match(method, path) { function match(method, path) {
const matchers = this.buildAllMatchers(); const matchers = this.buildAllMatchers();
const match2 = (method2, path2) => { const match2 = ((method2, path2) => {
const matcher = matchers[method2] || matchers[METHOD_NAME_ALL]; const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
const staticMatch = matcher[2][path2]; const staticMatch = matcher[2][path2];
if (staticMatch) { if (staticMatch) {
@@ -1439,7 +1439,7 @@ function match(method, path) {
} }
const index = match3.indexOf("", 1); const index = match3.indexOf("", 1);
return [matcher[1][index], match3]; return [matcher[1][index], match3];
}; });
this.match = match2; this.match = match2;
return match2(method, path); return match2(method, path);
} }
@@ -2522,7 +2522,7 @@ app.post("/", async (c) => {
); );
} }
}); });
var src_default = app; var index_default = app;
async function runWasm(input) { async function runWasm(input) {
const hostFunctions = { const hostFunctions = {
http_request: async (url, method, headersJson, body) => { http_request: async (url, method, headersJson, body) => {
@@ -2568,5 +2568,5 @@ async function runWasm(input) {
return JSON.parse(stdout); return JSON.parse(stdout);
} }
export { export {
src_default as default index_default as default
}; };
+4 -4
View File
@@ -1444,7 +1444,7 @@ var Hono = class _Hono {
var emptyParam = []; var emptyParam = [];
function match(method, path) { function match(method, path) {
const matchers = this.buildAllMatchers(); const matchers = this.buildAllMatchers();
const match2 = (method2, path2) => { const match2 = ((method2, path2) => {
const matcher = matchers[method2] || matchers[METHOD_NAME_ALL]; const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
const staticMatch = matcher[2][path2]; const staticMatch = matcher[2][path2];
if (staticMatch) { if (staticMatch) {
@@ -1456,7 +1456,7 @@ function match(method, path) {
} }
const index = match3.indexOf("", 1); const index = match3.indexOf("", 1);
return [matcher[1][index], match3]; return [matcher[1][index], match3];
}; });
this.match = match2; this.match = match2;
return match2(method, path); return match2(method, path);
} }
@@ -4157,7 +4157,7 @@ app.route("/recipe-stats", recipeStatRoutes);
app.route("/execution-log", executionLogRoutes); app.route("/execution-log", executionLogRoutes);
app.route("/embed", embedRoutes); app.route("/embed", embedRoutes);
app.route("/map", mapRoutes); app.route("/map", mapRoutes);
var src_default = app; var index_default = app;
export { export {
src_default as default index_default as default
}; };
+37 -34
View File
@@ -5,7 +5,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf; var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty; var __hasOwnProp = Object.prototype.hasOwnProperty;
var __commonJS = (cb, mod) => function __require() { var __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; try {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
} catch (e) {
throw mod = 0, e;
}
}; };
var __export = (target, all) => { var __export = (target, all) => {
for (var name in all) for (var name in all)
@@ -8223,7 +8227,7 @@ var Hono = class _Hono {
var emptyParam = []; var emptyParam = [];
function match(method, path) { function match(method, path) {
const matchers = this.buildAllMatchers(); const matchers = this.buildAllMatchers();
const match2 = (method2, path2) => { const match2 = ((method2, path2) => {
const matcher = matchers[method2] || matchers[METHOD_NAME_ALL]; const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
const staticMatch = matcher[2][path2]; const staticMatch = matcher[2][path2];
if (staticMatch) { if (staticMatch) {
@@ -8235,7 +8239,7 @@ function match(method, path) {
} }
const index = match3.indexOf("", 1); const index = match3.indexOf("", 1);
return [matcher[1][index], match3]; return [matcher[1][index], match3];
}; });
this.match = match2; this.match = match2;
return match2(method, path); return match2(method, path);
} }
@@ -12959,7 +12963,7 @@ ZodNaN.create = (params) => {
...processCreateParams(params) ...processCreateParams(params)
}); });
}; };
var BRAND = Symbol("zod_brand"); var BRAND = /* @__PURE__ */ Symbol("zod_brand");
var ZodBranded = class extends ZodType { var ZodBranded = class extends ZodType {
_parse(input) { _parse(input) {
const { ctx } = this._processInputParams(input); const { ctx } = this._processInputParams(input);
@@ -13161,14 +13165,14 @@ var ostring = () => stringType().optional();
var onumber = () => numberType().optional(); var onumber = () => numberType().optional();
var oboolean = () => booleanType().optional(); var oboolean = () => booleanType().optional();
var coerce = { var coerce = {
string: (arg) => ZodString.create({ ...arg, coerce: true }), string: ((arg) => ZodString.create({ ...arg, coerce: true })),
number: (arg) => ZodNumber.create({ ...arg, coerce: true }), number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
boolean: (arg) => ZodBoolean.create({ boolean: ((arg) => ZodBoolean.create({
...arg, ...arg,
coerce: true coerce: true
}), })),
bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }), bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
date: (arg) => ZodDate.create({ ...arg, coerce: true }) date: ((arg) => ZodDate.create({ ...arg, coerce: true }))
}; };
var NEVER = INVALID; var NEVER = INVALID;
@@ -13219,7 +13223,6 @@ function $constructor(name, initializer3, params) {
Object.defineProperty(_, "name", { value: name }); Object.defineProperty(_, "name", { value: name });
return _; return _;
} }
var $brand = Symbol("zod_brand");
var $ZodAsyncError = class extends Error { var $ZodAsyncError = class extends Error {
constructor() { constructor() {
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`); super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
@@ -15723,8 +15726,6 @@ function en_default2() {
} }
// mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/registries.js // mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/registries.js
var $output = Symbol("ZodOutput");
var $input = Symbol("ZodInput");
var $ZodRegistry = class { var $ZodRegistry = class {
constructor() { constructor() {
this._map = /* @__PURE__ */ new Map(); this._map = /* @__PURE__ */ new Map();
@@ -17002,10 +17003,10 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
}; };
inst.clone = (_def, params) => clone(inst, _def, params); inst.clone = (_def, params) => clone(inst, _def, params);
inst.brand = () => inst; inst.brand = () => inst;
inst.register = (reg, meta) => { inst.register = ((reg, meta) => {
reg.add(inst, meta); reg.add(inst, meta);
return inst; return inst;
}; });
}); });
var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => { var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
$ZodObject.init(inst, def); $ZodObject.init(inst, def);
@@ -17268,10 +17269,10 @@ var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
}; };
inst.clone = (def2, params) => clone(inst, def2, params); inst.clone = (def2, params) => clone(inst, def2, params);
inst.brand = () => inst; inst.brand = () => inst;
inst.register = (reg, meta) => { inst.register = ((reg, meta) => {
reg.add(inst, meta); reg.add(inst, meta);
return inst; return inst;
}; });
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse }); inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
inst.safeParse = (data, params) => safeParse3(inst, data, params); inst.safeParse = (data, params) => safeParse3(inst, data, params);
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync }); inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -19243,11 +19244,13 @@ function assertCompleteRequestPrompt(request) {
if (request.params.ref.type !== "ref/prompt") { if (request.params.ref.type !== "ref/prompt") {
throw new TypeError(`Expected CompleteRequestPrompt, but got ${request.params.ref.type}`); throw new TypeError(`Expected CompleteRequestPrompt, but got ${request.params.ref.type}`);
} }
void request;
} }
function assertCompleteRequestResourceTemplate(request) { function assertCompleteRequestResourceTemplate(request) {
if (request.params.ref.type !== "ref/resource") { if (request.params.ref.type !== "ref/resource") {
throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${request.params.ref.type}`); throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${request.params.ref.type}`);
} }
void request;
} }
var CompleteResultSchema = ResultSchema.extend({ var CompleteResultSchema = ResultSchema.extend({
completion: looseObject({ completion: looseObject({
@@ -19400,7 +19403,7 @@ function isTerminal(status) {
} }
// mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js // mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use"); var ignoreOverride = /* @__PURE__ */ Symbol("Let zodToJsonSchema decide on which parser to use");
var defaultOptions = { var defaultOptions = {
name: void 0, name: void 0,
$refStrategy: "root", $refStrategy: "root",
@@ -22376,7 +22379,7 @@ var Server = class extends Protocol {
}; };
// mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js // mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
var COMPLETABLE_SYMBOL = Symbol.for("mcp.completable"); var COMPLETABLE_SYMBOL = /* @__PURE__ */ Symbol.for("mcp.completable");
function isCompletable(schema4) { function isCompletable(schema4) {
return !!schema4 && typeof schema4 === "object" && COMPLETABLE_SYMBOL in schema4; return !!schema4 && typeof schema4 === "object" && COMPLETABLE_SYMBOL in schema4;
} }
@@ -24691,13 +24694,13 @@ function registerAllIntrospectionTools(server, env) {
} }
// mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/identity.js // mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/identity.js
var ALIAS = Symbol.for("yaml.alias"); var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
var DOC = Symbol.for("yaml.document"); var DOC = /* @__PURE__ */ Symbol.for("yaml.document");
var MAP = Symbol.for("yaml.map"); var MAP = /* @__PURE__ */ Symbol.for("yaml.map");
var PAIR = Symbol.for("yaml.pair"); var PAIR = /* @__PURE__ */ Symbol.for("yaml.pair");
var SCALAR = Symbol.for("yaml.scalar"); var SCALAR = /* @__PURE__ */ Symbol.for("yaml.scalar");
var SEQ = Symbol.for("yaml.seq"); var SEQ = /* @__PURE__ */ Symbol.for("yaml.seq");
var NODE_TYPE = Symbol.for("yaml.node.type"); var NODE_TYPE = /* @__PURE__ */ Symbol.for("yaml.node.type");
var isAlias = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === ALIAS; var isAlias = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === ALIAS;
var isDocument = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === DOC; var isDocument = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === DOC;
var isMap = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === MAP; var isMap = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === MAP;
@@ -24727,9 +24730,9 @@ function isNode(node) {
var hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor; var hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor;
// mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/visit.js // mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/visit.js
var BREAK = Symbol("break visit"); var BREAK = /* @__PURE__ */ Symbol("break visit");
var SKIP = Symbol("skip children"); var SKIP = /* @__PURE__ */ Symbol("skip children");
var REMOVE = Symbol("remove node"); var REMOVE = /* @__PURE__ */ Symbol("remove node");
function visit(node, visitor) { function visit(node, visitor) {
const visitor_ = initVisitor(visitor); const visitor_ = initVisitor(visitor);
if (isDocument(node)) { if (isDocument(node)) {
@@ -29322,9 +29325,9 @@ ${end.comment}` : end.comment;
}; };
// mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-visit.js // mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-visit.js
var BREAK2 = Symbol("break visit"); var BREAK2 = /* @__PURE__ */ Symbol("break visit");
var SKIP2 = Symbol("skip children"); var SKIP2 = /* @__PURE__ */ Symbol("skip children");
var REMOVE2 = Symbol("remove item"); var REMOVE2 = /* @__PURE__ */ Symbol("remove item");
function visit2(cst, visitor) { function visit2(cst, visitor) {
if ("type" in cst && cst.type === "document") if ("type" in cst && cst.type === "document")
cst = { start: cst.start, value: cst.value }; cst = { start: cst.start, value: cst.value };
@@ -33596,7 +33599,7 @@ app.post("/", partnerAuthMiddleware, async (c) => {
const identity = resolveKnowledgeIdentity(c.get("auth_path"), c.get("portal")); const identity = resolveKnowledgeIdentity(c.get("auth_path"), c.get("portal"));
return handleMcpRequest(c.req.raw, c.env, orgNamespace, partnerToken, identity); return handleMcpRequest(c.req.raw, c.env, orgNamespace, partnerToken, identity);
}); });
var src_default = _app; var index_default = _app;
export { export {
src_default as default index_default as default
}; };
+12 -12
View File
@@ -1,8 +1,8 @@
{ {
"schema": 1, "schema": 1,
"built_for": "arcrun-tier2-worker-artifacts", "built_for": "arcrun-tier2-worker-artifacts",
"generated_at": "2026-08-12T16:16:33.433Z", "generated_at": "2026-08-12T16:25:19.210Z",
"repo_head": "b223a698844be289c1b01f99eb34a8e2ac85bb74", "repo_head": "2fcae722e7d7eab3c8b39744b87ae1344d23ba2a",
"repo_dirty": false, "repo_dirty": false,
"workers": [ "workers": [
{ {
@@ -11,8 +11,8 @@
"source_commit": "b223a698844be289c1b01f99eb34a8e2ac85bb74", "source_commit": "b223a698844be289c1b01f99eb34a8e2ac85bb74",
"main_module": "worker.mjs", "main_module": "worker.mjs",
"main_file": "arcrun-cypher-executor/worker.mjs", "main_file": "arcrun-cypher-executor/worker.mjs",
"js_bytes": 588397, "js_bytes": 588587,
"content_sha256": "e0026a23792f8b6b02e35c91081604b9a761c608a2cae0e6ee8ab0f34a484501", "content_sha256": "c43728d21251f7835497d7dc40a3e702526a70b33406b617ed64126ffb16e1e0",
"modules": [], "modules": [],
"compat_date": "2025-02-19", "compat_date": "2025-02-19",
"compat_flags": [ "compat_flags": [
@@ -61,8 +61,8 @@
"source_commit": "f87d0e92f49690253e7c89c5badc82a08eb5d21b", "source_commit": "f87d0e92f49690253e7c89c5badc82a08eb5d21b",
"main_module": "worker.mjs", "main_module": "worker.mjs",
"main_file": "arcrun-kbdb/worker.mjs", "main_file": "arcrun-kbdb/worker.mjs",
"js_bytes": 149791, "js_bytes": 149797,
"content_sha256": "9c6d41895d78cbf3048fb539690591c86071b7d6ebf7fb0b8b51607c6b1f8ee9", "content_sha256": "8b23853cbc88aee0ca15ef20ca46e92bd8e75064cd311af2847f4d51811960b1",
"modules": [], "modules": [],
"compat_date": "2025-02-19", "compat_date": "2025-02-19",
"compat_flags": [ "compat_flags": [
@@ -90,8 +90,8 @@
"source_commit": "1e85dfb49b0e8d81c0854781d93ee4e6a300c7b3", "source_commit": "1e85dfb49b0e8d81c0854781d93ee4e6a300c7b3",
"main_module": "worker.mjs", "main_module": "worker.mjs",
"main_file": "arcrun-http-request/worker.mjs", "main_file": "arcrun-http-request/worker.mjs",
"js_bytes": 80073, "js_bytes": 80079,
"content_sha256": "9a9dcb71879a7bdfd9fec1bd94eb9742e12cb63733d822ce63eeb1be30008d15", "content_sha256": "cdd97364f277587cbade69e09bb40812c68f26a1e8bc9aa632c65b1b962b0b85",
"modules": [ "modules": [
{ {
"name": "component.wasm", "name": "component.wasm",
@@ -122,8 +122,8 @@
"source_commit": "621cb8d948d61be6202063fd02effb3f538437fe", "source_commit": "621cb8d948d61be6202063fd02effb3f538437fe",
"main_module": "worker.mjs", "main_module": "worker.mjs",
"main_file": "arcrun-code/worker.mjs", "main_file": "arcrun-code/worker.mjs",
"js_bytes": 153671, "js_bytes": 153758,
"content_sha256": "285a7406ec694ae47dccfaf48517f712c74d207a1689dffa15c39f1555b45be5", "content_sha256": "751634a3fc9a99cc2da662026818d754c48f031d10bff3b3be2d3a8ee2311bd6",
"modules": [ "modules": [
{ {
"name": "quickjs.wasm", "name": "quickjs.wasm",
@@ -151,8 +151,8 @@
"source_commit": "10d150ac2b4385af95a457f3c411430c4a146cf9", "source_commit": "10d150ac2b4385af95a457f3c411430c4a146cf9",
"main_module": "worker.mjs", "main_module": "worker.mjs",
"main_file": "arcrun-mcp/worker.mjs", "main_file": "arcrun-mcp/worker.mjs",
"js_bytes": 1179229, "js_bytes": 1179487,
"content_sha256": "3ebc0d441bc04ae56a1205507da701f93bed9efa9b1e53c1777c04cbef5bdb67", "content_sha256": "1cd4c4d079d72bf7cba7c490ba6a88476f70b3ea51af7e5c93f9a184ae3c0ce6",
"modules": [], "modules": [],
"compat_date": "2024-11-27", "compat_date": "2024-11-27",
"compat_flags": [ "compat_flags": [