ship 1.4.37:Arcrun@d8bbf2241bd6
This commit is contained in:
@@ -12,7 +12,7 @@ Served via jsDelivr; fetched automatically during install — you never need to
|
||||
- `arcrun-mcp/` — **arcrun-mcp**
|
||||
- `daemon/` — 桌面 App(Mac/Windows)安裝檔
|
||||
|
||||
Built from `Arcrun@788295e` by `installer/scripts/ship.mjs`(arcrun-rag repo,release 1.4.36,built 2026-08-11)。
|
||||
Built from `Arcrun@d8bbf2241bd6` by `installer/scripts/ship.mjs`(arcrun-rag repo,release 1.4.37,built 2026-08-11)。
|
||||
|
||||
⚠️ 這份檔案由出貨管線每次自動重寫(`installer/scripts/render-bundles-readme.mjs`)——
|
||||
不要手動改這裡列的零件清單,要改就改 `installer/scripts/bundle-components.mjs`(唯一真相源,改一個地方兩條出貨路徑同時生效)。
|
||||
|
||||
+49
-53
@@ -1,22 +1,17 @@
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __esm = (fn, res, err2) => function __init() {
|
||||
if (err2) throw err2[0];
|
||||
try {
|
||||
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
||||
} catch (e) {
|
||||
throw err2 = [e], e;
|
||||
}
|
||||
var __esm = (fn, res) => function __init() {
|
||||
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
||||
};
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-ffi-types/dist/index.mjs
|
||||
// registry/components/code/node_modules/@jitl/quickjs-ffi-types/dist/index.mjs
|
||||
var EvalFlags, IntrinsicsFlags, JSPromiseStateEnum, GetOwnPropertyNamesFlags, IsEqualOp;
|
||||
var init_dist = __esm({
|
||||
"../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-ffi-types/dist/index.mjs"() {
|
||||
"registry/components/code/node_modules/@jitl/quickjs-ffi-types/dist/index.mjs"() {
|
||||
EvalFlags = { JS_EVAL_TYPE_GLOBAL: 0, JS_EVAL_TYPE_MODULE: 1, JS_EVAL_TYPE_DIRECT: 2, JS_EVAL_TYPE_INDIRECT: 3, JS_EVAL_TYPE_MASK: 3, JS_EVAL_FLAG_STRICT: 8, JS_EVAL_FLAG_STRIP: 16, JS_EVAL_FLAG_COMPILE_ONLY: 32, JS_EVAL_FLAG_BACKTRACE_BARRIER: 64 };
|
||||
IntrinsicsFlags = { BaseObjects: 1, Date: 2, Eval: 4, StringNormalize: 8, RegExp: 16, RegExpCompiler: 32, JSON: 64, Proxy: 128, MapSet: 256, TypedArrays: 512, Promise: 1024, BigInt: 2048, BigFloat: 4096, BigDecimal: 8192, OperatorOverloading: 16384, BignumExt: 32768 };
|
||||
JSPromiseStateEnum = { Pending: 0, Fulfilled: 1, Rejected: 2 };
|
||||
@@ -25,7 +20,7 @@ var init_dist = __esm({
|
||||
}
|
||||
});
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs
|
||||
// registry/components/code/node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs
|
||||
function debugLog(...args) {
|
||||
QTS_DEBUG && console.log("quickjs-emscripten:", ...args);
|
||||
}
|
||||
@@ -107,9 +102,9 @@ function applyBaseRuntimeOptions(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);
|
||||
}
|
||||
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 __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 init_chunk_JTKJZQYV = __esm({
|
||||
"../../matrix/arcrun/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();
|
||||
__defProp2 = Object.defineProperty;
|
||||
@@ -195,7 +190,7 @@ var init_chunk_JTKJZQYV = __esm({
|
||||
return this.dispose();
|
||||
}
|
||||
};
|
||||
SymbolDispose = Symbol.dispose ?? /* @__PURE__ */ Symbol.for("Symbol.dispose");
|
||||
SymbolDispose = Symbol.dispose ?? Symbol.for("Symbol.dispose");
|
||||
prototypeAsAny = UsingDisposable.prototype;
|
||||
prototypeAsAny[SymbolDispose] || (prototypeAsAny[SymbolDispose] = function() {
|
||||
return this.dispose();
|
||||
@@ -414,6 +409,7 @@ Lifetime used`) : new QuickJSUseAfterFree("Lifetime not alive");
|
||||
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 });
|
||||
QuickJSIterator = class extends UsingDisposable {
|
||||
constructor(handle, context) {
|
||||
@@ -777,7 +773,7 @@ ${cause.stack}Host: ${hostStack}`), Object.assign(exception, rest), exception;
|
||||
}
|
||||
return result.value;
|
||||
}
|
||||
[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")]() {
|
||||
[Symbol.for("nodejs.util.inspect.custom")]() {
|
||||
return this.alive ? `${this.constructor.name} { ctx: ${this.ctx.value} rt: ${this.rt.value} }` : `${this.constructor.name} { disposed }`;
|
||||
}
|
||||
getFunction(fn_id) {
|
||||
@@ -913,7 +909,7 @@ ${cause.stack}Host: ${hostStack}`), Object.assign(exception, rest), exception;
|
||||
debugLog(...msg) {
|
||||
this._debugMode && console.log("quickjs-emscripten:", ...msg);
|
||||
}
|
||||
[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")]() {
|
||||
[Symbol.for("nodejs.util.inspect.custom")]() {
|
||||
return this.alive ? `${this.constructor.name} { rt: ${this.rt.value} }` : `${this.constructor.name} { disposed }`;
|
||||
}
|
||||
getSystemContext() {
|
||||
@@ -1041,7 +1037,7 @@ Attempted to suspend at:`);
|
||||
}
|
||||
});
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs
|
||||
// registry/components/code/node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs
|
||||
var module_6F3E5H7Y_exports = {};
|
||||
__export(module_6F3E5H7Y_exports, {
|
||||
QuickJSModuleCallbacks: () => QuickJSModuleCallbacks,
|
||||
@@ -1050,19 +1046,19 @@ __export(module_6F3E5H7Y_exports, {
|
||||
applyModuleEvalRuntimeOptions: () => applyModuleEvalRuntimeOptions
|
||||
});
|
||||
var init_module_6F3E5H7Y = __esm({
|
||||
"../../matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs"() {
|
||||
"registry/components/code/node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs"() {
|
||||
init_chunk_JTKJZQYV();
|
||||
}
|
||||
});
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs
|
||||
// registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs
|
||||
var ffi_exports = {};
|
||||
__export(ffi_exports, {
|
||||
QuickJSFFI: () => QuickJSFFI
|
||||
});
|
||||
var QuickJSFFI;
|
||||
var init_ffi = __esm({
|
||||
"../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs"() {
|
||||
"registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs"() {
|
||||
QuickJSFFI = class {
|
||||
constructor(module) {
|
||||
this.module = module;
|
||||
@@ -1140,7 +1136,7 @@ var init_ffi = __esm({
|
||||
}
|
||||
});
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.browser.mjs
|
||||
// registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.browser.mjs
|
||||
var emscripten_module_browser_exports = {};
|
||||
__export(emscripten_module_browser_exports, {
|
||||
default: () => emscripten_module_browser_default
|
||||
@@ -1343,10 +1339,10 @@ async function QuickJSRaw(moduleArg = {}) {
|
||||
x ? (0 === h && (h = ra()), g[m] = x(e[m])) : g[m] = e[m];
|
||||
}
|
||||
b = a(...g);
|
||||
return b = (function(k) {
|
||||
return b = function(k) {
|
||||
0 !== h && sa(h);
|
||||
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 });
|
||||
K();
|
||||
@@ -1468,7 +1464,7 @@ async function QuickJSRaw(moduleArg = {}) {
|
||||
}, t: function(a, d) {
|
||||
c.callbacks.freeHostRef(void 0, a, d);
|
||||
} }, Z;
|
||||
Z = await (async function() {
|
||||
Z = await async function() {
|
||||
function a(b) {
|
||||
b = Z = b.exports;
|
||||
c._malloc = b.v;
|
||||
@@ -1555,7 +1551,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;
|
||||
return a((await ea(d)).instance);
|
||||
})();
|
||||
}();
|
||||
(function() {
|
||||
function a() {
|
||||
c.calledRun = true;
|
||||
@@ -1587,12 +1583,12 @@ async function QuickJSRaw(moduleArg = {}) {
|
||||
}
|
||||
var emscripten_module_browser_default;
|
||||
var init_emscripten_module_browser = __esm({
|
||||
"../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.browser.mjs"() {
|
||||
"registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.browser.mjs"() {
|
||||
emscripten_module_browser_default = QuickJSRaw;
|
||||
}
|
||||
});
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/compose.js
|
||||
// registry/components/code/node_modules/hono/dist/compose.js
|
||||
var compose = (middleware, onError, onNotFound) => {
|
||||
return (context, next) => {
|
||||
let index = -1;
|
||||
@@ -1636,10 +1632,10 @@ var compose = (middleware, onError, onNotFound) => {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/request/constants.js
|
||||
// registry/components/code/node_modules/hono/dist/request/constants.js
|
||||
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/utils/body.js
|
||||
// registry/components/code/node_modules/hono/dist/utils/body.js
|
||||
var parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => {
|
||||
const { all = false, dot = false } = options;
|
||||
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
|
||||
@@ -1711,7 +1707,7 @@ var handleParsingNestedValues = (form, key, value) => {
|
||||
});
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/utils/url.js
|
||||
// registry/components/code/node_modules/hono/dist/utils/url.js
|
||||
var splitPath = (path) => {
|
||||
const paths = path.split("/");
|
||||
if (paths[0] === "") {
|
||||
@@ -1915,7 +1911,7 @@ var getQueryParams = (url, key) => {
|
||||
};
|
||||
var decodeURIComponent_ = decodeURIComponent;
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/request.js
|
||||
// registry/components/code/node_modules/hono/dist/request.js
|
||||
var tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_);
|
||||
var HonoRequest = class {
|
||||
/**
|
||||
@@ -2198,7 +2194,7 @@ var HonoRequest = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/utils/html.js
|
||||
// registry/components/code/node_modules/hono/dist/utils/html.js
|
||||
var HtmlEscapedCallbackPhase = {
|
||||
Stringify: 1,
|
||||
BeforeStream: 2,
|
||||
@@ -2240,7 +2236,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/context.js
|
||||
// registry/components/code/node_modules/hono/dist/context.js
|
||||
var TEXT_PLAIN = "text/plain; charset=UTF-8";
|
||||
var setDefaultContentType = (contentType, headers) => {
|
||||
return {
|
||||
@@ -2647,7 +2643,7 @@ var Context = class {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/router.js
|
||||
// registry/components/code/node_modules/hono/dist/router.js
|
||||
var METHOD_NAME_ALL = "ALL";
|
||||
var METHOD_NAME_ALL_LOWERCASE = "all";
|
||||
var METHODS = ["get", "post", "put", "delete", "options", "patch"];
|
||||
@@ -2655,10 +2651,10 @@ var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is
|
||||
var UnsupportedPathError = class extends Error {
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/utils/constants.js
|
||||
// registry/components/code/node_modules/hono/dist/utils/constants.js
|
||||
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/hono-base.js
|
||||
// registry/components/code/node_modules/hono/dist/hono-base.js
|
||||
var notFoundHandler = (c) => {
|
||||
return c.text("404 Not Found", 404);
|
||||
};
|
||||
@@ -3034,11 +3030,11 @@ var Hono = class _Hono {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
||||
// registry/components/code/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
||||
var emptyParam = [];
|
||||
function match(method, path) {
|
||||
const matchers = this.buildAllMatchers();
|
||||
const match2 = ((method2, path2) => {
|
||||
const match2 = (method2, path2) => {
|
||||
const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
|
||||
const staticMatch = matcher[2][path2];
|
||||
if (staticMatch) {
|
||||
@@ -3050,12 +3046,12 @@ function match(method, path) {
|
||||
}
|
||||
const index = match3.indexOf("", 1);
|
||||
return [matcher[1][index], match3];
|
||||
});
|
||||
};
|
||||
this.match = match2;
|
||||
return match2(method, path);
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/router/reg-exp-router/node.js
|
||||
// registry/components/code/node_modules/hono/dist/router/reg-exp-router/node.js
|
||||
var LABEL_REG_EXP_STR = "[^/]+";
|
||||
var ONLY_WILDCARD_REG_EXP_STR = ".*";
|
||||
var TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
|
||||
@@ -3163,7 +3159,7 @@ var Node = class _Node {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/router/reg-exp-router/trie.js
|
||||
// registry/components/code/node_modules/hono/dist/router/reg-exp-router/trie.js
|
||||
var Trie = class {
|
||||
#context = { varIndex: 0 };
|
||||
#root = new Node();
|
||||
@@ -3219,7 +3215,7 @@ var Trie = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/router/reg-exp-router/router.js
|
||||
// registry/components/code/node_modules/hono/dist/router/reg-exp-router/router.js
|
||||
var nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)];
|
||||
var wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
|
||||
function buildWildcardRegExp(path) {
|
||||
@@ -3398,7 +3394,7 @@ var RegExpRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/router/smart-router/router.js
|
||||
// registry/components/code/node_modules/hono/dist/router/smart-router/router.js
|
||||
var SmartRouter = class {
|
||||
name = "SmartRouter";
|
||||
#routers = [];
|
||||
@@ -3453,7 +3449,7 @@ var SmartRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/router/trie-router/node.js
|
||||
// registry/components/code/node_modules/hono/dist/router/trie-router/node.js
|
||||
var emptyParams = /* @__PURE__ */ Object.create(null);
|
||||
var hasChildren = (children) => {
|
||||
for (const _ in children) {
|
||||
@@ -3628,7 +3624,7 @@ var Node2 = class _Node2 {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/router/trie-router/router.js
|
||||
// registry/components/code/node_modules/hono/dist/router/trie-router/router.js
|
||||
var TrieRouter = class {
|
||||
name = "TrieRouter";
|
||||
#node;
|
||||
@@ -3650,7 +3646,7 @@ var TrieRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/hono.js
|
||||
// registry/components/code/node_modules/hono/dist/hono.js
|
||||
var Hono2 = class extends Hono {
|
||||
/**
|
||||
* Creates an instance of the Hono class.
|
||||
@@ -3665,7 +3661,7 @@ var Hono2 = class extends Hono {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/hono/dist/middleware/cors/index.js
|
||||
// registry/components/code/node_modules/hono/dist/middleware/cors/index.js
|
||||
var cors = (options) => {
|
||||
const opts = {
|
||||
origin: "*",
|
||||
@@ -3747,7 +3743,7 @@ var cors = (options) => {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/index.mjs
|
||||
// registry/components/code/node_modules/quickjs-emscripten-core/dist/index.mjs
|
||||
init_chunk_JTKJZQYV();
|
||||
init_dist();
|
||||
async function newQuickJSWASMModuleFromVariant(variantOrPromise) {
|
||||
@@ -3810,14 +3806,14 @@ function newMockExtensions(log) {
|
||||
} };
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs
|
||||
// registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs
|
||||
var variant = { type: "sync", importFFI: () => Promise.resolve().then(() => (init_ffi(), ffi_exports)).then((mod) => mod.QuickJSFFI), importModuleLoader: () => Promise.resolve().then(() => (init_emscripten_module_browser(), emscripten_module_browser_exports)).then((mod) => mod.default) };
|
||||
var src_default = variant;
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/index.ts
|
||||
// registry/components/code/index.ts
|
||||
import wasmModule from "./quickjs.wasm";
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/sandbox.mjs
|
||||
// registry/components/code/sandbox.mjs
|
||||
var _variant = null;
|
||||
function setVariant(v) {
|
||||
_variant = v;
|
||||
@@ -3987,7 +3983,7 @@ function err(message, error_type) {
|
||||
return { success: false, error: message, error_type };
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/registry/components/code/index.ts
|
||||
// registry/components/code/index.ts
|
||||
setVariant(newVariant(src_default, { wasmModule }));
|
||||
var app = new Hono2();
|
||||
app.use("*", cors());
|
||||
@@ -4012,7 +4008,7 @@ app.post("/", async (c) => {
|
||||
);
|
||||
}
|
||||
});
|
||||
var index_default = app;
|
||||
var code_default = app;
|
||||
export {
|
||||
index_default as default
|
||||
code_default as default
|
||||
};
|
||||
|
||||
+162
-169
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
// ../../matrix/arcrun/.component-builds/http_request/src/index.ts
|
||||
// .component-builds/http_request/src/index.ts
|
||||
import componentWasm from "./component.wasm";
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/compose.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/compose.js
|
||||
var compose = (middleware, onError, onNotFound) => {
|
||||
return (context, next) => {
|
||||
let index = -1;
|
||||
@@ -45,10 +45,10 @@ var compose = (middleware, onError, onNotFound) => {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request/constants.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request/constants.js
|
||||
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/body.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/body.js
|
||||
var parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => {
|
||||
const { all = false, dot = false } = options;
|
||||
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
|
||||
@@ -120,7 +120,7 @@ var handleParsingNestedValues = (form, key, value) => {
|
||||
});
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/url.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/url.js
|
||||
var splitPath = (path) => {
|
||||
const paths = path.split("/");
|
||||
if (paths[0] === "") {
|
||||
@@ -324,7 +324,7 @@ var getQueryParams = (url, key) => {
|
||||
};
|
||||
var decodeURIComponent_ = decodeURIComponent;
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request.js
|
||||
var tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_);
|
||||
var HonoRequest = class {
|
||||
/**
|
||||
@@ -592,7 +592,7 @@ var HonoRequest = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/html.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/html.js
|
||||
var HtmlEscapedCallbackPhase = {
|
||||
Stringify: 1,
|
||||
BeforeStream: 2,
|
||||
@@ -634,7 +634,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/context.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/context.js
|
||||
var TEXT_PLAIN = "text/plain; charset=UTF-8";
|
||||
var setDefaultContentType = (contentType, headers) => {
|
||||
return {
|
||||
@@ -1041,7 +1041,7 @@ var Context = class {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router.js
|
||||
var METHOD_NAME_ALL = "ALL";
|
||||
var METHOD_NAME_ALL_LOWERCASE = "all";
|
||||
var METHODS = ["get", "post", "put", "delete", "options", "patch"];
|
||||
@@ -1049,10 +1049,10 @@ var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is
|
||||
var UnsupportedPathError = class extends Error {
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/constants.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/constants.js
|
||||
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono-base.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono-base.js
|
||||
var notFoundHandler = (c) => {
|
||||
return c.text("404 Not Found", 404);
|
||||
};
|
||||
@@ -1423,11 +1423,11 @@ var Hono = class _Hono {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
||||
var emptyParam = [];
|
||||
function match(method, path) {
|
||||
const matchers = this.buildAllMatchers();
|
||||
const match2 = ((method2, path2) => {
|
||||
const match2 = (method2, path2) => {
|
||||
const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
|
||||
const staticMatch = matcher[2][path2];
|
||||
if (staticMatch) {
|
||||
@@ -1439,12 +1439,12 @@ function match(method, path) {
|
||||
}
|
||||
const index = match3.indexOf("", 1);
|
||||
return [matcher[1][index], match3];
|
||||
});
|
||||
};
|
||||
this.match = match2;
|
||||
return match2(method, path);
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/node.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/node.js
|
||||
var LABEL_REG_EXP_STR = "[^/]+";
|
||||
var ONLY_WILDCARD_REG_EXP_STR = ".*";
|
||||
var TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
|
||||
@@ -1552,7 +1552,7 @@ var Node = class _Node {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/trie.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/trie.js
|
||||
var Trie = class {
|
||||
#context = { varIndex: 0 };
|
||||
#root = new Node();
|
||||
@@ -1608,7 +1608,7 @@ var Trie = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/router.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/router.js
|
||||
var nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)];
|
||||
var wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
|
||||
function buildWildcardRegExp(path) {
|
||||
@@ -1787,7 +1787,7 @@ var RegExpRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/smart-router/router.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/smart-router/router.js
|
||||
var SmartRouter = class {
|
||||
name = "SmartRouter";
|
||||
#routers = [];
|
||||
@@ -1842,7 +1842,7 @@ var SmartRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/node.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/node.js
|
||||
var emptyParams = /* @__PURE__ */ Object.create(null);
|
||||
var hasChildren = (children) => {
|
||||
for (const _ in children) {
|
||||
@@ -2017,7 +2017,7 @@ var Node2 = class _Node2 {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/router.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/router.js
|
||||
var TrieRouter = class {
|
||||
name = "TrieRouter";
|
||||
#node;
|
||||
@@ -2039,7 +2039,7 @@ var TrieRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono.js
|
||||
var Hono2 = class extends Hono {
|
||||
/**
|
||||
* Creates an instance of the Hono class.
|
||||
@@ -2054,7 +2054,7 @@ var Hono2 = class extends Hono {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/middleware/cors/index.js
|
||||
// .component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/middleware/cors/index.js
|
||||
var cors = (options) => {
|
||||
const defaults = {
|
||||
origin: "*",
|
||||
@@ -2142,7 +2142,7 @@ var cors = (options) => {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/cypher-executor/src/lib/wasi-shim.ts
|
||||
// cypher-executor/src/lib/wasi-shim.ts
|
||||
var WASI_ESUCCESS = 0;
|
||||
var WASI_ENOSYS = 76;
|
||||
var FD_STDIN = 0;
|
||||
@@ -2501,7 +2501,7 @@ function createWasiShim(stdinData, hostFunctions) {
|
||||
return shim;
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/.component-builds/http_request/src/index.ts
|
||||
// .component-builds/http_request/src/index.ts
|
||||
var app = new Hono2();
|
||||
app.use("*", cors());
|
||||
app.get("/", (c) => c.json({ ok: true, component: "http_request" }));
|
||||
@@ -2522,7 +2522,7 @@ app.post("/", async (c) => {
|
||||
);
|
||||
}
|
||||
});
|
||||
var index_default = app;
|
||||
var src_default = app;
|
||||
async function runWasm(input) {
|
||||
const hostFunctions = {
|
||||
http_request: async (url, method, headersJson, body) => {
|
||||
@@ -2568,5 +2568,5 @@ async function runWasm(input) {
|
||||
return JSON.parse(stdout);
|
||||
}
|
||||
export {
|
||||
index_default as default
|
||||
src_default as default
|
||||
};
|
||||
|
||||
+37
-37
@@ -1,4 +1,4 @@
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/compose.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/compose.js
|
||||
var compose = (middleware, onError, onNotFound) => {
|
||||
return (context, next) => {
|
||||
let index = -1;
|
||||
@@ -42,10 +42,10 @@ var compose = (middleware, onError, onNotFound) => {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/request/constants.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/request/constants.js
|
||||
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/body.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/body.js
|
||||
var parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => {
|
||||
const { all = false, dot = false } = options;
|
||||
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
|
||||
@@ -117,7 +117,7 @@ var handleParsingNestedValues = (form, key, value) => {
|
||||
});
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/url.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/url.js
|
||||
var splitPath = (path) => {
|
||||
const paths = path.split("/");
|
||||
if (paths[0] === "") {
|
||||
@@ -321,7 +321,7 @@ var getQueryParams = (url, key) => {
|
||||
};
|
||||
var decodeURIComponent_ = decodeURIComponent;
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/request.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/request.js
|
||||
var tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_);
|
||||
var HonoRequest = class {
|
||||
/**
|
||||
@@ -604,7 +604,7 @@ var HonoRequest = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/html.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/html.js
|
||||
var HtmlEscapedCallbackPhase = {
|
||||
Stringify: 1,
|
||||
BeforeStream: 2,
|
||||
@@ -646,7 +646,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/context.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/context.js
|
||||
var TEXT_PLAIN = "text/plain; charset=UTF-8";
|
||||
var setDefaultContentType = (contentType, headers) => {
|
||||
return {
|
||||
@@ -1053,7 +1053,7 @@ var Context = class {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router.js
|
||||
var METHOD_NAME_ALL = "ALL";
|
||||
var METHOD_NAME_ALL_LOWERCASE = "all";
|
||||
var METHODS = ["get", "post", "put", "delete", "options", "patch"];
|
||||
@@ -1061,10 +1061,10 @@ var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is
|
||||
var UnsupportedPathError = class extends Error {
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/constants.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/constants.js
|
||||
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/hono-base.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/hono-base.js
|
||||
var notFoundHandler = (c) => {
|
||||
return c.text("404 Not Found", 404);
|
||||
};
|
||||
@@ -1440,11 +1440,11 @@ var Hono = class _Hono {
|
||||
};
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/reg-exp-router/matcher.js
|
||||
var emptyParam = [];
|
||||
function match(method, path) {
|
||||
const matchers = this.buildAllMatchers();
|
||||
const match2 = ((method2, path2) => {
|
||||
const match2 = (method2, path2) => {
|
||||
const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
|
||||
const staticMatch = matcher[2][path2];
|
||||
if (staticMatch) {
|
||||
@@ -1456,12 +1456,12 @@ function match(method, path) {
|
||||
}
|
||||
const index = match3.indexOf("", 1);
|
||||
return [matcher[1][index], match3];
|
||||
});
|
||||
};
|
||||
this.match = match2;
|
||||
return match2(method, path);
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/reg-exp-router/node.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/reg-exp-router/node.js
|
||||
var LABEL_REG_EXP_STR = "[^/]+";
|
||||
var ONLY_WILDCARD_REG_EXP_STR = ".*";
|
||||
var TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
|
||||
@@ -1569,7 +1569,7 @@ var Node = class _Node {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/reg-exp-router/trie.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/reg-exp-router/trie.js
|
||||
var Trie = class {
|
||||
#context = { varIndex: 0 };
|
||||
#root = new Node();
|
||||
@@ -1625,7 +1625,7 @@ var Trie = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/reg-exp-router/router.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/reg-exp-router/router.js
|
||||
var nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)];
|
||||
var wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
|
||||
function buildWildcardRegExp(path) {
|
||||
@@ -1804,7 +1804,7 @@ var RegExpRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/smart-router/router.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/smart-router/router.js
|
||||
var SmartRouter = class {
|
||||
name = "SmartRouter";
|
||||
#routers = [];
|
||||
@@ -1859,7 +1859,7 @@ var SmartRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/trie-router/node.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/trie-router/node.js
|
||||
var emptyParams = /* @__PURE__ */ Object.create(null);
|
||||
var hasChildren = (children) => {
|
||||
for (const _ in children) {
|
||||
@@ -2034,7 +2034,7 @@ var Node2 = class _Node2 {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/trie-router/router.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/trie-router/router.js
|
||||
var TrieRouter = class {
|
||||
name = "TrieRouter";
|
||||
#node;
|
||||
@@ -2056,7 +2056,7 @@ var TrieRouter = class {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/hono.js
|
||||
// kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/hono.js
|
||||
var Hono2 = class extends Hono {
|
||||
/**
|
||||
* Creates an instance of the Hono class.
|
||||
@@ -2071,7 +2071,7 @@ var Hono2 = class extends Hono {
|
||||
}
|
||||
};
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/actions/entry-crud.ts
|
||||
// kbdb/src/actions/entry-crud.ts
|
||||
function uid(prefix) {
|
||||
return `${prefix}_${crypto.randomUUID()}`;
|
||||
}
|
||||
@@ -2408,7 +2408,7 @@ async function searchEntries(db, q, owner_id, entry_type, limit = 50, library, s
|
||||
return applyRelativeCut(res.results ?? []);
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/embed.ts
|
||||
// kbdb/src/embed.ts
|
||||
var DEFAULT_EMBED_MODEL = "@cf/baai/bge-m3";
|
||||
var MIN_SCORE_ABS_FLOOR = 0.45;
|
||||
var MIN_SCORE_TOP_RATIO = 0.8;
|
||||
@@ -2617,7 +2617,7 @@ async function semanticSearch(env, q, opts = {}) {
|
||||
}));
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/actions/credential-legacy-migration.ts
|
||||
// kbdb/src/actions/credential-legacy-migration.ts
|
||||
async function legacyCredentialsTableExists(db) {
|
||||
const row = await db.prepare(`SELECT 1 AS x FROM sqlite_master WHERE type = 'table' AND name = 'credentials'`).first();
|
||||
return row !== null;
|
||||
@@ -2647,7 +2647,7 @@ async function migrateLegacyCredentialsForOwner(db, ownerId) {
|
||||
return (after?.n ?? 0) - (before?.n ?? 0);
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/routes/entries.ts
|
||||
// kbdb/src/routes/entries.ts
|
||||
var entryRoutes = new Hono2();
|
||||
function fireAndForget(c, p) {
|
||||
let ctx;
|
||||
@@ -2898,7 +2898,7 @@ entryRoutes.delete("/:id", async (c) => {
|
||||
return c.json({ success: true, vector_deleted });
|
||||
});
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/actions/record-crud.ts
|
||||
// kbdb/src/actions/record-crud.ts
|
||||
function uid2(prefix) {
|
||||
return `${prefix}_${crypto.randomUUID()}`;
|
||||
}
|
||||
@@ -3031,7 +3031,7 @@ async function deleteRecord(db, recordId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/routes/templates.ts
|
||||
// kbdb/src/routes/templates.ts
|
||||
var templateRoutes = new Hono2();
|
||||
templateRoutes.post("/", async (c) => {
|
||||
const body = await c.req.json().catch(() => null);
|
||||
@@ -3057,7 +3057,7 @@ templateRoutes.patch("/:id", async (c) => {
|
||||
return c.json({ success: true, template: tpl });
|
||||
});
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/routes/records.ts
|
||||
// kbdb/src/routes/records.ts
|
||||
var recordRoutes = new Hono2();
|
||||
recordRoutes.post("/", async (c) => {
|
||||
const body = await c.req.json().catch(() => null);
|
||||
@@ -3122,7 +3122,7 @@ recordRoutes.delete("/:recordId", async (c) => {
|
||||
return c.json({ success: true });
|
||||
});
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/actions/recipe-stat.ts
|
||||
// kbdb/src/actions/recipe-stat.ts
|
||||
function statId(canonicalId) {
|
||||
return `recipestat:${canonicalId}`;
|
||||
}
|
||||
@@ -3161,7 +3161,7 @@ function emptyStat(canonicalId) {
|
||||
return { canonical_id: canonicalId, success_count: 0, failure_count: 0, last_status: null, last_at: null };
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/routes/recipe-stats.ts
|
||||
// kbdb/src/routes/recipe-stats.ts
|
||||
var recipeStatRoutes = new Hono2();
|
||||
recipeStatRoutes.post("/record", async (c) => {
|
||||
const body = await c.req.json().catch(() => null);
|
||||
@@ -3177,7 +3177,7 @@ recipeStatRoutes.get("/:canonical_id", async (c) => {
|
||||
return c.json({ success: true, stat });
|
||||
});
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/routes/embed.ts
|
||||
// kbdb/src/routes/embed.ts
|
||||
var embedRoutes = new Hono2();
|
||||
var OFF_HINT = "\u8A9E\u7FA9\u88DC\u5D4C\u9700\u5148\u958B embed \u6A21\u7D44\uFF08Vectorize+AI binding\uFF09\u3002\u53EB CC\u300C\u5E6B\u6211\u958B\u8A9E\u7FA9\u67E5\u8A62\u300D\uFF08\u8A2D kbdb_embed:true + redeploy \u6CE8\u5165 binding\uFF09\u5F8C\u518D\u547C\u53EB\u672C\u7AEF\u9EDE\u3002";
|
||||
embedRoutes.post("/backfill", async (c) => {
|
||||
@@ -3210,7 +3210,7 @@ embedRoutes.get("/selftest", async (c) => {
|
||||
return c.json({ success: true, ...result });
|
||||
});
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/actions/library-map.ts
|
||||
// kbdb/src/actions/library-map.ts
|
||||
var LIBRARY_MAP_TEMPLATE_ID = "tpl-library-map";
|
||||
var LIBRARY_MAP_TEMPLATE_NAME = "library_map";
|
||||
var LIBRARY_MAP_SLOTS = [
|
||||
@@ -3509,7 +3509,7 @@ async function getLibraryMapDetail(db, library, owner_id) {
|
||||
};
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/routes/map.ts
|
||||
// kbdb/src/routes/map.ts
|
||||
var mapRoutes = new Hono2();
|
||||
mapRoutes.post("/recompute", async (c) => {
|
||||
const body = await c.req.json().catch(() => ({}));
|
||||
@@ -3547,7 +3547,7 @@ mapRoutes.get("/:library", async (c) => {
|
||||
return c.json({ success: true, map });
|
||||
});
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/actions/execution-log.ts
|
||||
// kbdb/src/actions/execution-log.ts
|
||||
var SUCCESS_MESSAGE_MAX = 200;
|
||||
var FAILED_MESSAGE_MAX = 2e3;
|
||||
var TARGET_MAX = 300;
|
||||
@@ -3718,7 +3718,7 @@ async function cleanupExpiredLogs(db) {
|
||||
return { deleted, checked_overrides: overrides.length };
|
||||
}
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/routes/execution-log.ts
|
||||
// kbdb/src/routes/execution-log.ts
|
||||
var executionLogRoutes = new Hono2();
|
||||
executionLogRoutes.post("/record", async (c) => {
|
||||
const body = await c.req.json().catch(() => null);
|
||||
@@ -3772,7 +3772,7 @@ executionLogRoutes.post("/cleanup", async (c) => {
|
||||
return c.json({ success: true, ...result });
|
||||
});
|
||||
|
||||
// ../../matrix/arcrun/kbdb/src/index.ts
|
||||
// kbdb/src/index.ts
|
||||
var app = new Hono2();
|
||||
app.use("*", async (c, next) => {
|
||||
const path = new URL(c.req.url).pathname;
|
||||
@@ -3797,7 +3797,7 @@ app.route("/recipe-stats", recipeStatRoutes);
|
||||
app.route("/execution-log", executionLogRoutes);
|
||||
app.route("/embed", embedRoutes);
|
||||
app.route("/map", mapRoutes);
|
||||
var index_default = app;
|
||||
var src_default = app;
|
||||
export {
|
||||
index_default as default
|
||||
src_default as default
|
||||
};
|
||||
|
||||
+375
-378
File diff suppressed because it is too large
Load Diff
+28
-23
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"built": "2026-08-11",
|
||||
"source": "Arcrun@788295e",
|
||||
"source": "Arcrun@d8bbf2241bd6",
|
||||
"core": [
|
||||
{
|
||||
"name": "arcrun-cypher-executor",
|
||||
"canonical": null,
|
||||
"main_module": "worker.mjs",
|
||||
"main_file": "arcrun-cypher-executor/worker.mjs",
|
||||
"js_bytes": 571965,
|
||||
"js_bytes": 568855,
|
||||
"modules": [],
|
||||
"compat_date": "2025-02-19",
|
||||
"compat_flags": [
|
||||
@@ -49,16 +49,17 @@
|
||||
"stripped": {
|
||||
"services": 13
|
||||
},
|
||||
"warnings": [],
|
||||
"sha256": "bfa7287b2bab47a804286a1dcc52d84d58aae31a6a64b20182f8e17eecccb2fe",
|
||||
"bytes": 571965
|
||||
"source_commit": "797e7f751cc42cb1f5d9e2e187f18cf51eb981a1",
|
||||
"source_content_sha256": "66e2a6341854e8b2de0567a46282b94669e73b95d152b05b17b0f8b58e257fec",
|
||||
"sha256": "66e2a6341854e8b2de0567a46282b94669e73b95d152b05b17b0f8b58e257fec",
|
||||
"bytes": 568855
|
||||
},
|
||||
{
|
||||
"name": "arcrun-kbdb",
|
||||
"canonical": null,
|
||||
"main_module": "worker.mjs",
|
||||
"main_file": "arcrun-kbdb/worker.mjs",
|
||||
"js_bytes": 136576,
|
||||
"js_bytes": 135910,
|
||||
"modules": [],
|
||||
"compat_date": "2025-02-19",
|
||||
"compat_flags": [
|
||||
@@ -78,16 +79,17 @@
|
||||
"ENVIRONMENT": "production"
|
||||
}
|
||||
},
|
||||
"warnings": [],
|
||||
"sha256": "138956bf7c3df55dd797b6d0a174908764a53f3ba685c659ec5f0e2a06e181ed",
|
||||
"bytes": 136576
|
||||
"source_commit": "a7e23badf2a771be779a861e69e7efa6e8141dfe",
|
||||
"source_content_sha256": "5e5a7a030f4fd1f5549ace6791c3827b6497b0bfdd9add46af041af47c472905",
|
||||
"sha256": "5e5a7a030f4fd1f5549ace6791c3827b6497b0bfdd9add46af041af47c472905",
|
||||
"bytes": 135910
|
||||
},
|
||||
{
|
||||
"name": "arcrun-http-request",
|
||||
"canonical": "http_request",
|
||||
"main_module": "worker.mjs",
|
||||
"main_file": "arcrun-http-request/worker.mjs",
|
||||
"js_bytes": 80519,
|
||||
"js_bytes": 80073,
|
||||
"modules": [
|
||||
{
|
||||
"name": "component.wasm",
|
||||
@@ -110,16 +112,17 @@
|
||||
"COMPONENT_ID": "http_request"
|
||||
}
|
||||
},
|
||||
"warnings": [],
|
||||
"sha256": "8a175938bf1c98b8dce489ff3085a13f512a5bf18edd0d148233177ce8a20e21",
|
||||
"bytes": 80519
|
||||
"source_commit": "1e85dfb49b0e8d81c0854781d93ee4e6a300c7b3",
|
||||
"source_content_sha256": "9a9dcb71879a7bdfd9fec1bd94eb9742e12cb63733d822ce63eeb1be30008d15",
|
||||
"sha256": "9a9dcb71879a7bdfd9fec1bd94eb9742e12cb63733d822ce63eeb1be30008d15",
|
||||
"bytes": 80073
|
||||
},
|
||||
{
|
||||
"name": "arcrun-code",
|
||||
"canonical": "code",
|
||||
"main_module": "worker.mjs",
|
||||
"main_file": "arcrun-code/worker.mjs",
|
||||
"js_bytes": 154438,
|
||||
"js_bytes": 153671,
|
||||
"modules": [
|
||||
{
|
||||
"name": "quickjs.wasm",
|
||||
@@ -139,16 +142,17 @@
|
||||
"COMPONENT_ID": "code"
|
||||
}
|
||||
},
|
||||
"warnings": [],
|
||||
"sha256": "761acc054b6f01bc2c37dce3b5923cd40d4ac8ac986bc0452f36e16463299a74",
|
||||
"bytes": 154438
|
||||
"source_commit": "621cb8d948d61be6202063fd02effb3f538437fe",
|
||||
"source_content_sha256": "285a7406ec694ae47dccfaf48517f712c74d207a1689dffa15c39f1555b45be5",
|
||||
"sha256": "285a7406ec694ae47dccfaf48517f712c74d207a1689dffa15c39f1555b45be5",
|
||||
"bytes": 153671
|
||||
},
|
||||
{
|
||||
"name": "arcrun-mcp",
|
||||
"canonical": null,
|
||||
"main_module": "worker.mjs",
|
||||
"main_file": "arcrun-mcp/worker.mjs",
|
||||
"js_bytes": 1172208,
|
||||
"js_bytes": 1165130,
|
||||
"modules": [],
|
||||
"compat_date": "2024-11-27",
|
||||
"compat_flags": [
|
||||
@@ -163,9 +167,10 @@
|
||||
"ai": false,
|
||||
"vars": {}
|
||||
},
|
||||
"warnings": [],
|
||||
"sha256": "886ba67cd1b99f710f4f439845967b4a92542e716d52fe5ea21e623c33016cdd",
|
||||
"bytes": 1172208
|
||||
"source_commit": "035e8b255b0dcbd4238707f7d2ac8ccf9ee1ba72",
|
||||
"source_content_sha256": "be15033f32e605f03f69bd10cd87782dafa34dbafeee2ce367bd7361a062a291",
|
||||
"sha256": "be15033f32e605f03f69bd10cd87782dafa34dbafeee2ce367bd7361a062a291",
|
||||
"bytes": 1165130
|
||||
},
|
||||
{
|
||||
"name": "arcrun-rag-ui",
|
||||
@@ -202,8 +207,8 @@
|
||||
"sha256": "782a3b2212884f789e1725f82046cf34ef6bb02e1a8b585cab8e4ae6c6e441ca"
|
||||
}
|
||||
},
|
||||
"release": "1.4.36",
|
||||
"release": "1.4.37",
|
||||
"built_for": "oauth-installer-lazy-load",
|
||||
"notes": [],
|
||||
"fingerprint": "3db1a1704122e58c6b40bd48e8675fbdbdccfa69d0d735bc7247101bae9c8c25"
|
||||
"fingerprint": "512c731665e616ac12bdd3b345acf74f20e12eb39ccbe1bbc38fb19a693e3341"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user