feat/step3 全量重生(Arcrun@7e87a33):查詢誠實化 cypher/registry+manifest 投影乾淨

- build-bundles.mjs(work/installer-batch-0725 版)+build-ui-bundle.mjs 全量建:
  tier1 19(18 TinyGo+code)+tier2 4(cypher/kbdb/registry/mcp)+ui=24 顆
- manifest built=2026-07-31 source=Arcrun@7e87a33(feat/step3-missing-guidance)
- 死零件 km_writer/claude_api/kbdb_upsert_block 消失(G13);claude_api 在
  .component-builds 仍殘留、建置時排除(上游 Arcrun 待刪,已落帳)
- daemon 段沿用 v0.15.0(zips 非本機可重建、非本次修復範圍)
- 含 feat/step3 修復:isVirtualIoName(Input 角色假 found)+registry input_schema
  透傳+not_found 分型指路 suggestion+recipe 兩庫查詢

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-31 12:59:09 +08:00
parent 3918ee629c
commit 0bfe37cffb
32 changed files with 1829 additions and 12496 deletions
-10
View File
@@ -1,10 +0,0 @@
# Arcrun RAG — install bundles
Prebuilt worker bundles for the **Arcrun RAG** one-click installer.
Served via jsDelivr; fetched automatically during install — you never need to read this repo.
- `manifest.json` — schema `arcrun-rag-bundles/v1`25 workers: tier1 components + tier2 engines
- `tier1/<component>/` — wrapper `index.js` + `<hash>-component.wasm`
- `tier2/<engine>/` — bundled `index.js`services strippedlazy-bound at install
Built from `Arcrun@ad367e4` by `installer/scripts/build-bundles.mjs`arcrun-rag repo.
+657 -738
View File
File diff suppressed because it is too large Load Diff
+19 -19
View File
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
// src/index.ts
import componentWasm from "./2c05e315c753986af9193c194998f3109a0a17df-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -49,10 +49,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -126,7 +126,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -330,7 +330,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -601,7 +601,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -643,7 +643,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1053,7 +1053,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/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"];
@@ -1064,10 +1064,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -1441,7 +1441,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -1463,7 +1463,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/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 = "(?:|/.*)";
@@ -1575,7 +1575,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -1634,7 +1634,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/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) {
@@ -1820,7 +1820,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -1878,7 +1878,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2056,7 +2056,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -2081,7 +2081,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -2099,7 +2099,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/array_ops/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
+37 -41
View File
@@ -1,7 +1,7 @@
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/_internal/utils.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/_internal/utils.mjs
// @__NO_SIDE_EFFECTS__
function createNotImplementedError(name) {
return new Error(`[unenv] ${name} is not implemented yet!`);
@@ -26,7 +26,7 @@ function notImplementedClass(name) {
}
__name(notImplementedClass, "notImplementedClass");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
var _timeOrigin = globalThis.performance?.timeOrigin ?? Date.now();
var _performanceNow = globalThis.performance?.now ? globalThis.performance.now.bind(globalThis.performance) : () => Date.now() - _timeOrigin;
var nodeTiming = {
@@ -264,7 +264,7 @@ var PerformanceObserver = class {
};
var performance = globalThis.performance && "addEventListener" in globalThis.performance ? globalThis.performance : new Performance();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
if (!("__unenv__" in performance)) {
const proto = Performance.prototype;
for (const key of Object.getOwnPropertyNames(proto)) {
@@ -285,14 +285,14 @@ globalThis.PerformanceObserver = PerformanceObserver;
globalThis.PerformanceObserverEntryList = PerformanceObserverEntryList;
globalThis.PerformanceResourceTiming = PerformanceResourceTiming;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/console.mjs
import { Writable } from "node:stream";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/mock/noop.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/mock/noop.mjs
var noop_default = Object.assign(() => {
}, { __unenv__: true });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/console.mjs
var _console = globalThis.console;
var _ignoreErrors = true;
var _stderr = new Writable();
@@ -324,7 +324,7 @@ var _times = /* @__PURE__ */ new Map();
var _stdoutErrorHandler = noop_default;
var _stderrErrorHandler = noop_default;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
var workerdConsole = globalThis["console"];
var {
assert,
@@ -365,10 +365,10 @@ Object.assign(workerdConsole, {
});
var console_default = workerdConsole;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
globalThis.console = console_default;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtime2(startTime) {
const now = Date.now();
const seconds = Math.trunc(now / 1e3);
@@ -387,10 +387,10 @@ var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtim
return BigInt(Date.now() * 1e6);
}, "bigint") });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
import { EventEmitter } from "node:events";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
var ReadStream = class {
static {
__name(this, "ReadStream");
@@ -407,7 +407,7 @@ var ReadStream = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
var WriteStream = class {
static {
__name(this, "WriteStream");
@@ -457,10 +457,10 @@ var WriteStream = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
var NODE_VERSION = "22.14.0";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
var Process = class _Process extends EventEmitter {
static {
__name(this, "Process");
@@ -695,7 +695,7 @@ var Process = class _Process extends EventEmitter {
_linkedBinding = void 0;
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
var globalProcess = globalThis["process"];
var getBuiltinModule = globalProcess.getBuiltinModule;
var workerdProcess = getBuiltinModule("node:process");
@@ -925,13 +925,13 @@ var _process = {
};
var process_default = _process;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
globalThis.process = process_default;
// src/index.ts
import componentWasm from "./1e5dae631ff4edb232828412daf37439b7234e8a-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context2, next) => {
let index = -1;
@@ -976,10 +976,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -1053,7 +1053,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -1257,7 +1257,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -1528,7 +1528,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -1570,7 +1570,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1980,7 +1980,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/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"];
@@ -1991,10 +1991,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -2368,7 +2368,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -2390,7 +2390,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/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 = "(?:|/.*)";
@@ -2502,7 +2502,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -2561,7 +2561,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/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) {
@@ -2747,7 +2747,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -2805,7 +2805,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2983,7 +2983,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -3008,7 +3008,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -3026,7 +3026,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_oauth2/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const opts = {
origin: "*",
@@ -3298,12 +3298,8 @@ function createWasiShim(stdinData, hostFunctions) {
try {
const result = await hostFunctions.http_request(url, method, headers, body);
return writeOut(memory.buffer, outPtr, outLenPtr, new TextEncoder().encode(result));
} catch (e) {
const errDetail = e instanceof Error ? e.message : String(e);
const errEnv = new TextEncoder().encode(
JSON.stringify({ error: `fetch failed: ${errDetail}`, status: 0, body: "" })
);
return writeOut(memory.buffer, outPtr, outLenPtr, errEnv);
} catch {
return 1;
}
}) : () => 1,
// kv_get(keyPtr, keyLen, outPtr, outLenPtr) → 0 成功;1 錯誤;2 找不到 key
+37 -41
View File
@@ -1,7 +1,7 @@
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
// @__NO_SIDE_EFFECTS__
function createNotImplementedError(name) {
return new Error(`[unenv] ${name} is not implemented yet!`);
@@ -26,7 +26,7 @@ function notImplementedClass(name) {
}
__name(notImplementedClass, "notImplementedClass");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
var _timeOrigin = globalThis.performance?.timeOrigin ?? Date.now();
var _performanceNow = globalThis.performance?.now ? globalThis.performance.now.bind(globalThis.performance) : () => Date.now() - _timeOrigin;
var nodeTiming = {
@@ -264,7 +264,7 @@ var PerformanceObserver = class {
};
var performance = globalThis.performance && "addEventListener" in globalThis.performance ? globalThis.performance : new Performance();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
if (!("__unenv__" in performance)) {
const proto = Performance.prototype;
for (const key of Object.getOwnPropertyNames(proto)) {
@@ -285,14 +285,14 @@ globalThis.PerformanceObserver = PerformanceObserver;
globalThis.PerformanceObserverEntryList = PerformanceObserverEntryList;
globalThis.PerformanceResourceTiming = PerformanceResourceTiming;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
import { Writable } from "node:stream";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
var noop_default = Object.assign(() => {
}, { __unenv__: true });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
var _console = globalThis.console;
var _ignoreErrors = true;
var _stderr = new Writable();
@@ -324,7 +324,7 @@ var _times = /* @__PURE__ */ new Map();
var _stdoutErrorHandler = noop_default;
var _stderrErrorHandler = noop_default;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
var workerdConsole = globalThis["console"];
var {
assert,
@@ -365,10 +365,10 @@ Object.assign(workerdConsole, {
});
var console_default = workerdConsole;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260420.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260420.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
globalThis.console = console_default;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtime2(startTime) {
const now = Date.now();
const seconds = Math.trunc(now / 1e3);
@@ -387,10 +387,10 @@ var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtim
return BigInt(Date.now() * 1e6);
}, "bigint") });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
import { EventEmitter } from "node:events";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
var ReadStream = class {
static {
__name(this, "ReadStream");
@@ -407,7 +407,7 @@ var ReadStream = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
var WriteStream = class {
static {
__name(this, "WriteStream");
@@ -457,10 +457,10 @@ var WriteStream = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
var NODE_VERSION = "22.14.0";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
var Process = class _Process extends EventEmitter {
static {
__name(this, "Process");
@@ -695,7 +695,7 @@ var Process = class _Process extends EventEmitter {
_linkedBinding = void 0;
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
var globalProcess = globalThis["process"];
var getBuiltinModule = globalProcess.getBuiltinModule;
var workerdProcess = getBuiltinModule("node:process");
@@ -925,13 +925,13 @@ var _process = {
};
var process_default = _process;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260420.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260420.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
globalThis.process = process_default;
// src/index.ts
import componentWasm from "./65dfefeaf42ca5ed95b583203575f4563fecd4a9-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context2, next) => {
let index = -1;
@@ -976,10 +976,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -1053,7 +1053,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -1257,7 +1257,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -1528,7 +1528,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -1570,7 +1570,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1980,7 +1980,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/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"];
@@ -1991,10 +1991,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -2368,7 +2368,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/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();
@@ -2390,7 +2390,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/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 = "(?:|/.*)";
@@ -2502,7 +2502,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -2561,7 +2561,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/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) {
@@ -2747,7 +2747,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -2805,7 +2805,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2983,7 +2983,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -3008,7 +3008,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -3026,7 +3026,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_service_account/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
@@ -3301,12 +3301,8 @@ function createWasiShim(stdinData, hostFunctions) {
try {
const result = await hostFunctions.http_request(url, method, headers, body);
return writeOut(memory.buffer, outPtr, outLenPtr, new TextEncoder().encode(result));
} catch (e) {
const errDetail = e instanceof Error ? e.message : String(e);
const errEnv = new TextEncoder().encode(
JSON.stringify({ error: `fetch failed: ${errDetail}`, status: 0, body: "" })
);
return writeOut(memory.buffer, outPtr, outLenPtr, errEnv);
} catch {
return 1;
}
}) : () => 1,
// kv_get(keyPtr, keyLen, outPtr, outLenPtr) → 0 成功;1 錯誤;2 找不到 key
+37 -41
View File
@@ -1,7 +1,7 @@
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
// @__NO_SIDE_EFFECTS__
function createNotImplementedError(name) {
return new Error(`[unenv] ${name} is not implemented yet!`);
@@ -26,7 +26,7 @@ function notImplementedClass(name) {
}
__name(notImplementedClass, "notImplementedClass");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
var _timeOrigin = globalThis.performance?.timeOrigin ?? Date.now();
var _performanceNow = globalThis.performance?.now ? globalThis.performance.now.bind(globalThis.performance) : () => Date.now() - _timeOrigin;
var nodeTiming = {
@@ -264,7 +264,7 @@ var PerformanceObserver = class {
};
var performance = globalThis.performance && "addEventListener" in globalThis.performance ? globalThis.performance : new Performance();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260603.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260603.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
if (!("__unenv__" in performance)) {
const proto = Performance.prototype;
for (const key of Object.getOwnPropertyNames(proto)) {
@@ -285,14 +285,14 @@ globalThis.PerformanceObserver = PerformanceObserver;
globalThis.PerformanceObserverEntryList = PerformanceObserverEntryList;
globalThis.PerformanceResourceTiming = PerformanceResourceTiming;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
import { Writable } from "node:stream";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
var noop_default = Object.assign(() => {
}, { __unenv__: true });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
var _console = globalThis.console;
var _ignoreErrors = true;
var _stderr = new Writable();
@@ -324,7 +324,7 @@ var _times = /* @__PURE__ */ new Map();
var _stdoutErrorHandler = noop_default;
var _stderrErrorHandler = noop_default;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260603.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260603.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
var workerdConsole = globalThis["console"];
var {
assert,
@@ -365,10 +365,10 @@ Object.assign(workerdConsole, {
});
var console_default = workerdConsole;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/wrangler@4.98.0_@cloudflare+workers-types@4.20260609.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/wrangler@4.98.0_@cloudflare+workers-types@4.20260609.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
globalThis.console = console_default;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtime2(startTime) {
const now = Date.now();
const seconds = Math.trunc(now / 1e3);
@@ -387,10 +387,10 @@ var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtim
return BigInt(Date.now() * 1e6);
}, "bigint") });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
import { EventEmitter } from "node:events";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
var ReadStream = class {
static {
__name(this, "ReadStream");
@@ -407,7 +407,7 @@ var ReadStream = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
var WriteStream = class {
static {
__name(this, "WriteStream");
@@ -457,10 +457,10 @@ var WriteStream = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
var NODE_VERSION = "22.14.0";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
var Process = class _Process extends EventEmitter {
static {
__name(this, "Process");
@@ -695,7 +695,7 @@ var Process = class _Process extends EventEmitter {
_linkedBinding = void 0;
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260603.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260603.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
var globalProcess = globalThis["process"];
var getBuiltinModule = globalProcess.getBuiltinModule;
var workerdProcess = getBuiltinModule("node:process");
@@ -925,13 +925,13 @@ var _process = {
};
var process_default = _process;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/wrangler@4.98.0_@cloudflare+workers-types@4.20260609.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/wrangler@4.98.0_@cloudflare+workers-types@4.20260609.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
globalThis.process = process_default;
// src/index.ts
import componentWasm from "./26a79169f7ae71b46962b7df87289a4d06899272-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context2, next) => {
let index = -1;
@@ -976,10 +976,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -1053,7 +1053,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -1257,7 +1257,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -1543,7 +1543,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -1585,7 +1585,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1995,7 +1995,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/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"];
@@ -2006,10 +2006,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -2388,7 +2388,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -2410,7 +2410,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/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 = "(?:|/.*)";
@@ -2522,7 +2522,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -2581,7 +2581,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/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) {
@@ -2767,7 +2767,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -2825,7 +2825,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -3003,7 +3003,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -3028,7 +3028,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -3046,7 +3046,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/auth_static_key/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const opts = {
origin: "*",
@@ -3315,12 +3315,8 @@ function createWasiShim(stdinData, hostFunctions) {
try {
const result = await hostFunctions.http_request(url, method, headers, body);
return writeOut(memory.buffer, outPtr, outLenPtr, new TextEncoder().encode(result));
} catch (e) {
const errDetail = e instanceof Error ? e.message : String(e);
const errEnv = new TextEncoder().encode(
JSON.stringify({ error: `fetch failed: ${errDetail}`, status: 0, body: "" })
);
return writeOut(memory.buffer, outPtr, outLenPtr, errEnv);
} catch {
return 1;
}
}) : () => 1,
// kv_get(keyPtr, keyLen, outPtr, outLenPtr) → 0 成功;1 錯誤;2 找不到 key
File diff suppressed because it is too large Load Diff
+31 -31
View File
@@ -41,10 +41,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
mod
));
// node_modules/@jitl/quickjs-ffi-types/dist/index.mjs
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-ffi-types/dist/index.mjs
var EvalFlags, IntrinsicsFlags, JSPromiseStateEnum, GetOwnPropertyNamesFlags, IsEqualOp;
var init_dist = __esm({
"node_modules/@jitl/quickjs-ffi-types/dist/index.mjs"() {
"../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/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 };
@@ -53,7 +53,7 @@ var init_dist = __esm({
}
});
// node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs
function debugLog(...args) {
QTS_DEBUG && console.log("quickjs-emscripten:", ...args);
}
@@ -140,7 +140,7 @@ function applyModuleEvalRuntimeOptions(runtime, options) {
}
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({
"node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs"() {
"../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs"() {
init_dist();
init_dist();
__defProp2 = Object.defineProperty;
@@ -1171,7 +1171,7 @@ Attempted to suspend at:`);
}
});
// node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs
var module_6F3E5H7Y_exports = {};
__export(module_6F3E5H7Y_exports, {
QuickJSModuleCallbacks: () => QuickJSModuleCallbacks,
@@ -1180,19 +1180,19 @@ __export(module_6F3E5H7Y_exports, {
applyModuleEvalRuntimeOptions: () => applyModuleEvalRuntimeOptions
});
var init_module_6F3E5H7Y = __esm({
"node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs"() {
"../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs"() {
init_chunk_JTKJZQYV();
}
});
// node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/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({
"node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs"() {
"../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs"() {
QuickJSFFI = class {
static {
__name(this, "QuickJSFFI");
@@ -1273,9 +1273,9 @@ var init_ffi = __esm({
}
});
// node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.cloudflare.cjs
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.cloudflare.cjs
var require_emscripten_module_cloudflare = __commonJS({
"node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.cloudflare.cjs"(exports, module) {
"../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.cloudflare.cjs"(exports, module) {
var QuickJSRaw = (() => {
var _scriptName = globalThis.document?.currentScript?.src;
return async function(moduleArg = {}) {
@@ -1727,7 +1727,7 @@ var require_emscripten_module_cloudflare = __commonJS({
}
});
// node_modules/hono/dist/compose.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -1772,10 +1772,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// node_modules/hono/dist/request/constants.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// node_modules/hono/dist/utils/body.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -1849,7 +1849,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// node_modules/hono/dist/utils/url.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -2053,7 +2053,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// node_modules/hono/dist/request.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -2339,7 +2339,7 @@ var HonoRequest = class {
}
};
// node_modules/hono/dist/utils/html.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -2381,7 +2381,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// node_modules/hono/dist/context.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -2791,7 +2791,7 @@ var Context = class {
}, "notFound");
};
// node_modules/hono/dist/router.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/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"];
@@ -2802,10 +2802,10 @@ var UnsupportedPathError = class extends Error {
}
};
// node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// node_modules/hono/dist/hono-base.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -3184,7 +3184,7 @@ var Hono = class _Hono {
}, "fire");
};
// node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -3206,7 +3206,7 @@ function match(method, path) {
}
__name(match, "match");
// node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/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 = "(?:|/.*)";
@@ -3318,7 +3318,7 @@ var Node = class _Node {
}
};
// node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -3377,7 +3377,7 @@ var Trie = class {
}
};
// node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/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) {
@@ -3563,7 +3563,7 @@ var RegExpRouter = class {
}
};
// node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -3621,7 +3621,7 @@ var SmartRouter = class {
}
};
// node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -3799,7 +3799,7 @@ var Node2 = class _Node2 {
}
};
// node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -3824,7 +3824,7 @@ var TrieRouter = class {
}
};
// node_modules/hono/dist/hono.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -3842,7 +3842,7 @@ var Hono2 = class extends Hono {
}
};
// node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const opts = {
origin: "*",
@@ -3925,7 +3925,7 @@ var cors = /* @__PURE__ */ __name((options) => {
}, "cors2");
}, "cors");
// node_modules/quickjs-emscripten-core/dist/index.mjs
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/quickjs-emscripten-core/dist/index.mjs
init_chunk_JTKJZQYV();
init_dist();
async function newQuickJSWASMModuleFromVariant(variantOrPromise) {
@@ -3992,7 +3992,7 @@ function newMockExtensions(log) {
}
__name(newMockExtensions, "newMockExtensions");
// node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs
// ../../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/components/code/node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs
var variant = { type: "sync", importFFI: /* @__PURE__ */ __name(() => Promise.resolve().then(() => (init_ffi(), ffi_exports)).then((mod) => mod.QuickJSFFI), "importFFI"), importModuleLoader: /* @__PURE__ */ __name(() => Promise.resolve().then(() => __toESM(require_emscripten_module_cloudflare(), 1)).then((mod) => mod.default), "importModuleLoader") };
var src_default = variant;
+37 -41
View File
@@ -1,7 +1,7 @@
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
// @__NO_SIDE_EFFECTS__
function createNotImplementedError(name) {
return new Error(`[unenv] ${name} is not implemented yet!`);
@@ -26,7 +26,7 @@ function notImplementedClass(name) {
}
__name(notImplementedClass, "notImplementedClass");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
var _timeOrigin = globalThis.performance?.timeOrigin ?? Date.now();
var _performanceNow = globalThis.performance?.now ? globalThis.performance.now.bind(globalThis.performance) : () => Date.now() - _timeOrigin;
var nodeTiming = {
@@ -264,7 +264,7 @@ var PerformanceObserver = class {
};
var performance = globalThis.performance && "addEventListener" in globalThis.performance ? globalThis.performance : new Performance();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
if (!("__unenv__" in performance)) {
const proto = Performance.prototype;
for (const key of Object.getOwnPropertyNames(proto)) {
@@ -285,14 +285,14 @@ globalThis.PerformanceObserver = PerformanceObserver;
globalThis.PerformanceObserverEntryList = PerformanceObserverEntryList;
globalThis.PerformanceResourceTiming = PerformanceResourceTiming;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
import { Writable } from "node:stream";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
var noop_default = Object.assign(() => {
}, { __unenv__: true });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
var _console = globalThis.console;
var _ignoreErrors = true;
var _stderr = new Writable();
@@ -324,7 +324,7 @@ var _times = /* @__PURE__ */ new Map();
var _stdoutErrorHandler = noop_default;
var _stderrErrorHandler = noop_default;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
var workerdConsole = globalThis["console"];
var {
assert,
@@ -365,10 +365,10 @@ Object.assign(workerdConsole, {
});
var console_default = workerdConsole;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260420.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260420.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
globalThis.console = console_default;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtime2(startTime) {
const now = Date.now();
const seconds = Math.trunc(now / 1e3);
@@ -387,10 +387,10 @@ var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtim
return BigInt(Date.now() * 1e6);
}, "bigint") });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
import { EventEmitter } from "node:events";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
var ReadStream = class {
static {
__name(this, "ReadStream");
@@ -407,7 +407,7 @@ var ReadStream = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
var WriteStream = class {
static {
__name(this, "WriteStream");
@@ -457,10 +457,10 @@ var WriteStream = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
var NODE_VERSION = "22.14.0";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
var Process = class _Process extends EventEmitter {
static {
__name(this, "Process");
@@ -695,7 +695,7 @@ var Process = class _Process extends EventEmitter {
_linkedBinding = void 0;
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
var globalProcess = globalThis["process"];
var getBuiltinModule = globalProcess.getBuiltinModule;
var workerdProcess = getBuiltinModule("node:process");
@@ -925,13 +925,13 @@ var _process = {
};
var process_default = _process;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260420.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260420.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
globalThis.process = process_default;
// src/index.ts
import componentWasm from "./cfef89ca6e0f809fe5774d8e3db5e48222abb7f6-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context2, next) => {
let index = -1;
@@ -976,10 +976,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -1053,7 +1053,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -1257,7 +1257,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -1528,7 +1528,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -1570,7 +1570,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1980,7 +1980,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/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"];
@@ -1991,10 +1991,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -2368,7 +2368,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/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();
@@ -2390,7 +2390,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/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 = "(?:|/.*)";
@@ -2502,7 +2502,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -2561,7 +2561,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/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) {
@@ -2747,7 +2747,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -2805,7 +2805,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2983,7 +2983,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -3008,7 +3008,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -3026,7 +3026,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/cron/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
@@ -3301,12 +3301,8 @@ function createWasiShim(stdinData, hostFunctions) {
try {
const result = await hostFunctions.http_request(url, method, headers, body);
return writeOut(memory.buffer, outPtr, outLenPtr, new TextEncoder().encode(result));
} catch (e) {
const errDetail = e instanceof Error ? e.message : String(e);
const errEnv = new TextEncoder().encode(
JSON.stringify({ error: `fetch failed: ${errDetail}`, status: 0, body: "" })
);
return writeOut(memory.buffer, outPtr, outLenPtr, errEnv);
} catch {
return 1;
}
}) : () => 1,
// kv_get(keyPtr, keyLen, outPtr, outLenPtr) → 0 成功;1 錯誤;2 找不到 key
+19 -19
View File
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
// src/index.ts
import componentWasm from "./b02bbde53cd62d1e12579e8238de745a1129fdc3-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -49,10 +49,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -126,7 +126,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -330,7 +330,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -601,7 +601,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -643,7 +643,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1053,7 +1053,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/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"];
@@ -1064,10 +1064,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -1441,7 +1441,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -1463,7 +1463,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/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 = "(?:|/.*)";
@@ -1575,7 +1575,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -1634,7 +1634,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/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) {
@@ -1820,7 +1820,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -1878,7 +1878,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2056,7 +2056,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -2081,7 +2081,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -2099,7 +2099,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/date_ops/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
+19 -19
View File
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
// src/index.ts
import componentWasm from "./d5253d0bc89bf79b101ea87b8010786decf28eb2-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -49,10 +49,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -126,7 +126,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -330,7 +330,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -601,7 +601,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -643,7 +643,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1053,7 +1053,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/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"];
@@ -1064,10 +1064,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -1441,7 +1441,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -1463,7 +1463,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/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 = "(?:|/.*)";
@@ -1575,7 +1575,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -1634,7 +1634,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/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) {
@@ -1820,7 +1820,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -1878,7 +1878,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2056,7 +2056,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -2081,7 +2081,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -2099,7 +2099,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/filter/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
+19 -19
View File
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
// src/index.ts
import componentWasm from "./f1948f457d59667fe7c6c1867389ceda8e3a01b4-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -49,10 +49,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -126,7 +126,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -330,7 +330,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -601,7 +601,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -643,7 +643,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1053,7 +1053,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/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"];
@@ -1064,10 +1064,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -1441,7 +1441,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -1463,7 +1463,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/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 = "(?:|/.*)";
@@ -1575,7 +1575,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -1634,7 +1634,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/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) {
@@ -1820,7 +1820,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -1878,7 +1878,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2056,7 +2056,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -2081,7 +2081,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -2099,7 +2099,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/foreach_control/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
+37 -41
View File
@@ -1,7 +1,7 @@
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
// @__NO_SIDE_EFFECTS__
function createNotImplementedError(name) {
return new Error(`[unenv] ${name} is not implemented yet!`);
@@ -26,7 +26,7 @@ function notImplementedClass(name) {
}
__name(notImplementedClass, "notImplementedClass");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
var _timeOrigin = globalThis.performance?.timeOrigin ?? Date.now();
var _performanceNow = globalThis.performance?.now ? globalThis.performance.now.bind(globalThis.performance) : () => Date.now() - _timeOrigin;
var nodeTiming = {
@@ -264,7 +264,7 @@ var PerformanceObserver = class {
};
var performance = globalThis.performance && "addEventListener" in globalThis.performance ? globalThis.performance : new Performance();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
if (!("__unenv__" in performance)) {
const proto = Performance.prototype;
for (const key of Object.getOwnPropertyNames(proto)) {
@@ -285,14 +285,14 @@ globalThis.PerformanceObserver = PerformanceObserver;
globalThis.PerformanceObserverEntryList = PerformanceObserverEntryList;
globalThis.PerformanceResourceTiming = PerformanceResourceTiming;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
import { Writable } from "node:stream";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
var noop_default = Object.assign(() => {
}, { __unenv__: true });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
var _console = globalThis.console;
var _ignoreErrors = true;
var _stderr = new Writable();
@@ -324,7 +324,7 @@ var _times = /* @__PURE__ */ new Map();
var _stdoutErrorHandler = noop_default;
var _stderrErrorHandler = noop_default;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
var workerdConsole = globalThis["console"];
var {
assert,
@@ -365,10 +365,10 @@ Object.assign(workerdConsole, {
});
var console_default = workerdConsole;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260420.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260420.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
globalThis.console = console_default;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtime2(startTime) {
const now = Date.now();
const seconds = Math.trunc(now / 1e3);
@@ -387,10 +387,10 @@ var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtim
return BigInt(Date.now() * 1e6);
}, "bigint") });
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
import { EventEmitter } from "node:events";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
var ReadStream = class {
static {
__name(this, "ReadStream");
@@ -407,7 +407,7 @@ var ReadStream = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
var WriteStream = class {
static {
__name(this, "WriteStream");
@@ -457,10 +457,10 @@ var WriteStream = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
var NODE_VERSION = "22.14.0";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
var Process = class _Process extends EventEmitter {
static {
__name(this, "Process");
@@ -695,7 +695,7 @@ var Process = class _Process extends EventEmitter {
_linkedBinding = void 0;
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
var globalProcess = globalThis["process"];
var getBuiltinModule = globalProcess.getBuiltinModule;
var workerdProcess = getBuiltinModule("node:process");
@@ -925,13 +925,13 @@ var _process = {
};
var process_default = _process;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260420.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260420.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
globalThis.process = process_default;
// src/index.ts
import componentWasm from "./dece047f15695e86a2f04ca9d75ec85829146a39-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context2, next) => {
let index = -1;
@@ -976,10 +976,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -1053,7 +1053,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -1257,7 +1257,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -1528,7 +1528,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -1570,7 +1570,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.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 = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1980,7 +1980,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.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"];
@@ -1991,10 +1991,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -2368,7 +2368,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.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();
@@ -2390,7 +2390,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.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 = "(?:|/.*)";
@@ -2502,7 +2502,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -2561,7 +2561,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.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) {
@@ -2747,7 +2747,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -2805,7 +2805,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.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 = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2983,7 +2983,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -3008,7 +3008,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -3026,7 +3026,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/http_request/node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
@@ -3301,12 +3301,8 @@ function createWasiShim(stdinData, hostFunctions) {
try {
const result = await hostFunctions.http_request(url, method, headers, body);
return writeOut(memory.buffer, outPtr, outLenPtr, new TextEncoder().encode(result));
} catch (e) {
const errDetail = e instanceof Error ? e.message : String(e);
const errEnv = new TextEncoder().encode(
JSON.stringify({ error: `fetch failed: ${errDetail}`, status: 0, body: "" })
);
return writeOut(memory.buffer, outPtr, outLenPtr, errEnv);
} catch {
return 1;
}
}) : () => 1,
// kv_get(keyPtr, keyLen, outPtr, outLenPtr) → 0 成功;1 錯誤;2 找不到 key
+19 -19
View File
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
// src/index.ts
import componentWasm from "./8f00b54a9af7ec82c27b8f62b9951af22eaa4612-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -49,10 +49,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -126,7 +126,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -330,7 +330,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -601,7 +601,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -643,7 +643,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1053,7 +1053,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/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"];
@@ -1064,10 +1064,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -1441,7 +1441,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -1463,7 +1463,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/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 = "(?:|/.*)";
@@ -1575,7 +1575,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -1634,7 +1634,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/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) {
@@ -1820,7 +1820,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -1878,7 +1878,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2056,7 +2056,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -2081,7 +2081,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -2099,7 +2099,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/if_control/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+19 -19
View File
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
// src/index.ts
import componentWasm from "./e99ec54d9c509604b6fffd4b9184d3942a413520-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -49,10 +49,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -126,7 +126,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -330,7 +330,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -601,7 +601,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -643,7 +643,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1053,7 +1053,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/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"];
@@ -1064,10 +1064,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -1441,7 +1441,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -1463,7 +1463,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/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 = "(?:|/.*)";
@@ -1575,7 +1575,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -1634,7 +1634,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/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) {
@@ -1820,7 +1820,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -1878,7 +1878,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2056,7 +2056,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -2081,7 +2081,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -2099,7 +2099,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/merge/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
+19 -19
View File
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
// src/index.ts
import componentWasm from "./70f7f87bddfc4341aea7f2f953f00b0e38209bc1-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -49,10 +49,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -126,7 +126,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -330,7 +330,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -601,7 +601,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -643,7 +643,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1053,7 +1053,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/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"];
@@ -1064,10 +1064,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -1441,7 +1441,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -1463,7 +1463,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/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 = "(?:|/.*)";
@@ -1575,7 +1575,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -1634,7 +1634,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/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) {
@@ -1820,7 +1820,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -1878,7 +1878,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2056,7 +2056,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -2081,7 +2081,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -2099,7 +2099,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/number_ops/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
+19 -19
View File
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
// src/index.ts
import componentWasm from "./6e202a50e05d7a48b3d3318e149670cd87f213c9-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -49,10 +49,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -126,7 +126,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -330,7 +330,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -601,7 +601,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -643,7 +643,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1053,7 +1053,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/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"];
@@ -1064,10 +1064,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -1441,7 +1441,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -1463,7 +1463,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/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 = "(?:|/.*)";
@@ -1575,7 +1575,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -1634,7 +1634,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/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) {
@@ -1820,7 +1820,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -1878,7 +1878,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2056,7 +2056,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -2081,7 +2081,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -2099,7 +2099,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/set/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
+19 -19
View File
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
// src/index.ts
import componentWasm from "./d2e03502220d42d7f65d990289a947213d6e1972-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -49,10 +49,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -126,7 +126,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -330,7 +330,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -601,7 +601,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -643,7 +643,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1053,7 +1053,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/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"];
@@ -1064,10 +1064,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -1441,7 +1441,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -1463,7 +1463,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/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 = "(?:|/.*)";
@@ -1575,7 +1575,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -1634,7 +1634,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/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) {
@@ -1820,7 +1820,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -1878,7 +1878,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2056,7 +2056,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -2081,7 +2081,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -2099,7 +2099,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/string_ops/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
+19 -19
View File
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
// src/index.ts
import componentWasm from "./1920d78cdde1384d775cbc6647957409cf185584-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -49,10 +49,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -126,7 +126,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -330,7 +330,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -601,7 +601,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -643,7 +643,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1053,7 +1053,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/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"];
@@ -1064,10 +1064,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -1441,7 +1441,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -1463,7 +1463,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/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 = "(?:|/.*)";
@@ -1575,7 +1575,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -1634,7 +1634,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/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) {
@@ -1820,7 +1820,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -1878,7 +1878,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2056,7 +2056,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -2081,7 +2081,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -2099,7 +2099,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/switch/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
+19 -19
View File
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
// src/index.ts
import componentWasm from "./6a99d0d167de81d14f89a86557dc913fd84af607-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -49,10 +49,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -126,7 +126,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -330,7 +330,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -601,7 +601,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -643,7 +643,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1053,7 +1053,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/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"];
@@ -1064,10 +1064,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -1441,7 +1441,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -1463,7 +1463,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/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 = "(?:|/.*)";
@@ -1575,7 +1575,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -1634,7 +1634,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/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) {
@@ -1820,7 +1820,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -1878,7 +1878,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2056,7 +2056,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -2081,7 +2081,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -2099,7 +2099,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/try_catch/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
+19 -19
View File
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
// src/index.ts
import componentWasm from "./d0c376152f3b536223d350c5cd10609e89062211-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -49,10 +49,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -126,7 +126,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -330,7 +330,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -601,7 +601,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -643,7 +643,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1053,7 +1053,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/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"];
@@ -1064,10 +1064,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -1441,7 +1441,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -1463,7 +1463,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/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 = "(?:|/.*)";
@@ -1575,7 +1575,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -1634,7 +1634,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/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) {
@@ -1820,7 +1820,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -1878,7 +1878,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2056,7 +2056,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -2081,7 +2081,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -2099,7 +2099,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/validate_json/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
+19 -19
View File
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
// src/index.ts
import componentWasm from "./7a79aab24cf9a299e7a22147080b3c7bdfe3493d-component.wasm";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/compose.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context, next) => {
let index = -1;
@@ -49,10 +49,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/request/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/utils/body.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -126,7 +126,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/utils/url.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -330,7 +330,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/request.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -601,7 +601,7 @@ var HonoRequest = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/utils/html.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -643,7 +643,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/context.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1053,7 +1053,7 @@ var Context = class {
}, "notFound");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/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"];
@@ -1064,10 +1064,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/hono-base.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -1441,7 +1441,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -1463,7 +1463,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/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 = "(?:|/.*)";
@@ -1575,7 +1575,7 @@ var Node = class _Node {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -1634,7 +1634,7 @@ var Trie = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/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) {
@@ -1820,7 +1820,7 @@ var RegExpRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -1878,7 +1878,7 @@ var SmartRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2056,7 +2056,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -2081,7 +2081,7 @@ var TrieRouter = class {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/hono.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -2099,7 +2099,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/middleware/cors/index.js
// ../../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/.component-builds/wait/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
+192 -7
View File
@@ -9950,6 +9950,11 @@ function parseTriplets(rawTriplets) {
__name(parseTriplets, "parseTriplets");
var INPUT_NAMES = /* @__PURE__ */ new Set(["input", "trigger", "webhook", "start"]);
var OUTPUT_NAMES = /* @__PURE__ */ new Set(["output", "result", "end", "done"]);
function isVirtualIoName(name) {
const lower = name.toLowerCase();
return INPUT_NAMES.has(lower) || OUTPUT_NAMES.has(lower);
}
__name(isVirtualIoName, "isVirtualIoName");
function resolveNodeRole(name, parsed) {
if (INPUT_NAMES.has(name.toLowerCase())) return "Input";
if (OUTPUT_NAMES.has(name.toLowerCase())) return "Output";
@@ -9969,13 +9974,15 @@ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
init_performance2();
init_component_loader();
init_recipes();
async function searchNodes(parsed, config2, env2) {
const nodeResults = {};
const missingNodes = [];
const sub = env2?.WORKER_SUBDOMAIN;
const registryBase = env2?.REGISTRY_BASE_URL ?? (sub ? wasmWorkerUrl("registry", sub) : void 0);
for (const nodeName of parsed.nodeNames) {
const role = resolveNodeRole(nodeName, parsed);
if (role === "Input" || role === "Output") {
if ((role === "Input" || role === "Output") && isVirtualIoName(nodeName)) {
nodeResults[nodeName] = { status: "found", componentId: nodeName.toLowerCase(), type: role };
continue;
}
@@ -9985,11 +9992,11 @@ async function searchNodes(parsed, config2, env2) {
nodeResults[nodeName] = { status: "found", componentId, type: role };
continue;
}
if (!sub) {
if (!registryBase) {
nodeResults[nodeName] = { status: "unknown", componentId, type: role };
continue;
}
const q = await fetchComponent(sub, componentId);
const q = await fetchComponent(registryBase, componentId);
if (!q.ok) {
nodeResults[nodeName] = { status: "unknown", componentId, type: role };
continue;
@@ -9999,22 +10006,140 @@ async function searchNodes(parsed, config2, env2) {
status: "found",
componentId,
type: role,
source: "component",
input_schema: q.entry.input_schema,
success_rate: q.entry.success_rate,
stability: q.entry.stability
};
continue;
}
nodeResults[nodeName] = { status: "missing", componentId, type: role };
const recipe = env2?.RECIPES ? await resolveRecipe(componentId, env2.RECIPES) : null;
if (recipe) {
nodeResults[nodeName] = {
status: "found",
componentId: recipe.canonical_id,
type: role,
source: "recipe",
description: recipe.description,
endpoint: recipe.endpoint
};
continue;
}
const [similarComponents, similarRecipes] = await Promise.all([
searchSimilarComponents(registryBase, nodeName),
env2?.RECIPES ? searchSimilarRecipes(env2.RECIPES, nodeName) : Promise.resolve([])
]);
nodeResults[nodeName] = {
status: "not_found",
componentId,
type: role,
suggestion: buildSuggestion(componentId),
...similarComponents.length > 0 ? { similar_components: similarComponents } : {},
...similarRecipes.length > 0 ? { similar_recipes: similarRecipes } : {}
};
missingNodes.push(nodeName);
}
return { nodeResults, missingNodes };
}
__name(searchNodes, "searchNodes");
async function fetchComponent(subdomain, id) {
var SERVICE_HINTS = [
"google",
"gmail",
"sheets",
"slides",
"gdocs",
"drive",
"calendar",
"youtube",
"slack",
"telegram",
"discord",
"line",
"whatsapp",
"twilio",
"notion",
"airtable",
"trello",
"jira",
"asana",
"linear",
"github",
"gitea",
"gitlab",
"bitbucket",
"stripe",
"paypal",
"shopify",
"hubspot",
"salesforce",
"openai",
"anthropic",
"claude",
"gemini",
"groq",
"twitter",
"facebook",
"instagram",
"linkedin",
"dropbox",
"zoom",
"sendgrid",
"mailgun",
"kbdb"
];
var COMPUTE_HINTS = [
"encrypt",
"decrypt",
"cipher",
"aes",
"rsa",
"sha",
"md5",
"hmac",
"hash",
"sign",
"verify",
"encode",
"decode",
"base64",
"hex",
"compress",
"decompress",
"zip",
"gzip",
"uuid",
"random",
"regex",
"math",
"calc",
"sort",
"dedup",
"diff",
"template",
"render",
"convert",
"transform",
"parse",
"format",
"csv",
"xml"
];
function buildSuggestion(componentId) {
const lower = componentId.toLowerCase();
const serviceHit = SERVICE_HINTS.find((w) => lower.includes(w));
const computeHit = COMPUTE_HINTS.find((w) => lower.includes(w));
if (serviceHit) {
return `\u5169\u5EAB\u90FD\u67E5\u904E\uFF0C\u96F6\u4EF6 registry \u8207 recipe \u5EAB\u7686\u7121\u300C${componentId}\u300D\u3002\u540D\u5B57\u542B\u670D\u52D9\u8A5E\u300C${serviceHit}\u300D\uFF1D\u5916\u90E8 API \u6A23\u8C8C \u2192 \u6C92\u6709\u6B64 recipe\uFF0C\u53EF\u81EA\u5DF1\u5BEB\uFF1A\u5BEB\u6CD5\u770B skill\u300Cwrite_recipe\u300D\uFF08arcrun_get_skill('write_recipe')\uFF09\uFF0C\u5BEB\u597D\u7528 acr recipe push \u6216 POST /recipes \u88DD\u4E0A\u5373\u53EF\u7528\uFF0C\u4E0D\u7528\u6539\u5E73\u53F0\u3002`;
}
if (computeHit) {
return `\u5169\u5EAB\u90FD\u67E5\u904E\uFF0C\u96F6\u4EF6 registry \u8207 recipe \u5EAB\u7686\u7121\u300C${componentId}\u300D\u3002\u540D\u5B57\u542B\u8A08\u7B97\u8A5E\u300C${computeHit}\u300D\uFF1D\u8A08\u7B97\u539F\u8A9E\u6A23\u8C8C \u2192 \u6C92\u6709\u6B64\u96F6\u4EF6\uFF0C\u53EF\u6295\u7A3F PR \u65B0\u589E WASM component\uFF1A\u505A\u6CD5\u770B skill\u300Cadd_new_wasm_component\u300D\uFF08arcrun_get_skill('add_new_wasm_component')\uFF09\u3002`;
}
return `\u5169\u5EAB\u90FD\u67E5\u904E\uFF0C\u96F6\u4EF6 registry \u8207 recipe \u5EAB\u7686\u7121\u300C${componentId}\u300D\uFF0C\u4E14\u540D\u5B57\u5224\u4E0D\u51FA\u578B\u3002\u7F3A\u5916\u90E8 API \u2192 \u81EA\u5DF1\u5BEB recipe\uFF08skill\u300Cwrite_recipe\u300D\uFF09\uFF1B\u7F3A\u8A08\u7B97\u80FD\u529B \u2192 \u6295\u7A3F\u96F6\u4EF6 PR\uFF08skill\u300Cadd_new_wasm_component\u300D\uFF0Ccomponent \u9032 WASM \u6C99\u7BB1\uFF09\u3002`;
}
__name(buildSuggestion, "buildSuggestion");
async function fetchComponent(registryBase, id) {
try {
const base = wasmWorkerUrl("registry", subdomain);
const res = await fetch(`${base}/components/${encodeURIComponent(id)}`, {
const res = await fetch(`${registryBase}/components/${encodeURIComponent(id)}`, {
signal: AbortSignal.timeout(5e3)
});
if (res.status === 404) return { ok: true };
@@ -10035,6 +10160,66 @@ async function fetchComponent(subdomain, id) {
}
}
__name(fetchComponent, "fetchComponent");
function extractTokens(name) {
const tokens = [];
const ascii = name.toLowerCase().match(/[a-z0-9]{3,}/g) ?? [];
tokens.push(...ascii);
const cjkRuns = name.match(/[一-鿿]+/g) ?? [];
for (const run2 of cjkRuns) {
for (let i = 0; i + 2 <= run2.length; i++) tokens.push(run2.slice(i, i + 2));
}
return [...new Set(tokens)].slice(0, 8);
}
__name(extractTokens, "extractTokens");
async function searchRegistryIds(registryBase, q) {
try {
const res = await fetch(`${registryBase}/components/search?q=${encodeURIComponent(q)}`, {
signal: AbortSignal.timeout(5e3)
});
if (!res.ok) return [];
const body = await res.json();
return (body.data?.results ?? []).map((r) => r.canonical_id).filter((s) => !!s);
} catch {
return [];
}
}
__name(searchRegistryIds, "searchRegistryIds");
async function searchSimilarComponents(registryBase, nodeName) {
const direct = await searchRegistryIds(registryBase, nodeName);
if (direct.length > 0) return direct.slice(0, 3);
const tokens = extractTokens(nodeName);
if (tokens.length === 0) return [];
const hits = await Promise.all(tokens.map((t) => searchRegistryIds(registryBase, t)));
const count3 = /* @__PURE__ */ new Map();
for (const ids of hits) {
for (const id of ids) count3.set(id, (count3.get(id) ?? 0) + 1);
}
return [...count3.entries()].sort((a, b) => b[1] - a[1]).slice(0, 3).map(([id]) => id);
}
__name(searchSimilarComponents, "searchSimilarComponents");
async function searchSimilarRecipes(kv, nodeName) {
try {
const list = await kv.list({ prefix: "recipe:" });
const all = (await Promise.all(
list.keys.map((k) => kv.get(k.name, "json"))
)).filter(Boolean);
const tokens = [nodeName.toLowerCase(), ...extractTokens(nodeName)];
const seen = /* @__PURE__ */ new Set();
const matched = [];
for (const r of all) {
if (seen.has(r.canonical_id)) continue;
const hay = `${r.canonical_id} ${r.display_name ?? ""} ${r.description ?? ""}`.toLowerCase();
if (tokens.some((t) => hay.includes(t))) {
seen.add(r.canonical_id);
matched.push(r.canonical_id);
}
}
return matched.slice(0, 3);
} catch {
return [];
}
}
__name(searchSimilarRecipes, "searchSimilarRecipes");
// src/actions/graph-builder.ts
init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
+60 -142
View File
@@ -1,7 +1,7 @@
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
// @__NO_SIDE_EFFECTS__
function createNotImplementedError(name) {
return new Error(`[unenv] ${name} is not implemented yet!`);
@@ -26,7 +26,7 @@ function notImplementedClass(name) {
}
__name(notImplementedClass, "notImplementedClass");
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
var _timeOrigin = globalThis.performance?.timeOrigin ?? Date.now();
var _performanceNow = globalThis.performance?.now ? globalThis.performance.now.bind(globalThis.performance) : () => Date.now() - _timeOrigin;
var nodeTiming = {
@@ -264,7 +264,7 @@ var PerformanceObserver = class {
};
var performance = globalThis.performance && "addEventListener" in globalThis.performance ? globalThis.performance : new Performance();
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260603.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260603.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
if (!("__unenv__" in performance)) {
const proto = Performance.prototype;
for (const key of Object.getOwnPropertyNames(proto)) {
@@ -285,14 +285,14 @@ globalThis.PerformanceObserver = PerformanceObserver;
globalThis.PerformanceObserverEntryList = PerformanceObserverEntryList;
globalThis.PerformanceResourceTiming = PerformanceResourceTiming;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
import { Writable } from "node:stream";
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
var noop_default = Object.assign(() => {
}, { __unenv__: true });
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
var _console = globalThis.console;
var _ignoreErrors = true;
var _stderr = new Writable();
@@ -324,7 +324,7 @@ var _times = /* @__PURE__ */ new Map();
var _stdoutErrorHandler = noop_default;
var _stderrErrorHandler = noop_default;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260603.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260603.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
var workerdConsole = globalThis["console"];
var {
assert,
@@ -365,10 +365,10 @@ Object.assign(workerdConsole, {
});
var console_default = workerdConsole;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/wrangler@4.98.0_@cloudflare+workers-types@4.20260607.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/wrangler@4.98.0_@cloudflare+workers-types@4.20260607.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
globalThis.console = console_default;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtime2(startTime) {
const now = Date.now();
const seconds = Math.trunc(now / 1e3);
@@ -387,10 +387,10 @@ var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtim
return BigInt(Date.now() * 1e6);
}, "bigint") });
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
import { EventEmitter } from "node:events";
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
var ReadStream = class {
static {
__name(this, "ReadStream");
@@ -407,7 +407,7 @@ var ReadStream = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
var WriteStream = class {
static {
__name(this, "WriteStream");
@@ -457,10 +457,10 @@ var WriteStream = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
var NODE_VERSION = "22.14.0";
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
var Process = class _Process extends EventEmitter {
static {
__name(this, "Process");
@@ -695,7 +695,7 @@ var Process = class _Process extends EventEmitter {
_linkedBinding = void 0;
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260603.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260603.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
var globalProcess = globalThis["process"];
var getBuiltinModule = globalProcess.getBuiltinModule;
var workerdProcess = getBuiltinModule("node:process");
@@ -925,10 +925,10 @@ var _process = {
};
var process_default = _process;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/wrangler@4.98.0_@cloudflare+workers-types@4.20260607.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/wrangler@4.98.0_@cloudflare+workers-types@4.20260607.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
globalThis.process = process_default;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/compose.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context2, next) => {
let index = -1;
@@ -973,10 +973,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/request/constants.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/body.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -1050,7 +1050,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/url.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -1254,7 +1254,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/request.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -1540,7 +1540,7 @@ var HonoRequest = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/html.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -1582,7 +1582,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/context.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1992,7 +1992,7 @@ var Context = class {
}, "notFound");
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/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"];
@@ -2003,10 +2003,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/constants.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/hono-base.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -2385,7 +2385,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/reg-exp-router/matcher.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/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();
@@ -2407,7 +2407,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/reg-exp-router/node.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/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 = "(?:|/.*)";
@@ -2519,7 +2519,7 @@ var Node = class _Node {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/reg-exp-router/trie.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -2578,7 +2578,7 @@ var Trie = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/reg-exp-router/router.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/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) {
@@ -2764,7 +2764,7 @@ var RegExpRouter = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/smart-router/router.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -2822,7 +2822,7 @@ var SmartRouter = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/trie-router/node.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/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 = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -3000,7 +3000,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/trie-router/router.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -3025,7 +3025,7 @@ var TrieRouter = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/hono.js
// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/kbdb/node_modules/.pnpm/hono@4.12.23/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -3137,25 +3137,23 @@ async function deleteEntry(db, id) {
await db.prepare("DELETE FROM entries WHERE id = ?").bind(id).run();
}
__name(deleteEntry, "deleteEntry");
async function deprecateEntriesByLibrary(db, ownerId, library) {
const result = await db.prepare(
`UPDATE entries
SET metadata_json = json_set(COALESCE(metadata_json, '{}'), '$.status', 'deprecated'),
updated_at = unixepoch()
WHERE owner_id = ?
AND COALESCE(json_extract(metadata_json, '$.library'), 'general') = ?
AND (json_extract(metadata_json, '$.status') IS NULL
OR json_extract(metadata_json, '$.status') != 'deprecated')`
).bind(ownerId, library).run();
return result.meta?.changes ?? 0;
}
__name(deprecateEntriesByLibrary, "deprecateEntriesByLibrary");
function libraryPredicate(libraries) {
const placeholders = libraries.map(() => "?").join(",");
return `COALESCE(json_extract(metadata_json, '$.library'), 'general') IN (${placeholders})`;
}
__name(libraryPredicate, "libraryPredicate");
async function searchEntries(db, q, owner_id, entry_type, limit = 50, library, source) {
var NOT_DEPRECATED_PREDICATE = "(json_extract(metadata_json, '$.status') IS NULL OR json_extract(metadata_json, '$.status') != 'deprecated')";
function isDeprecatedEntry(entry) {
if (!entry.metadata_json) return false;
try {
const meta = JSON.parse(entry.metadata_json);
return !!meta && meta.status === "deprecated";
} catch {
return false;
}
}
__name(isDeprecatedEntry, "isDeprecatedEntry");
async function searchEntries(db, q, owner_id, entry_type, limit = 50, library, source, includeDeprecated = false) {
const conds = ["content LIKE ?"];
const params = [`%${q}%`];
if (owner_id) {
@@ -3174,6 +3172,9 @@ async function searchEntries(db, q, owner_id, entry_type, limit = 50, library, s
conds.push(libraryPredicate(library));
params.push(...library);
}
if (!includeDeprecated) {
conds.push(NOT_DEPRECATED_PREDICATE);
}
const res = await db.prepare(`SELECT * FROM entries WHERE ${conds.join(" AND ")} ORDER BY updated_at DESC LIMIT ?`).bind(...params, Math.min(limit, 200)).all();
return res.results ?? [];
}
@@ -3354,35 +3355,6 @@ entryRoutes.post("/", async (c) => {
}));
return c.json({ success: true, entry });
});
entryRoutes.get("/libraries", async (c) => {
const owner = c.req.query("owner_id") || "";
const rows = await c.env.DB.prepare(
`SELECT DISTINCT COALESCE(NULLIF(json_extract(metadata_json, '$.library'), ''), 'general') AS library
FROM entries
WHERE (?1 = '' OR owner_id = ?1)
AND COALESCE(json_extract(metadata_json, '$.status'), '') != 'deprecated'
ORDER BY library`
).bind(owner).all();
const libraries = (rows.results ?? []).map((r) => r.library).filter(Boolean);
return c.json({ success: true, libraries, count: libraries.length });
});
entryRoutes.get("/library-stats", async (c) => {
const owner = c.req.query("owner_id") || "";
const rows = await c.env.DB.prepare(
`SELECT
COALESCE(NULLIF(json_extract(metadata_json, '$.library'), ''), 'general') AS library,
COUNT(DISTINCT page_name) AS card_count
FROM entries
WHERE (?1 = '' OR owner_id = ?1)
AND entry_type = 'block'
AND page_name IS NOT NULL
AND COALESCE(json_extract(metadata_json, '$.status'), '') != 'deprecated'
GROUP BY library
ORDER BY library`
).bind(owner).all();
const stats = (rows.results ?? []).map((r) => ({ library: r.library, card_count: r.card_count }));
return c.json({ success: true, stats });
});
entryRoutes.get("/", async (c) => {
const { entries, total } = await listEntries(c.env.DB, {
entry_type: c.req.query("entry_type") || void 0,
@@ -3405,21 +3377,24 @@ entryRoutes.get("/search", async (c) => {
const entry_type = c.req.query("entry_type") || void 0;
const library = parseLibraryParam(c.req.query("library"));
const mode = c.req.query("mode") === "semantic" ? "semantic" : "keyword";
const include_deprecated = c.req.query("include_deprecated") === "true";
const topKNum = Number(c.req.query("top_k"));
const top_k = Number.isFinite(topKNum) && topKNum > 0 ? Math.floor(topKNum) : void 0;
const minScoreNum = Number(c.req.query("min_score"));
const min_score = Number.isFinite(minScoreNum) && minScoreNum > 0 ? minScoreNum : void 0;
if (mode === "semantic") {
const requestedTopK = top_k ?? 20;
const fetchTopK = include_deprecated ? requestedTopK : Math.min(requestedTopK * 3, 100);
const hits = await semanticSearch(c.env, q, {
owner_id,
source,
entry_type,
library,
topK: top_k,
topK: fetchTopK,
min_score
});
if (hits === null) {
const entries3 = await searchEntries(c.env.DB, q, owner_id, entry_type, void 0, library, source);
const entries3 = await searchEntries(c.env.DB, q, owner_id, entry_type, void 0, library, source, include_deprecated);
return c.json({
success: true,
entries: entries3,
@@ -3429,15 +3404,19 @@ entryRoutes.get("/search", async (c) => {
capability_hint: "\u8A9E\u7FA9\u67E5\u8A62\u9700\u5148\u958B vectorize\uFF08embed \u6A21\u7D44\uFF09\u3002\u53EB CC\u300C\u5E6B\u6211\u958B\u8A9E\u7FA9\u67E5\u8A62\u300D\u5373\u53EF\uFF08\u8A2D kbdb_embed:true + redeploy\uFF09\u3002\u672C\u6B21\u5DF2\u964D\u7D1A\u95DC\u9375\u5B57\u641C\u5C0B\u3002"
});
}
const entries2 = (await Promise.all(
let entries2 = (await Promise.all(
hits.map(async (h) => {
const e = await getEntry(c.env.DB, h.id);
return e ? { ...e, score: h.score } : null;
})
)).filter((e) => e !== null);
if (!include_deprecated) {
entries2 = entries2.filter((e) => !isDeprecatedEntry(e));
}
entries2 = entries2.slice(0, requestedTopK);
return c.json({ success: true, entries: entries2, count: entries2.length, mode: "semantic" });
}
const entries = await searchEntries(c.env.DB, q, owner_id, entry_type, void 0, library, source);
const entries = await searchEntries(c.env.DB, q, owner_id, entry_type, void 0, library, source, include_deprecated);
return c.json({ success: true, entries, count: entries.length, mode: "keyword" });
});
entryRoutes.get("/:id", async (c) => {
@@ -3445,14 +3424,6 @@ entryRoutes.get("/:id", async (c) => {
if (!entry) return c.json({ success: false, error: "not found" }, 404);
return c.json({ success: true, entry });
});
entryRoutes.patch("/deprecate-by-library", async (c) => {
const body = await c.req.json().catch(() => null);
const ownerId = String(body?.owner_id ?? "").trim();
const library = String(body?.library ?? "").trim();
if (!ownerId || !library) return c.json({ success: false, error: "owner_id \u8207 library \u5FC5\u586B" }, 400);
const count3 = await deprecateEntriesByLibrary(c.env.DB, ownerId, library);
return c.json({ success: true, deprecated_count: count3 });
});
entryRoutes.patch("/:id", async (c) => {
const body = await c.req.json().catch(() => ({}));
const entry = await updateEntry(c.env.DB, c.req.param("id"), body);
@@ -3604,17 +3575,6 @@ async function searchByTemplate(db, template, owner_id, limit = 100) {
return ids.map((id) => byId.get(id)).filter((r) => !!r);
}
__name(searchByTemplate, "searchByTemplate");
async function deleteRecord(db, recordId) {
const evRes = await db.prepare("SELECT entry_id FROM entry_values WHERE record_id = ?").bind(recordId).all();
const rows = evRes.results ?? [];
if (rows.length === 0) return false;
await db.prepare("DELETE FROM entry_values WHERE record_id = ?").bind(recordId).run();
for (const { entry_id } of rows) {
await db.prepare("DELETE FROM entries WHERE id = ?").bind(entry_id).run();
}
return true;
}
__name(deleteRecord, "deleteRecord");
// src/routes/templates.ts
var templateRoutes = new Hono2();
@@ -3656,29 +3616,6 @@ recordRoutes.post("/", async (c) => {
return c.json({ success: false, error: e instanceof Error ? e.message : String(e) }, 400);
}
});
recordRoutes.get("/triplet-stats", async (c) => {
const owner = c.req.query("owner_id") || "";
const rows = await c.env.DB.prepare(
`SELECT
COALESCE(NULLIF(lib_e.content, ''), 'general') AS library,
COUNT(*) AS triplet_count
FROM (
SELECT DISTINCT ev.record_id
FROM entry_values ev
JOIN templates t ON ev.template_id = t.id
JOIN entries e ON ev.entry_id = e.id
WHERE t.name = 'triplet'
AND (?1 = '' OR e.owner_id = ?1)
) AS tr
LEFT JOIN entry_values lev
ON lev.record_id = tr.record_id AND lev.slot_name = 'library'
LEFT JOIN entries lib_e ON lib_e.id = lev.entry_id
GROUP BY COALESCE(NULLIF(lib_e.content, ''), 'general')
ORDER BY library`
).bind(owner).all();
const stats = (rows.results ?? []).map((r) => ({ library: r.library, triplet_count: r.triplet_count }));
return c.json({ success: true, stats });
});
recordRoutes.get("/by-template/:template", async (c) => {
const records = await searchByTemplate(c.env.DB, c.req.param("template"), c.req.query("owner_id") || void 0);
return c.json({ success: true, records, count: records.length });
@@ -3701,11 +3638,6 @@ recordRoutes.patch("/:recordId", async (c) => {
return c.json({ success: false, error: e instanceof Error ? e.message : String(e) }, 400);
}
});
recordRoutes.delete("/:recordId", async (c) => {
const found = await deleteRecord(c.env.DB, c.req.param("recordId"));
if (!found) return c.json({ success: false, error: "not found" }, 404);
return c.json({ success: true });
});
// src/actions/recipe-stat.ts
function statId(canonicalId) {
@@ -4069,20 +4001,6 @@ mapRoutes.get("/:library", async (c) => {
// src/index.ts
var app = new Hono2();
app.use("*", async (c, next) => {
const path = new URL(c.req.url).pathname;
if (path === "/" || path === "/health") return next();
const token = c.env.KBDB_INTERNAL_TOKEN;
if (!token) {
console.warn("[kbdb] KBDB_INTERNAL_TOKEN \u672A\u8A2D\u5B9A\u2014\u2014\u5168\u90E8\u8ACB\u6C42\u62D2\u7D55\uFF0C\u8ACB\u91CD\u8DD1\u5B89\u88DD\u5668\u4EE5\u6CE8\u5165\u91D1\u9470");
return c.json({ error: "Unauthorized", detail: "kbdb \u5C1A\u672A\u8A2D\u5B9A\u5167\u90E8\u91D1\u9470\uFF0C\u8ACB\u91CD\u8DD1\u5B89\u88DD\u5668" }, 401);
}
const auth = c.req.header("Authorization");
if (!auth || auth !== `Bearer ${token}`) {
return c.json({ error: "Unauthorized" }, 401);
}
return next();
});
app.get("/", (c) => c.json({ service: "arcrun-kbdb", tier: "base", status: "ok" }));
app.get("/health", (c) => c.json({ ok: true }));
app.route("/entries", entryRoutes);
+413 -413
View File
File diff suppressed because it is too large Load Diff
+43 -37
View File
@@ -1,7 +1,7 @@
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
// @__NO_SIDE_EFFECTS__
function createNotImplementedError(name) {
return new Error(`[unenv] ${name} is not implemented yet!`);
@@ -26,7 +26,7 @@ function notImplementedClass(name) {
}
__name(notImplementedClass, "notImplementedClass");
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs
var _timeOrigin = globalThis.performance?.timeOrigin ?? Date.now();
var _performanceNow = globalThis.performance?.now ? globalThis.performance.now.bind(globalThis.performance) : () => Date.now() - _timeOrigin;
var nodeTiming = {
@@ -264,7 +264,7 @@ var PerformanceObserver = class {
};
var performance = globalThis.performance && "addEventListener" in globalThis.performance ? globalThis.performance : new Performance();
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
// node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs
if (!("__unenv__" in performance)) {
const proto = Performance.prototype;
for (const key of Object.getOwnPropertyNames(proto)) {
@@ -285,14 +285,14 @@ globalThis.PerformanceObserver = PerformanceObserver;
globalThis.PerformanceObserverEntryList = PerformanceObserverEntryList;
globalThis.PerformanceResourceTiming = PerformanceResourceTiming;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
import { Writable } from "node:stream";
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
var noop_default = Object.assign(() => {
}, { __unenv__: true });
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs
var _console = globalThis.console;
var _ignoreErrors = true;
var _stderr = new Writable();
@@ -324,7 +324,7 @@ var _times = /* @__PURE__ */ new Map();
var _stdoutErrorHandler = noop_default;
var _stderrErrorHandler = noop_default;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
// node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs
var workerdConsole = globalThis["console"];
var {
assert,
@@ -365,10 +365,10 @@ Object.assign(workerdConsole, {
});
var console_default = workerdConsole;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260414.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
// node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260414.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console
globalThis.console = console_default;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs
var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtime2(startTime) {
const now = Date.now();
const seconds = Math.trunc(now / 1e3);
@@ -387,10 +387,10 @@ var hrtime = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function hrtim
return BigInt(Date.now() * 1e6);
}, "bigint") });
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
import { EventEmitter } from "node:events";
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs
var ReadStream = class {
static {
__name(this, "ReadStream");
@@ -407,7 +407,7 @@ var ReadStream = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs
var WriteStream = class {
static {
__name(this, "WriteStream");
@@ -457,10 +457,10 @@ var WriteStream = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs
var NODE_VERSION = "22.14.0";
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs
var Process = class _Process extends EventEmitter {
static {
__name(this, "Process");
@@ -695,7 +695,7 @@ var Process = class _Process extends EventEmitter {
_linkedBinding = void 0;
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
// node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260415.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs
var globalProcess = globalThis["process"];
var getBuiltinModule = globalProcess.getBuiltinModule;
var workerdProcess = getBuiltinModule("node:process");
@@ -925,10 +925,10 @@ var _process = {
};
var process_default = _process;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260414.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
// node_modules/.pnpm/wrangler@4.83.0_@cloudflare+workers-types@4.20260414.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process
globalThis.process = process_default;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/compose.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/compose.js
var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
return (context2, next) => {
let index = -1;
@@ -973,10 +973,10 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => {
};
}, "compose");
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/request/constants.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/request/constants.js
var GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/utils/body.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/utils/body.js
var parseBody = /* @__PURE__ */ __name(async (request, options = /* @__PURE__ */ Object.create(null)) => {
const { all = false, dot = false } = options;
const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
@@ -1050,7 +1050,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => {
});
}, "handleParsingNestedValues");
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/utils/url.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/utils/url.js
var splitPath = /* @__PURE__ */ __name((path) => {
const paths = path.split("/");
if (paths[0] === "") {
@@ -1254,7 +1254,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => {
}, "getQueryParams");
var decodeURIComponent_ = decodeURIComponent;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/request.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/request.js
var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent");
var HonoRequest = class {
static {
@@ -1525,7 +1525,7 @@ var HonoRequest = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/utils/html.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/utils/html.js
var HtmlEscapedCallbackPhase = {
Stringify: 1,
BeforeStream: 2,
@@ -1567,7 +1567,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback
}
}, "resolveCallback");
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/context.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/context.js
var TEXT_PLAIN = "text/plain; charset=UTF-8";
var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => {
return {
@@ -1977,7 +1977,7 @@ var Context = class {
}, "notFound");
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/router.js
// node_modules/.pnpm/hono@4.12.12/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"];
@@ -1988,10 +1988,10 @@ var UnsupportedPathError = class extends Error {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/utils/constants.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/utils/constants.js
var COMPOSED_HANDLER = "__COMPOSED_HANDLER";
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/hono-base.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/hono-base.js
var notFoundHandler = /* @__PURE__ */ __name((c) => {
return c.text("404 Not Found", 404);
}, "notFoundHandler");
@@ -2365,7 +2365,7 @@ var Hono = class _Hono {
}, "fire");
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/router/reg-exp-router/matcher.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/router/reg-exp-router/matcher.js
var emptyParam = [];
function match(method, path) {
const matchers = this.buildAllMatchers();
@@ -2387,7 +2387,7 @@ function match(method, path) {
}
__name(match, "match");
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/router/reg-exp-router/node.js
// node_modules/.pnpm/hono@4.12.12/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 = "(?:|/.*)";
@@ -2499,7 +2499,7 @@ var Node = class _Node {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/router/reg-exp-router/trie.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/router/reg-exp-router/trie.js
var Trie = class {
static {
__name(this, "Trie");
@@ -2558,7 +2558,7 @@ var Trie = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/router/reg-exp-router/router.js
// node_modules/.pnpm/hono@4.12.12/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) {
@@ -2744,7 +2744,7 @@ var RegExpRouter = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/router/smart-router/router.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/router/smart-router/router.js
var SmartRouter = class {
static {
__name(this, "SmartRouter");
@@ -2802,7 +2802,7 @@ var SmartRouter = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/router/trie-router/node.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/router/trie-router/node.js
var emptyParams = /* @__PURE__ */ Object.create(null);
var hasChildren = /* @__PURE__ */ __name((children) => {
for (const _ in children) {
@@ -2980,7 +2980,7 @@ var Node2 = class _Node2 {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/router/trie-router/router.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/router/trie-router/router.js
var TrieRouter = class {
static {
__name(this, "TrieRouter");
@@ -3005,7 +3005,7 @@ var TrieRouter = class {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/hono.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/hono.js
var Hono2 = class extends Hono {
static {
__name(this, "Hono");
@@ -3023,7 +3023,7 @@ var Hono2 = class extends Hono {
}
};
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/middleware/cors/index.js
// node_modules/.pnpm/hono@4.12.12/node_modules/hono/dist/middleware/cors/index.js
var cors = /* @__PURE__ */ __name((options) => {
const defaults = {
origin: "*",
@@ -3356,7 +3356,7 @@ app.get("/", (c) => {
});
var guide_default = app;
// ../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/registry/node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
var util;
(function(util2) {
util2.assertEqual = (val) => val;
@@ -8110,10 +8110,16 @@ function toComponentRecord(v) {
avg_duration_ms: parseFloat(String(v.avg_duration_ms ?? "0")),
call_count: parseInt(String(v.call_count ?? "0"), 10),
wasm_r2_key: v.wasm_r2_key ? String(v.wasm_r2_key) : void 0,
score: computeScore(v)
score: computeScore(v),
input_schema: isPlainObject(v.input_schema) ? v.input_schema : void 0,
output_schema: isPlainObject(v.output_schema) ? v.output_schema : void 0
};
}
__name(toComponentRecord, "toComponentRecord");
function isPlainObject(x) {
return typeof x === "object" && x !== null && !Array.isArray(x);
}
__name(isPlainObject, "isPlainObject");
// src/routes/query.ts
var app4 = new Hono2();
+1 -1
View File
File diff suppressed because one or more lines are too long