diff --git a/README.md b/README.md deleted file mode 100644 index 77369e2..0000000 --- a/README.md +++ /dev/null @@ -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//` — wrapper `index.js` + `-component.wasm` -- `tier2//` — bundled `index.js`(services stripped=lazy-bound at install) - -Built from `Arcrun@ad367e4` by `installer/scripts/build-bundles.mjs`(arcrun-rag repo). diff --git a/manifest.json b/manifest.json index bac1076..b65242e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,743 +1,662 @@ { - "schema": "arcrun-rag-bundles/v1", - "built": "2026-07-29", - "source": "Arcrun@0a426c4", - "core": [ + "schema": "arcrun-rag-bundles/v1", + "built": "2026-07-31", + "source": "Arcrun@7e87a33", + "core": [ + { + "name": "arcrun-array-ops", + "tier": 1, + "main_file": "tier1/array_ops/index.js", + "main_module": "index.js", + "sha256": "d2b0d6d7e8122b5b9b59c98b077fac57c119820b8c60d37c4c793c314a11ad49", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ { - "name": "arcrun-array-ops", - "tier": 1, - "main_file": "tier1/array_ops/index.js", - "main_module": "index.js", - "sha256": "d296975f7b70cb6c07b858e39c6c736f8c4ec6b4fd9de4171348601321170a59", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "2c05e315c753986af9193c194998f3109a0a17df-component.wasm", - "file": "tier1/array_ops/2c05e315c753986af9193c194998f3109a0a17df-component.wasm", - "type": "application/wasm", - "sha256": "74dc9d99f8b9ef43628b55c85c05beb1af8f6f90d78d07cd132ffe4b865147ae" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "array_ops" - } - } - }, - { - "name": "arcrun-auth-oauth2", - "tier": 1, - "main_file": "tier1/auth_oauth2/index.js", - "main_module": "index.js", - "sha256": "be411bebea2773cbb3f62a1d31c8d06c5b5c73d431c1593a61298ddc8c23f636", - "compat_date": "2025-02-19", - "compat_flags": [ - "nodejs_compat" - ], - "modules": [ - { - "name": "1e5dae631ff4edb232828412daf37439b7234e8a-component.wasm", - "file": "tier1/auth_oauth2/1e5dae631ff4edb232828412daf37439b7234e8a-component.wasm", - "type": "application/wasm", - "sha256": "3622c20644e6c8c39487109e7353e2590bad90b1207139e34dfb0cf1c2696664" - } - ], - "requires": { - "kv": [ - "CREDENTIALS_KV", - "RECIPES" - ], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "auth_oauth2" - } - } - }, - { - "name": "arcrun-auth-service-account", - "tier": 1, - "main_file": "tier1/auth_service_account/index.js", - "main_module": "index.js", - "sha256": "5c488af751ea91bcc9415964a415cc363dc08b2c1d35d7f194fda1103b34acfa", - "compat_date": "2025-02-19", - "compat_flags": [ - "nodejs_compat" - ], - "modules": [ - { - "name": "65dfefeaf42ca5ed95b583203575f4563fecd4a9-component.wasm", - "file": "tier1/auth_service_account/65dfefeaf42ca5ed95b583203575f4563fecd4a9-component.wasm", - "type": "application/wasm", - "sha256": "7d0808b4b9a2df4fbb54977eafe34a5bdb99e0cc941d97462c62e26f3651951e" - } - ], - "requires": { - "kv": [ - "CREDENTIALS_KV", - "RECIPES" - ], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "auth_service_account" - } - } - }, - { - "name": "arcrun-auth-static-key", - "tier": 1, - "main_file": "tier1/auth_static_key/index.js", - "main_module": "index.js", - "sha256": "d8a64ded2ed67820f864b54343eaf53114e5bafd00e96e16c507257df65b8ccb", - "compat_date": "2025-02-19", - "compat_flags": [ - "nodejs_compat" - ], - "modules": [ - { - "name": "26a79169f7ae71b46962b7df87289a4d06899272-component.wasm", - "file": "tier1/auth_static_key/26a79169f7ae71b46962b7df87289a4d06899272-component.wasm", - "type": "application/wasm", - "sha256": "cd0f69a80ced0979749e0ec30b1981795a49eaa56bdb2ba102cd4b64f4670369" - } - ], - "requires": { - "kv": [ - "CREDENTIALS_KV", - "RECIPES" - ], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "auth_static_key" - } - } - }, - { - "name": "arcrun-claude-api", - "tier": 1, - "main_file": "tier1/claude_api/index.js", - "main_module": "index.js", - "sha256": "6bdb0bb01a05b170671a9489a8dbde9ce96fb81a4de57f70ea66d09c45fd1291", - "compat_date": "2025-02-19", - "compat_flags": [ - "nodejs_compat" - ], - "modules": [ - { - "name": "440cbdafcbe277a299c3013d0a3dc6fdf9bb0fa2-component.wasm", - "file": "tier1/claude_api/440cbdafcbe277a299c3013d0a3dc6fdf9bb0fa2-component.wasm", - "type": "application/wasm", - "sha256": "fd13da9d0a490429547a304fc41e636d07f054cfbf6045b082ffa33f3c543f56" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "claude_api" - } - } - }, - { - "name": "arcrun-code", - "tier": 1, - "main_file": "tier1/code/index.js", - "main_module": "index.js", - "sha256": "bebe67522902d97b10490767ce7b6a56cc6c7f0fe6ae380bb3ced80f0cb5a858", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "02028007bab4b877246b6f1a77434d1ce18122e5-quickjs.wasm", - "file": "tier1/code/02028007bab4b877246b6f1a77434d1ce18122e5-quickjs.wasm", - "type": "application/wasm", - "sha256": "105c3bed22d457e43e3d1c3c1c6959fda62a8fe06f0fc8a985303c3a2be72232" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "code" - } - } - }, - { - "name": "arcrun-cron", - "tier": 1, - "main_file": "tier1/cron/index.js", - "main_module": "index.js", - "sha256": "c6ee628ee9c431b6745404fa97118c5baefb2c58cf127e1a1057154e5ebda5d8", - "compat_date": "2025-02-19", - "compat_flags": [ - "nodejs_compat" - ], - "modules": [ - { - "name": "cfef89ca6e0f809fe5774d8e3db5e48222abb7f6-component.wasm", - "file": "tier1/cron/cfef89ca6e0f809fe5774d8e3db5e48222abb7f6-component.wasm", - "type": "application/wasm", - "sha256": "afb3a14f8c8f00f4f5573f44153cb1dcf6fc715b2fb47c2afb0aaf95b74d3cde" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "cron" - } - } - }, - { - "name": "arcrun-date-ops", - "tier": 1, - "main_file": "tier1/date_ops/index.js", - "main_module": "index.js", - "sha256": "d2ea937112c5f110758d19490105033d48acfcaa67c5a317f53ad0fe27ba5b62", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "b02bbde53cd62d1e12579e8238de745a1129fdc3-component.wasm", - "file": "tier1/date_ops/b02bbde53cd62d1e12579e8238de745a1129fdc3-component.wasm", - "type": "application/wasm", - "sha256": "4e2c1329ce4014aa86a9a6449d8699e67c6c616f5c07088dc21216d4036ca41e" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "date_ops" - } - } - }, - { - "name": "arcrun-filter", - "tier": 1, - "main_file": "tier1/filter/index.js", - "main_module": "index.js", - "sha256": "f7cc202973a62dabcb9d898a02036d14456dc688cbbdcf6361918b6ed623897d", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "d5253d0bc89bf79b101ea87b8010786decf28eb2-component.wasm", - "file": "tier1/filter/d5253d0bc89bf79b101ea87b8010786decf28eb2-component.wasm", - "type": "application/wasm", - "sha256": "6a0692b386522918b3b5af79cf7877394d1f02c350018dbaef68ef380dad1b9e" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "filter" - } - } - }, - { - "name": "arcrun-foreach-control", - "tier": 1, - "main_file": "tier1/foreach_control/index.js", - "main_module": "index.js", - "sha256": "e58e00ee10b8eaf5492d306b00fbe9d57fc82e764b05fb736400fbefe32d455a", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "f1948f457d59667fe7c6c1867389ceda8e3a01b4-component.wasm", - "file": "tier1/foreach_control/f1948f457d59667fe7c6c1867389ceda8e3a01b4-component.wasm", - "type": "application/wasm", - "sha256": "8ae161ab37cc78ef6fae65364a47f7accb572378b395c4637daa2ffa57f14632" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "foreach_control" - } - } - }, - { - "name": "arcrun-http-request", - "tier": 1, - "main_file": "tier1/http_request/index.js", - "main_module": "index.js", - "sha256": "68ab02ffd5b8da64c816ded432af7bf2d013dc1766ad71a186e2af8cf584219c", - "compat_date": "2025-02-19", - "compat_flags": [ - "nodejs_compat", - "global_fetch_strictly_public" - ], - "modules": [ - { - "name": "dece047f15695e86a2f04ca9d75ec85829146a39-component.wasm", - "file": "tier1/http_request/dece047f15695e86a2f04ca9d75ec85829146a39-component.wasm", - "type": "application/wasm", - "sha256": "cc15cc785703e7bbb8dbff2d38dc84a4ac24e2f44316182730abae0f170ef133" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "http_request" - } - } - }, - { - "name": "arcrun-if-control", - "tier": 1, - "main_file": "tier1/if_control/index.js", - "main_module": "index.js", - "sha256": "ca9ecf8ce28d998af53867352bf8ca466e565d4dc8962500ffc188664e7bf51d", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "8f00b54a9af7ec82c27b8f62b9951af22eaa4612-component.wasm", - "file": "tier1/if_control/8f00b54a9af7ec82c27b8f62b9951af22eaa4612-component.wasm", - "type": "application/wasm", - "sha256": "87c81e9cf5e664f60c06a364508dd365d49953e1b7afba6a5753fce5a4c82636" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "if_control" - } - } - }, - { - "name": "arcrun-kbdb-upsert-block", - "tier": 1, - "main_file": "tier1/kbdb_upsert_block/index.js", - "main_module": "index.js", - "sha256": "eb9657b1d6abb8659db8bafaf10560c3ca9824733fbd5fd55dc63c708c9c8a1e", - "compat_date": "2025-02-19", - "compat_flags": [ - "nodejs_compat" - ], - "modules": [ - { - "name": "af7ad0da60772c753896051f3ebaefd5ddddb878-component.wasm", - "file": "tier1/kbdb_upsert_block/af7ad0da60772c753896051f3ebaefd5ddddb878-component.wasm", - "type": "application/wasm", - "sha256": "a1317fce8acf2e68a83c82ee14841d26141e659239ea9783defd9daa0b67be68" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "kbdb_upsert_block" - } - } - }, - { - "name": "arcrun-km-writer", - "tier": 1, - "main_file": "tier1/km_writer/index.js", - "main_module": "index.js", - "sha256": "94086c7ba7bebead7738d7d90273d529049918ac995478bc356303a329828b50", - "compat_date": "2025-02-19", - "compat_flags": [ - "nodejs_compat" - ], - "modules": [ - { - "name": "63da493254adec64001d1cee855fea62f48ff0ce-component.wasm", - "file": "tier1/km_writer/63da493254adec64001d1cee855fea62f48ff0ce-component.wasm", - "type": "application/wasm", - "sha256": "6d86c1525425ae17e8e5bd2dee190c4f45fc95bb9c582eeb8cf381f490946e64" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "km_writer" - } - } - }, - { - "name": "arcrun-merge", - "tier": 1, - "main_file": "tier1/merge/index.js", - "main_module": "index.js", - "sha256": "d59b4fabb9c0172e2299be2c7a55ddc2c0ecc09185308c66fae51e6c36189271", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "e99ec54d9c509604b6fffd4b9184d3942a413520-component.wasm", - "file": "tier1/merge/e99ec54d9c509604b6fffd4b9184d3942a413520-component.wasm", - "type": "application/wasm", - "sha256": "55a4d143246df172f60b5e15e7b26e55279deda9db436e3d65bccc25c86d7cd9" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "merge" - } - } - }, - { - "name": "arcrun-number-ops", - "tier": 1, - "main_file": "tier1/number_ops/index.js", - "main_module": "index.js", - "sha256": "94e31d1467b7f361cf9cc2b7deeb1c80a4e4883d2522f095db96529290e88b00", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "70f7f87bddfc4341aea7f2f953f00b0e38209bc1-component.wasm", - "file": "tier1/number_ops/70f7f87bddfc4341aea7f2f953f00b0e38209bc1-component.wasm", - "type": "application/wasm", - "sha256": "452d1940f6e2b2b36dc97c145abcb7b5bacdbfa7631c742827c2f6f6db87b4ea" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "number_ops" - } - } - }, - { - "name": "arcrun-set", - "tier": 1, - "main_file": "tier1/set/index.js", - "main_module": "index.js", - "sha256": "d4a5d941b2971d7e85550e42771ccd877f1305cad59dfcc2e505d32f8c8cc536", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "6e202a50e05d7a48b3d3318e149670cd87f213c9-component.wasm", - "file": "tier1/set/6e202a50e05d7a48b3d3318e149670cd87f213c9-component.wasm", - "type": "application/wasm", - "sha256": "f5afcf6e57401d2d83b21fb971ec80ca56d5e8e4bdb74a004f3d118875ed57c4" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "set" - } - } - }, - { - "name": "arcrun-string-ops", - "tier": 1, - "main_file": "tier1/string_ops/index.js", - "main_module": "index.js", - "sha256": "160fa0b98a15aca665ccf850bb2dd1ab3f95ce9f620fd0df3ee1329612671214", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "d2e03502220d42d7f65d990289a947213d6e1972-component.wasm", - "file": "tier1/string_ops/d2e03502220d42d7f65d990289a947213d6e1972-component.wasm", - "type": "application/wasm", - "sha256": "41f3243ee18bb9f4fcbaa417bd773347128dec2971132e240eddec19ba6a9da2" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "string_ops" - } - } - }, - { - "name": "arcrun-switch", - "tier": 1, - "main_file": "tier1/switch/index.js", - "main_module": "index.js", - "sha256": "61e7c93fc06c2f0823ae1b48a8fd4e9fb26f84736d1322c77e11996e44645ecd", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "1920d78cdde1384d775cbc6647957409cf185584-component.wasm", - "file": "tier1/switch/1920d78cdde1384d775cbc6647957409cf185584-component.wasm", - "type": "application/wasm", - "sha256": "6d993dc9b1affe16b600aaa7cae5af977108cc08513bb11d9d9db908285fea8b" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "switch" - } - } - }, - { - "name": "arcrun-try-catch", - "tier": 1, - "main_file": "tier1/try_catch/index.js", - "main_module": "index.js", - "sha256": "6f239b4dd3de3e737f827dd1a9b13b4730f1148556218488463e53448857b6f5", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "6a99d0d167de81d14f89a86557dc913fd84af607-component.wasm", - "file": "tier1/try_catch/6a99d0d167de81d14f89a86557dc913fd84af607-component.wasm", - "type": "application/wasm", - "sha256": "10eaddc5ef0d3dc68e3f009970541ac7f5fce30dcdbecec9a333afd5a29e3486" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "try_catch" - } - } - }, - { - "name": "arcrun-validate-json", - "tier": 1, - "main_file": "tier1/validate_json/index.js", - "main_module": "index.js", - "sha256": "eb1a4620b2e8c52823509a30054d0c5fe8f9d3d4e5da1f9404c699292761cff2", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "d0c376152f3b536223d350c5cd10609e89062211-component.wasm", - "file": "tier1/validate_json/d0c376152f3b536223d350c5cd10609e89062211-component.wasm", - "type": "application/wasm", - "sha256": "8142ffd3cc57efbb9128faaf450b646111b0f2e2575cc29a7b562a7b185912ab" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "validate_json" - } - } - }, - { - "name": "arcrun-wait", - "tier": 1, - "main_file": "tier1/wait/index.js", - "main_module": "index.js", - "sha256": "df0461ebbe4473a3e47e3093b7b2c03712c65003480248b26f9ac13bc5d104f6", - "compat_date": "2025-02-19", - "compat_flags": [], - "modules": [ - { - "name": "7a79aab24cf9a299e7a22147080b3c7bdfe3493d-component.wasm", - "file": "tier1/wait/7a79aab24cf9a299e7a22147080b3c7bdfe3493d-component.wasm", - "type": "application/wasm", - "sha256": "52ca2d184bf3dcc646bb94f29f7f3e69b5540276363e83a54cb435ff33ca2f3c" - } - ], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": { - "COMPONENT_ID": "wait" - } - } - }, - { - "name": "arcrun-cypher-executor", - "tier": 2, - "main_file": "tier2/cypher/index.js", - "main_module": "index.js", - "sha256": "19c5bda3e1757b146ffa2f7a78742fe61a21501a7f454ef000d920d0cfe1eb25", - "compat_date": "2025-02-19", - "compat_flags": [ - "nodejs_compat", - "global_fetch_strictly_public" - ], - "modules": [], - "requires": { - "kv": [ - "EXEC_CONTEXT", - "WEBHOOKS", - "CREDENTIALS_KV", - "ANALYTICS_KV", - "RECIPES", - "USERS_KV", - "SESSIONS_KV" - ], - "d1": [ - { - "binding": "CREDENTIALS_DB" - } - ], - "ai": true, - "vars": { - "ENVIRONMENT": "production", - "CF_ACCOUNT_ID": "", - "WORKER_SUBDOMAIN": "uncle6-me", - "KBDB_BASE_URL": "https://arcrun-kbdb.uncle6-me.workers.dev", - "CONSOLE_TENANT": "leo", - "PORTAL_SESSION_TTL": "604800", - "PORTAL_SHOW_WORKFLOWS": "admin", - "GITEA_BASE_URL": "https://git.uncle6.me", - "GITEA_SPRINT_REPO": "Leo/InkStoneCo", - "GITEA_SPRINT_DIR": "system-dev/docs/3-specs/autonomy-dispatch" - } - }, - "stripped_services": [ - "SVC_IF_CONTROL", - "SVC_SWITCH", - "SVC_FOREACH_CONTROL", - "SVC_FILTER", - "SVC_MERGE", - "SVC_TRY_CATCH", - "SVC_WAIT", - "SVC_SET", - "SVC_ARRAY_OPS", - "SVC_STRING_OPS", - "SVC_NUMBER_OPS", - "SVC_DATE_OPS", - "SVC_VALIDATE_JSON" - ] - }, - { - "name": "arcrun-kbdb", - "tier": 2, - "main_file": "tier2/kbdb/index.js", - "main_module": "index.js", - "sha256": "2a836d28302f3794794652e677ecd2f4d0e90474db8e648ce86a4a03aabda185", - "compat_date": "2025-02-19", - "compat_flags": [ - "nodejs_compat" - ], - "modules": [], - "requires": { - "kv": [], - "d1": [ - { - "binding": "DB" - } - ], - "ai": false, - "vars": { - "ENVIRONMENT": "production" - } - }, - "stripped_services": [] - }, - { - "name": "arcrun-mcp", - "tier": 2, - "main_file": "tier2/mcp/index.js", - "main_module": "index.js", - "sha256": "a9bb0f19c473db5f69f1dcaf4a6f0fa53f11af1ae442112c75bcd6ea9563f935", - "compat_date": "2024-11-27", - "compat_flags": [ - "nodejs_compat" - ], - "modules": [], - "requires": { - "kv": [ - "OAUTH_KV" - ], - "d1": [], - "ai": false, - "vars": {} - }, - "stripped_services": [ - "COMPONENT_REGISTRY", - "CYPHER_EXECUTOR", - "KBDB" - ] - }, - { - "name": "arcrun-rag-ui", - "tier": 2, - "main_file": "tier2/ui/index.js", - "main_module": "index.js", - "sha256": "68e696eed79887fda2d4c6437c4e02020e755a6b16533271268ba2cc1626b29a", - "compat_date": "2026-07-01", - "compat_flags": [], - "modules": [], - "requires": { - "kv": [], - "d1": [], - "ai": false, - "vars": {} - } - }, - { - "name": "arcrun-registry", - "tier": 2, - "main_file": "tier2/registry/index.js", - "main_module": "index.js", - "sha256": "23a6bf2dbcba9318fb97620a7e7a6f10861da46189634f323d06e93524dcafdb", - "compat_date": "2025-02-19", - "compat_flags": [ - "nodejs_compat" - ], - "modules": [], - "requires": { - "kv": [ - "SUBMISSIONS_KV", - "ANALYTICS_KV" - ], - "d1": [], - "ai": true, - "vars": { - "ENVIRONMENT": "production" - } - }, - "stripped_services": [] + "name": "2c05e315c753986af9193c194998f3109a0a17df-component.wasm", + "file": "tier1/array_ops/2c05e315c753986af9193c194998f3109a0a17df-component.wasm", + "type": "application/wasm", + "sha256": "74dc9d99f8b9ef43628b55c85c05beb1af8f6f90d78d07cd132ffe4b865147ae" } - ], - "daemon": { - "version": "v0.15.0", - "built": "20260729-2238", - "notes": "t149 多帳號同步修復+t150 版本一致性(collector 與 tray 同版)", - "mac": { - "file": "daemon/ArcrunRAG-mac-unsigned.zip", - "sha256": "2974c172440960924dbe089757ad0bf37f6288b86d83e39abd169a9966413d46" - }, - "win": { - "file": "daemon/ArcrunRAG-win-unsigned.zip", - "sha256": "1191af74b3c841536f08625d2449fa4add3e829c93d5cebc391da59e6f7e05a6" + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "array_ops" } + } + }, + { + "name": "arcrun-auth-oauth2", + "tier": 1, + "main_file": "tier1/auth_oauth2/index.js", + "main_module": "index.js", + "sha256": "d38d553cae41692a87703fc86dbf406a3cb2debd8336b6a6736960e9f0b4a5b1", + "compat_date": "2025-02-19", + "compat_flags": [ + "nodejs_compat" + ], + "modules": [ + { + "name": "1e5dae631ff4edb232828412daf37439b7234e8a-component.wasm", + "file": "tier1/auth_oauth2/1e5dae631ff4edb232828412daf37439b7234e8a-component.wasm", + "type": "application/wasm", + "sha256": "3622c20644e6c8c39487109e7353e2590bad90b1207139e34dfb0cf1c2696664" + } + ], + "requires": { + "kv": [ + "CREDENTIALS_KV", + "RECIPES" + ], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "auth_oauth2" + } + } + }, + { + "name": "arcrun-auth-service-account", + "tier": 1, + "main_file": "tier1/auth_service_account/index.js", + "main_module": "index.js", + "sha256": "743f28a5ab79c474d513edfbfcbf7d6ae879d807944c3bac9174bd7df4678784", + "compat_date": "2025-02-19", + "compat_flags": [ + "nodejs_compat" + ], + "modules": [ + { + "name": "65dfefeaf42ca5ed95b583203575f4563fecd4a9-component.wasm", + "file": "tier1/auth_service_account/65dfefeaf42ca5ed95b583203575f4563fecd4a9-component.wasm", + "type": "application/wasm", + "sha256": "7d0808b4b9a2df4fbb54977eafe34a5bdb99e0cc941d97462c62e26f3651951e" + } + ], + "requires": { + "kv": [ + "CREDENTIALS_KV", + "RECIPES" + ], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "auth_service_account" + } + } + }, + { + "name": "arcrun-auth-static-key", + "tier": 1, + "main_file": "tier1/auth_static_key/index.js", + "main_module": "index.js", + "sha256": "64f021de6a1d8c232dd4fc437f0bbc0cc068a6b884079c1f74932095a233d233", + "compat_date": "2025-02-19", + "compat_flags": [ + "nodejs_compat" + ], + "modules": [ + { + "name": "26a79169f7ae71b46962b7df87289a4d06899272-component.wasm", + "file": "tier1/auth_static_key/26a79169f7ae71b46962b7df87289a4d06899272-component.wasm", + "type": "application/wasm", + "sha256": "cd0f69a80ced0979749e0ec30b1981795a49eaa56bdb2ba102cd4b64f4670369" + } + ], + "requires": { + "kv": [ + "CREDENTIALS_KV", + "RECIPES" + ], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "auth_static_key" + } + } + }, + { + "name": "arcrun-cron", + "tier": 1, + "main_file": "tier1/cron/index.js", + "main_module": "index.js", + "sha256": "7e7ccd0270d10675aab1f3fc3f5a4fb538319ccb2a0a2a2151c008bc2b19925a", + "compat_date": "2025-02-19", + "compat_flags": [ + "nodejs_compat" + ], + "modules": [ + { + "name": "cfef89ca6e0f809fe5774d8e3db5e48222abb7f6-component.wasm", + "file": "tier1/cron/cfef89ca6e0f809fe5774d8e3db5e48222abb7f6-component.wasm", + "type": "application/wasm", + "sha256": "afb3a14f8c8f00f4f5573f44153cb1dcf6fc715b2fb47c2afb0aaf95b74d3cde" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "cron" + } + } + }, + { + "name": "arcrun-date-ops", + "tier": 1, + "main_file": "tier1/date_ops/index.js", + "main_module": "index.js", + "sha256": "8cf8061c4b2484f2f17dbaaf9a5be9ee5f6ac24b078e34581cdd564b06842946", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ + { + "name": "b02bbde53cd62d1e12579e8238de745a1129fdc3-component.wasm", + "file": "tier1/date_ops/b02bbde53cd62d1e12579e8238de745a1129fdc3-component.wasm", + "type": "application/wasm", + "sha256": "4e2c1329ce4014aa86a9a6449d8699e67c6c616f5c07088dc21216d4036ca41e" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "date_ops" + } + } + }, + { + "name": "arcrun-filter", + "tier": 1, + "main_file": "tier1/filter/index.js", + "main_module": "index.js", + "sha256": "d381d78ff436ce858ab182f63ebfb183d54b1b4bcce883c72fc237a5da4f7b2a", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ + { + "name": "d5253d0bc89bf79b101ea87b8010786decf28eb2-component.wasm", + "file": "tier1/filter/d5253d0bc89bf79b101ea87b8010786decf28eb2-component.wasm", + "type": "application/wasm", + "sha256": "6a0692b386522918b3b5af79cf7877394d1f02c350018dbaef68ef380dad1b9e" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "filter" + } + } + }, + { + "name": "arcrun-foreach-control", + "tier": 1, + "main_file": "tier1/foreach_control/index.js", + "main_module": "index.js", + "sha256": "fc6b1e4763e45efe65ce998db01b1e4caefe4dc0a32a45d287544a2d79379ec4", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ + { + "name": "f1948f457d59667fe7c6c1867389ceda8e3a01b4-component.wasm", + "file": "tier1/foreach_control/f1948f457d59667fe7c6c1867389ceda8e3a01b4-component.wasm", + "type": "application/wasm", + "sha256": "8ae161ab37cc78ef6fae65364a47f7accb572378b395c4637daa2ffa57f14632" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "foreach_control" + } + } + }, + { + "name": "arcrun-http-request", + "tier": 1, + "main_file": "tier1/http_request/index.js", + "main_module": "index.js", + "sha256": "af2a0642a2c2e55e08138264a5dc184257f4e720e71a0605af76051bb6216b08", + "compat_date": "2025-02-19", + "compat_flags": [ + "nodejs_compat", + "global_fetch_strictly_public" + ], + "modules": [ + { + "name": "dece047f15695e86a2f04ca9d75ec85829146a39-component.wasm", + "file": "tier1/http_request/dece047f15695e86a2f04ca9d75ec85829146a39-component.wasm", + "type": "application/wasm", + "sha256": "cc15cc785703e7bbb8dbff2d38dc84a4ac24e2f44316182730abae0f170ef133" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "http_request" + } + } + }, + { + "name": "arcrun-if-control", + "tier": 1, + "main_file": "tier1/if_control/index.js", + "main_module": "index.js", + "sha256": "b1bb7365ad5580c97e27fe32c621bf4dc0deac367920c3ab2394460acabcac90", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ + { + "name": "8f00b54a9af7ec82c27b8f62b9951af22eaa4612-component.wasm", + "file": "tier1/if_control/8f00b54a9af7ec82c27b8f62b9951af22eaa4612-component.wasm", + "type": "application/wasm", + "sha256": "87c81e9cf5e664f60c06a364508dd365d49953e1b7afba6a5753fce5a4c82636" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "if_control" + } + } + }, + { + "name": "arcrun-merge", + "tier": 1, + "main_file": "tier1/merge/index.js", + "main_module": "index.js", + "sha256": "2f28bf048fcc147bf38031b1220400f431e8d6475bab170d55130e67941f564a", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ + { + "name": "e99ec54d9c509604b6fffd4b9184d3942a413520-component.wasm", + "file": "tier1/merge/e99ec54d9c509604b6fffd4b9184d3942a413520-component.wasm", + "type": "application/wasm", + "sha256": "55a4d143246df172f60b5e15e7b26e55279deda9db436e3d65bccc25c86d7cd9" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "merge" + } + } + }, + { + "name": "arcrun-number-ops", + "tier": 1, + "main_file": "tier1/number_ops/index.js", + "main_module": "index.js", + "sha256": "e9fe2cd9c77c5e7dfdfd13b394d3b7bca692521a426ef00d4170ebcae1417174", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ + { + "name": "70f7f87bddfc4341aea7f2f953f00b0e38209bc1-component.wasm", + "file": "tier1/number_ops/70f7f87bddfc4341aea7f2f953f00b0e38209bc1-component.wasm", + "type": "application/wasm", + "sha256": "452d1940f6e2b2b36dc97c145abcb7b5bacdbfa7631c742827c2f6f6db87b4ea" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "number_ops" + } + } + }, + { + "name": "arcrun-set", + "tier": 1, + "main_file": "tier1/set/index.js", + "main_module": "index.js", + "sha256": "2cf0ae19d51745e643907507f35921817aa68900518a3f4c5b8c8de5fac4b0f3", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ + { + "name": "6e202a50e05d7a48b3d3318e149670cd87f213c9-component.wasm", + "file": "tier1/set/6e202a50e05d7a48b3d3318e149670cd87f213c9-component.wasm", + "type": "application/wasm", + "sha256": "f5afcf6e57401d2d83b21fb971ec80ca56d5e8e4bdb74a004f3d118875ed57c4" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "set" + } + } + }, + { + "name": "arcrun-string-ops", + "tier": 1, + "main_file": "tier1/string_ops/index.js", + "main_module": "index.js", + "sha256": "e98e1c1759359f863bd5869f32a0743fa5b6f419e3794b35e54acc0c842e2be1", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ + { + "name": "d2e03502220d42d7f65d990289a947213d6e1972-component.wasm", + "file": "tier1/string_ops/d2e03502220d42d7f65d990289a947213d6e1972-component.wasm", + "type": "application/wasm", + "sha256": "41f3243ee18bb9f4fcbaa417bd773347128dec2971132e240eddec19ba6a9da2" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "string_ops" + } + } + }, + { + "name": "arcrun-switch", + "tier": 1, + "main_file": "tier1/switch/index.js", + "main_module": "index.js", + "sha256": "d4d5b1cf30f67ff0755e451410e2866b1a86e8bd59437c1e691c4b5ea65cfbe0", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ + { + "name": "1920d78cdde1384d775cbc6647957409cf185584-component.wasm", + "file": "tier1/switch/1920d78cdde1384d775cbc6647957409cf185584-component.wasm", + "type": "application/wasm", + "sha256": "6d993dc9b1affe16b600aaa7cae5af977108cc08513bb11d9d9db908285fea8b" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "switch" + } + } + }, + { + "name": "arcrun-try-catch", + "tier": 1, + "main_file": "tier1/try_catch/index.js", + "main_module": "index.js", + "sha256": "370e98a83d3223fff51ecba9c4f898af46888ad2ff0f4fbf608e733e1f3f44c7", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ + { + "name": "6a99d0d167de81d14f89a86557dc913fd84af607-component.wasm", + "file": "tier1/try_catch/6a99d0d167de81d14f89a86557dc913fd84af607-component.wasm", + "type": "application/wasm", + "sha256": "10eaddc5ef0d3dc68e3f009970541ac7f5fce30dcdbecec9a333afd5a29e3486" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "try_catch" + } + } + }, + { + "name": "arcrun-validate-json", + "tier": 1, + "main_file": "tier1/validate_json/index.js", + "main_module": "index.js", + "sha256": "c560f75d36f50e32c3e3257987948ad503e8da49ec032f2ea445066b96bfffd6", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ + { + "name": "d0c376152f3b536223d350c5cd10609e89062211-component.wasm", + "file": "tier1/validate_json/d0c376152f3b536223d350c5cd10609e89062211-component.wasm", + "type": "application/wasm", + "sha256": "8142ffd3cc57efbb9128faaf450b646111b0f2e2575cc29a7b562a7b185912ab" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "validate_json" + } + } + }, + { + "name": "arcrun-wait", + "tier": 1, + "main_file": "tier1/wait/index.js", + "main_module": "index.js", + "sha256": "22f5d3569e81f80f625fc2e57a2201ad399f05566157bd04978dbdefff8298c8", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ + { + "name": "7a79aab24cf9a299e7a22147080b3c7bdfe3493d-component.wasm", + "file": "tier1/wait/7a79aab24cf9a299e7a22147080b3c7bdfe3493d-component.wasm", + "type": "application/wasm", + "sha256": "52ca2d184bf3dcc646bb94f29f7f3e69b5540276363e83a54cb435ff33ca2f3c" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "wait" + } + } + }, + { + "name": "arcrun-code", + "tier": 1, + "main_file": "tier1/code/index.js", + "main_module": "index.js", + "sha256": "9b7323eb25fb7279f97f139d044a1abd36b66a2f693383c675e8d07b4f8cb91f", + "compat_date": "2025-02-19", + "compat_flags": [], + "modules": [ + { + "name": "02028007bab4b877246b6f1a77434d1ce18122e5-quickjs.wasm", + "file": "tier1/code/02028007bab4b877246b6f1a77434d1ce18122e5-quickjs.wasm", + "type": "application/wasm", + "sha256": "105c3bed22d457e43e3d1c3c1c6959fda62a8fe06f0fc8a985303c3a2be72232" + } + ], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": { + "COMPONENT_ID": "code" + } + } + }, + { + "name": "arcrun-cypher-executor", + "tier": 2, + "main_file": "tier2/cypher/index.js", + "main_module": "index.js", + "sha256": "583637701eec268eb0666ecb6aa5fa45f50f942c535612053c8f5e135a69d312", + "compat_date": "2025-02-19", + "compat_flags": [ + "nodejs_compat", + "global_fetch_strictly_public" + ], + "modules": [], + "requires": { + "kv": [ + "EXEC_CONTEXT", + "WEBHOOKS", + "CREDENTIALS_KV", + "ANALYTICS_KV", + "RECIPES", + "USERS_KV", + "SESSIONS_KV" + ], + "d1": [ + { + "binding": "CREDENTIALS_DB" + } + ], + "ai": true, + "vars": { + "ENVIRONMENT": "production", + "CF_ACCOUNT_ID": "", + "WORKER_SUBDOMAIN": "uncle6-me", + "KBDB_BASE_URL": "https://arcrun-kbdb.uncle6-me.workers.dev", + "CONSOLE_TENANT": "leo", + "PORTAL_SESSION_TTL": "604800", + "PORTAL_SHOW_WORKFLOWS": "admin", + "GITEA_BASE_URL": "https://git.uncle6.me", + "GITEA_SPRINT_REPO": "Leo/InkStoneCo", + "GITEA_SPRINT_DIR": "system-dev/docs/3-specs/autonomy-dispatch" + } + }, + "stripped_services": [ + "SVC_IF_CONTROL", + "SVC_SWITCH", + "SVC_FOREACH_CONTROL", + "SVC_FILTER", + "SVC_MERGE", + "SVC_TRY_CATCH", + "SVC_WAIT", + "SVC_SET", + "SVC_ARRAY_OPS", + "SVC_STRING_OPS", + "SVC_NUMBER_OPS", + "SVC_DATE_OPS", + "SVC_VALIDATE_JSON" + ] + }, + { + "name": "arcrun-kbdb", + "tier": 2, + "main_file": "tier2/kbdb/index.js", + "main_module": "index.js", + "sha256": "c888085222ef2eeed7906bb9ce17f13f5c5828f6d8d655a6844ce4595449cd90", + "compat_date": "2025-02-19", + "compat_flags": [ + "nodejs_compat" + ], + "modules": [], + "requires": { + "kv": [], + "d1": [ + { + "binding": "DB" + } + ], + "ai": false, + "vars": { + "ENVIRONMENT": "production" + } + }, + "stripped_services": [] + }, + { + "name": "arcrun-registry", + "tier": 2, + "main_file": "tier2/registry/index.js", + "main_module": "index.js", + "sha256": "002917e9695c6afbd1ae4d85b2131ea0a9b2a2fc575d2f853d746604b2deaa08", + "compat_date": "2025-02-19", + "compat_flags": [ + "nodejs_compat" + ], + "modules": [], + "requires": { + "kv": [ + "SUBMISSIONS_KV", + "ANALYTICS_KV" + ], + "d1": [], + "ai": true, + "vars": { + "ENVIRONMENT": "production" + } + }, + "stripped_services": [] + }, + { + "name": "arcrun-mcp", + "tier": 2, + "main_file": "tier2/mcp/index.js", + "main_module": "index.js", + "sha256": "260887fb5d33ec6336194d0a53ede86a9c8055c7ed888a6d3a3081bcf8bc3655", + "compat_date": "2024-11-27", + "compat_flags": [ + "nodejs_compat" + ], + "modules": [], + "requires": { + "kv": [ + "OAUTH_KV" + ], + "d1": [], + "ai": false, + "vars": {} + }, + "stripped_services": [ + "COMPONENT_REGISTRY", + "CYPHER_EXECUTOR", + "KBDB" + ] + }, + { + "name": "arcrun-rag-ui", + "tier": 2, + "main_file": "tier2/ui/index.js", + "main_module": "index.js", + "sha256": "e34b0a99f110e88723d8cdf226482df8c3e8840f9c617ae717fa68657190f824", + "compat_date": "2026-07-01", + "compat_flags": [], + "modules": [], + "requires": { + "kv": [], + "d1": [], + "ai": false, + "vars": {} + } } -} + ], + "daemon": { + "version": "v0.15.0", + "built": "20260729-2238", + "notes": "t149 多帳號同步修復+t150 版本一致性(collector 與 tray 同版)", + "mac": { + "file": "daemon/ArcrunRAG-mac-unsigned.zip", + "sha256": "2974c172440960924dbe089757ad0bf37f6288b86d83e39abd169a9966413d46" + }, + "win": { + "file": "daemon/ArcrunRAG-win-unsigned.zip", + "sha256": "1191af74b3c841536f08625d2449fa4add3e829c93d5cebc391da59e6f7e05a6" + } + } +} \ No newline at end of file diff --git a/tier1/array_ops/index.js b/tier1/array_ops/index.js index c441078..b3eda10 100644 --- a/tier1/array_ops/index.js +++ b/tier1/array_ops/index.js @@ -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: "*", diff --git a/tier1/auth_oauth2/index.js b/tier1/auth_oauth2/index.js index c08f402..e38468b 100644 --- a/tier1/auth_oauth2/index.js +++ b/tier1/auth_oauth2/index.js @@ -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 diff --git a/tier1/auth_service_account/index.js b/tier1/auth_service_account/index.js index 82d5d9d..51daf26 100644 --- a/tier1/auth_service_account/index.js +++ b/tier1/auth_service_account/index.js @@ -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 diff --git a/tier1/auth_static_key/index.js b/tier1/auth_static_key/index.js index 369c2fc..dce9573 100644 --- a/tier1/auth_static_key/index.js +++ b/tier1/auth_static_key/index.js @@ -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 diff --git a/tier1/claude_api/440cbdafcbe277a299c3013d0a3dc6fdf9bb0fa2-component.wasm b/tier1/claude_api/440cbdafcbe277a299c3013d0a3dc6fdf9bb0fa2-component.wasm deleted file mode 100644 index 0490612..0000000 Binary files a/tier1/claude_api/440cbdafcbe277a299c3013d0a3dc6fdf9bb0fa2-component.wasm and /dev/null differ diff --git a/tier1/claude_api/index.js b/tier1/claude_api/index.js deleted file mode 100644 index 7f6ca1d..0000000 --- a/tier1/claude_api/index.js +++ /dev/null @@ -1,3572 +0,0 @@ -var __defProp = Object.defineProperty; -var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); - -// 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!`); -} -__name(createNotImplementedError, "createNotImplementedError"); -// @__NO_SIDE_EFFECTS__ -function notImplemented(name) { - const fn = /* @__PURE__ */ __name(() => { - throw /* @__PURE__ */ createNotImplementedError(name); - }, "fn"); - return Object.assign(fn, { __unenv__: true }); -} -__name(notImplemented, "notImplemented"); -// @__NO_SIDE_EFFECTS__ -function notImplementedClass(name) { - return class { - __unenv__ = true; - constructor() { - throw new Error(`[unenv] ${name} is not implemented yet!`); - } - }; -} -__name(notImplementedClass, "notImplementedClass"); - -// 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 = { - name: "node", - entryType: "node", - startTime: 0, - duration: 0, - nodeStart: 0, - v8Start: 0, - bootstrapComplete: 0, - environment: 0, - loopStart: 0, - loopExit: 0, - idleTime: 0, - uvMetricsInfo: { - loopCount: 0, - events: 0, - eventsWaiting: 0 - }, - detail: void 0, - toJSON() { - return this; - } -}; -var PerformanceEntry = class { - static { - __name(this, "PerformanceEntry"); - } - __unenv__ = true; - detail; - entryType = "event"; - name; - startTime; - constructor(name, options) { - this.name = name; - this.startTime = options?.startTime || _performanceNow(); - this.detail = options?.detail; - } - get duration() { - return _performanceNow() - this.startTime; - } - toJSON() { - return { - name: this.name, - entryType: this.entryType, - startTime: this.startTime, - duration: this.duration, - detail: this.detail - }; - } -}; -var PerformanceMark = class PerformanceMark2 extends PerformanceEntry { - static { - __name(this, "PerformanceMark"); - } - entryType = "mark"; - constructor() { - super(...arguments); - } - get duration() { - return 0; - } -}; -var PerformanceMeasure = class extends PerformanceEntry { - static { - __name(this, "PerformanceMeasure"); - } - entryType = "measure"; -}; -var PerformanceResourceTiming = class extends PerformanceEntry { - static { - __name(this, "PerformanceResourceTiming"); - } - entryType = "resource"; - serverTiming = []; - connectEnd = 0; - connectStart = 0; - decodedBodySize = 0; - domainLookupEnd = 0; - domainLookupStart = 0; - encodedBodySize = 0; - fetchStart = 0; - initiatorType = ""; - name = ""; - nextHopProtocol = ""; - redirectEnd = 0; - redirectStart = 0; - requestStart = 0; - responseEnd = 0; - responseStart = 0; - secureConnectionStart = 0; - startTime = 0; - transferSize = 0; - workerStart = 0; - responseStatus = 0; -}; -var PerformanceObserverEntryList = class { - static { - __name(this, "PerformanceObserverEntryList"); - } - __unenv__ = true; - getEntries() { - return []; - } - getEntriesByName(_name, _type) { - return []; - } - getEntriesByType(type) { - return []; - } -}; -var Performance = class { - static { - __name(this, "Performance"); - } - __unenv__ = true; - timeOrigin = _timeOrigin; - eventCounts = /* @__PURE__ */ new Map(); - _entries = []; - _resourceTimingBufferSize = 0; - navigation = void 0; - timing = void 0; - timerify(_fn, _options) { - throw createNotImplementedError("Performance.timerify"); - } - get nodeTiming() { - return nodeTiming; - } - eventLoopUtilization() { - return {}; - } - markResourceTiming() { - return new PerformanceResourceTiming(""); - } - onresourcetimingbufferfull = null; - now() { - if (this.timeOrigin === _timeOrigin) { - return _performanceNow(); - } - return Date.now() - this.timeOrigin; - } - clearMarks(markName) { - this._entries = markName ? this._entries.filter((e) => e.name !== markName) : this._entries.filter((e) => e.entryType !== "mark"); - } - clearMeasures(measureName) { - this._entries = measureName ? this._entries.filter((e) => e.name !== measureName) : this._entries.filter((e) => e.entryType !== "measure"); - } - clearResourceTimings() { - this._entries = this._entries.filter((e) => e.entryType !== "resource" || e.entryType !== "navigation"); - } - getEntries() { - return this._entries; - } - getEntriesByName(name, type) { - return this._entries.filter((e) => e.name === name && (!type || e.entryType === type)); - } - getEntriesByType(type) { - return this._entries.filter((e) => e.entryType === type); - } - mark(name, options) { - const entry = new PerformanceMark(name, options); - this._entries.push(entry); - return entry; - } - measure(measureName, startOrMeasureOptions, endMark) { - let start; - let end; - if (typeof startOrMeasureOptions === "string") { - start = this.getEntriesByName(startOrMeasureOptions, "mark")[0]?.startTime; - end = this.getEntriesByName(endMark, "mark")[0]?.startTime; - } else { - start = Number.parseFloat(startOrMeasureOptions?.start) || this.now(); - end = Number.parseFloat(startOrMeasureOptions?.end) || this.now(); - } - const entry = new PerformanceMeasure(measureName, { - startTime: start, - detail: { - start, - end - } - }); - this._entries.push(entry); - return entry; - } - setResourceTimingBufferSize(maxSize) { - this._resourceTimingBufferSize = maxSize; - } - addEventListener(type, listener, options) { - throw createNotImplementedError("Performance.addEventListener"); - } - removeEventListener(type, listener, options) { - throw createNotImplementedError("Performance.removeEventListener"); - } - dispatchEvent(event) { - throw createNotImplementedError("Performance.dispatchEvent"); - } - toJSON() { - return this; - } -}; -var PerformanceObserver = class { - static { - __name(this, "PerformanceObserver"); - } - __unenv__ = true; - static supportedEntryTypes = []; - _callback = null; - constructor(callback) { - this._callback = callback; - } - takeRecords() { - return []; - } - disconnect() { - throw createNotImplementedError("PerformanceObserver.disconnect"); - } - observe(options) { - throw createNotImplementedError("PerformanceObserver.observe"); - } - bind(fn) { - return fn; - } - runInAsyncScope(fn, thisArg, ...args) { - return fn.call(thisArg, ...args); - } - asyncId() { - return 0; - } - triggerAsyncId() { - return 0; - } - emitDestroy() { - return this; - } -}; -var performance = globalThis.performance && "addEventListener" in globalThis.performance ? globalThis.performance : new Performance(); - -// 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)) { - if (key !== "constructor" && !(key in performance)) { - const desc = Object.getOwnPropertyDescriptor(proto, key); - if (desc) { - Object.defineProperty(performance, key, desc); - } - } - } -} -globalThis.performance = performance; -globalThis.Performance = Performance; -globalThis.PerformanceEntry = PerformanceEntry; -globalThis.PerformanceMark = PerformanceMark; -globalThis.PerformanceMeasure = PerformanceMeasure; -globalThis.PerformanceObserver = PerformanceObserver; -globalThis.PerformanceObserverEntryList = PerformanceObserverEntryList; -globalThis.PerformanceResourceTiming = PerformanceResourceTiming; - -// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs -import { Writable } from "node:stream"; - -// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs -var noop_default = Object.assign(() => { -}, { __unenv__: true }); - -// 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(); -var _stdout = new Writable(); -var log = _console?.log ?? noop_default; -var info = _console?.info ?? log; -var trace = _console?.trace ?? info; -var debug = _console?.debug ?? log; -var table = _console?.table ?? log; -var error = _console?.error ?? log; -var warn = _console?.warn ?? error; -var createTask = _console?.createTask ?? /* @__PURE__ */ notImplemented("console.createTask"); -var clear = _console?.clear ?? noop_default; -var count = _console?.count ?? noop_default; -var countReset = _console?.countReset ?? noop_default; -var dir = _console?.dir ?? noop_default; -var dirxml = _console?.dirxml ?? noop_default; -var group = _console?.group ?? noop_default; -var groupEnd = _console?.groupEnd ?? noop_default; -var groupCollapsed = _console?.groupCollapsed ?? noop_default; -var profile = _console?.profile ?? noop_default; -var profileEnd = _console?.profileEnd ?? noop_default; -var time = _console?.time ?? noop_default; -var timeEnd = _console?.timeEnd ?? noop_default; -var timeLog = _console?.timeLog ?? noop_default; -var timeStamp = _console?.timeStamp ?? noop_default; -var Console = _console?.Console ?? /* @__PURE__ */ notImplementedClass("console.Console"); -var _times = /* @__PURE__ */ new Map(); -var _stdoutErrorHandler = noop_default; -var _stderrErrorHandler = noop_default; - -// 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, - clear: clear2, - // @ts-expect-error undocumented public API - context, - count: count2, - countReset: countReset2, - // @ts-expect-error undocumented public API - createTask: createTask2, - debug: debug2, - dir: dir2, - dirxml: dirxml2, - error: error2, - group: group2, - groupCollapsed: groupCollapsed2, - groupEnd: groupEnd2, - info: info2, - log: log2, - profile: profile2, - profileEnd: profileEnd2, - table: table2, - time: time2, - timeEnd: timeEnd2, - timeLog: timeLog2, - timeStamp: timeStamp2, - trace: trace2, - warn: warn2 -} = workerdConsole; -Object.assign(workerdConsole, { - Console, - _ignoreErrors, - _stderr, - _stderrErrorHandler, - _stdout, - _stdoutErrorHandler, - _times -}); -var console_default = workerdConsole; - -// node_modules/.pnpm/wrangler@4.98.0_@cloudflare+workers-types@4.20260608.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console -globalThis.console = console_default; - -// 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); - const nanos = now % 1e3 * 1e6; - if (startTime) { - let diffSeconds = seconds - startTime[0]; - let diffNanos = nanos - startTime[0]; - if (diffNanos < 0) { - diffSeconds = diffSeconds - 1; - diffNanos = 1e9 + diffNanos; - } - return [diffSeconds, diffNanos]; - } - return [seconds, nanos]; -}, "hrtime"), { bigint: /* @__PURE__ */ __name(function bigint() { - return BigInt(Date.now() * 1e6); -}, "bigint") }); - -// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs -import { EventEmitter } from "node:events"; - -// 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"); - } - fd; - isRaw = false; - isTTY = false; - constructor(fd) { - this.fd = fd; - } - setRawMode(mode) { - this.isRaw = mode; - return this; - } -}; - -// 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"); - } - fd; - columns = 80; - rows = 24; - isTTY = false; - constructor(fd) { - this.fd = fd; - } - clearLine(dir3, callback) { - callback && callback(); - return false; - } - clearScreenDown(callback) { - callback && callback(); - return false; - } - cursorTo(x, y, callback) { - callback && typeof callback === "function" && callback(); - return false; - } - moveCursor(dx, dy, callback) { - callback && callback(); - return false; - } - getColorDepth(env2) { - return 1; - } - hasColors(count3, env2) { - return false; - } - getWindowSize() { - return [this.columns, this.rows]; - } - write(str, encoding, cb) { - if (str instanceof Uint8Array) { - str = new TextDecoder().decode(str); - } - try { - console.log(str); - } catch { - } - cb && typeof cb === "function" && cb(); - return false; - } -}; - -// 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"; - -// 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"); - } - env; - hrtime; - nextTick; - constructor(impl) { - super(); - this.env = impl.env; - this.hrtime = impl.hrtime; - this.nextTick = impl.nextTick; - for (const prop of [...Object.getOwnPropertyNames(_Process.prototype), ...Object.getOwnPropertyNames(EventEmitter.prototype)]) { - const value = this[prop]; - if (typeof value === "function") { - this[prop] = value.bind(this); - } - } - } - // --- event emitter --- - emitWarning(warning, type, code) { - console.warn(`${code ? `[${code}] ` : ""}${type ? `${type}: ` : ""}${warning}`); - } - emit(...args) { - return super.emit(...args); - } - listeners(eventName) { - return super.listeners(eventName); - } - // --- stdio (lazy initializers) --- - #stdin; - #stdout; - #stderr; - get stdin() { - return this.#stdin ??= new ReadStream(0); - } - get stdout() { - return this.#stdout ??= new WriteStream(1); - } - get stderr() { - return this.#stderr ??= new WriteStream(2); - } - // --- cwd --- - #cwd = "/"; - chdir(cwd2) { - this.#cwd = cwd2; - } - cwd() { - return this.#cwd; - } - // --- dummy props and getters --- - arch = ""; - platform = ""; - argv = []; - argv0 = ""; - execArgv = []; - execPath = ""; - title = ""; - pid = 200; - ppid = 100; - get version() { - return `v${NODE_VERSION}`; - } - get versions() { - return { node: NODE_VERSION }; - } - get allowedNodeEnvironmentFlags() { - return /* @__PURE__ */ new Set(); - } - get sourceMapsEnabled() { - return false; - } - get debugPort() { - return 0; - } - get throwDeprecation() { - return false; - } - get traceDeprecation() { - return false; - } - get features() { - return {}; - } - get release() { - return {}; - } - get connected() { - return false; - } - get config() { - return {}; - } - get moduleLoadList() { - return []; - } - constrainedMemory() { - return 0; - } - availableMemory() { - return 0; - } - uptime() { - return 0; - } - resourceUsage() { - return {}; - } - // --- noop methods --- - ref() { - } - unref() { - } - // --- unimplemented methods --- - umask() { - throw createNotImplementedError("process.umask"); - } - getBuiltinModule() { - return void 0; - } - getActiveResourcesInfo() { - throw createNotImplementedError("process.getActiveResourcesInfo"); - } - exit() { - throw createNotImplementedError("process.exit"); - } - reallyExit() { - throw createNotImplementedError("process.reallyExit"); - } - kill() { - throw createNotImplementedError("process.kill"); - } - abort() { - throw createNotImplementedError("process.abort"); - } - dlopen() { - throw createNotImplementedError("process.dlopen"); - } - setSourceMapsEnabled() { - throw createNotImplementedError("process.setSourceMapsEnabled"); - } - loadEnvFile() { - throw createNotImplementedError("process.loadEnvFile"); - } - disconnect() { - throw createNotImplementedError("process.disconnect"); - } - cpuUsage() { - throw createNotImplementedError("process.cpuUsage"); - } - setUncaughtExceptionCaptureCallback() { - throw createNotImplementedError("process.setUncaughtExceptionCaptureCallback"); - } - hasUncaughtExceptionCaptureCallback() { - throw createNotImplementedError("process.hasUncaughtExceptionCaptureCallback"); - } - initgroups() { - throw createNotImplementedError("process.initgroups"); - } - openStdin() { - throw createNotImplementedError("process.openStdin"); - } - assert() { - throw createNotImplementedError("process.assert"); - } - binding() { - throw createNotImplementedError("process.binding"); - } - // --- attached interfaces --- - permission = { has: /* @__PURE__ */ notImplemented("process.permission.has") }; - report = { - directory: "", - filename: "", - signal: "SIGUSR2", - compact: false, - reportOnFatalError: false, - reportOnSignal: false, - reportOnUncaughtException: false, - getReport: /* @__PURE__ */ notImplemented("process.report.getReport"), - writeReport: /* @__PURE__ */ notImplemented("process.report.writeReport") - }; - finalization = { - register: /* @__PURE__ */ notImplemented("process.finalization.register"), - unregister: /* @__PURE__ */ notImplemented("process.finalization.unregister"), - registerBeforeExit: /* @__PURE__ */ notImplemented("process.finalization.registerBeforeExit") - }; - memoryUsage = Object.assign(() => ({ - arrayBuffers: 0, - rss: 0, - external: 0, - heapTotal: 0, - heapUsed: 0 - }), { rss: /* @__PURE__ */ __name(() => 0, "rss") }); - // --- undefined props --- - mainModule = void 0; - domain = void 0; - // optional - send = void 0; - exitCode = void 0; - channel = void 0; - getegid = void 0; - geteuid = void 0; - getgid = void 0; - getgroups = void 0; - getuid = void 0; - setegid = void 0; - seteuid = void 0; - setgid = void 0; - setgroups = void 0; - setuid = void 0; - // internals - _events = void 0; - _eventsCount = void 0; - _exiting = void 0; - _maxListeners = void 0; - _debugEnd = void 0; - _debugProcess = void 0; - _fatalException = void 0; - _getActiveHandles = void 0; - _getActiveRequests = void 0; - _kill = void 0; - _preload_modules = void 0; - _rawDebug = void 0; - _startProfilerIdleNotifier = void 0; - _stopProfilerIdleNotifier = void 0; - _tickCallback = void 0; - _disconnect = void 0; - _handleQueue = void 0; - _pendingMessage = void 0; - _channel = void 0; - _send = void 0; - _linkedBinding = void 0; -}; - -// 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"); -var unenvProcess = new Process({ - env: globalProcess.env, - hrtime, - // `nextTick` is available from workerd process v1 - nextTick: workerdProcess.nextTick -}); -var { exit, features, platform } = workerdProcess; -var { - _channel, - _debugEnd, - _debugProcess, - _disconnect, - _events, - _eventsCount, - _exiting, - _fatalException, - _getActiveHandles, - _getActiveRequests, - _handleQueue, - _kill, - _linkedBinding, - _maxListeners, - _pendingMessage, - _preload_modules, - _rawDebug, - _send, - _startProfilerIdleNotifier, - _stopProfilerIdleNotifier, - _tickCallback, - abort, - addListener, - allowedNodeEnvironmentFlags, - arch, - argv, - argv0, - assert: assert2, - availableMemory, - binding, - channel, - chdir, - config, - connected, - constrainedMemory, - cpuUsage, - cwd, - debugPort, - disconnect, - dlopen, - domain, - emit, - emitWarning, - env, - eventNames, - execArgv, - execPath, - exitCode, - finalization, - getActiveResourcesInfo, - getegid, - geteuid, - getgid, - getgroups, - getMaxListeners, - getuid, - hasUncaughtExceptionCaptureCallback, - hrtime: hrtime3, - initgroups, - kill, - listenerCount, - listeners, - loadEnvFile, - mainModule, - memoryUsage, - moduleLoadList, - nextTick, - off, - on, - once, - openStdin, - permission, - pid, - ppid, - prependListener, - prependOnceListener, - rawListeners, - reallyExit, - ref, - release, - removeAllListeners, - removeListener, - report, - resourceUsage, - send, - setegid, - seteuid, - setgid, - setgroups, - setMaxListeners, - setSourceMapsEnabled, - setuid, - setUncaughtExceptionCaptureCallback, - sourceMapsEnabled, - stderr, - stdin, - stdout, - throwDeprecation, - title, - traceDeprecation, - umask, - unref, - uptime, - version, - versions -} = unenvProcess; -var _process = { - abort, - addListener, - allowedNodeEnvironmentFlags, - hasUncaughtExceptionCaptureCallback, - setUncaughtExceptionCaptureCallback, - loadEnvFile, - sourceMapsEnabled, - arch, - argv, - argv0, - chdir, - config, - connected, - constrainedMemory, - availableMemory, - cpuUsage, - cwd, - debugPort, - dlopen, - disconnect, - emit, - emitWarning, - env, - eventNames, - execArgv, - execPath, - exit, - finalization, - features, - getBuiltinModule, - getActiveResourcesInfo, - getMaxListeners, - hrtime: hrtime3, - kill, - listeners, - listenerCount, - memoryUsage, - nextTick, - on, - off, - once, - pid, - platform, - ppid, - prependListener, - prependOnceListener, - rawListeners, - release, - removeAllListeners, - removeListener, - report, - resourceUsage, - setMaxListeners, - setSourceMapsEnabled, - stderr, - stdin, - stdout, - title, - throwDeprecation, - traceDeprecation, - umask, - uptime, - version, - versions, - // @ts-expect-error old API - domain, - initgroups, - moduleLoadList, - reallyExit, - openStdin, - assert: assert2, - binding, - send, - exitCode, - channel, - getegid, - geteuid, - getgid, - getgroups, - getuid, - setegid, - seteuid, - setgid, - setgroups, - setuid, - permission, - mainModule, - _events, - _eventsCount, - _exiting, - _maxListeners, - _debugEnd, - _debugProcess, - _fatalException, - _getActiveHandles, - _getActiveRequests, - _kill, - _preload_modules, - _rawDebug, - _startProfilerIdleNotifier, - _stopProfilerIdleNotifier, - _tickCallback, - _disconnect, - _handleQueue, - _pendingMessage, - _channel, - _send, - _linkedBinding -}; -var process_default = _process; - -// node_modules/.pnpm/wrangler@4.98.0_@cloudflare+workers-types@4.20260608.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process -globalThis.process = process_default; - -// src/index.ts -import componentWasm from "./440cbdafcbe277a299c3013d0a3dc6fdf9bb0fa2-component.wasm"; - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/compose.js -var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => { - return (context2, next) => { - let index = -1; - return dispatch(0); - async function dispatch(i) { - if (i <= index) { - throw new Error("next() called multiple times"); - } - index = i; - let res; - let isError = false; - let handler; - if (middleware[i]) { - handler = middleware[i][0][0]; - context2.req.routeIndex = i; - } else { - handler = i === middleware.length && next || void 0; - } - if (handler) { - try { - res = await handler(context2, () => dispatch(i + 1)); - } catch (err) { - if (err instanceof Error && onError) { - context2.error = err; - res = await onError(err, context2); - isError = true; - } else { - throw err; - } - } - } else { - if (context2.finalized === false && onNotFound) { - res = await onNotFound(context2); - } - } - if (res && (context2.finalized === false || isError)) { - context2.res = res; - } - return context2; - } - __name(dispatch, "dispatch"); - }; -}, "compose"); - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/request/constants.js -var GET_MATCH_RESULT = /* @__PURE__ */ Symbol(); - -// node_modules/.pnpm/hono@4.12.24/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; - const contentType = headers.get("Content-Type"); - if (contentType?.startsWith("multipart/form-data") || contentType?.startsWith("application/x-www-form-urlencoded")) { - return parseFormData(request, { all, dot }); - } - return {}; -}, "parseBody"); -async function parseFormData(request, options) { - const formData = await request.formData(); - if (formData) { - return convertFormDataToBodyData(formData, options); - } - return {}; -} -__name(parseFormData, "parseFormData"); -function convertFormDataToBodyData(formData, options) { - const form = /* @__PURE__ */ Object.create(null); - formData.forEach((value, key) => { - const shouldParseAllValues = options.all || key.endsWith("[]"); - if (!shouldParseAllValues) { - form[key] = value; - } else { - handleParsingAllValues(form, key, value); - } - }); - if (options.dot) { - Object.entries(form).forEach(([key, value]) => { - const shouldParseDotValues = key.includes("."); - if (shouldParseDotValues) { - handleParsingNestedValues(form, key, value); - delete form[key]; - } - }); - } - return form; -} -__name(convertFormDataToBodyData, "convertFormDataToBodyData"); -var handleParsingAllValues = /* @__PURE__ */ __name((form, key, value) => { - if (form[key] !== void 0) { - if (Array.isArray(form[key])) { - ; - form[key].push(value); - } else { - form[key] = [form[key], value]; - } - } else { - if (!key.endsWith("[]")) { - form[key] = value; - } else { - form[key] = [value]; - } - } -}, "handleParsingAllValues"); -var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => { - if (/(?:^|\.)__proto__\./.test(key)) { - return; - } - let nestedForm = form; - const keys = key.split("."); - keys.forEach((key2, index) => { - if (index === keys.length - 1) { - nestedForm[key2] = value; - } else { - if (!nestedForm[key2] || typeof nestedForm[key2] !== "object" || Array.isArray(nestedForm[key2]) || nestedForm[key2] instanceof File) { - nestedForm[key2] = /* @__PURE__ */ Object.create(null); - } - nestedForm = nestedForm[key2]; - } - }); -}, "handleParsingNestedValues"); - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/utils/url.js -var splitPath = /* @__PURE__ */ __name((path) => { - const paths = path.split("/"); - if (paths[0] === "") { - paths.shift(); - } - return paths; -}, "splitPath"); -var splitRoutingPath = /* @__PURE__ */ __name((routePath) => { - const { groups, path } = extractGroupsFromPath(routePath); - const paths = splitPath(path); - return replaceGroupMarks(paths, groups); -}, "splitRoutingPath"); -var extractGroupsFromPath = /* @__PURE__ */ __name((path) => { - const groups = []; - path = path.replace(/\{[^}]+\}/g, (match2, index) => { - const mark = `@${index}`; - groups.push([mark, match2]); - return mark; - }); - return { groups, path }; -}, "extractGroupsFromPath"); -var replaceGroupMarks = /* @__PURE__ */ __name((paths, groups) => { - for (let i = groups.length - 1; i >= 0; i--) { - const [mark] = groups[i]; - for (let j = paths.length - 1; j >= 0; j--) { - if (paths[j].includes(mark)) { - paths[j] = paths[j].replace(mark, groups[i][1]); - break; - } - } - } - return paths; -}, "replaceGroupMarks"); -var patternCache = {}; -var getPattern = /* @__PURE__ */ __name((label, next) => { - if (label === "*") { - return "*"; - } - const match2 = label.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/); - if (match2) { - const cacheKey = `${label}#${next}`; - if (!patternCache[cacheKey]) { - if (match2[2]) { - patternCache[cacheKey] = next && next[0] !== ":" && next[0] !== "*" ? [cacheKey, match2[1], new RegExp(`^${match2[2]}(?=/${next})`)] : [label, match2[1], new RegExp(`^${match2[2]}$`)]; - } else { - patternCache[cacheKey] = [label, match2[1], true]; - } - } - return patternCache[cacheKey]; - } - return null; -}, "getPattern"); -var tryDecode = /* @__PURE__ */ __name((str, decoder) => { - try { - return decoder(str); - } catch { - return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (match2) => { - try { - return decoder(match2); - } catch { - return match2; - } - }); - } -}, "tryDecode"); -var tryDecodeURI = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURI), "tryDecodeURI"); -var getPath = /* @__PURE__ */ __name((request) => { - const url = request.url; - const start = url.indexOf("/", url.indexOf(":") + 4); - let i = start; - for (; i < url.length; i++) { - const charCode = url.charCodeAt(i); - if (charCode === 37) { - const queryIndex = url.indexOf("?", i); - const hashIndex = url.indexOf("#", i); - const end = queryIndex === -1 ? hashIndex === -1 ? void 0 : hashIndex : hashIndex === -1 ? queryIndex : Math.min(queryIndex, hashIndex); - const path = url.slice(start, end); - return tryDecodeURI(path.includes("%25") ? path.replace(/%25/g, "%2525") : path); - } else if (charCode === 63 || charCode === 35) { - break; - } - } - return url.slice(start, i); -}, "getPath"); -var getPathNoStrict = /* @__PURE__ */ __name((request) => { - const result = getPath(request); - return result.length > 1 && result.at(-1) === "/" ? result.slice(0, -1) : result; -}, "getPathNoStrict"); -var mergePath = /* @__PURE__ */ __name((base, sub, ...rest) => { - if (rest.length) { - sub = mergePath(sub, ...rest); - } - return `${base?.[0] === "/" ? "" : "/"}${base}${sub === "/" ? "" : `${base?.at(-1) === "/" ? "" : "/"}${sub?.[0] === "/" ? sub.slice(1) : sub}`}`; -}, "mergePath"); -var checkOptionalParameter = /* @__PURE__ */ __name((path) => { - if (path.charCodeAt(path.length - 1) !== 63 || !path.includes(":")) { - return null; - } - const segments = path.split("/"); - const results = []; - let basePath = ""; - segments.forEach((segment) => { - if (segment !== "" && !/\:/.test(segment)) { - basePath += "/" + segment; - } else if (/\:/.test(segment)) { - if (/\?/.test(segment)) { - if (results.length === 0 && basePath === "") { - results.push("/"); - } else { - results.push(basePath); - } - const optionalSegment = segment.replace("?", ""); - basePath += "/" + optionalSegment; - results.push(basePath); - } else { - basePath += "/" + segment; - } - } - }); - return results.filter((v, i, a) => a.indexOf(v) === i); -}, "checkOptionalParameter"); -var _decodeURI = /* @__PURE__ */ __name((value) => { - if (!/[%+]/.test(value)) { - return value; - } - if (value.indexOf("+") !== -1) { - value = value.replace(/\+/g, " "); - } - return value.indexOf("%") !== -1 ? tryDecode(value, decodeURIComponent_) : value; -}, "_decodeURI"); -var _getQueryParam = /* @__PURE__ */ __name((url, key, multiple) => { - let encoded; - if (!multiple && key && !/[%+]/.test(key)) { - let keyIndex2 = url.indexOf("?", 8); - if (keyIndex2 === -1) { - return void 0; - } - if (!url.startsWith(key, keyIndex2 + 1)) { - keyIndex2 = url.indexOf(`&${key}`, keyIndex2 + 1); - } - while (keyIndex2 !== -1) { - const trailingKeyCode = url.charCodeAt(keyIndex2 + key.length + 1); - if (trailingKeyCode === 61) { - const valueIndex = keyIndex2 + key.length + 2; - const endIndex = url.indexOf("&", valueIndex); - return _decodeURI(url.slice(valueIndex, endIndex === -1 ? void 0 : endIndex)); - } else if (trailingKeyCode == 38 || isNaN(trailingKeyCode)) { - return ""; - } - keyIndex2 = url.indexOf(`&${key}`, keyIndex2 + 1); - } - encoded = /[%+]/.test(url); - if (!encoded) { - return void 0; - } - } - const results = {}; - encoded ??= /[%+]/.test(url); - let keyIndex = url.indexOf("?", 8); - while (keyIndex !== -1) { - const nextKeyIndex = url.indexOf("&", keyIndex + 1); - let valueIndex = url.indexOf("=", keyIndex); - if (valueIndex > nextKeyIndex && nextKeyIndex !== -1) { - valueIndex = -1; - } - let name = url.slice( - keyIndex + 1, - valueIndex === -1 ? nextKeyIndex === -1 ? void 0 : nextKeyIndex : valueIndex - ); - if (encoded) { - name = _decodeURI(name); - } - keyIndex = nextKeyIndex; - if (name === "") { - continue; - } - let value; - if (valueIndex === -1) { - value = ""; - } else { - value = url.slice(valueIndex + 1, nextKeyIndex === -1 ? void 0 : nextKeyIndex); - if (encoded) { - value = _decodeURI(value); - } - } - if (multiple) { - if (!(results[name] && Array.isArray(results[name]))) { - results[name] = []; - } - ; - results[name].push(value); - } else { - results[name] ??= value; - } - } - return key ? results[key] : results; -}, "_getQueryParam"); -var getQueryParam = _getQueryParam; -var getQueryParams = /* @__PURE__ */ __name((url, key) => { - return _getQueryParam(url, key, true); -}, "getQueryParams"); -var decodeURIComponent_ = decodeURIComponent; - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/request.js -var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent"); -var HonoRequest = class { - static { - __name(this, "HonoRequest"); - } - /** - * `.raw` can get the raw Request object. - * - * @see {@link https://hono.dev/docs/api/request#raw} - * - * @example - * ```ts - * // For Cloudflare Workers - * app.post('/', async (c) => { - * const metadata = c.req.raw.cf?.hostMetadata? - * ... - * }) - * ``` - */ - raw; - #validatedData; - // Short name of validatedData - #matchResult; - routeIndex = 0; - /** - * `.path` can get the pathname of the request. - * - * @see {@link https://hono.dev/docs/api/request#path} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const pathname = c.req.path // `/about/me` - * }) - * ``` - */ - path; - bodyCache = {}; - constructor(request, path = "/", matchResult = [[]]) { - this.raw = request; - this.path = path; - this.#matchResult = matchResult; - this.#validatedData = {}; - } - param(key) { - return key ? this.#getDecodedParam(key) : this.#getAllDecodedParams(); - } - #getDecodedParam(key) { - const paramKey = this.#matchResult[0][this.routeIndex][1][key]; - const param = this.#getParamValue(paramKey); - return param && /\%/.test(param) ? tryDecodeURIComponent(param) : param; - } - #getAllDecodedParams() { - const decoded = {}; - const keys = Object.keys(this.#matchResult[0][this.routeIndex][1]); - for (const key of keys) { - const value = this.#getParamValue(this.#matchResult[0][this.routeIndex][1][key]); - if (value !== void 0) { - decoded[key] = /\%/.test(value) ? tryDecodeURIComponent(value) : value; - } - } - return decoded; - } - #getParamValue(paramKey) { - return this.#matchResult[1] ? this.#matchResult[1][paramKey] : paramKey; - } - query(key) { - return getQueryParam(this.url, key); - } - queries(key) { - return getQueryParams(this.url, key); - } - header(name) { - if (name) { - return this.raw.headers.get(name) ?? void 0; - } - const headerData = {}; - this.raw.headers.forEach((value, key) => { - headerData[key] = value; - }); - return headerData; - } - async parseBody(options) { - return parseBody(this, options); - } - #cachedBody = /* @__PURE__ */ __name((key) => { - const { bodyCache, raw: raw2 } = this; - const cachedBody = bodyCache[key]; - if (cachedBody) { - return cachedBody; - } - const anyCachedKey = Object.keys(bodyCache)[0]; - if (anyCachedKey) { - return bodyCache[anyCachedKey].then((body) => { - if (anyCachedKey === "json") { - body = JSON.stringify(body); - } - return new Response(body)[key](); - }); - } - return bodyCache[key] = raw2[key](); - }, "#cachedBody"); - /** - * `.json()` can parse Request body of type `application/json` - * - * @see {@link https://hono.dev/docs/api/request#json} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.json() - * }) - * ``` - */ - json() { - return this.#cachedBody("text").then((text) => JSON.parse(text)); - } - /** - * `.text()` can parse Request body of type `text/plain` - * - * @see {@link https://hono.dev/docs/api/request#text} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.text() - * }) - * ``` - */ - text() { - return this.#cachedBody("text"); - } - /** - * `.arrayBuffer()` parse Request body as an `ArrayBuffer` - * - * @see {@link https://hono.dev/docs/api/request#arraybuffer} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.arrayBuffer() - * }) - * ``` - */ - arrayBuffer() { - return this.#cachedBody("arrayBuffer"); - } - /** - * `.bytes()` parses the request body as a `Uint8Array`. - * - * @see {@link https://hono.dev/docs/api/request#bytes} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.bytes() - * }) - * ``` - */ - bytes() { - return this.#cachedBody("arrayBuffer").then((buffer) => new Uint8Array(buffer)); - } - /** - * Parses the request body as a `Blob`. - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.blob(); - * }); - * ``` - * @see https://hono.dev/docs/api/request#blob - */ - blob() { - return this.#cachedBody("blob"); - } - /** - * Parses the request body as `FormData`. - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.formData(); - * }); - * ``` - * @see https://hono.dev/docs/api/request#formdata - */ - formData() { - return this.#cachedBody("formData"); - } - /** - * Adds validated data to the request. - * - * @param target - The target of the validation. - * @param data - The validated data to add. - */ - addValidatedData(target, data) { - this.#validatedData[target] = data; - } - valid(target) { - return this.#validatedData[target]; - } - /** - * `.url()` can get the request url strings. - * - * @see {@link https://hono.dev/docs/api/request#url} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const url = c.req.url // `http://localhost:8787/about/me` - * ... - * }) - * ``` - */ - get url() { - return this.raw.url; - } - /** - * `.method()` can get the method name of the request. - * - * @see {@link https://hono.dev/docs/api/request#method} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const method = c.req.method // `GET` - * }) - * ``` - */ - get method() { - return this.raw.method; - } - get [GET_MATCH_RESULT]() { - return this.#matchResult; - } - /** - * `.matchedRoutes()` can return a matched route in the handler - * - * @deprecated - * - * Use matchedRoutes helper defined in "hono/route" instead. - * - * @see {@link https://hono.dev/docs/api/request#matchedroutes} - * - * @example - * ```ts - * app.use('*', async function logger(c, next) { - * await next() - * c.req.matchedRoutes.forEach(({ handler, method, path }, i) => { - * const name = handler.name || (handler.length < 2 ? '[handler]' : '[middleware]') - * console.log( - * method, - * ' ', - * path, - * ' '.repeat(Math.max(10 - path.length, 0)), - * name, - * i === c.req.routeIndex ? '<- respond from here' : '' - * ) - * }) - * }) - * ``` - */ - get matchedRoutes() { - return this.#matchResult[0].map(([[, route]]) => route); - } - /** - * `routePath()` can retrieve the path registered within the handler - * - * @deprecated - * - * Use routePath helper defined in "hono/route" instead. - * - * @see {@link https://hono.dev/docs/api/request#routepath} - * - * @example - * ```ts - * app.get('/posts/:id', (c) => { - * return c.json({ path: c.req.routePath }) - * }) - * ``` - */ - get routePath() { - return this.#matchResult[0].map(([[, route]]) => route)[this.routeIndex].path; - } -}; - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/utils/html.js -var HtmlEscapedCallbackPhase = { - Stringify: 1, - BeforeStream: 2, - Stream: 3 -}; -var raw = /* @__PURE__ */ __name((value, callbacks) => { - const escapedString = new String(value); - escapedString.isEscaped = true; - escapedString.callbacks = callbacks; - return escapedString; -}, "raw"); -var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallbacks, context2, buffer) => { - if (typeof str === "object" && !(str instanceof String)) { - if (!(str instanceof Promise)) { - str = str.toString(); - } - if (str instanceof Promise) { - str = await str; - } - } - const callbacks = str.callbacks; - if (!callbacks?.length) { - return Promise.resolve(str); - } - if (buffer) { - buffer[0] += str; - } else { - buffer = [str]; - } - const resStr = Promise.all(callbacks.map((c) => c({ phase, buffer, context: context2 }))).then( - (res) => Promise.all( - res.filter(Boolean).map((str2) => resolveCallback(str2, phase, false, context2, buffer)) - ).then(() => buffer[0]) - ); - if (preserveCallbacks) { - return raw(await resStr, callbacks); - } else { - return resStr; - } -}, "resolveCallback"); - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/context.js -var TEXT_PLAIN = "text/plain; charset=UTF-8"; -var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => { - return { - "Content-Type": contentType, - ...headers - }; -}, "setDefaultContentType"); -var createResponseInstance = /* @__PURE__ */ __name((body, init) => new Response(body, init), "createResponseInstance"); -var Context = class { - static { - __name(this, "Context"); - } - #rawRequest; - #req; - /** - * `.env` can get bindings (environment variables, secrets, KV namespaces, D1 database, R2 bucket etc.) in Cloudflare Workers. - * - * @see {@link https://hono.dev/docs/api/context#env} - * - * @example - * ```ts - * // Environment object for Cloudflare Workers - * app.get('*', async c => { - * const counter = c.env.COUNTER - * }) - * ``` - */ - env = {}; - #var; - finalized = false; - /** - * `.error` can get the error object from the middleware if the Handler throws an error. - * - * @see {@link https://hono.dev/docs/api/context#error} - * - * @example - * ```ts - * app.use('*', async (c, next) => { - * await next() - * if (c.error) { - * // do something... - * } - * }) - * ``` - */ - error; - #status; - #executionCtx; - #res; - #layout; - #renderer; - #notFoundHandler; - #preparedHeaders; - #matchResult; - #path; - /** - * Creates an instance of the Context class. - * - * @param req - The Request object. - * @param options - Optional configuration options for the context. - */ - constructor(req, options) { - this.#rawRequest = req; - if (options) { - this.#executionCtx = options.executionCtx; - this.env = options.env; - this.#notFoundHandler = options.notFoundHandler; - this.#path = options.path; - this.#matchResult = options.matchResult; - } - } - /** - * `.req` is the instance of {@link HonoRequest}. - */ - get req() { - this.#req ??= new HonoRequest(this.#rawRequest, this.#path, this.#matchResult); - return this.#req; - } - /** - * @see {@link https://hono.dev/docs/api/context#event} - * The FetchEvent associated with the current request. - * - * @throws Will throw an error if the context does not have a FetchEvent. - */ - get event() { - if (this.#executionCtx && "respondWith" in this.#executionCtx) { - return this.#executionCtx; - } else { - throw Error("This context has no FetchEvent"); - } - } - /** - * @see {@link https://hono.dev/docs/api/context#executionctx} - * The ExecutionContext associated with the current request. - * - * @throws Will throw an error if the context does not have an ExecutionContext. - */ - get executionCtx() { - if (this.#executionCtx) { - return this.#executionCtx; - } else { - throw Error("This context has no ExecutionContext"); - } - } - /** - * @see {@link https://hono.dev/docs/api/context#res} - * The Response object for the current request. - */ - get res() { - return this.#res ||= createResponseInstance(null, { - headers: this.#preparedHeaders ??= new Headers() - }); - } - /** - * Sets the Response object for the current request. - * - * @param _res - The Response object to set. - */ - set res(_res) { - if (this.#res && _res) { - _res = createResponseInstance(_res.body, _res); - for (const [k, v] of this.#res.headers.entries()) { - if (k === "content-type") { - continue; - } - if (k === "set-cookie") { - const cookies = this.#res.headers.getSetCookie(); - _res.headers.delete("set-cookie"); - for (const cookie of cookies) { - _res.headers.append("set-cookie", cookie); - } - } else { - _res.headers.set(k, v); - } - } - } - this.#res = _res; - this.finalized = true; - } - /** - * `.render()` can create a response within a layout. - * - * @see {@link https://hono.dev/docs/api/context#render-setrenderer} - * - * @example - * ```ts - * app.get('/', (c) => { - * return c.render('Hello!') - * }) - * ``` - */ - render = /* @__PURE__ */ __name((...args) => { - this.#renderer ??= (content) => this.html(content); - return this.#renderer(...args); - }, "render"); - /** - * Sets the layout for the response. - * - * @param layout - The layout to set. - * @returns The layout function. - */ - setLayout = /* @__PURE__ */ __name((layout) => this.#layout = layout, "setLayout"); - /** - * Gets the current layout for the response. - * - * @returns The current layout function. - */ - getLayout = /* @__PURE__ */ __name(() => this.#layout, "getLayout"); - /** - * `.setRenderer()` can set the layout in the custom middleware. - * - * @see {@link https://hono.dev/docs/api/context#render-setrenderer} - * - * @example - * ```tsx - * app.use('*', async (c, next) => { - * c.setRenderer((content) => { - * return c.html( - * - * - *

{content}

- * - * - * ) - * }) - * await next() - * }) - * ``` - */ - setRenderer = /* @__PURE__ */ __name((renderer) => { - this.#renderer = renderer; - }, "setRenderer"); - /** - * `.header()` can set headers. - * - * @see {@link https://hono.dev/docs/api/context#header} - * - * @example - * ```ts - * app.get('/welcome', (c) => { - * // Set headers - * c.header('X-Message', 'Hello!') - * c.header('Content-Type', 'text/plain') - * - * return c.body('Thank you for coming') - * }) - * ``` - */ - header = /* @__PURE__ */ __name((name, value, options) => { - if (this.finalized) { - this.#res = createResponseInstance(this.#res.body, this.#res); - } - const headers = this.#res ? this.#res.headers : this.#preparedHeaders ??= new Headers(); - if (value === void 0) { - headers.delete(name); - } else if (options?.append) { - headers.append(name, value); - } else { - headers.set(name, value); - } - }, "header"); - status = /* @__PURE__ */ __name((status) => { - this.#status = status; - }, "status"); - /** - * `.set()` can set the value specified by the key. - * - * @see {@link https://hono.dev/docs/api/context#set-get} - * - * @example - * ```ts - * app.use('*', async (c, next) => { - * c.set('message', 'Hono is hot!!') - * await next() - * }) - * ``` - */ - set = /* @__PURE__ */ __name((key, value) => { - this.#var ??= /* @__PURE__ */ new Map(); - this.#var.set(key, value); - }, "set"); - /** - * `.get()` can use the value specified by the key. - * - * @see {@link https://hono.dev/docs/api/context#set-get} - * - * @example - * ```ts - * app.get('/', (c) => { - * const message = c.get('message') - * return c.text(`The message is "${message}"`) - * }) - * ``` - */ - get = /* @__PURE__ */ __name((key) => { - return this.#var ? this.#var.get(key) : void 0; - }, "get"); - /** - * `.var` can access the value of a variable. - * - * @see {@link https://hono.dev/docs/api/context#var} - * - * @example - * ```ts - * const result = c.var.client.oneMethod() - * ``` - */ - // c.var.propName is a read-only - get var() { - if (!this.#var) { - return {}; - } - return Object.fromEntries(this.#var); - } - #newResponse(data, arg, headers) { - const responseHeaders = this.#res ? new Headers(this.#res.headers) : this.#preparedHeaders ?? new Headers(); - if (typeof arg === "object" && "headers" in arg) { - const argHeaders = arg.headers instanceof Headers ? arg.headers : new Headers(arg.headers); - for (const [key, value] of argHeaders) { - if (key.toLowerCase() === "set-cookie") { - responseHeaders.append(key, value); - } else { - responseHeaders.set(key, value); - } - } - } - if (headers) { - for (const [k, v] of Object.entries(headers)) { - if (typeof v === "string") { - responseHeaders.set(k, v); - } else { - responseHeaders.delete(k); - for (const v2 of v) { - responseHeaders.append(k, v2); - } - } - } - } - const status = typeof arg === "number" ? arg : arg?.status ?? this.#status; - return createResponseInstance(data, { status, headers: responseHeaders }); - } - newResponse = /* @__PURE__ */ __name((...args) => this.#newResponse(...args), "newResponse"); - /** - * `.body()` can return the HTTP response. - * You can set headers with `.header()` and set HTTP status code with `.status`. - * This can also be set in `.text()`, `.json()` and so on. - * - * @see {@link https://hono.dev/docs/api/context#body} - * - * @example - * ```ts - * app.get('/welcome', (c) => { - * // Set headers - * c.header('X-Message', 'Hello!') - * c.header('Content-Type', 'text/plain') - * // Set HTTP status code - * c.status(201) - * - * // Return the response body - * return c.body('Thank you for coming') - * }) - * ``` - */ - body = /* @__PURE__ */ __name((data, arg, headers) => this.#newResponse(data, arg, headers), "body"); - /** - * `.text()` can render text as `Content-Type:text/plain`. - * - * @see {@link https://hono.dev/docs/api/context#text} - * - * @example - * ```ts - * app.get('/say', (c) => { - * return c.text('Hello!') - * }) - * ``` - */ - text = /* @__PURE__ */ __name((text, arg, headers) => { - return !this.#preparedHeaders && !this.#status && !arg && !headers && !this.finalized ? new Response(text) : this.#newResponse( - text, - arg, - setDefaultContentType(TEXT_PLAIN, headers) - ); - }, "text"); - /** - * `.json()` can render JSON as `Content-Type:application/json`. - * - * @see {@link https://hono.dev/docs/api/context#json} - * - * @example - * ```ts - * app.get('/api', (c) => { - * return c.json({ message: 'Hello!' }) - * }) - * ``` - */ - json = /* @__PURE__ */ __name((object, arg, headers) => { - return this.#newResponse( - JSON.stringify(object), - arg, - setDefaultContentType("application/json", headers) - ); - }, "json"); - html = /* @__PURE__ */ __name((html, arg, headers) => { - const res = /* @__PURE__ */ __name((html2) => this.#newResponse(html2, arg, setDefaultContentType("text/html; charset=UTF-8", headers)), "res"); - return typeof html === "object" ? resolveCallback(html, HtmlEscapedCallbackPhase.Stringify, false, {}).then(res) : res(html); - }, "html"); - /** - * `.redirect()` can Redirect, default status code is 302. - * - * @see {@link https://hono.dev/docs/api/context#redirect} - * - * @example - * ```ts - * app.get('/redirect', (c) => { - * return c.redirect('/') - * }) - * app.get('/redirect-permanently', (c) => { - * return c.redirect('/', 301) - * }) - * ``` - */ - redirect = /* @__PURE__ */ __name((location, status) => { - const locationString = String(location); - this.header( - "Location", - // Multibyes should be encoded - // eslint-disable-next-line no-control-regex - !/[^\x00-\xFF]/.test(locationString) ? locationString : encodeURI(locationString) - ); - return this.newResponse(null, status ?? 302); - }, "redirect"); - /** - * `.notFound()` can return the Not Found Response. - * - * @see {@link https://hono.dev/docs/api/context#notfound} - * - * @example - * ```ts - * app.get('/notfound', (c) => { - * return c.notFound() - * }) - * ``` - */ - notFound = /* @__PURE__ */ __name(() => { - this.#notFoundHandler ??= () => createResponseInstance(); - return this.#notFoundHandler(this); - }, "notFound"); -}; - -// node_modules/.pnpm/hono@4.12.24/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"]; -var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is already built."; -var UnsupportedPathError = class extends Error { - static { - __name(this, "UnsupportedPathError"); - } -}; - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/utils/constants.js -var COMPOSED_HANDLER = "__COMPOSED_HANDLER"; - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/hono-base.js -var notFoundHandler = /* @__PURE__ */ __name((c) => { - return c.text("404 Not Found", 404); -}, "notFoundHandler"); -var errorHandler = /* @__PURE__ */ __name((err, c) => { - if ("getResponse" in err) { - const res = err.getResponse(); - return c.newResponse(res.body, res); - } - console.error(err); - return c.text("Internal Server Error", 500); -}, "errorHandler"); -var Hono = class _Hono { - static { - __name(this, "_Hono"); - } - get; - post; - put; - delete; - options; - patch; - all; - on; - use; - /* - This class is like an abstract class and does not have a router. - To use it, inherit the class and implement router in the constructor. - */ - router; - getPath; - // Cannot use `#` because it requires visibility at JavaScript runtime. - _basePath = "/"; - #path = "/"; - routes = []; - constructor(options = {}) { - const allMethods = [...METHODS, METHOD_NAME_ALL_LOWERCASE]; - allMethods.forEach((method) => { - this[method] = (args1, ...args) => { - if (typeof args1 === "string") { - this.#path = args1; - } else { - this.#addRoute(method, this.#path, args1); - } - args.forEach((handler) => { - this.#addRoute(method, this.#path, handler); - }); - return this; - }; - }); - this.on = (method, path, ...handlers) => { - for (const p of [path].flat()) { - this.#path = p; - for (const m of [method].flat()) { - handlers.map((handler) => { - this.#addRoute(m.toUpperCase(), this.#path, handler); - }); - } - } - return this; - }; - this.use = (arg1, ...handlers) => { - if (typeof arg1 === "string") { - this.#path = arg1; - } else { - this.#path = "*"; - handlers.unshift(arg1); - } - handlers.forEach((handler) => { - this.#addRoute(METHOD_NAME_ALL, this.#path, handler); - }); - return this; - }; - const { strict, ...optionsWithoutStrict } = options; - Object.assign(this, optionsWithoutStrict); - this.getPath = strict ?? true ? options.getPath ?? getPath : getPathNoStrict; - } - #clone() { - const clone = new _Hono({ - router: this.router, - getPath: this.getPath - }); - clone.errorHandler = this.errorHandler; - clone.#notFoundHandler = this.#notFoundHandler; - clone.routes = this.routes; - return clone; - } - #notFoundHandler = notFoundHandler; - // Cannot use `#` because it requires visibility at JavaScript runtime. - errorHandler = errorHandler; - /** - * `.route()` allows grouping other Hono instance in routes. - * - * @see {@link https://hono.dev/docs/api/routing#grouping} - * - * @param {string} path - base Path - * @param {Hono} app - other Hono instance - * @returns {Hono} routed Hono instance - * - * @example - * ```ts - * const app = new Hono() - * const app2 = new Hono() - * - * app2.get("/user", (c) => c.text("user")) - * app.route("/api", app2) // GET /api/user - * ``` - */ - route(path, app2) { - const subApp = this.basePath(path); - app2.routes.map((r) => { - let handler; - if (app2.errorHandler === errorHandler) { - handler = r.handler; - } else { - handler = /* @__PURE__ */ __name(async (c, next) => (await compose([], app2.errorHandler)(c, () => r.handler(c, next))).res, "handler"); - handler[COMPOSED_HANDLER] = r.handler; - } - subApp.#addRoute(r.method, r.path, handler, r.basePath); - }); - return this; - } - /** - * `.basePath()` allows base paths to be specified. - * - * @see {@link https://hono.dev/docs/api/routing#base-path} - * - * @param {string} path - base Path - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * const api = new Hono().basePath('/api') - * ``` - */ - basePath(path) { - const subApp = this.#clone(); - subApp._basePath = mergePath(this._basePath, path); - return subApp; - } - /** - * `.onError()` handles an error and returns a customized Response. - * - * @see {@link https://hono.dev/docs/api/hono#error-handling} - * - * @param {ErrorHandler} handler - request Handler for error - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * app.onError((err, c) => { - * console.error(`${err}`) - * return c.text('Custom Error Message', 500) - * }) - * ``` - */ - onError = /* @__PURE__ */ __name((handler) => { - this.errorHandler = handler; - return this; - }, "onError"); - /** - * `.notFound()` allows you to customize a Not Found Response. - * - * @see {@link https://hono.dev/docs/api/hono#not-found} - * - * @param {NotFoundHandler} handler - request handler for not-found - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * app.notFound((c) => { - * return c.text('Custom 404 Message', 404) - * }) - * ``` - */ - notFound = /* @__PURE__ */ __name((handler) => { - this.#notFoundHandler = handler; - return this; - }, "notFound"); - /** - * `.mount()` allows you to mount applications built with other frameworks into your Hono application. - * - * @see {@link https://hono.dev/docs/api/hono#mount} - * - * @param {string} path - base Path - * @param {Function} applicationHandler - other Request Handler - * @param {MountOptions} [options] - options of `.mount()` - * @returns {Hono} mounted Hono instance - * - * @example - * ```ts - * import { Router as IttyRouter } from 'itty-router' - * import { Hono } from 'hono' - * // Create itty-router application - * const ittyRouter = IttyRouter() - * // GET /itty-router/hello - * ittyRouter.get('/hello', () => new Response('Hello from itty-router')) - * - * const app = new Hono() - * app.mount('/itty-router', ittyRouter.handle) - * ``` - * - * @example - * ```ts - * const app = new Hono() - * // Send the request to another application without modification. - * app.mount('/app', anotherApp, { - * replaceRequest: (req) => req, - * }) - * ``` - */ - mount(path, applicationHandler, options) { - let replaceRequest; - let optionHandler; - if (options) { - if (typeof options === "function") { - optionHandler = options; - } else { - optionHandler = options.optionHandler; - if (options.replaceRequest === false) { - replaceRequest = /* @__PURE__ */ __name((request) => request, "replaceRequest"); - } else { - replaceRequest = options.replaceRequest; - } - } - } - const getOptions = optionHandler ? (c) => { - const options2 = optionHandler(c); - return Array.isArray(options2) ? options2 : [options2]; - } : (c) => { - let executionContext = void 0; - try { - executionContext = c.executionCtx; - } catch { - } - return [c.env, executionContext]; - }; - replaceRequest ||= (() => { - const mergedPath = mergePath(this._basePath, path); - const pathPrefixLength = mergedPath === "/" ? 0 : mergedPath.length; - return (request) => { - const url = new URL(request.url); - url.pathname = this.getPath(request).slice(pathPrefixLength) || "/"; - return new Request(url, request); - }; - })(); - const handler = /* @__PURE__ */ __name(async (c, next) => { - const res = await applicationHandler(replaceRequest(c.req.raw), ...getOptions(c)); - if (res) { - return res; - } - await next(); - }, "handler"); - this.#addRoute(METHOD_NAME_ALL, mergePath(path, "*"), handler); - return this; - } - #addRoute(method, path, handler, baseRoutePath) { - method = method.toUpperCase(); - path = mergePath(this._basePath, path); - const r = { - basePath: baseRoutePath !== void 0 ? mergePath(this._basePath, baseRoutePath) : this._basePath, - path, - method, - handler - }; - this.router.add(method, path, [handler, r]); - this.routes.push(r); - } - #handleError(err, c) { - if (err instanceof Error) { - return this.errorHandler(err, c); - } - throw err; - } - #dispatch(request, executionCtx, env2, method) { - if (method === "HEAD") { - return (async () => new Response(null, await this.#dispatch(request, executionCtx, env2, "GET")))(); - } - const path = this.getPath(request, { env: env2 }); - const matchResult = this.router.match(method, path); - const c = new Context(request, { - path, - matchResult, - env: env2, - executionCtx, - notFoundHandler: this.#notFoundHandler - }); - if (matchResult[0].length === 1) { - let res; - try { - res = matchResult[0][0][0][0](c, async () => { - c.res = await this.#notFoundHandler(c); - }); - } catch (err) { - return this.#handleError(err, c); - } - return res instanceof Promise ? res.then( - (resolved) => resolved || (c.finalized ? c.res : this.#notFoundHandler(c)) - ).catch((err) => this.#handleError(err, c)) : res ?? this.#notFoundHandler(c); - } - const composed = compose(matchResult[0], this.errorHandler, this.#notFoundHandler); - return (async () => { - try { - const context2 = await composed(c); - if (!context2.finalized) { - throw new Error( - "Context is not finalized. Did you forget to return a Response object or `await next()`?" - ); - } - return context2.res; - } catch (err) { - return this.#handleError(err, c); - } - })(); - } - /** - * `.fetch()` will be entry point of your app. - * - * @see {@link https://hono.dev/docs/api/hono#fetch} - * - * @param {Request} request - request Object of request - * @param {Env} Env - env Object - * @param {ExecutionContext} - context of execution - * @returns {Response | Promise} response of request - * - */ - fetch = /* @__PURE__ */ __name((request, ...rest) => { - return this.#dispatch(request, rest[1], rest[0], request.method); - }, "fetch"); - /** - * `.request()` is a useful method for testing. - * You can pass a URL or pathname to send a GET request. - * app will return a Response object. - * ```ts - * test('GET /hello is ok', async () => { - * const res = await app.request('/hello') - * expect(res.status).toBe(200) - * }) - * ``` - * @see https://hono.dev/docs/api/hono#request - */ - request = /* @__PURE__ */ __name((input, requestInit, Env, executionCtx) => { - if (input instanceof Request) { - return this.fetch(requestInit ? new Request(input, requestInit) : input, Env, executionCtx); - } - input = input.toString(); - return this.fetch( - new Request( - /^https?:\/\//.test(input) ? input : `http://localhost${mergePath("/", input)}`, - requestInit - ), - Env, - executionCtx - ); - }, "request"); - /** - * `.fire()` automatically adds a global fetch event listener. - * This can be useful for environments that adhere to the Service Worker API, such as non-ES module Cloudflare Workers. - * @deprecated - * Use `fire` from `hono/service-worker` instead. - * ```ts - * import { Hono } from 'hono' - * import { fire } from 'hono/service-worker' - * - * const app = new Hono() - * // ... - * fire(app) - * ``` - * @see https://hono.dev/docs/api/hono#fire - * @see https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API - * @see https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ - */ - fire = /* @__PURE__ */ __name(() => { - addEventListener("fetch", (event) => { - event.respondWith(this.#dispatch(event.request, event, void 0, event.request.method)); - }); - }, "fire"); -}; - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/router/reg-exp-router/matcher.js -var emptyParam = []; -function match(method, path) { - const matchers = this.buildAllMatchers(); - const match2 = /* @__PURE__ */ __name(((method2, path2) => { - const matcher = matchers[method2] || matchers[METHOD_NAME_ALL]; - const staticMatch = matcher[2][path2]; - if (staticMatch) { - return staticMatch; - } - const match3 = path2.match(matcher[0]); - if (!match3) { - return [[], emptyParam]; - } - const index = match3.indexOf("", 1); - return [matcher[1][index], match3]; - }), "match2"); - this.match = match2; - return match2(method, path); -} -__name(match, "match"); - -// node_modules/.pnpm/hono@4.12.24/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 = "(?:|/.*)"; -var PATH_ERROR = /* @__PURE__ */ Symbol(); -var regExpMetaChars = new Set(".\\+*[^]$()"); -function compareKey(a, b) { - if (a.length === 1) { - return b.length === 1 ? a < b ? -1 : 1 : -1; - } - if (b.length === 1) { - return 1; - } - if (a === ONLY_WILDCARD_REG_EXP_STR || a === TAIL_WILDCARD_REG_EXP_STR) { - return 1; - } else if (b === ONLY_WILDCARD_REG_EXP_STR || b === TAIL_WILDCARD_REG_EXP_STR) { - return -1; - } - if (a === LABEL_REG_EXP_STR) { - return 1; - } else if (b === LABEL_REG_EXP_STR) { - return -1; - } - return a.length === b.length ? a < b ? -1 : 1 : b.length - a.length; -} -__name(compareKey, "compareKey"); -var Node = class _Node { - static { - __name(this, "_Node"); - } - #index; - #varIndex; - #children = /* @__PURE__ */ Object.create(null); - insert(tokens, index, paramMap, context2, pathErrorCheckOnly) { - if (tokens.length === 0) { - if (this.#index !== void 0) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - this.#index = index; - return; - } - const [token, ...restTokens] = tokens; - const pattern = token === "*" ? restTokens.length === 0 ? ["", "", ONLY_WILDCARD_REG_EXP_STR] : ["", "", LABEL_REG_EXP_STR] : token === "/*" ? ["", "", TAIL_WILDCARD_REG_EXP_STR] : token.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/); - let node; - if (pattern) { - const name = pattern[1]; - let regexpStr = pattern[2] || LABEL_REG_EXP_STR; - if (name && pattern[2]) { - if (regexpStr === ".*") { - throw PATH_ERROR; - } - regexpStr = regexpStr.replace(/^\((?!\?:)(?=[^)]+\)$)/, "(?:"); - if (/\((?!\?:)/.test(regexpStr)) { - throw PATH_ERROR; - } - } - node = this.#children[regexpStr]; - if (!node) { - if (Object.keys(this.#children).some( - (k) => k !== ONLY_WILDCARD_REG_EXP_STR && k !== TAIL_WILDCARD_REG_EXP_STR - )) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - node = this.#children[regexpStr] = new _Node(); - if (name !== "") { - node.#varIndex = context2.varIndex++; - } - } - if (!pathErrorCheckOnly && name !== "") { - paramMap.push([name, node.#varIndex]); - } - } else { - node = this.#children[token]; - if (!node) { - if (Object.keys(this.#children).some( - (k) => k.length > 1 && k !== ONLY_WILDCARD_REG_EXP_STR && k !== TAIL_WILDCARD_REG_EXP_STR - )) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - node = this.#children[token] = new _Node(); - } - } - node.insert(restTokens, index, paramMap, context2, pathErrorCheckOnly); - } - buildRegExpStr() { - const childKeys = Object.keys(this.#children).sort(compareKey); - const strList = childKeys.map((k) => { - const c = this.#children[k]; - return (typeof c.#varIndex === "number" ? `(${k})@${c.#varIndex}` : regExpMetaChars.has(k) ? `\\${k}` : k) + c.buildRegExpStr(); - }); - if (typeof this.#index === "number") { - strList.unshift(`#${this.#index}`); - } - if (strList.length === 0) { - return ""; - } - if (strList.length === 1) { - return strList[0]; - } - return "(?:" + strList.join("|") + ")"; - } -}; - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/router/reg-exp-router/trie.js -var Trie = class { - static { - __name(this, "Trie"); - } - #context = { varIndex: 0 }; - #root = new Node(); - insert(path, index, pathErrorCheckOnly) { - const paramAssoc = []; - const groups = []; - for (let i = 0; ; ) { - let replaced = false; - path = path.replace(/\{[^}]+\}/g, (m) => { - const mark = `@\\${i}`; - groups[i] = [mark, m]; - i++; - replaced = true; - return mark; - }); - if (!replaced) { - break; - } - } - const tokens = path.match(/(?::[^\/]+)|(?:\/\*$)|./g) || []; - for (let i = groups.length - 1; i >= 0; i--) { - const [mark] = groups[i]; - for (let j = tokens.length - 1; j >= 0; j--) { - if (tokens[j].indexOf(mark) !== -1) { - tokens[j] = tokens[j].replace(mark, groups[i][1]); - break; - } - } - } - this.#root.insert(tokens, index, paramAssoc, this.#context, pathErrorCheckOnly); - return paramAssoc; - } - buildRegExp() { - let regexp = this.#root.buildRegExpStr(); - if (regexp === "") { - return [/^$/, [], []]; - } - let captureIndex = 0; - const indexReplacementMap = []; - const paramReplacementMap = []; - regexp = regexp.replace(/#(\d+)|@(\d+)|\.\*\$/g, (_, handlerIndex, paramIndex) => { - if (handlerIndex !== void 0) { - indexReplacementMap[++captureIndex] = Number(handlerIndex); - return "$()"; - } - if (paramIndex !== void 0) { - paramReplacementMap[Number(paramIndex)] = ++captureIndex; - return ""; - } - return ""; - }); - return [new RegExp(`^${regexp}`), indexReplacementMap, paramReplacementMap]; - } -}; - -// node_modules/.pnpm/hono@4.12.24/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) { - return wildcardRegExpCache[path] ??= new RegExp( - path === "*" ? "" : `^${path.replace( - /\/\*$|([.\\+*[^\]$()])/g, - (_, metaChar) => metaChar ? `\\${metaChar}` : "(?:|/.*)" - )}$` - ); -} -__name(buildWildcardRegExp, "buildWildcardRegExp"); -function clearWildcardRegExpCache() { - wildcardRegExpCache = /* @__PURE__ */ Object.create(null); -} -__name(clearWildcardRegExpCache, "clearWildcardRegExpCache"); -function buildMatcherFromPreprocessedRoutes(routes) { - const trie = new Trie(); - const handlerData = []; - if (routes.length === 0) { - return nullMatcher; - } - const routesWithStaticPathFlag = routes.map( - (route) => [!/\*|\/:/.test(route[0]), ...route] - ).sort( - ([isStaticA, pathA], [isStaticB, pathB]) => isStaticA ? 1 : isStaticB ? -1 : pathA.length - pathB.length - ); - const staticMap = /* @__PURE__ */ Object.create(null); - for (let i = 0, j = -1, len = routesWithStaticPathFlag.length; i < len; i++) { - const [pathErrorCheckOnly, path, handlers] = routesWithStaticPathFlag[i]; - if (pathErrorCheckOnly) { - staticMap[path] = [handlers.map(([h]) => [h, /* @__PURE__ */ Object.create(null)]), emptyParam]; - } else { - j++; - } - let paramAssoc; - try { - paramAssoc = trie.insert(path, j, pathErrorCheckOnly); - } catch (e) { - throw e === PATH_ERROR ? new UnsupportedPathError(path) : e; - } - if (pathErrorCheckOnly) { - continue; - } - handlerData[j] = handlers.map(([h, paramCount]) => { - const paramIndexMap = /* @__PURE__ */ Object.create(null); - paramCount -= 1; - for (; paramCount >= 0; paramCount--) { - const [key, value] = paramAssoc[paramCount]; - paramIndexMap[key] = value; - } - return [h, paramIndexMap]; - }); - } - const [regexp, indexReplacementMap, paramReplacementMap] = trie.buildRegExp(); - for (let i = 0, len = handlerData.length; i < len; i++) { - for (let j = 0, len2 = handlerData[i].length; j < len2; j++) { - const map = handlerData[i][j]?.[1]; - if (!map) { - continue; - } - const keys = Object.keys(map); - for (let k = 0, len3 = keys.length; k < len3; k++) { - map[keys[k]] = paramReplacementMap[map[keys[k]]]; - } - } - } - const handlerMap = []; - for (const i in indexReplacementMap) { - handlerMap[i] = handlerData[indexReplacementMap[i]]; - } - return [regexp, handlerMap, staticMap]; -} -__name(buildMatcherFromPreprocessedRoutes, "buildMatcherFromPreprocessedRoutes"); -function findMiddleware(middleware, path) { - if (!middleware) { - return void 0; - } - for (const k of Object.keys(middleware).sort((a, b) => b.length - a.length)) { - if (buildWildcardRegExp(k).test(path)) { - return [...middleware[k]]; - } - } - return void 0; -} -__name(findMiddleware, "findMiddleware"); -var RegExpRouter = class { - static { - __name(this, "RegExpRouter"); - } - name = "RegExpRouter"; - #middleware; - #routes; - constructor() { - this.#middleware = { [METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) }; - this.#routes = { [METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) }; - } - add(method, path, handler) { - const middleware = this.#middleware; - const routes = this.#routes; - if (!middleware || !routes) { - throw new Error(MESSAGE_MATCHER_IS_ALREADY_BUILT); - } - if (!middleware[method]) { - ; - [middleware, routes].forEach((handlerMap) => { - handlerMap[method] = /* @__PURE__ */ Object.create(null); - Object.keys(handlerMap[METHOD_NAME_ALL]).forEach((p) => { - handlerMap[method][p] = [...handlerMap[METHOD_NAME_ALL][p]]; - }); - }); - } - if (path === "/*") { - path = "*"; - } - const paramCount = (path.match(/\/:/g) || []).length; - if (/\*$/.test(path)) { - const re = buildWildcardRegExp(path); - if (method === METHOD_NAME_ALL) { - Object.keys(middleware).forEach((m) => { - middleware[m][path] ||= findMiddleware(middleware[m], path) || findMiddleware(middleware[METHOD_NAME_ALL], path) || []; - }); - } else { - middleware[method][path] ||= findMiddleware(middleware[method], path) || findMiddleware(middleware[METHOD_NAME_ALL], path) || []; - } - Object.keys(middleware).forEach((m) => { - if (method === METHOD_NAME_ALL || method === m) { - Object.keys(middleware[m]).forEach((p) => { - re.test(p) && middleware[m][p].push([handler, paramCount]); - }); - } - }); - Object.keys(routes).forEach((m) => { - if (method === METHOD_NAME_ALL || method === m) { - Object.keys(routes[m]).forEach( - (p) => re.test(p) && routes[m][p].push([handler, paramCount]) - ); - } - }); - return; - } - const paths = checkOptionalParameter(path) || [path]; - for (let i = 0, len = paths.length; i < len; i++) { - const path2 = paths[i]; - Object.keys(routes).forEach((m) => { - if (method === METHOD_NAME_ALL || method === m) { - routes[m][path2] ||= [ - ...findMiddleware(middleware[m], path2) || findMiddleware(middleware[METHOD_NAME_ALL], path2) || [] - ]; - routes[m][path2].push([handler, paramCount - len + i + 1]); - } - }); - } - } - match = match; - buildAllMatchers() { - const matchers = /* @__PURE__ */ Object.create(null); - Object.keys(this.#routes).concat(Object.keys(this.#middleware)).forEach((method) => { - matchers[method] ||= this.#buildMatcher(method); - }); - this.#middleware = this.#routes = void 0; - clearWildcardRegExpCache(); - return matchers; - } - #buildMatcher(method) { - const routes = []; - let hasOwnRoute = method === METHOD_NAME_ALL; - [this.#middleware, this.#routes].forEach((r) => { - const ownRoute = r[method] ? Object.keys(r[method]).map((path) => [path, r[method][path]]) : []; - if (ownRoute.length !== 0) { - hasOwnRoute ||= true; - routes.push(...ownRoute); - } else if (method !== METHOD_NAME_ALL) { - routes.push( - ...Object.keys(r[METHOD_NAME_ALL]).map((path) => [path, r[METHOD_NAME_ALL][path]]) - ); - } - }); - if (!hasOwnRoute) { - return null; - } else { - return buildMatcherFromPreprocessedRoutes(routes); - } - } -}; - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/router/smart-router/router.js -var SmartRouter = class { - static { - __name(this, "SmartRouter"); - } - name = "SmartRouter"; - #routers = []; - #routes = []; - constructor(init) { - this.#routers = init.routers; - } - add(method, path, handler) { - if (!this.#routes) { - throw new Error(MESSAGE_MATCHER_IS_ALREADY_BUILT); - } - this.#routes.push([method, path, handler]); - } - match(method, path) { - if (!this.#routes) { - throw new Error("Fatal error"); - } - const routers = this.#routers; - const routes = this.#routes; - const len = routers.length; - let i = 0; - let res; - for (; i < len; i++) { - const router = routers[i]; - try { - for (let i2 = 0, len2 = routes.length; i2 < len2; i2++) { - router.add(...routes[i2]); - } - res = router.match(method, path); - } catch (e) { - if (e instanceof UnsupportedPathError) { - continue; - } - throw e; - } - this.match = router.match.bind(router); - this.#routers = [router]; - this.#routes = void 0; - break; - } - if (i === len) { - throw new Error("Fatal error"); - } - this.name = `SmartRouter + ${this.activeRouter.name}`; - return res; - } - get activeRouter() { - if (this.#routes || this.#routers.length !== 1) { - throw new Error("No active router has been determined yet."); - } - return this.#routers[0]; - } -}; - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/router/trie-router/node.js -var emptyParams = /* @__PURE__ */ Object.create(null); -var hasChildren = /* @__PURE__ */ __name((children) => { - for (const _ in children) { - return true; - } - return false; -}, "hasChildren"); -var Node2 = class _Node2 { - static { - __name(this, "_Node"); - } - #methods; - #children; - #patterns; - #order = 0; - #params = emptyParams; - constructor(method, handler, children) { - this.#children = children || /* @__PURE__ */ Object.create(null); - this.#methods = []; - if (method && handler) { - const m = /* @__PURE__ */ Object.create(null); - m[method] = { handler, possibleKeys: [], score: 0 }; - this.#methods = [m]; - } - this.#patterns = []; - } - insert(method, path, handler) { - this.#order = ++this.#order; - let curNode = this; - const parts = splitRoutingPath(path); - const possibleKeys = []; - for (let i = 0, len = parts.length; i < len; i++) { - const p = parts[i]; - const nextP = parts[i + 1]; - const pattern = getPattern(p, nextP); - const key = Array.isArray(pattern) ? pattern[0] : p; - if (key in curNode.#children) { - curNode = curNode.#children[key]; - if (pattern) { - possibleKeys.push(pattern[1]); - } - continue; - } - curNode.#children[key] = new _Node2(); - if (pattern) { - curNode.#patterns.push(pattern); - possibleKeys.push(pattern[1]); - } - curNode = curNode.#children[key]; - } - curNode.#methods.push({ - [method]: { - handler, - possibleKeys: possibleKeys.filter((v, i, a) => a.indexOf(v) === i), - score: this.#order - } - }); - return curNode; - } - #pushHandlerSets(handlerSets, node, method, nodeParams, params) { - for (let i = 0, len = node.#methods.length; i < len; i++) { - const m = node.#methods[i]; - const handlerSet = m[method] || m[METHOD_NAME_ALL]; - const processedSet = {}; - if (handlerSet !== void 0) { - handlerSet.params = /* @__PURE__ */ Object.create(null); - handlerSets.push(handlerSet); - if (nodeParams !== emptyParams || params && params !== emptyParams) { - for (let i2 = 0, len2 = handlerSet.possibleKeys.length; i2 < len2; i2++) { - const key = handlerSet.possibleKeys[i2]; - const processed = processedSet[handlerSet.score]; - handlerSet.params[key] = params?.[key] && !processed ? params[key] : nodeParams[key] ?? params?.[key]; - processedSet[handlerSet.score] = true; - } - } - } - } - } - search(method, path) { - const handlerSets = []; - this.#params = emptyParams; - const curNode = this; - let curNodes = [curNode]; - const parts = splitPath(path); - const curNodesQueue = []; - const len = parts.length; - let partOffsets = null; - for (let i = 0; i < len; i++) { - const part = parts[i]; - const isLast = i === len - 1; - const tempNodes = []; - for (let j = 0, len2 = curNodes.length; j < len2; j++) { - const node = curNodes[j]; - const nextNode = node.#children[part]; - if (nextNode) { - nextNode.#params = node.#params; - if (isLast) { - if (nextNode.#children["*"]) { - this.#pushHandlerSets(handlerSets, nextNode.#children["*"], method, node.#params); - } - this.#pushHandlerSets(handlerSets, nextNode, method, node.#params); - } else { - tempNodes.push(nextNode); - } - } - for (let k = 0, len3 = node.#patterns.length; k < len3; k++) { - const pattern = node.#patterns[k]; - const params = node.#params === emptyParams ? {} : { ...node.#params }; - if (pattern === "*") { - const astNode = node.#children["*"]; - if (astNode) { - this.#pushHandlerSets(handlerSets, astNode, method, node.#params); - astNode.#params = params; - tempNodes.push(astNode); - } - continue; - } - const [key, name, matcher] = pattern; - if (!part && !(matcher instanceof RegExp)) { - continue; - } - const child = node.#children[key]; - if (matcher instanceof RegExp) { - if (partOffsets === null) { - partOffsets = new Array(len); - let offset = path[0] === "/" ? 1 : 0; - for (let p = 0; p < len; p++) { - partOffsets[p] = offset; - offset += parts[p].length + 1; - } - } - const restPathString = path.substring(partOffsets[i]); - const m = matcher.exec(restPathString); - if (m) { - params[name] = m[0]; - this.#pushHandlerSets(handlerSets, child, method, node.#params, params); - if (hasChildren(child.#children)) { - child.#params = params; - const componentCount = m[0].match(/\//)?.length ?? 0; - const targetCurNodes = curNodesQueue[componentCount] ||= []; - targetCurNodes.push(child); - } - continue; - } - } - if (matcher === true || matcher.test(part)) { - params[name] = part; - if (isLast) { - this.#pushHandlerSets(handlerSets, child, method, params, node.#params); - if (child.#children["*"]) { - this.#pushHandlerSets( - handlerSets, - child.#children["*"], - method, - params, - node.#params - ); - } - } else { - child.#params = params; - tempNodes.push(child); - } - } - } - } - const shifted = curNodesQueue.shift(); - curNodes = shifted ? tempNodes.concat(shifted) : tempNodes; - } - if (handlerSets.length > 1) { - handlerSets.sort((a, b) => { - return a.score - b.score; - }); - } - return [handlerSets.map(({ handler, params }) => [handler, params])]; - } -}; - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/router/trie-router/router.js -var TrieRouter = class { - static { - __name(this, "TrieRouter"); - } - name = "TrieRouter"; - #node; - constructor() { - this.#node = new Node2(); - } - add(method, path, handler) { - const results = checkOptionalParameter(path); - if (results) { - for (let i = 0, len = results.length; i < len; i++) { - this.#node.insert(method, results[i], handler); - } - return; - } - this.#node.insert(method, path, handler); - } - match(method, path) { - return this.#node.search(method, path); - } -}; - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/hono.js -var Hono2 = class extends Hono { - static { - __name(this, "Hono"); - } - /** - * Creates an instance of the Hono class. - * - * @param options - Optional configuration options for the Hono instance. - */ - constructor(options = {}) { - super(options); - this.router = options.router ?? new SmartRouter({ - routers: [new RegExpRouter(), new TrieRouter()] - }); - } -}; - -// node_modules/.pnpm/hono@4.12.24/node_modules/hono/dist/middleware/cors/index.js -var cors = /* @__PURE__ */ __name((options) => { - const opts = { - origin: "*", - allowMethods: ["GET", "HEAD", "PUT", "POST", "DELETE", "PATCH"], - allowHeaders: [], - exposeHeaders: [], - ...options - }; - const findAllowOrigin = ((optsOrigin) => { - if (typeof optsOrigin === "string") { - if (optsOrigin === "*") { - if (opts.credentials) { - return (origin) => origin || null; - } - return () => optsOrigin; - } else { - return (origin) => optsOrigin === origin ? origin : null; - } - } else if (typeof optsOrigin === "function") { - return optsOrigin; - } else { - return (origin) => optsOrigin.includes(origin) ? origin : null; - } - })(opts.origin); - const findAllowMethods = ((optsAllowMethods) => { - if (typeof optsAllowMethods === "function") { - return optsAllowMethods; - } else if (Array.isArray(optsAllowMethods)) { - return () => optsAllowMethods; - } else { - return () => []; - } - })(opts.allowMethods); - return /* @__PURE__ */ __name(async function cors2(c, next) { - function set(key, value) { - c.res.headers.set(key, value); - } - __name(set, "set"); - const allowOrigin = await findAllowOrigin(c.req.header("origin") || "", c); - if (allowOrigin) { - set("Access-Control-Allow-Origin", allowOrigin); - } - if (opts.credentials) { - set("Access-Control-Allow-Credentials", "true"); - } - if (opts.exposeHeaders?.length) { - set("Access-Control-Expose-Headers", opts.exposeHeaders.join(",")); - } - if (c.req.method === "OPTIONS") { - if (opts.origin !== "*" || opts.credentials) { - set("Vary", "Origin"); - } - if (opts.maxAge != null) { - set("Access-Control-Max-Age", opts.maxAge.toString()); - } - const allowMethods = await findAllowMethods(c.req.header("origin") || "", c); - if (allowMethods.length) { - set("Access-Control-Allow-Methods", allowMethods.join(",")); - } - let headers = opts.allowHeaders; - if (!headers?.length) { - const requestHeaders = c.req.header("Access-Control-Request-Headers"); - if (requestHeaders) { - headers = requestHeaders.split(/\s*,\s*/); - } - } - if (headers?.length) { - set("Access-Control-Allow-Headers", headers.join(",")); - c.res.headers.append("Vary", "Access-Control-Request-Headers"); - } - c.res.headers.delete("Content-Length"); - c.res.headers.delete("Content-Type"); - return new Response(null, { - headers: c.res.headers, - status: 204, - statusText: "No Content" - }); - } - await next(); - if (opts.origin !== "*" || opts.credentials) { - c.header("Vary", "Origin", { append: true }); - } - }, "cors2"); -}, "cors"); - -// ../../cypher-executor/src/lib/wasi-shim.ts -var WASI_ESUCCESS = 0; -var WASI_ENOSYS = 76; -var FD_STDIN = 0; -var FD_STDOUT = 1; -var FD_STDERR = 2; -function createWasiShim(stdinData, hostFunctions) { - const stdinBytes = new TextEncoder().encode(stdinData); - let stdinOffset = 0; - const stdoutChunks = []; - const stderrChunks = []; - let memory = null; - function getMemoryView() { - if (!memory) throw new Error("WASI memory not set \u2014 call setMemory() after instantiate"); - return new DataView(memory.buffer); - } - __name(getMemoryView, "getMemoryView"); - function writeOut(buf, outPtr, outLenPtr, data) { - try { - new Uint8Array(buf, outPtr, data.length).set(data); - new DataView(buf).setUint32(outLenPtr, data.length, true); - return 0; - } catch { - return 1; - } - } - __name(writeOut, "writeOut"); - function fd_write(fd, iovs, iovs_len, nwritten_ptr) { - if (fd !== FD_STDOUT && fd !== FD_STDERR) return WASI_ENOSYS; - const view = getMemoryView(); - const buf = memory.buffer; - let totalWritten = 0; - for (let i = 0; i < iovs_len; i++) { - const iov_base = view.getUint32(iovs + i * 8, true); - const iov_len = view.getUint32(iovs + i * 8 + 4, true); - if (iov_len === 0) continue; - const chunk = new Uint8Array(buf, iov_base, iov_len); - const copy = new Uint8Array(iov_len); - copy.set(chunk); - if (fd === FD_STDOUT) stdoutChunks.push(copy); - else stderrChunks.push(copy); - totalWritten += iov_len; - } - view.setUint32(nwritten_ptr, totalWritten, true); - return WASI_ESUCCESS; - } - __name(fd_write, "fd_write"); - function fd_read(fd, iovs, iovs_len, nread_ptr) { - if (fd !== FD_STDIN) return WASI_ENOSYS; - const view = getMemoryView(); - const buf = memory.buffer; - let totalRead = 0; - for (let i = 0; i < iovs_len; i++) { - const iov_base = view.getUint32(iovs + i * 8, true); - const iov_len = view.getUint32(iovs + i * 8 + 4, true); - if (iov_len === 0) continue; - const remaining = stdinBytes.length - stdinOffset; - if (remaining <= 0) break; - const toCopy = Math.min(iov_len, remaining); - const dest = new Uint8Array(buf, iov_base, toCopy); - dest.set(stdinBytes.subarray(stdinOffset, stdinOffset + toCopy)); - stdinOffset += toCopy; - totalRead += toCopy; - } - view.setUint32(nread_ptr, totalRead, true); - return WASI_ESUCCESS; - } - __name(fd_read, "fd_read"); - function proc_exit(code) { - throw new Error(`wasm exit: ${code}`); - } - __name(proc_exit, "proc_exit"); - function random_get(buf_ptr, buf_len) { - const view = new Uint8Array(memory.buffer, buf_ptr, buf_len); - crypto.getRandomValues(view); - return WASI_ESUCCESS; - } - __name(random_get, "random_get"); - let asyncifyDataPtr = 0; - const ASYNCIFY_BUF_SIZE = 1024 * 1024; - let asyncifyPendingPromise = null; - let asyncifyResult = 0; - let asyncifyExports = null; - function jspiSuspending(fn) { - const SuspendingCtor = WebAssembly["Suspending"]; - return SuspendingCtor ? new SuspendingCtor(fn) : fn; - } - __name(jspiSuspending, "jspiSuspending"); - function asyncifyWrap(fn) { - return (...args) => { - if (!memory) return 1; - const ax = asyncifyExports; - if (!ax) return 0; - const state = ax.get_state(); - if (state === 2) { - return asyncifyResult; - } - if (state === 1) { - return 0; - } - asyncifyPendingPromise = fn(...args); - ax.start_unwind(asyncifyDataPtr); - return 0; - }; - } - __name(asyncifyWrap, "asyncifyWrap"); - function hostWrap(fn) { - const SuspendingCtor = WebAssembly["Suspending"]; - if (SuspendingCtor) { - return new SuspendingCtor(fn); - } - return asyncifyWrap(fn); - } - __name(hostWrap, "hostWrap"); - const shim = { - imports: { - wasi_snapshot_preview1: { - fd_write, - fd_read, - proc_exit, - random_get, - // 其餘 syscall 回傳 ENOSYS(不允許網路/檔案系統操作) - fd_seek: /* @__PURE__ */ __name(() => WASI_ENOSYS, "fd_seek"), - fd_close: /* @__PURE__ */ __name(() => WASI_ESUCCESS, "fd_close"), - fd_fdstat_get: /* @__PURE__ */ __name(() => WASI_ENOSYS, "fd_fdstat_get"), - fd_prestat_get: /* @__PURE__ */ __name(() => WASI_ENOSYS, "fd_prestat_get"), - fd_prestat_dir_name: /* @__PURE__ */ __name(() => WASI_ENOSYS, "fd_prestat_dir_name"), - environ_get: /* @__PURE__ */ __name(() => WASI_ESUCCESS, "environ_get"), - environ_sizes_get: /* @__PURE__ */ __name((count_ptr, size_ptr) => { - if (memory) { - const view = getMemoryView(); - view.setUint32(count_ptr, 0, true); - view.setUint32(size_ptr, 0, true); - } - return WASI_ESUCCESS; - }, "environ_sizes_get"), - args_get: /* @__PURE__ */ __name(() => WASI_ESUCCESS, "args_get"), - args_sizes_get: /* @__PURE__ */ __name((argc_ptr, argv_buf_size_ptr) => { - if (memory) { - const view = getMemoryView(); - view.setUint32(argc_ptr, 0, true); - view.setUint32(argv_buf_size_ptr, 0, true); - } - return WASI_ESUCCESS; - }, "args_sizes_get"), - clock_time_get: /* @__PURE__ */ __name((id, precision, time_ptr) => { - if (memory) { - const view = getMemoryView(); - const now = BigInt(Date.now()) * 1000000n; - view.setBigUint64(time_ptr, now, true); - } - return WASI_ESUCCESS; - }, "clock_time_get"), - clock_res_get: /* @__PURE__ */ __name(() => WASI_ENOSYS, "clock_res_get"), - poll_oneoff: /* @__PURE__ */ __name(() => WASI_ENOSYS, "poll_oneoff"), - sched_yield: /* @__PURE__ */ __name(() => WASI_ESUCCESS, "sched_yield"), - proc_raise: /* @__PURE__ */ __name(() => WASI_ENOSYS, "proc_raise"), - sock_accept: /* @__PURE__ */ __name(() => WASI_ENOSYS, "sock_accept"), - sock_recv: /* @__PURE__ */ __name(() => WASI_ENOSYS, "sock_recv"), - sock_send: /* @__PURE__ */ __name(() => WASI_ENOSYS, "sock_send"), - sock_shutdown: /* @__PURE__ */ __name(() => WASI_ENOSYS, "sock_shutdown"), - path_open: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_open"), - path_create_directory: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_create_directory"), - path_remove_directory: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_remove_directory"), - path_rename: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_rename"), - path_unlink_file: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_unlink_file"), - path_filestat_get: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_filestat_get"), - path_readlink: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_readlink"), - path_symlink: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_symlink"), - path_link: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_link") - }, - // u6u host functions:讓 .wasm 零件透過 host function 呼叫外部服務 - // .wasm 零件用 //go:wasmimport u6u 宣告 - // 所有 async host function 透過 asyncifyWrap 包裝,實作 asyncify 協議 - u6u: { - http_request: hostFunctions?.http_request ? hostWrap(async (urlPtr, urlLen, methodPtr, methodLen, headersPtr, headersLen, bodyPtr, bodyLen, outPtr, outLenPtr) => { - if (!memory) return 1; - const snapBuf = memory.buffer; - const dec = new TextDecoder(); - const url = dec.decode(new Uint8Array(snapBuf, urlPtr, urlLen)); - const method = dec.decode(new Uint8Array(snapBuf, methodPtr, methodLen)); - const headers = dec.decode(new Uint8Array(snapBuf, headersPtr, headersLen)); - const body = dec.decode(new Uint8Array(snapBuf, bodyPtr, bodyLen)); - try { - const result = await hostFunctions.http_request(url, method, headers, body); - return writeOut(memory.buffer, outPtr, outLenPtr, new TextEncoder().encode(result)); - } catch { - return 1; - } - }) : () => 1, - // kv_get(keyPtr, keyLen, outPtr, outLenPtr) → 0 成功;1 錯誤;2 找不到 key - kv_get: hostFunctions?.kv_get ? hostWrap(async (keyPtr, keyLen, outPtr, outLenPtr) => { - if (!memory) { - console.error("[kv_get] memory null"); - return 1; - } - const key = new TextDecoder().decode(new Uint8Array(memory.buffer, keyPtr, keyLen)); - console.error(`[kv_get] key="${key}" keyPtr=${keyPtr} keyLen=${keyLen} outPtr=${outPtr} outLenPtr=${outLenPtr}`); - try { - const result = await hostFunctions.kv_get(key); - console.error(`[kv_get] result=${result === null ? "null" : result.slice(0, 80)}`); - if (result === null) return 2; - const encoded = new TextEncoder().encode(result); - const status = writeOut(memory.buffer, outPtr, outLenPtr, encoded); - console.error(`[kv_get] writeOut status=${status} encodedLen=${encoded.length} memBufLen=${memory.buffer.byteLength}`); - return status; - } catch (e) { - console.error(`[kv_get] error: ${e}`); - return 1; - } - }) : () => 1, - // secret_get(refPtr, refLen, outPtr, outLenPtr) → 0 成功;1 錯誤;2 找不到 ref - // 與 kv_get 同款 pointer/memory-write 機制;差別只在 host 端實作來源(env[ref] 而非 KV.get)。 - secret_get: hostFunctions?.secret_get ? hostWrap(async (refPtr, refLen, outPtr, outLenPtr) => { - if (!memory) return 1; - const ref2 = new TextDecoder().decode(new Uint8Array(memory.buffer, refPtr, refLen)); - try { - const result = await hostFunctions.secret_get(ref2); - if (result === null) return 2; - const encoded = new TextEncoder().encode(result); - return writeOut(memory.buffer, outPtr, outLenPtr, encoded); - } catch { - return 1; - } - }) : () => 1, - // kv_put(keyPtr, keyLen, valPtr, valLen, ttlSeconds) → 0 成功;1 錯誤 - kv_put: hostFunctions?.kv_put ? hostWrap(async (keyPtr, keyLen, valPtr, valLen, ttlSeconds) => { - if (!memory) return 1; - const dec = new TextDecoder(); - const key = dec.decode(new Uint8Array(memory.buffer, keyPtr, keyLen)); - const value = dec.decode(new Uint8Array(memory.buffer, valPtr, valLen)); - try { - await hostFunctions.kv_put(key, value, ttlSeconds); - return 0; - } catch { - return 1; - } - }) : () => 1, - // crypto_decrypt — 已停用,永遠回 1(失敗)。 - // - // ⚠️ 不能整條移除:現役 auth_static_key / auth_service_account / auth_oauth2 的 - // .wasm 仍宣告 `//go:wasmimport u6u crypto_decrypt`,import 缺項會讓 WASM - // **instantiate 直接失敗**(不是呼叫才失敗)→ 所有認證零件全掛。故保留成 stub, - // 讓連結成立。待三個零件的 Go 原始碼移除該 wasmimport 並重編 wasm 後,才可刪掉這條。 - crypto_decrypt: /* @__PURE__ */ __name(() => 1, "crypto_decrypt"), - // crypto_sign_rs256(dataPtr, dataLen, pkcs8Ptr, pkcs8Len, outPtr, outLenPtr) → 0 成功 - crypto_sign_rs256: hostFunctions?.crypto_sign_rs256 ? hostWrap(async (dataPtr, dataLen, pkcs8Ptr, pkcs8Len, outPtr, outLenPtr) => { - if (!memory) return 1; - const data = new Uint8Array(new Uint8Array(memory.buffer, dataPtr, dataLen)); - const pkcs8 = new Uint8Array(new Uint8Array(memory.buffer, pkcs8Ptr, pkcs8Len)); - try { - const sig = await hostFunctions.crypto_sign_rs256(data, pkcs8); - return writeOut(memory.buffer, outPtr, outLenPtr, sig); - } catch { - return 1; - } - }) : () => 1 - } - }, - setMemory(mem) { - memory = mem; - }, - async run(instance) { - const exp = instance.exports; - const startFn = exp._start ?? exp.main; - if (typeof startFn !== "function") throw new Error("WASM missing _start or main export"); - const promisingFn = WebAssembly["promising"]; - if (promisingFn) { - try { - await promisingFn(startFn)(); - } catch (e) { - if (!(e instanceof Error && e.message === "wasm exit: 0")) throw e; - } - return; - } - const asyncifyGetState = exp.asyncify_get_state; - const asyncifyStartUnwind = exp.asyncify_start_unwind; - const asyncifyStopUnwind = exp.asyncify_stop_unwind; - const asyncifyStartRewind = exp.asyncify_start_rewind; - const asyncifyStopRewind = exp.asyncify_stop_rewind; - if (asyncifyGetState && asyncifyStartUnwind && asyncifyStopUnwind && asyncifyStartRewind && asyncifyStopRewind) { - asyncifyExports = { - get_state: asyncifyGetState, - start_unwind: asyncifyStartUnwind, - stop_unwind: asyncifyStopUnwind, - start_rewind: asyncifyStartRewind, - stop_rewind: asyncifyStopRewind - }; - const mallocFn = exp.malloc; - if (mallocFn && memory) { - const totalSize = ASYNCIFY_BUF_SIZE; - asyncifyDataPtr = mallocFn(totalSize); - const view = new DataView(memory.buffer); - view.setInt32(asyncifyDataPtr, asyncifyDataPtr + 8, true); - view.setInt32(asyncifyDataPtr + 4, asyncifyDataPtr + totalSize, true); - } else if (memory) { - const memBytes = memory.buffer.byteLength; - asyncifyDataPtr = memBytes - ASYNCIFY_BUF_SIZE; - if (asyncifyDataPtr > 8) { - const view = new DataView(memory.buffer); - view.setInt32(asyncifyDataPtr, asyncifyDataPtr + 8, true); - view.setInt32(asyncifyDataPtr + 4, asyncifyDataPtr + ASYNCIFY_BUF_SIZE, true); - } - } - } - if (!asyncifyExports) { - try { - startFn(); - } catch (e) { - if (!(e instanceof Error && e.message === "wasm exit: 0")) throw e; - } - return; - } - let rewinding = false; - while (true) { - asyncifyPendingPromise = null; - try { - if (rewinding) { - asyncifyExports.start_rewind(asyncifyDataPtr); - startFn(); - asyncifyExports.stop_rewind(); - } else { - startFn(); - } - } catch (e) { - if (e instanceof Error && e.message === "wasm exit: 0") break; - throw e; - } - if (asyncifyPendingPromise !== null) { - asyncifyExports.stop_unwind(); - asyncifyResult = await asyncifyPendingPromise; - asyncifyPendingPromise = null; - rewinding = true; - continue; - } - break; - } - }, - getStdout() { - if (stdoutChunks.length === 0) return ""; - const total = stdoutChunks.reduce((n, c) => n + c.length, 0); - const merged = new Uint8Array(total); - let offset = 0; - for (const chunk of stdoutChunks) { - merged.set(chunk, offset); - offset += chunk.length; - } - return new TextDecoder().decode(merged); - }, - getStderr() { - if (stderrChunks.length === 0) return ""; - const total = stderrChunks.reduce((n, c) => n + c.length, 0); - const merged = new Uint8Array(total); - let offset = 0; - for (const chunk of stderrChunks) { - merged.set(chunk, offset); - offset += chunk.length; - } - return new TextDecoder().decode(merged); - } - }; - return shim; -} -__name(createWasiShim, "createWasiShim"); - -// src/index.ts -var app = new Hono2(); -app.use("*", cors()); -app.get("/", (c) => c.json({ ok: true, component: "claude_api", version: "v2-mira-daemon" })); -app.post("/", async (c) => { - let input; - try { - input = await c.req.json(); - } catch { - return c.json({ success: false, error: "request body must be JSON" }, 400); - } - if (!input.mira_token && c.env.MIRA_TOKEN) { - input.mira_token = c.env.MIRA_TOKEN; - } - if (!input.mira_url && c.env.MIRA_URL) { - input.mira_url = c.env.MIRA_URL; - } - try { - const result = await runWasm(input); - return c.json(result); - } catch (e) { - return c.json( - { success: false, error: e instanceof Error ? e.message : String(e) }, - 500 - ); - } -}); -var index_default = app; -async function runWasm(input) { - const hostFunctions = { - http_request: /* @__PURE__ */ __name(async (url, method, headersJson, body) => { - const headers = {}; - if (headersJson) { - try { - const parsed = JSON.parse(headersJson); - if (parsed && typeof parsed === "object") { - for (const [k, v] of Object.entries(parsed)) { - if (typeof v === "string") headers[k] = v; - } - } - } catch { - } - } - const init = { method, headers }; - if (body && method.toUpperCase() !== "GET" && method.toUpperCase() !== "HEAD") { - init.body = body; - } - const res = await fetch(url, init); - const text = await res.text(); - if (!res.ok) { - return JSON.stringify({ error: `HTTP ${res.status}`, status: res.status, body: text }); - } - return text; - }, "http_request") - }; - const shim = createWasiShim(JSON.stringify(input), hostFunctions); - const instance = await WebAssembly.instantiate( - componentWasm, - shim.imports - ); - shim.setMemory(instance.exports.memory); - await shim.run(instance); - const stdout2 = shim.getStdout().trim(); - const stderr2 = shim.getStderr().trim(); - if (stderr2) console.error("[claude_api wasm stderr]", stderr2); - if (!stdout2) throw new Error("WASM component produced no output"); - return JSON.parse(stdout2); -} -__name(runWasm, "runWasm"); -export { - index_default as default -}; -//# sourceMappingURL=index.js.map diff --git a/tier1/code/index.js b/tier1/code/index.js index 39b1f0d..a436e49 100644 --- a/tier1/code/index.js +++ b/tier1/code/index.js @@ -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; diff --git a/tier1/cron/index.js b/tier1/cron/index.js index f81147a..03ea509 100644 --- a/tier1/cron/index.js +++ b/tier1/cron/index.js @@ -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 diff --git a/tier1/date_ops/index.js b/tier1/date_ops/index.js index 5b31137..7e9c55a 100644 --- a/tier1/date_ops/index.js +++ b/tier1/date_ops/index.js @@ -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: "*", diff --git a/tier1/filter/index.js b/tier1/filter/index.js index 9787435..11fb91a 100644 --- a/tier1/filter/index.js +++ b/tier1/filter/index.js @@ -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: "*", diff --git a/tier1/foreach_control/index.js b/tier1/foreach_control/index.js index 9c47e18..1cd0e86 100644 --- a/tier1/foreach_control/index.js +++ b/tier1/foreach_control/index.js @@ -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: "*", diff --git a/tier1/http_request/index.js b/tier1/http_request/index.js index 2b0d7c9..b3b348b 100644 --- a/tier1/http_request/index.js +++ b/tier1/http_request/index.js @@ -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 diff --git a/tier1/if_control/index.js b/tier1/if_control/index.js index d2ad966..02e123e 100644 --- a/tier1/if_control/index.js +++ b/tier1/if_control/index.js @@ -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: "*", diff --git a/tier1/kbdb_upsert_block/af7ad0da60772c753896051f3ebaefd5ddddb878-component.wasm b/tier1/kbdb_upsert_block/af7ad0da60772c753896051f3ebaefd5ddddb878-component.wasm deleted file mode 100644 index 1d0e7dc..0000000 Binary files a/tier1/kbdb_upsert_block/af7ad0da60772c753896051f3ebaefd5ddddb878-component.wasm and /dev/null differ diff --git a/tier1/kbdb_upsert_block/index.js b/tier1/kbdb_upsert_block/index.js deleted file mode 100644 index 16f3271..0000000 --- a/tier1/kbdb_upsert_block/index.js +++ /dev/null @@ -1,3546 +0,0 @@ -var __defProp = Object.defineProperty; -var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); - -// 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!`); -} -__name(createNotImplementedError, "createNotImplementedError"); -// @__NO_SIDE_EFFECTS__ -function notImplemented(name) { - const fn = /* @__PURE__ */ __name(() => { - throw /* @__PURE__ */ createNotImplementedError(name); - }, "fn"); - return Object.assign(fn, { __unenv__: true }); -} -__name(notImplemented, "notImplemented"); -// @__NO_SIDE_EFFECTS__ -function notImplementedClass(name) { - return class { - __unenv__ = true; - constructor() { - throw new Error(`[unenv] ${name} is not implemented yet!`); - } - }; -} -__name(notImplementedClass, "notImplementedClass"); - -// 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 = { - name: "node", - entryType: "node", - startTime: 0, - duration: 0, - nodeStart: 0, - v8Start: 0, - bootstrapComplete: 0, - environment: 0, - loopStart: 0, - loopExit: 0, - idleTime: 0, - uvMetricsInfo: { - loopCount: 0, - events: 0, - eventsWaiting: 0 - }, - detail: void 0, - toJSON() { - return this; - } -}; -var PerformanceEntry = class { - static { - __name(this, "PerformanceEntry"); - } - __unenv__ = true; - detail; - entryType = "event"; - name; - startTime; - constructor(name, options) { - this.name = name; - this.startTime = options?.startTime || _performanceNow(); - this.detail = options?.detail; - } - get duration() { - return _performanceNow() - this.startTime; - } - toJSON() { - return { - name: this.name, - entryType: this.entryType, - startTime: this.startTime, - duration: this.duration, - detail: this.detail - }; - } -}; -var PerformanceMark = class PerformanceMark2 extends PerformanceEntry { - static { - __name(this, "PerformanceMark"); - } - entryType = "mark"; - constructor() { - super(...arguments); - } - get duration() { - return 0; - } -}; -var PerformanceMeasure = class extends PerformanceEntry { - static { - __name(this, "PerformanceMeasure"); - } - entryType = "measure"; -}; -var PerformanceResourceTiming = class extends PerformanceEntry { - static { - __name(this, "PerformanceResourceTiming"); - } - entryType = "resource"; - serverTiming = []; - connectEnd = 0; - connectStart = 0; - decodedBodySize = 0; - domainLookupEnd = 0; - domainLookupStart = 0; - encodedBodySize = 0; - fetchStart = 0; - initiatorType = ""; - name = ""; - nextHopProtocol = ""; - redirectEnd = 0; - redirectStart = 0; - requestStart = 0; - responseEnd = 0; - responseStart = 0; - secureConnectionStart = 0; - startTime = 0; - transferSize = 0; - workerStart = 0; - responseStatus = 0; -}; -var PerformanceObserverEntryList = class { - static { - __name(this, "PerformanceObserverEntryList"); - } - __unenv__ = true; - getEntries() { - return []; - } - getEntriesByName(_name, _type) { - return []; - } - getEntriesByType(type) { - return []; - } -}; -var Performance = class { - static { - __name(this, "Performance"); - } - __unenv__ = true; - timeOrigin = _timeOrigin; - eventCounts = /* @__PURE__ */ new Map(); - _entries = []; - _resourceTimingBufferSize = 0; - navigation = void 0; - timing = void 0; - timerify(_fn, _options) { - throw createNotImplementedError("Performance.timerify"); - } - get nodeTiming() { - return nodeTiming; - } - eventLoopUtilization() { - return {}; - } - markResourceTiming() { - return new PerformanceResourceTiming(""); - } - onresourcetimingbufferfull = null; - now() { - if (this.timeOrigin === _timeOrigin) { - return _performanceNow(); - } - return Date.now() - this.timeOrigin; - } - clearMarks(markName) { - this._entries = markName ? this._entries.filter((e) => e.name !== markName) : this._entries.filter((e) => e.entryType !== "mark"); - } - clearMeasures(measureName) { - this._entries = measureName ? this._entries.filter((e) => e.name !== measureName) : this._entries.filter((e) => e.entryType !== "measure"); - } - clearResourceTimings() { - this._entries = this._entries.filter((e) => e.entryType !== "resource" || e.entryType !== "navigation"); - } - getEntries() { - return this._entries; - } - getEntriesByName(name, type) { - return this._entries.filter((e) => e.name === name && (!type || e.entryType === type)); - } - getEntriesByType(type) { - return this._entries.filter((e) => e.entryType === type); - } - mark(name, options) { - const entry = new PerformanceMark(name, options); - this._entries.push(entry); - return entry; - } - measure(measureName, startOrMeasureOptions, endMark) { - let start; - let end; - if (typeof startOrMeasureOptions === "string") { - start = this.getEntriesByName(startOrMeasureOptions, "mark")[0]?.startTime; - end = this.getEntriesByName(endMark, "mark")[0]?.startTime; - } else { - start = Number.parseFloat(startOrMeasureOptions?.start) || this.now(); - end = Number.parseFloat(startOrMeasureOptions?.end) || this.now(); - } - const entry = new PerformanceMeasure(measureName, { - startTime: start, - detail: { - start, - end - } - }); - this._entries.push(entry); - return entry; - } - setResourceTimingBufferSize(maxSize) { - this._resourceTimingBufferSize = maxSize; - } - addEventListener(type, listener, options) { - throw createNotImplementedError("Performance.addEventListener"); - } - removeEventListener(type, listener, options) { - throw createNotImplementedError("Performance.removeEventListener"); - } - dispatchEvent(event) { - throw createNotImplementedError("Performance.dispatchEvent"); - } - toJSON() { - return this; - } -}; -var PerformanceObserver = class { - static { - __name(this, "PerformanceObserver"); - } - __unenv__ = true; - static supportedEntryTypes = []; - _callback = null; - constructor(callback) { - this._callback = callback; - } - takeRecords() { - return []; - } - disconnect() { - throw createNotImplementedError("PerformanceObserver.disconnect"); - } - observe(options) { - throw createNotImplementedError("PerformanceObserver.observe"); - } - bind(fn) { - return fn; - } - runInAsyncScope(fn, thisArg, ...args) { - return fn.call(thisArg, ...args); - } - asyncId() { - return 0; - } - triggerAsyncId() { - return 0; - } - emitDestroy() { - return this; - } -}; -var performance = globalThis.performance && "addEventListener" in globalThis.performance ? globalThis.performance : new Performance(); - -// node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260508.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)) { - if (key !== "constructor" && !(key in performance)) { - const desc = Object.getOwnPropertyDescriptor(proto, key); - if (desc) { - Object.defineProperty(performance, key, desc); - } - } - } -} -globalThis.performance = performance; -globalThis.Performance = Performance; -globalThis.PerformanceEntry = PerformanceEntry; -globalThis.PerformanceMark = PerformanceMark; -globalThis.PerformanceMeasure = PerformanceMeasure; -globalThis.PerformanceObserver = PerformanceObserver; -globalThis.PerformanceObserverEntryList = PerformanceObserverEntryList; -globalThis.PerformanceResourceTiming = PerformanceResourceTiming; - -// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs -import { Writable } from "node:stream"; - -// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs -var noop_default = Object.assign(() => { -}, { __unenv__: true }); - -// 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(); -var _stdout = new Writable(); -var log = _console?.log ?? noop_default; -var info = _console?.info ?? log; -var trace = _console?.trace ?? info; -var debug = _console?.debug ?? log; -var table = _console?.table ?? log; -var error = _console?.error ?? log; -var warn = _console?.warn ?? error; -var createTask = _console?.createTask ?? /* @__PURE__ */ notImplemented("console.createTask"); -var clear = _console?.clear ?? noop_default; -var count = _console?.count ?? noop_default; -var countReset = _console?.countReset ?? noop_default; -var dir = _console?.dir ?? noop_default; -var dirxml = _console?.dirxml ?? noop_default; -var group = _console?.group ?? noop_default; -var groupEnd = _console?.groupEnd ?? noop_default; -var groupCollapsed = _console?.groupCollapsed ?? noop_default; -var profile = _console?.profile ?? noop_default; -var profileEnd = _console?.profileEnd ?? noop_default; -var time = _console?.time ?? noop_default; -var timeEnd = _console?.timeEnd ?? noop_default; -var timeLog = _console?.timeLog ?? noop_default; -var timeStamp = _console?.timeStamp ?? noop_default; -var Console = _console?.Console ?? /* @__PURE__ */ notImplementedClass("console.Console"); -var _times = /* @__PURE__ */ new Map(); -var _stdoutErrorHandler = noop_default; -var _stderrErrorHandler = noop_default; - -// node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260508.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs -var workerdConsole = globalThis["console"]; -var { - assert, - clear: clear2, - // @ts-expect-error undocumented public API - context, - count: count2, - countReset: countReset2, - // @ts-expect-error undocumented public API - createTask: createTask2, - debug: debug2, - dir: dir2, - dirxml: dirxml2, - error: error2, - group: group2, - groupCollapsed: groupCollapsed2, - groupEnd: groupEnd2, - info: info2, - log: log2, - profile: profile2, - profileEnd: profileEnd2, - table: table2, - time: time2, - timeEnd: timeEnd2, - timeLog: timeLog2, - timeStamp: timeStamp2, - trace: trace2, - warn: warn2 -} = workerdConsole; -Object.assign(workerdConsole, { - Console, - _ignoreErrors, - _stderr, - _stderrErrorHandler, - _stdout, - _stdoutErrorHandler, - _times -}); -var console_default = workerdConsole; - -// node_modules/.pnpm/wrangler@4.90.1_@cloudflare+workers-types@4.20260511.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console -globalThis.console = console_default; - -// 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); - const nanos = now % 1e3 * 1e6; - if (startTime) { - let diffSeconds = seconds - startTime[0]; - let diffNanos = nanos - startTime[0]; - if (diffNanos < 0) { - diffSeconds = diffSeconds - 1; - diffNanos = 1e9 + diffNanos; - } - return [diffSeconds, diffNanos]; - } - return [seconds, nanos]; -}, "hrtime"), { bigint: /* @__PURE__ */ __name(function bigint() { - return BigInt(Date.now() * 1e6); -}, "bigint") }); - -// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs -import { EventEmitter } from "node:events"; - -// 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"); - } - fd; - isRaw = false; - isTTY = false; - constructor(fd) { - this.fd = fd; - } - setRawMode(mode) { - this.isRaw = mode; - return this; - } -}; - -// 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"); - } - fd; - columns = 80; - rows = 24; - isTTY = false; - constructor(fd) { - this.fd = fd; - } - clearLine(dir3, callback) { - callback && callback(); - return false; - } - clearScreenDown(callback) { - callback && callback(); - return false; - } - cursorTo(x, y, callback) { - callback && typeof callback === "function" && callback(); - return false; - } - moveCursor(dx, dy, callback) { - callback && callback(); - return false; - } - getColorDepth(env2) { - return 1; - } - hasColors(count3, env2) { - return false; - } - getWindowSize() { - return [this.columns, this.rows]; - } - write(str, encoding, cb) { - if (str instanceof Uint8Array) { - str = new TextDecoder().decode(str); - } - try { - console.log(str); - } catch { - } - cb && typeof cb === "function" && cb(); - return false; - } -}; - -// 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"; - -// 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"); - } - env; - hrtime; - nextTick; - constructor(impl) { - super(); - this.env = impl.env; - this.hrtime = impl.hrtime; - this.nextTick = impl.nextTick; - for (const prop of [...Object.getOwnPropertyNames(_Process.prototype), ...Object.getOwnPropertyNames(EventEmitter.prototype)]) { - const value = this[prop]; - if (typeof value === "function") { - this[prop] = value.bind(this); - } - } - } - // --- event emitter --- - emitWarning(warning, type, code) { - console.warn(`${code ? `[${code}] ` : ""}${type ? `${type}: ` : ""}${warning}`); - } - emit(...args) { - return super.emit(...args); - } - listeners(eventName) { - return super.listeners(eventName); - } - // --- stdio (lazy initializers) --- - #stdin; - #stdout; - #stderr; - get stdin() { - return this.#stdin ??= new ReadStream(0); - } - get stdout() { - return this.#stdout ??= new WriteStream(1); - } - get stderr() { - return this.#stderr ??= new WriteStream(2); - } - // --- cwd --- - #cwd = "/"; - chdir(cwd2) { - this.#cwd = cwd2; - } - cwd() { - return this.#cwd; - } - // --- dummy props and getters --- - arch = ""; - platform = ""; - argv = []; - argv0 = ""; - execArgv = []; - execPath = ""; - title = ""; - pid = 200; - ppid = 100; - get version() { - return `v${NODE_VERSION}`; - } - get versions() { - return { node: NODE_VERSION }; - } - get allowedNodeEnvironmentFlags() { - return /* @__PURE__ */ new Set(); - } - get sourceMapsEnabled() { - return false; - } - get debugPort() { - return 0; - } - get throwDeprecation() { - return false; - } - get traceDeprecation() { - return false; - } - get features() { - return {}; - } - get release() { - return {}; - } - get connected() { - return false; - } - get config() { - return {}; - } - get moduleLoadList() { - return []; - } - constrainedMemory() { - return 0; - } - availableMemory() { - return 0; - } - uptime() { - return 0; - } - resourceUsage() { - return {}; - } - // --- noop methods --- - ref() { - } - unref() { - } - // --- unimplemented methods --- - umask() { - throw createNotImplementedError("process.umask"); - } - getBuiltinModule() { - return void 0; - } - getActiveResourcesInfo() { - throw createNotImplementedError("process.getActiveResourcesInfo"); - } - exit() { - throw createNotImplementedError("process.exit"); - } - reallyExit() { - throw createNotImplementedError("process.reallyExit"); - } - kill() { - throw createNotImplementedError("process.kill"); - } - abort() { - throw createNotImplementedError("process.abort"); - } - dlopen() { - throw createNotImplementedError("process.dlopen"); - } - setSourceMapsEnabled() { - throw createNotImplementedError("process.setSourceMapsEnabled"); - } - loadEnvFile() { - throw createNotImplementedError("process.loadEnvFile"); - } - disconnect() { - throw createNotImplementedError("process.disconnect"); - } - cpuUsage() { - throw createNotImplementedError("process.cpuUsage"); - } - setUncaughtExceptionCaptureCallback() { - throw createNotImplementedError("process.setUncaughtExceptionCaptureCallback"); - } - hasUncaughtExceptionCaptureCallback() { - throw createNotImplementedError("process.hasUncaughtExceptionCaptureCallback"); - } - initgroups() { - throw createNotImplementedError("process.initgroups"); - } - openStdin() { - throw createNotImplementedError("process.openStdin"); - } - assert() { - throw createNotImplementedError("process.assert"); - } - binding() { - throw createNotImplementedError("process.binding"); - } - // --- attached interfaces --- - permission = { has: /* @__PURE__ */ notImplemented("process.permission.has") }; - report = { - directory: "", - filename: "", - signal: "SIGUSR2", - compact: false, - reportOnFatalError: false, - reportOnSignal: false, - reportOnUncaughtException: false, - getReport: /* @__PURE__ */ notImplemented("process.report.getReport"), - writeReport: /* @__PURE__ */ notImplemented("process.report.writeReport") - }; - finalization = { - register: /* @__PURE__ */ notImplemented("process.finalization.register"), - unregister: /* @__PURE__ */ notImplemented("process.finalization.unregister"), - registerBeforeExit: /* @__PURE__ */ notImplemented("process.finalization.registerBeforeExit") - }; - memoryUsage = Object.assign(() => ({ - arrayBuffers: 0, - rss: 0, - external: 0, - heapTotal: 0, - heapUsed: 0 - }), { rss: /* @__PURE__ */ __name(() => 0, "rss") }); - // --- undefined props --- - mainModule = void 0; - domain = void 0; - // optional - send = void 0; - exitCode = void 0; - channel = void 0; - getegid = void 0; - geteuid = void 0; - getgid = void 0; - getgroups = void 0; - getuid = void 0; - setegid = void 0; - seteuid = void 0; - setgid = void 0; - setgroups = void 0; - setuid = void 0; - // internals - _events = void 0; - _eventsCount = void 0; - _exiting = void 0; - _maxListeners = void 0; - _debugEnd = void 0; - _debugProcess = void 0; - _fatalException = void 0; - _getActiveHandles = void 0; - _getActiveRequests = void 0; - _kill = void 0; - _preload_modules = void 0; - _rawDebug = void 0; - _startProfilerIdleNotifier = void 0; - _stopProfilerIdleNotifier = void 0; - _tickCallback = void 0; - _disconnect = void 0; - _handleQueue = void 0; - _pendingMessage = void 0; - _channel = void 0; - _send = void 0; - _linkedBinding = void 0; -}; - -// node_modules/.pnpm/@cloudflare+unenv-preset@2.16.1_unenv@2.0.0-rc.24_workerd@1.20260508.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs -var globalProcess = globalThis["process"]; -var getBuiltinModule = globalProcess.getBuiltinModule; -var workerdProcess = getBuiltinModule("node:process"); -var unenvProcess = new Process({ - env: globalProcess.env, - hrtime, - // `nextTick` is available from workerd process v1 - nextTick: workerdProcess.nextTick -}); -var { exit, features, platform } = workerdProcess; -var { - _channel, - _debugEnd, - _debugProcess, - _disconnect, - _events, - _eventsCount, - _exiting, - _fatalException, - _getActiveHandles, - _getActiveRequests, - _handleQueue, - _kill, - _linkedBinding, - _maxListeners, - _pendingMessage, - _preload_modules, - _rawDebug, - _send, - _startProfilerIdleNotifier, - _stopProfilerIdleNotifier, - _tickCallback, - abort, - addListener, - allowedNodeEnvironmentFlags, - arch, - argv, - argv0, - assert: assert2, - availableMemory, - binding, - channel, - chdir, - config, - connected, - constrainedMemory, - cpuUsage, - cwd, - debugPort, - disconnect, - dlopen, - domain, - emit, - emitWarning, - env, - eventNames, - execArgv, - execPath, - exitCode, - finalization, - getActiveResourcesInfo, - getegid, - geteuid, - getgid, - getgroups, - getMaxListeners, - getuid, - hasUncaughtExceptionCaptureCallback, - hrtime: hrtime3, - initgroups, - kill, - listenerCount, - listeners, - loadEnvFile, - mainModule, - memoryUsage, - moduleLoadList, - nextTick, - off, - on, - once, - openStdin, - permission, - pid, - ppid, - prependListener, - prependOnceListener, - rawListeners, - reallyExit, - ref, - release, - removeAllListeners, - removeListener, - report, - resourceUsage, - send, - setegid, - seteuid, - setgid, - setgroups, - setMaxListeners, - setSourceMapsEnabled, - setuid, - setUncaughtExceptionCaptureCallback, - sourceMapsEnabled, - stderr, - stdin, - stdout, - throwDeprecation, - title, - traceDeprecation, - umask, - unref, - uptime, - version, - versions -} = unenvProcess; -var _process = { - abort, - addListener, - allowedNodeEnvironmentFlags, - hasUncaughtExceptionCaptureCallback, - setUncaughtExceptionCaptureCallback, - loadEnvFile, - sourceMapsEnabled, - arch, - argv, - argv0, - chdir, - config, - connected, - constrainedMemory, - availableMemory, - cpuUsage, - cwd, - debugPort, - dlopen, - disconnect, - emit, - emitWarning, - env, - eventNames, - execArgv, - execPath, - exit, - finalization, - features, - getBuiltinModule, - getActiveResourcesInfo, - getMaxListeners, - hrtime: hrtime3, - kill, - listeners, - listenerCount, - memoryUsage, - nextTick, - on, - off, - once, - pid, - platform, - ppid, - prependListener, - prependOnceListener, - rawListeners, - release, - removeAllListeners, - removeListener, - report, - resourceUsage, - setMaxListeners, - setSourceMapsEnabled, - stderr, - stdin, - stdout, - title, - throwDeprecation, - traceDeprecation, - umask, - uptime, - version, - versions, - // @ts-expect-error old API - domain, - initgroups, - moduleLoadList, - reallyExit, - openStdin, - assert: assert2, - binding, - send, - exitCode, - channel, - getegid, - geteuid, - getgid, - getgroups, - getuid, - setegid, - seteuid, - setgid, - setgroups, - setuid, - permission, - mainModule, - _events, - _eventsCount, - _exiting, - _maxListeners, - _debugEnd, - _debugProcess, - _fatalException, - _getActiveHandles, - _getActiveRequests, - _kill, - _preload_modules, - _rawDebug, - _startProfilerIdleNotifier, - _stopProfilerIdleNotifier, - _tickCallback, - _disconnect, - _handleQueue, - _pendingMessage, - _channel, - _send, - _linkedBinding -}; -var process_default = _process; - -// node_modules/.pnpm/wrangler@4.90.1_@cloudflare+workers-types@4.20260511.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process -globalThis.process = process_default; - -// src/index.ts -import componentWasm from "./af7ad0da60772c753896051f3ebaefd5ddddb878-component.wasm"; - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/compose.js -var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => { - return (context2, next) => { - let index = -1; - return dispatch(0); - async function dispatch(i) { - if (i <= index) { - throw new Error("next() called multiple times"); - } - index = i; - let res; - let isError = false; - let handler; - if (middleware[i]) { - handler = middleware[i][0][0]; - context2.req.routeIndex = i; - } else { - handler = i === middleware.length && next || void 0; - } - if (handler) { - try { - res = await handler(context2, () => dispatch(i + 1)); - } catch (err) { - if (err instanceof Error && onError) { - context2.error = err; - res = await onError(err, context2); - isError = true; - } else { - throw err; - } - } - } else { - if (context2.finalized === false && onNotFound) { - res = await onNotFound(context2); - } - } - if (res && (context2.finalized === false || isError)) { - context2.res = res; - } - return context2; - } - __name(dispatch, "dispatch"); - }; -}, "compose"); - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/request/constants.js -var GET_MATCH_RESULT = /* @__PURE__ */ Symbol(); - -// node_modules/.pnpm/hono@4.12.18/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; - const contentType = headers.get("Content-Type"); - if (contentType?.startsWith("multipart/form-data") || contentType?.startsWith("application/x-www-form-urlencoded")) { - return parseFormData(request, { all, dot }); - } - return {}; -}, "parseBody"); -async function parseFormData(request, options) { - const formData = await request.formData(); - if (formData) { - return convertFormDataToBodyData(formData, options); - } - return {}; -} -__name(parseFormData, "parseFormData"); -function convertFormDataToBodyData(formData, options) { - const form = /* @__PURE__ */ Object.create(null); - formData.forEach((value, key) => { - const shouldParseAllValues = options.all || key.endsWith("[]"); - if (!shouldParseAllValues) { - form[key] = value; - } else { - handleParsingAllValues(form, key, value); - } - }); - if (options.dot) { - Object.entries(form).forEach(([key, value]) => { - const shouldParseDotValues = key.includes("."); - if (shouldParseDotValues) { - handleParsingNestedValues(form, key, value); - delete form[key]; - } - }); - } - return form; -} -__name(convertFormDataToBodyData, "convertFormDataToBodyData"); -var handleParsingAllValues = /* @__PURE__ */ __name((form, key, value) => { - if (form[key] !== void 0) { - if (Array.isArray(form[key])) { - ; - form[key].push(value); - } else { - form[key] = [form[key], value]; - } - } else { - if (!key.endsWith("[]")) { - form[key] = value; - } else { - form[key] = [value]; - } - } -}, "handleParsingAllValues"); -var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => { - if (/(?:^|\.)__proto__\./.test(key)) { - return; - } - let nestedForm = form; - const keys = key.split("."); - keys.forEach((key2, index) => { - if (index === keys.length - 1) { - nestedForm[key2] = value; - } else { - if (!nestedForm[key2] || typeof nestedForm[key2] !== "object" || Array.isArray(nestedForm[key2]) || nestedForm[key2] instanceof File) { - nestedForm[key2] = /* @__PURE__ */ Object.create(null); - } - nestedForm = nestedForm[key2]; - } - }); -}, "handleParsingNestedValues"); - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/url.js -var splitPath = /* @__PURE__ */ __name((path) => { - const paths = path.split("/"); - if (paths[0] === "") { - paths.shift(); - } - return paths; -}, "splitPath"); -var splitRoutingPath = /* @__PURE__ */ __name((routePath) => { - const { groups, path } = extractGroupsFromPath(routePath); - const paths = splitPath(path); - return replaceGroupMarks(paths, groups); -}, "splitRoutingPath"); -var extractGroupsFromPath = /* @__PURE__ */ __name((path) => { - const groups = []; - path = path.replace(/\{[^}]+\}/g, (match2, index) => { - const mark = `@${index}`; - groups.push([mark, match2]); - return mark; - }); - return { groups, path }; -}, "extractGroupsFromPath"); -var replaceGroupMarks = /* @__PURE__ */ __name((paths, groups) => { - for (let i = groups.length - 1; i >= 0; i--) { - const [mark] = groups[i]; - for (let j = paths.length - 1; j >= 0; j--) { - if (paths[j].includes(mark)) { - paths[j] = paths[j].replace(mark, groups[i][1]); - break; - } - } - } - return paths; -}, "replaceGroupMarks"); -var patternCache = {}; -var getPattern = /* @__PURE__ */ __name((label, next) => { - if (label === "*") { - return "*"; - } - const match2 = label.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/); - if (match2) { - const cacheKey = `${label}#${next}`; - if (!patternCache[cacheKey]) { - if (match2[2]) { - patternCache[cacheKey] = next && next[0] !== ":" && next[0] !== "*" ? [cacheKey, match2[1], new RegExp(`^${match2[2]}(?=/${next})`)] : [label, match2[1], new RegExp(`^${match2[2]}$`)]; - } else { - patternCache[cacheKey] = [label, match2[1], true]; - } - } - return patternCache[cacheKey]; - } - return null; -}, "getPattern"); -var tryDecode = /* @__PURE__ */ __name((str, decoder) => { - try { - return decoder(str); - } catch { - return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (match2) => { - try { - return decoder(match2); - } catch { - return match2; - } - }); - } -}, "tryDecode"); -var tryDecodeURI = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURI), "tryDecodeURI"); -var getPath = /* @__PURE__ */ __name((request) => { - const url = request.url; - const start = url.indexOf("/", url.indexOf(":") + 4); - let i = start; - for (; i < url.length; i++) { - const charCode = url.charCodeAt(i); - if (charCode === 37) { - const queryIndex = url.indexOf("?", i); - const hashIndex = url.indexOf("#", i); - const end = queryIndex === -1 ? hashIndex === -1 ? void 0 : hashIndex : hashIndex === -1 ? queryIndex : Math.min(queryIndex, hashIndex); - const path = url.slice(start, end); - return tryDecodeURI(path.includes("%25") ? path.replace(/%25/g, "%2525") : path); - } else if (charCode === 63 || charCode === 35) { - break; - } - } - return url.slice(start, i); -}, "getPath"); -var getPathNoStrict = /* @__PURE__ */ __name((request) => { - const result = getPath(request); - return result.length > 1 && result.at(-1) === "/" ? result.slice(0, -1) : result; -}, "getPathNoStrict"); -var mergePath = /* @__PURE__ */ __name((base, sub, ...rest) => { - if (rest.length) { - sub = mergePath(sub, ...rest); - } - return `${base?.[0] === "/" ? "" : "/"}${base}${sub === "/" ? "" : `${base?.at(-1) === "/" ? "" : "/"}${sub?.[0] === "/" ? sub.slice(1) : sub}`}`; -}, "mergePath"); -var checkOptionalParameter = /* @__PURE__ */ __name((path) => { - if (path.charCodeAt(path.length - 1) !== 63 || !path.includes(":")) { - return null; - } - const segments = path.split("/"); - const results = []; - let basePath = ""; - segments.forEach((segment) => { - if (segment !== "" && !/\:/.test(segment)) { - basePath += "/" + segment; - } else if (/\:/.test(segment)) { - if (/\?/.test(segment)) { - if (results.length === 0 && basePath === "") { - results.push("/"); - } else { - results.push(basePath); - } - const optionalSegment = segment.replace("?", ""); - basePath += "/" + optionalSegment; - results.push(basePath); - } else { - basePath += "/" + segment; - } - } - }); - return results.filter((v, i, a) => a.indexOf(v) === i); -}, "checkOptionalParameter"); -var _decodeURI = /* @__PURE__ */ __name((value) => { - if (!/[%+]/.test(value)) { - return value; - } - if (value.indexOf("+") !== -1) { - value = value.replace(/\+/g, " "); - } - return value.indexOf("%") !== -1 ? tryDecode(value, decodeURIComponent_) : value; -}, "_decodeURI"); -var _getQueryParam = /* @__PURE__ */ __name((url, key, multiple) => { - let encoded; - if (!multiple && key && !/[%+]/.test(key)) { - let keyIndex2 = url.indexOf("?", 8); - if (keyIndex2 === -1) { - return void 0; - } - if (!url.startsWith(key, keyIndex2 + 1)) { - keyIndex2 = url.indexOf(`&${key}`, keyIndex2 + 1); - } - while (keyIndex2 !== -1) { - const trailingKeyCode = url.charCodeAt(keyIndex2 + key.length + 1); - if (trailingKeyCode === 61) { - const valueIndex = keyIndex2 + key.length + 2; - const endIndex = url.indexOf("&", valueIndex); - return _decodeURI(url.slice(valueIndex, endIndex === -1 ? void 0 : endIndex)); - } else if (trailingKeyCode == 38 || isNaN(trailingKeyCode)) { - return ""; - } - keyIndex2 = url.indexOf(`&${key}`, keyIndex2 + 1); - } - encoded = /[%+]/.test(url); - if (!encoded) { - return void 0; - } - } - const results = {}; - encoded ??= /[%+]/.test(url); - let keyIndex = url.indexOf("?", 8); - while (keyIndex !== -1) { - const nextKeyIndex = url.indexOf("&", keyIndex + 1); - let valueIndex = url.indexOf("=", keyIndex); - if (valueIndex > nextKeyIndex && nextKeyIndex !== -1) { - valueIndex = -1; - } - let name = url.slice( - keyIndex + 1, - valueIndex === -1 ? nextKeyIndex === -1 ? void 0 : nextKeyIndex : valueIndex - ); - if (encoded) { - name = _decodeURI(name); - } - keyIndex = nextKeyIndex; - if (name === "") { - continue; - } - let value; - if (valueIndex === -1) { - value = ""; - } else { - value = url.slice(valueIndex + 1, nextKeyIndex === -1 ? void 0 : nextKeyIndex); - if (encoded) { - value = _decodeURI(value); - } - } - if (multiple) { - if (!(results[name] && Array.isArray(results[name]))) { - results[name] = []; - } - ; - results[name].push(value); - } else { - results[name] ??= value; - } - } - return key ? results[key] : results; -}, "_getQueryParam"); -var getQueryParam = _getQueryParam; -var getQueryParams = /* @__PURE__ */ __name((url, key) => { - return _getQueryParam(url, key, true); -}, "getQueryParams"); -var decodeURIComponent_ = decodeURIComponent; - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/request.js -var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent"); -var HonoRequest = class { - static { - __name(this, "HonoRequest"); - } - /** - * `.raw` can get the raw Request object. - * - * @see {@link https://hono.dev/docs/api/request#raw} - * - * @example - * ```ts - * // For Cloudflare Workers - * app.post('/', async (c) => { - * const metadata = c.req.raw.cf?.hostMetadata? - * ... - * }) - * ``` - */ - raw; - #validatedData; - // Short name of validatedData - #matchResult; - routeIndex = 0; - /** - * `.path` can get the pathname of the request. - * - * @see {@link https://hono.dev/docs/api/request#path} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const pathname = c.req.path // `/about/me` - * }) - * ``` - */ - path; - bodyCache = {}; - constructor(request, path = "/", matchResult = [[]]) { - this.raw = request; - this.path = path; - this.#matchResult = matchResult; - this.#validatedData = {}; - } - param(key) { - return key ? this.#getDecodedParam(key) : this.#getAllDecodedParams(); - } - #getDecodedParam(key) { - const paramKey = this.#matchResult[0][this.routeIndex][1][key]; - const param = this.#getParamValue(paramKey); - return param && /\%/.test(param) ? tryDecodeURIComponent(param) : param; - } - #getAllDecodedParams() { - const decoded = {}; - const keys = Object.keys(this.#matchResult[0][this.routeIndex][1]); - for (const key of keys) { - const value = this.#getParamValue(this.#matchResult[0][this.routeIndex][1][key]); - if (value !== void 0) { - decoded[key] = /\%/.test(value) ? tryDecodeURIComponent(value) : value; - } - } - return decoded; - } - #getParamValue(paramKey) { - return this.#matchResult[1] ? this.#matchResult[1][paramKey] : paramKey; - } - query(key) { - return getQueryParam(this.url, key); - } - queries(key) { - return getQueryParams(this.url, key); - } - header(name) { - if (name) { - return this.raw.headers.get(name) ?? void 0; - } - const headerData = {}; - this.raw.headers.forEach((value, key) => { - headerData[key] = value; - }); - return headerData; - } - async parseBody(options) { - return parseBody(this, options); - } - #cachedBody = /* @__PURE__ */ __name((key) => { - const { bodyCache, raw: raw2 } = this; - const cachedBody = bodyCache[key]; - if (cachedBody) { - return cachedBody; - } - const anyCachedKey = Object.keys(bodyCache)[0]; - if (anyCachedKey) { - return bodyCache[anyCachedKey].then((body) => { - if (anyCachedKey === "json") { - body = JSON.stringify(body); - } - return new Response(body)[key](); - }); - } - return bodyCache[key] = raw2[key](); - }, "#cachedBody"); - /** - * `.json()` can parse Request body of type `application/json` - * - * @see {@link https://hono.dev/docs/api/request#json} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.json() - * }) - * ``` - */ - json() { - return this.#cachedBody("text").then((text) => JSON.parse(text)); - } - /** - * `.text()` can parse Request body of type `text/plain` - * - * @see {@link https://hono.dev/docs/api/request#text} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.text() - * }) - * ``` - */ - text() { - return this.#cachedBody("text"); - } - /** - * `.arrayBuffer()` parse Request body as an `ArrayBuffer` - * - * @see {@link https://hono.dev/docs/api/request#arraybuffer} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.arrayBuffer() - * }) - * ``` - */ - arrayBuffer() { - return this.#cachedBody("arrayBuffer"); - } - /** - * Parses the request body as a `Blob`. - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.blob(); - * }); - * ``` - * @see https://hono.dev/docs/api/request#blob - */ - blob() { - return this.#cachedBody("blob"); - } - /** - * Parses the request body as `FormData`. - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.formData(); - * }); - * ``` - * @see https://hono.dev/docs/api/request#formdata - */ - formData() { - return this.#cachedBody("formData"); - } - /** - * Adds validated data to the request. - * - * @param target - The target of the validation. - * @param data - The validated data to add. - */ - addValidatedData(target, data) { - this.#validatedData[target] = data; - } - valid(target) { - return this.#validatedData[target]; - } - /** - * `.url()` can get the request url strings. - * - * @see {@link https://hono.dev/docs/api/request#url} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const url = c.req.url // `http://localhost:8787/about/me` - * ... - * }) - * ``` - */ - get url() { - return this.raw.url; - } - /** - * `.method()` can get the method name of the request. - * - * @see {@link https://hono.dev/docs/api/request#method} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const method = c.req.method // `GET` - * }) - * ``` - */ - get method() { - return this.raw.method; - } - get [GET_MATCH_RESULT]() { - return this.#matchResult; - } - /** - * `.matchedRoutes()` can return a matched route in the handler - * - * @deprecated - * - * Use matchedRoutes helper defined in "hono/route" instead. - * - * @see {@link https://hono.dev/docs/api/request#matchedroutes} - * - * @example - * ```ts - * app.use('*', async function logger(c, next) { - * await next() - * c.req.matchedRoutes.forEach(({ handler, method, path }, i) => { - * const name = handler.name || (handler.length < 2 ? '[handler]' : '[middleware]') - * console.log( - * method, - * ' ', - * path, - * ' '.repeat(Math.max(10 - path.length, 0)), - * name, - * i === c.req.routeIndex ? '<- respond from here' : '' - * ) - * }) - * }) - * ``` - */ - get matchedRoutes() { - return this.#matchResult[0].map(([[, route]]) => route); - } - /** - * `routePath()` can retrieve the path registered within the handler - * - * @deprecated - * - * Use routePath helper defined in "hono/route" instead. - * - * @see {@link https://hono.dev/docs/api/request#routepath} - * - * @example - * ```ts - * app.get('/posts/:id', (c) => { - * return c.json({ path: c.req.routePath }) - * }) - * ``` - */ - get routePath() { - return this.#matchResult[0].map(([[, route]]) => route)[this.routeIndex].path; - } -}; - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/html.js -var HtmlEscapedCallbackPhase = { - Stringify: 1, - BeforeStream: 2, - Stream: 3 -}; -var raw = /* @__PURE__ */ __name((value, callbacks) => { - const escapedString = new String(value); - escapedString.isEscaped = true; - escapedString.callbacks = callbacks; - return escapedString; -}, "raw"); -var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallbacks, context2, buffer) => { - if (typeof str === "object" && !(str instanceof String)) { - if (!(str instanceof Promise)) { - str = str.toString(); - } - if (str instanceof Promise) { - str = await str; - } - } - const callbacks = str.callbacks; - if (!callbacks?.length) { - return Promise.resolve(str); - } - if (buffer) { - buffer[0] += str; - } else { - buffer = [str]; - } - const resStr = Promise.all(callbacks.map((c) => c({ phase, buffer, context: context2 }))).then( - (res) => Promise.all( - res.filter(Boolean).map((str2) => resolveCallback(str2, phase, false, context2, buffer)) - ).then(() => buffer[0]) - ); - if (preserveCallbacks) { - return raw(await resStr, callbacks); - } else { - return resStr; - } -}, "resolveCallback"); - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/context.js -var TEXT_PLAIN = "text/plain; charset=UTF-8"; -var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => { - return { - "Content-Type": contentType, - ...headers - }; -}, "setDefaultContentType"); -var createResponseInstance = /* @__PURE__ */ __name((body, init) => new Response(body, init), "createResponseInstance"); -var Context = class { - static { - __name(this, "Context"); - } - #rawRequest; - #req; - /** - * `.env` can get bindings (environment variables, secrets, KV namespaces, D1 database, R2 bucket etc.) in Cloudflare Workers. - * - * @see {@link https://hono.dev/docs/api/context#env} - * - * @example - * ```ts - * // Environment object for Cloudflare Workers - * app.get('*', async c => { - * const counter = c.env.COUNTER - * }) - * ``` - */ - env = {}; - #var; - finalized = false; - /** - * `.error` can get the error object from the middleware if the Handler throws an error. - * - * @see {@link https://hono.dev/docs/api/context#error} - * - * @example - * ```ts - * app.use('*', async (c, next) => { - * await next() - * if (c.error) { - * // do something... - * } - * }) - * ``` - */ - error; - #status; - #executionCtx; - #res; - #layout; - #renderer; - #notFoundHandler; - #preparedHeaders; - #matchResult; - #path; - /** - * Creates an instance of the Context class. - * - * @param req - The Request object. - * @param options - Optional configuration options for the context. - */ - constructor(req, options) { - this.#rawRequest = req; - if (options) { - this.#executionCtx = options.executionCtx; - this.env = options.env; - this.#notFoundHandler = options.notFoundHandler; - this.#path = options.path; - this.#matchResult = options.matchResult; - } - } - /** - * `.req` is the instance of {@link HonoRequest}. - */ - get req() { - this.#req ??= new HonoRequest(this.#rawRequest, this.#path, this.#matchResult); - return this.#req; - } - /** - * @see {@link https://hono.dev/docs/api/context#event} - * The FetchEvent associated with the current request. - * - * @throws Will throw an error if the context does not have a FetchEvent. - */ - get event() { - if (this.#executionCtx && "respondWith" in this.#executionCtx) { - return this.#executionCtx; - } else { - throw Error("This context has no FetchEvent"); - } - } - /** - * @see {@link https://hono.dev/docs/api/context#executionctx} - * The ExecutionContext associated with the current request. - * - * @throws Will throw an error if the context does not have an ExecutionContext. - */ - get executionCtx() { - if (this.#executionCtx) { - return this.#executionCtx; - } else { - throw Error("This context has no ExecutionContext"); - } - } - /** - * @see {@link https://hono.dev/docs/api/context#res} - * The Response object for the current request. - */ - get res() { - return this.#res ||= createResponseInstance(null, { - headers: this.#preparedHeaders ??= new Headers() - }); - } - /** - * Sets the Response object for the current request. - * - * @param _res - The Response object to set. - */ - set res(_res) { - if (this.#res && _res) { - _res = createResponseInstance(_res.body, _res); - for (const [k, v] of this.#res.headers.entries()) { - if (k === "content-type") { - continue; - } - if (k === "set-cookie") { - const cookies = this.#res.headers.getSetCookie(); - _res.headers.delete("set-cookie"); - for (const cookie of cookies) { - _res.headers.append("set-cookie", cookie); - } - } else { - _res.headers.set(k, v); - } - } - } - this.#res = _res; - this.finalized = true; - } - /** - * `.render()` can create a response within a layout. - * - * @see {@link https://hono.dev/docs/api/context#render-setrenderer} - * - * @example - * ```ts - * app.get('/', (c) => { - * return c.render('Hello!') - * }) - * ``` - */ - render = /* @__PURE__ */ __name((...args) => { - this.#renderer ??= (content) => this.html(content); - return this.#renderer(...args); - }, "render"); - /** - * Sets the layout for the response. - * - * @param layout - The layout to set. - * @returns The layout function. - */ - setLayout = /* @__PURE__ */ __name((layout) => this.#layout = layout, "setLayout"); - /** - * Gets the current layout for the response. - * - * @returns The current layout function. - */ - getLayout = /* @__PURE__ */ __name(() => this.#layout, "getLayout"); - /** - * `.setRenderer()` can set the layout in the custom middleware. - * - * @see {@link https://hono.dev/docs/api/context#render-setrenderer} - * - * @example - * ```tsx - * app.use('*', async (c, next) => { - * c.setRenderer((content) => { - * return c.html( - * - * - *

{content}

- * - * - * ) - * }) - * await next() - * }) - * ``` - */ - setRenderer = /* @__PURE__ */ __name((renderer) => { - this.#renderer = renderer; - }, "setRenderer"); - /** - * `.header()` can set headers. - * - * @see {@link https://hono.dev/docs/api/context#header} - * - * @example - * ```ts - * app.get('/welcome', (c) => { - * // Set headers - * c.header('X-Message', 'Hello!') - * c.header('Content-Type', 'text/plain') - * - * return c.body('Thank you for coming') - * }) - * ``` - */ - header = /* @__PURE__ */ __name((name, value, options) => { - if (this.finalized) { - this.#res = createResponseInstance(this.#res.body, this.#res); - } - const headers = this.#res ? this.#res.headers : this.#preparedHeaders ??= new Headers(); - if (value === void 0) { - headers.delete(name); - } else if (options?.append) { - headers.append(name, value); - } else { - headers.set(name, value); - } - }, "header"); - status = /* @__PURE__ */ __name((status) => { - this.#status = status; - }, "status"); - /** - * `.set()` can set the value specified by the key. - * - * @see {@link https://hono.dev/docs/api/context#set-get} - * - * @example - * ```ts - * app.use('*', async (c, next) => { - * c.set('message', 'Hono is hot!!') - * await next() - * }) - * ``` - */ - set = /* @__PURE__ */ __name((key, value) => { - this.#var ??= /* @__PURE__ */ new Map(); - this.#var.set(key, value); - }, "set"); - /** - * `.get()` can use the value specified by the key. - * - * @see {@link https://hono.dev/docs/api/context#set-get} - * - * @example - * ```ts - * app.get('/', (c) => { - * const message = c.get('message') - * return c.text(`The message is "${message}"`) - * }) - * ``` - */ - get = /* @__PURE__ */ __name((key) => { - return this.#var ? this.#var.get(key) : void 0; - }, "get"); - /** - * `.var` can access the value of a variable. - * - * @see {@link https://hono.dev/docs/api/context#var} - * - * @example - * ```ts - * const result = c.var.client.oneMethod() - * ``` - */ - // c.var.propName is a read-only - get var() { - if (!this.#var) { - return {}; - } - return Object.fromEntries(this.#var); - } - #newResponse(data, arg, headers) { - const responseHeaders = this.#res ? new Headers(this.#res.headers) : this.#preparedHeaders ?? new Headers(); - if (typeof arg === "object" && "headers" in arg) { - const argHeaders = arg.headers instanceof Headers ? arg.headers : new Headers(arg.headers); - for (const [key, value] of argHeaders) { - if (key.toLowerCase() === "set-cookie") { - responseHeaders.append(key, value); - } else { - responseHeaders.set(key, value); - } - } - } - if (headers) { - for (const [k, v] of Object.entries(headers)) { - if (typeof v === "string") { - responseHeaders.set(k, v); - } else { - responseHeaders.delete(k); - for (const v2 of v) { - responseHeaders.append(k, v2); - } - } - } - } - const status = typeof arg === "number" ? arg : arg?.status ?? this.#status; - return createResponseInstance(data, { status, headers: responseHeaders }); - } - newResponse = /* @__PURE__ */ __name((...args) => this.#newResponse(...args), "newResponse"); - /** - * `.body()` can return the HTTP response. - * You can set headers with `.header()` and set HTTP status code with `.status`. - * This can also be set in `.text()`, `.json()` and so on. - * - * @see {@link https://hono.dev/docs/api/context#body} - * - * @example - * ```ts - * app.get('/welcome', (c) => { - * // Set headers - * c.header('X-Message', 'Hello!') - * c.header('Content-Type', 'text/plain') - * // Set HTTP status code - * c.status(201) - * - * // Return the response body - * return c.body('Thank you for coming') - * }) - * ``` - */ - body = /* @__PURE__ */ __name((data, arg, headers) => this.#newResponse(data, arg, headers), "body"); - /** - * `.text()` can render text as `Content-Type:text/plain`. - * - * @see {@link https://hono.dev/docs/api/context#text} - * - * @example - * ```ts - * app.get('/say', (c) => { - * return c.text('Hello!') - * }) - * ``` - */ - text = /* @__PURE__ */ __name((text, arg, headers) => { - return !this.#preparedHeaders && !this.#status && !arg && !headers && !this.finalized ? new Response(text) : this.#newResponse( - text, - arg, - setDefaultContentType(TEXT_PLAIN, headers) - ); - }, "text"); - /** - * `.json()` can render JSON as `Content-Type:application/json`. - * - * @see {@link https://hono.dev/docs/api/context#json} - * - * @example - * ```ts - * app.get('/api', (c) => { - * return c.json({ message: 'Hello!' }) - * }) - * ``` - */ - json = /* @__PURE__ */ __name((object, arg, headers) => { - return this.#newResponse( - JSON.stringify(object), - arg, - setDefaultContentType("application/json", headers) - ); - }, "json"); - html = /* @__PURE__ */ __name((html, arg, headers) => { - const res = /* @__PURE__ */ __name((html2) => this.#newResponse(html2, arg, setDefaultContentType("text/html; charset=UTF-8", headers)), "res"); - return typeof html === "object" ? resolveCallback(html, HtmlEscapedCallbackPhase.Stringify, false, {}).then(res) : res(html); - }, "html"); - /** - * `.redirect()` can Redirect, default status code is 302. - * - * @see {@link https://hono.dev/docs/api/context#redirect} - * - * @example - * ```ts - * app.get('/redirect', (c) => { - * return c.redirect('/') - * }) - * app.get('/redirect-permanently', (c) => { - * return c.redirect('/', 301) - * }) - * ``` - */ - redirect = /* @__PURE__ */ __name((location, status) => { - const locationString = String(location); - this.header( - "Location", - // Multibyes should be encoded - // eslint-disable-next-line no-control-regex - !/[^\x00-\xFF]/.test(locationString) ? locationString : encodeURI(locationString) - ); - return this.newResponse(null, status ?? 302); - }, "redirect"); - /** - * `.notFound()` can return the Not Found Response. - * - * @see {@link https://hono.dev/docs/api/context#notfound} - * - * @example - * ```ts - * app.get('/notfound', (c) => { - * return c.notFound() - * }) - * ``` - */ - notFound = /* @__PURE__ */ __name(() => { - this.#notFoundHandler ??= () => createResponseInstance(); - return this.#notFoundHandler(this); - }, "notFound"); -}; - -// node_modules/.pnpm/hono@4.12.18/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"]; -var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is already built."; -var UnsupportedPathError = class extends Error { - static { - __name(this, "UnsupportedPathError"); - } -}; - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/constants.js -var COMPOSED_HANDLER = "__COMPOSED_HANDLER"; - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/hono-base.js -var notFoundHandler = /* @__PURE__ */ __name((c) => { - return c.text("404 Not Found", 404); -}, "notFoundHandler"); -var errorHandler = /* @__PURE__ */ __name((err, c) => { - if ("getResponse" in err) { - const res = err.getResponse(); - return c.newResponse(res.body, res); - } - console.error(err); - return c.text("Internal Server Error", 500); -}, "errorHandler"); -var Hono = class _Hono { - static { - __name(this, "_Hono"); - } - get; - post; - put; - delete; - options; - patch; - all; - on; - use; - /* - This class is like an abstract class and does not have a router. - To use it, inherit the class and implement router in the constructor. - */ - router; - getPath; - // Cannot use `#` because it requires visibility at JavaScript runtime. - _basePath = "/"; - #path = "/"; - routes = []; - constructor(options = {}) { - const allMethods = [...METHODS, METHOD_NAME_ALL_LOWERCASE]; - allMethods.forEach((method) => { - this[method] = (args1, ...args) => { - if (typeof args1 === "string") { - this.#path = args1; - } else { - this.#addRoute(method, this.#path, args1); - } - args.forEach((handler) => { - this.#addRoute(method, this.#path, handler); - }); - return this; - }; - }); - this.on = (method, path, ...handlers) => { - for (const p of [path].flat()) { - this.#path = p; - for (const m of [method].flat()) { - handlers.map((handler) => { - this.#addRoute(m.toUpperCase(), this.#path, handler); - }); - } - } - return this; - }; - this.use = (arg1, ...handlers) => { - if (typeof arg1 === "string") { - this.#path = arg1; - } else { - this.#path = "*"; - handlers.unshift(arg1); - } - handlers.forEach((handler) => { - this.#addRoute(METHOD_NAME_ALL, this.#path, handler); - }); - return this; - }; - const { strict, ...optionsWithoutStrict } = options; - Object.assign(this, optionsWithoutStrict); - this.getPath = strict ?? true ? options.getPath ?? getPath : getPathNoStrict; - } - #clone() { - const clone = new _Hono({ - router: this.router, - getPath: this.getPath - }); - clone.errorHandler = this.errorHandler; - clone.#notFoundHandler = this.#notFoundHandler; - clone.routes = this.routes; - return clone; - } - #notFoundHandler = notFoundHandler; - // Cannot use `#` because it requires visibility at JavaScript runtime. - errorHandler = errorHandler; - /** - * `.route()` allows grouping other Hono instance in routes. - * - * @see {@link https://hono.dev/docs/api/routing#grouping} - * - * @param {string} path - base Path - * @param {Hono} app - other Hono instance - * @returns {Hono} routed Hono instance - * - * @example - * ```ts - * const app = new Hono() - * const app2 = new Hono() - * - * app2.get("/user", (c) => c.text("user")) - * app.route("/api", app2) // GET /api/user - * ``` - */ - route(path, app2) { - const subApp = this.basePath(path); - app2.routes.map((r) => { - let handler; - if (app2.errorHandler === errorHandler) { - handler = r.handler; - } else { - handler = /* @__PURE__ */ __name(async (c, next) => (await compose([], app2.errorHandler)(c, () => r.handler(c, next))).res, "handler"); - handler[COMPOSED_HANDLER] = r.handler; - } - subApp.#addRoute(r.method, r.path, handler); - }); - return this; - } - /** - * `.basePath()` allows base paths to be specified. - * - * @see {@link https://hono.dev/docs/api/routing#base-path} - * - * @param {string} path - base Path - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * const api = new Hono().basePath('/api') - * ``` - */ - basePath(path) { - const subApp = this.#clone(); - subApp._basePath = mergePath(this._basePath, path); - return subApp; - } - /** - * `.onError()` handles an error and returns a customized Response. - * - * @see {@link https://hono.dev/docs/api/hono#error-handling} - * - * @param {ErrorHandler} handler - request Handler for error - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * app.onError((err, c) => { - * console.error(`${err}`) - * return c.text('Custom Error Message', 500) - * }) - * ``` - */ - onError = /* @__PURE__ */ __name((handler) => { - this.errorHandler = handler; - return this; - }, "onError"); - /** - * `.notFound()` allows you to customize a Not Found Response. - * - * @see {@link https://hono.dev/docs/api/hono#not-found} - * - * @param {NotFoundHandler} handler - request handler for not-found - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * app.notFound((c) => { - * return c.text('Custom 404 Message', 404) - * }) - * ``` - */ - notFound = /* @__PURE__ */ __name((handler) => { - this.#notFoundHandler = handler; - return this; - }, "notFound"); - /** - * `.mount()` allows you to mount applications built with other frameworks into your Hono application. - * - * @see {@link https://hono.dev/docs/api/hono#mount} - * - * @param {string} path - base Path - * @param {Function} applicationHandler - other Request Handler - * @param {MountOptions} [options] - options of `.mount()` - * @returns {Hono} mounted Hono instance - * - * @example - * ```ts - * import { Router as IttyRouter } from 'itty-router' - * import { Hono } from 'hono' - * // Create itty-router application - * const ittyRouter = IttyRouter() - * // GET /itty-router/hello - * ittyRouter.get('/hello', () => new Response('Hello from itty-router')) - * - * const app = new Hono() - * app.mount('/itty-router', ittyRouter.handle) - * ``` - * - * @example - * ```ts - * const app = new Hono() - * // Send the request to another application without modification. - * app.mount('/app', anotherApp, { - * replaceRequest: (req) => req, - * }) - * ``` - */ - mount(path, applicationHandler, options) { - let replaceRequest; - let optionHandler; - if (options) { - if (typeof options === "function") { - optionHandler = options; - } else { - optionHandler = options.optionHandler; - if (options.replaceRequest === false) { - replaceRequest = /* @__PURE__ */ __name((request) => request, "replaceRequest"); - } else { - replaceRequest = options.replaceRequest; - } - } - } - const getOptions = optionHandler ? (c) => { - const options2 = optionHandler(c); - return Array.isArray(options2) ? options2 : [options2]; - } : (c) => { - let executionContext = void 0; - try { - executionContext = c.executionCtx; - } catch { - } - return [c.env, executionContext]; - }; - replaceRequest ||= (() => { - const mergedPath = mergePath(this._basePath, path); - const pathPrefixLength = mergedPath === "/" ? 0 : mergedPath.length; - return (request) => { - const url = new URL(request.url); - url.pathname = url.pathname.slice(pathPrefixLength) || "/"; - return new Request(url, request); - }; - })(); - const handler = /* @__PURE__ */ __name(async (c, next) => { - const res = await applicationHandler(replaceRequest(c.req.raw), ...getOptions(c)); - if (res) { - return res; - } - await next(); - }, "handler"); - this.#addRoute(METHOD_NAME_ALL, mergePath(path, "*"), handler); - return this; - } - #addRoute(method, path, handler) { - method = method.toUpperCase(); - path = mergePath(this._basePath, path); - const r = { basePath: this._basePath, path, method, handler }; - this.router.add(method, path, [handler, r]); - this.routes.push(r); - } - #handleError(err, c) { - if (err instanceof Error) { - return this.errorHandler(err, c); - } - throw err; - } - #dispatch(request, executionCtx, env2, method) { - if (method === "HEAD") { - return (async () => new Response(null, await this.#dispatch(request, executionCtx, env2, "GET")))(); - } - const path = this.getPath(request, { env: env2 }); - const matchResult = this.router.match(method, path); - const c = new Context(request, { - path, - matchResult, - env: env2, - executionCtx, - notFoundHandler: this.#notFoundHandler - }); - if (matchResult[0].length === 1) { - let res; - try { - res = matchResult[0][0][0][0](c, async () => { - c.res = await this.#notFoundHandler(c); - }); - } catch (err) { - return this.#handleError(err, c); - } - return res instanceof Promise ? res.then( - (resolved) => resolved || (c.finalized ? c.res : this.#notFoundHandler(c)) - ).catch((err) => this.#handleError(err, c)) : res ?? this.#notFoundHandler(c); - } - const composed = compose(matchResult[0], this.errorHandler, this.#notFoundHandler); - return (async () => { - try { - const context2 = await composed(c); - if (!context2.finalized) { - throw new Error( - "Context is not finalized. Did you forget to return a Response object or `await next()`?" - ); - } - return context2.res; - } catch (err) { - return this.#handleError(err, c); - } - })(); - } - /** - * `.fetch()` will be entry point of your app. - * - * @see {@link https://hono.dev/docs/api/hono#fetch} - * - * @param {Request} request - request Object of request - * @param {Env} Env - env Object - * @param {ExecutionContext} - context of execution - * @returns {Response | Promise} response of request - * - */ - fetch = /* @__PURE__ */ __name((request, ...rest) => { - return this.#dispatch(request, rest[1], rest[0], request.method); - }, "fetch"); - /** - * `.request()` is a useful method for testing. - * You can pass a URL or pathname to send a GET request. - * app will return a Response object. - * ```ts - * test('GET /hello is ok', async () => { - * const res = await app.request('/hello') - * expect(res.status).toBe(200) - * }) - * ``` - * @see https://hono.dev/docs/api/hono#request - */ - request = /* @__PURE__ */ __name((input, requestInit, Env, executionCtx) => { - if (input instanceof Request) { - return this.fetch(requestInit ? new Request(input, requestInit) : input, Env, executionCtx); - } - input = input.toString(); - return this.fetch( - new Request( - /^https?:\/\//.test(input) ? input : `http://localhost${mergePath("/", input)}`, - requestInit - ), - Env, - executionCtx - ); - }, "request"); - /** - * `.fire()` automatically adds a global fetch event listener. - * This can be useful for environments that adhere to the Service Worker API, such as non-ES module Cloudflare Workers. - * @deprecated - * Use `fire` from `hono/service-worker` instead. - * ```ts - * import { Hono } from 'hono' - * import { fire } from 'hono/service-worker' - * - * const app = new Hono() - * // ... - * fire(app) - * ``` - * @see https://hono.dev/docs/api/hono#fire - * @see https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API - * @see https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ - */ - fire = /* @__PURE__ */ __name(() => { - addEventListener("fetch", (event) => { - event.respondWith(this.#dispatch(event.request, event, void 0, event.request.method)); - }); - }, "fire"); -}; - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/router/reg-exp-router/matcher.js -var emptyParam = []; -function match(method, path) { - const matchers = this.buildAllMatchers(); - const match2 = /* @__PURE__ */ __name(((method2, path2) => { - const matcher = matchers[method2] || matchers[METHOD_NAME_ALL]; - const staticMatch = matcher[2][path2]; - if (staticMatch) { - return staticMatch; - } - const match3 = path2.match(matcher[0]); - if (!match3) { - return [[], emptyParam]; - } - const index = match3.indexOf("", 1); - return [matcher[1][index], match3]; - }), "match2"); - this.match = match2; - return match2(method, path); -} -__name(match, "match"); - -// node_modules/.pnpm/hono@4.12.18/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 = "(?:|/.*)"; -var PATH_ERROR = /* @__PURE__ */ Symbol(); -var regExpMetaChars = new Set(".\\+*[^]$()"); -function compareKey(a, b) { - if (a.length === 1) { - return b.length === 1 ? a < b ? -1 : 1 : -1; - } - if (b.length === 1) { - return 1; - } - if (a === ONLY_WILDCARD_REG_EXP_STR || a === TAIL_WILDCARD_REG_EXP_STR) { - return 1; - } else if (b === ONLY_WILDCARD_REG_EXP_STR || b === TAIL_WILDCARD_REG_EXP_STR) { - return -1; - } - if (a === LABEL_REG_EXP_STR) { - return 1; - } else if (b === LABEL_REG_EXP_STR) { - return -1; - } - return a.length === b.length ? a < b ? -1 : 1 : b.length - a.length; -} -__name(compareKey, "compareKey"); -var Node = class _Node { - static { - __name(this, "_Node"); - } - #index; - #varIndex; - #children = /* @__PURE__ */ Object.create(null); - insert(tokens, index, paramMap, context2, pathErrorCheckOnly) { - if (tokens.length === 0) { - if (this.#index !== void 0) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - this.#index = index; - return; - } - const [token, ...restTokens] = tokens; - const pattern = token === "*" ? restTokens.length === 0 ? ["", "", ONLY_WILDCARD_REG_EXP_STR] : ["", "", LABEL_REG_EXP_STR] : token === "/*" ? ["", "", TAIL_WILDCARD_REG_EXP_STR] : token.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/); - let node; - if (pattern) { - const name = pattern[1]; - let regexpStr = pattern[2] || LABEL_REG_EXP_STR; - if (name && pattern[2]) { - if (regexpStr === ".*") { - throw PATH_ERROR; - } - regexpStr = regexpStr.replace(/^\((?!\?:)(?=[^)]+\)$)/, "(?:"); - if (/\((?!\?:)/.test(regexpStr)) { - throw PATH_ERROR; - } - } - node = this.#children[regexpStr]; - if (!node) { - if (Object.keys(this.#children).some( - (k) => k !== ONLY_WILDCARD_REG_EXP_STR && k !== TAIL_WILDCARD_REG_EXP_STR - )) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - node = this.#children[regexpStr] = new _Node(); - if (name !== "") { - node.#varIndex = context2.varIndex++; - } - } - if (!pathErrorCheckOnly && name !== "") { - paramMap.push([name, node.#varIndex]); - } - } else { - node = this.#children[token]; - if (!node) { - if (Object.keys(this.#children).some( - (k) => k.length > 1 && k !== ONLY_WILDCARD_REG_EXP_STR && k !== TAIL_WILDCARD_REG_EXP_STR - )) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - node = this.#children[token] = new _Node(); - } - } - node.insert(restTokens, index, paramMap, context2, pathErrorCheckOnly); - } - buildRegExpStr() { - const childKeys = Object.keys(this.#children).sort(compareKey); - const strList = childKeys.map((k) => { - const c = this.#children[k]; - return (typeof c.#varIndex === "number" ? `(${k})@${c.#varIndex}` : regExpMetaChars.has(k) ? `\\${k}` : k) + c.buildRegExpStr(); - }); - if (typeof this.#index === "number") { - strList.unshift(`#${this.#index}`); - } - if (strList.length === 0) { - return ""; - } - if (strList.length === 1) { - return strList[0]; - } - return "(?:" + strList.join("|") + ")"; - } -}; - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/router/reg-exp-router/trie.js -var Trie = class { - static { - __name(this, "Trie"); - } - #context = { varIndex: 0 }; - #root = new Node(); - insert(path, index, pathErrorCheckOnly) { - const paramAssoc = []; - const groups = []; - for (let i = 0; ; ) { - let replaced = false; - path = path.replace(/\{[^}]+\}/g, (m) => { - const mark = `@\\${i}`; - groups[i] = [mark, m]; - i++; - replaced = true; - return mark; - }); - if (!replaced) { - break; - } - } - const tokens = path.match(/(?::[^\/]+)|(?:\/\*$)|./g) || []; - for (let i = groups.length - 1; i >= 0; i--) { - const [mark] = groups[i]; - for (let j = tokens.length - 1; j >= 0; j--) { - if (tokens[j].indexOf(mark) !== -1) { - tokens[j] = tokens[j].replace(mark, groups[i][1]); - break; - } - } - } - this.#root.insert(tokens, index, paramAssoc, this.#context, pathErrorCheckOnly); - return paramAssoc; - } - buildRegExp() { - let regexp = this.#root.buildRegExpStr(); - if (regexp === "") { - return [/^$/, [], []]; - } - let captureIndex = 0; - const indexReplacementMap = []; - const paramReplacementMap = []; - regexp = regexp.replace(/#(\d+)|@(\d+)|\.\*\$/g, (_, handlerIndex, paramIndex) => { - if (handlerIndex !== void 0) { - indexReplacementMap[++captureIndex] = Number(handlerIndex); - return "$()"; - } - if (paramIndex !== void 0) { - paramReplacementMap[Number(paramIndex)] = ++captureIndex; - return ""; - } - return ""; - }); - return [new RegExp(`^${regexp}`), indexReplacementMap, paramReplacementMap]; - } -}; - -// node_modules/.pnpm/hono@4.12.18/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) { - return wildcardRegExpCache[path] ??= new RegExp( - path === "*" ? "" : `^${path.replace( - /\/\*$|([.\\+*[^\]$()])/g, - (_, metaChar) => metaChar ? `\\${metaChar}` : "(?:|/.*)" - )}$` - ); -} -__name(buildWildcardRegExp, "buildWildcardRegExp"); -function clearWildcardRegExpCache() { - wildcardRegExpCache = /* @__PURE__ */ Object.create(null); -} -__name(clearWildcardRegExpCache, "clearWildcardRegExpCache"); -function buildMatcherFromPreprocessedRoutes(routes) { - const trie = new Trie(); - const handlerData = []; - if (routes.length === 0) { - return nullMatcher; - } - const routesWithStaticPathFlag = routes.map( - (route) => [!/\*|\/:/.test(route[0]), ...route] - ).sort( - ([isStaticA, pathA], [isStaticB, pathB]) => isStaticA ? 1 : isStaticB ? -1 : pathA.length - pathB.length - ); - const staticMap = /* @__PURE__ */ Object.create(null); - for (let i = 0, j = -1, len = routesWithStaticPathFlag.length; i < len; i++) { - const [pathErrorCheckOnly, path, handlers] = routesWithStaticPathFlag[i]; - if (pathErrorCheckOnly) { - staticMap[path] = [handlers.map(([h]) => [h, /* @__PURE__ */ Object.create(null)]), emptyParam]; - } else { - j++; - } - let paramAssoc; - try { - paramAssoc = trie.insert(path, j, pathErrorCheckOnly); - } catch (e) { - throw e === PATH_ERROR ? new UnsupportedPathError(path) : e; - } - if (pathErrorCheckOnly) { - continue; - } - handlerData[j] = handlers.map(([h, paramCount]) => { - const paramIndexMap = /* @__PURE__ */ Object.create(null); - paramCount -= 1; - for (; paramCount >= 0; paramCount--) { - const [key, value] = paramAssoc[paramCount]; - paramIndexMap[key] = value; - } - return [h, paramIndexMap]; - }); - } - const [regexp, indexReplacementMap, paramReplacementMap] = trie.buildRegExp(); - for (let i = 0, len = handlerData.length; i < len; i++) { - for (let j = 0, len2 = handlerData[i].length; j < len2; j++) { - const map = handlerData[i][j]?.[1]; - if (!map) { - continue; - } - const keys = Object.keys(map); - for (let k = 0, len3 = keys.length; k < len3; k++) { - map[keys[k]] = paramReplacementMap[map[keys[k]]]; - } - } - } - const handlerMap = []; - for (const i in indexReplacementMap) { - handlerMap[i] = handlerData[indexReplacementMap[i]]; - } - return [regexp, handlerMap, staticMap]; -} -__name(buildMatcherFromPreprocessedRoutes, "buildMatcherFromPreprocessedRoutes"); -function findMiddleware(middleware, path) { - if (!middleware) { - return void 0; - } - for (const k of Object.keys(middleware).sort((a, b) => b.length - a.length)) { - if (buildWildcardRegExp(k).test(path)) { - return [...middleware[k]]; - } - } - return void 0; -} -__name(findMiddleware, "findMiddleware"); -var RegExpRouter = class { - static { - __name(this, "RegExpRouter"); - } - name = "RegExpRouter"; - #middleware; - #routes; - constructor() { - this.#middleware = { [METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) }; - this.#routes = { [METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) }; - } - add(method, path, handler) { - const middleware = this.#middleware; - const routes = this.#routes; - if (!middleware || !routes) { - throw new Error(MESSAGE_MATCHER_IS_ALREADY_BUILT); - } - if (!middleware[method]) { - ; - [middleware, routes].forEach((handlerMap) => { - handlerMap[method] = /* @__PURE__ */ Object.create(null); - Object.keys(handlerMap[METHOD_NAME_ALL]).forEach((p) => { - handlerMap[method][p] = [...handlerMap[METHOD_NAME_ALL][p]]; - }); - }); - } - if (path === "/*") { - path = "*"; - } - const paramCount = (path.match(/\/:/g) || []).length; - if (/\*$/.test(path)) { - const re = buildWildcardRegExp(path); - if (method === METHOD_NAME_ALL) { - Object.keys(middleware).forEach((m) => { - middleware[m][path] ||= findMiddleware(middleware[m], path) || findMiddleware(middleware[METHOD_NAME_ALL], path) || []; - }); - } else { - middleware[method][path] ||= findMiddleware(middleware[method], path) || findMiddleware(middleware[METHOD_NAME_ALL], path) || []; - } - Object.keys(middleware).forEach((m) => { - if (method === METHOD_NAME_ALL || method === m) { - Object.keys(middleware[m]).forEach((p) => { - re.test(p) && middleware[m][p].push([handler, paramCount]); - }); - } - }); - Object.keys(routes).forEach((m) => { - if (method === METHOD_NAME_ALL || method === m) { - Object.keys(routes[m]).forEach( - (p) => re.test(p) && routes[m][p].push([handler, paramCount]) - ); - } - }); - return; - } - const paths = checkOptionalParameter(path) || [path]; - for (let i = 0, len = paths.length; i < len; i++) { - const path2 = paths[i]; - Object.keys(routes).forEach((m) => { - if (method === METHOD_NAME_ALL || method === m) { - routes[m][path2] ||= [ - ...findMiddleware(middleware[m], path2) || findMiddleware(middleware[METHOD_NAME_ALL], path2) || [] - ]; - routes[m][path2].push([handler, paramCount - len + i + 1]); - } - }); - } - } - match = match; - buildAllMatchers() { - const matchers = /* @__PURE__ */ Object.create(null); - Object.keys(this.#routes).concat(Object.keys(this.#middleware)).forEach((method) => { - matchers[method] ||= this.#buildMatcher(method); - }); - this.#middleware = this.#routes = void 0; - clearWildcardRegExpCache(); - return matchers; - } - #buildMatcher(method) { - const routes = []; - let hasOwnRoute = method === METHOD_NAME_ALL; - [this.#middleware, this.#routes].forEach((r) => { - const ownRoute = r[method] ? Object.keys(r[method]).map((path) => [path, r[method][path]]) : []; - if (ownRoute.length !== 0) { - hasOwnRoute ||= true; - routes.push(...ownRoute); - } else if (method !== METHOD_NAME_ALL) { - routes.push( - ...Object.keys(r[METHOD_NAME_ALL]).map((path) => [path, r[METHOD_NAME_ALL][path]]) - ); - } - }); - if (!hasOwnRoute) { - return null; - } else { - return buildMatcherFromPreprocessedRoutes(routes); - } - } -}; - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/router/smart-router/router.js -var SmartRouter = class { - static { - __name(this, "SmartRouter"); - } - name = "SmartRouter"; - #routers = []; - #routes = []; - constructor(init) { - this.#routers = init.routers; - } - add(method, path, handler) { - if (!this.#routes) { - throw new Error(MESSAGE_MATCHER_IS_ALREADY_BUILT); - } - this.#routes.push([method, path, handler]); - } - match(method, path) { - if (!this.#routes) { - throw new Error("Fatal error"); - } - const routers = this.#routers; - const routes = this.#routes; - const len = routers.length; - let i = 0; - let res; - for (; i < len; i++) { - const router = routers[i]; - try { - for (let i2 = 0, len2 = routes.length; i2 < len2; i2++) { - router.add(...routes[i2]); - } - res = router.match(method, path); - } catch (e) { - if (e instanceof UnsupportedPathError) { - continue; - } - throw e; - } - this.match = router.match.bind(router); - this.#routers = [router]; - this.#routes = void 0; - break; - } - if (i === len) { - throw new Error("Fatal error"); - } - this.name = `SmartRouter + ${this.activeRouter.name}`; - return res; - } - get activeRouter() { - if (this.#routes || this.#routers.length !== 1) { - throw new Error("No active router has been determined yet."); - } - return this.#routers[0]; - } -}; - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/router/trie-router/node.js -var emptyParams = /* @__PURE__ */ Object.create(null); -var hasChildren = /* @__PURE__ */ __name((children) => { - for (const _ in children) { - return true; - } - return false; -}, "hasChildren"); -var Node2 = class _Node2 { - static { - __name(this, "_Node"); - } - #methods; - #children; - #patterns; - #order = 0; - #params = emptyParams; - constructor(method, handler, children) { - this.#children = children || /* @__PURE__ */ Object.create(null); - this.#methods = []; - if (method && handler) { - const m = /* @__PURE__ */ Object.create(null); - m[method] = { handler, possibleKeys: [], score: 0 }; - this.#methods = [m]; - } - this.#patterns = []; - } - insert(method, path, handler) { - this.#order = ++this.#order; - let curNode = this; - const parts = splitRoutingPath(path); - const possibleKeys = []; - for (let i = 0, len = parts.length; i < len; i++) { - const p = parts[i]; - const nextP = parts[i + 1]; - const pattern = getPattern(p, nextP); - const key = Array.isArray(pattern) ? pattern[0] : p; - if (key in curNode.#children) { - curNode = curNode.#children[key]; - if (pattern) { - possibleKeys.push(pattern[1]); - } - continue; - } - curNode.#children[key] = new _Node2(); - if (pattern) { - curNode.#patterns.push(pattern); - possibleKeys.push(pattern[1]); - } - curNode = curNode.#children[key]; - } - curNode.#methods.push({ - [method]: { - handler, - possibleKeys: possibleKeys.filter((v, i, a) => a.indexOf(v) === i), - score: this.#order - } - }); - return curNode; - } - #pushHandlerSets(handlerSets, node, method, nodeParams, params) { - for (let i = 0, len = node.#methods.length; i < len; i++) { - const m = node.#methods[i]; - const handlerSet = m[method] || m[METHOD_NAME_ALL]; - const processedSet = {}; - if (handlerSet !== void 0) { - handlerSet.params = /* @__PURE__ */ Object.create(null); - handlerSets.push(handlerSet); - if (nodeParams !== emptyParams || params && params !== emptyParams) { - for (let i2 = 0, len2 = handlerSet.possibleKeys.length; i2 < len2; i2++) { - const key = handlerSet.possibleKeys[i2]; - const processed = processedSet[handlerSet.score]; - handlerSet.params[key] = params?.[key] && !processed ? params[key] : nodeParams[key] ?? params?.[key]; - processedSet[handlerSet.score] = true; - } - } - } - } - } - search(method, path) { - const handlerSets = []; - this.#params = emptyParams; - const curNode = this; - let curNodes = [curNode]; - const parts = splitPath(path); - const curNodesQueue = []; - const len = parts.length; - let partOffsets = null; - for (let i = 0; i < len; i++) { - const part = parts[i]; - const isLast = i === len - 1; - const tempNodes = []; - for (let j = 0, len2 = curNodes.length; j < len2; j++) { - const node = curNodes[j]; - const nextNode = node.#children[part]; - if (nextNode) { - nextNode.#params = node.#params; - if (isLast) { - if (nextNode.#children["*"]) { - this.#pushHandlerSets(handlerSets, nextNode.#children["*"], method, node.#params); - } - this.#pushHandlerSets(handlerSets, nextNode, method, node.#params); - } else { - tempNodes.push(nextNode); - } - } - for (let k = 0, len3 = node.#patterns.length; k < len3; k++) { - const pattern = node.#patterns[k]; - const params = node.#params === emptyParams ? {} : { ...node.#params }; - if (pattern === "*") { - const astNode = node.#children["*"]; - if (astNode) { - this.#pushHandlerSets(handlerSets, astNode, method, node.#params); - astNode.#params = params; - tempNodes.push(astNode); - } - continue; - } - const [key, name, matcher] = pattern; - if (!part && !(matcher instanceof RegExp)) { - continue; - } - const child = node.#children[key]; - if (matcher instanceof RegExp) { - if (partOffsets === null) { - partOffsets = new Array(len); - let offset = path[0] === "/" ? 1 : 0; - for (let p = 0; p < len; p++) { - partOffsets[p] = offset; - offset += parts[p].length + 1; - } - } - const restPathString = path.substring(partOffsets[i]); - const m = matcher.exec(restPathString); - if (m) { - params[name] = m[0]; - this.#pushHandlerSets(handlerSets, child, method, node.#params, params); - if (hasChildren(child.#children)) { - child.#params = params; - const componentCount = m[0].match(/\//)?.length ?? 0; - const targetCurNodes = curNodesQueue[componentCount] ||= []; - targetCurNodes.push(child); - } - continue; - } - } - if (matcher === true || matcher.test(part)) { - params[name] = part; - if (isLast) { - this.#pushHandlerSets(handlerSets, child, method, params, node.#params); - if (child.#children["*"]) { - this.#pushHandlerSets( - handlerSets, - child.#children["*"], - method, - params, - node.#params - ); - } - } else { - child.#params = params; - tempNodes.push(child); - } - } - } - } - const shifted = curNodesQueue.shift(); - curNodes = shifted ? tempNodes.concat(shifted) : tempNodes; - } - if (handlerSets.length > 1) { - handlerSets.sort((a, b) => { - return a.score - b.score; - }); - } - return [handlerSets.map(({ handler, params }) => [handler, params])]; - } -}; - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/router/trie-router/router.js -var TrieRouter = class { - static { - __name(this, "TrieRouter"); - } - name = "TrieRouter"; - #node; - constructor() { - this.#node = new Node2(); - } - add(method, path, handler) { - const results = checkOptionalParameter(path); - if (results) { - for (let i = 0, len = results.length; i < len; i++) { - this.#node.insert(method, results[i], handler); - } - return; - } - this.#node.insert(method, path, handler); - } - match(method, path) { - return this.#node.search(method, path); - } -}; - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/hono.js -var Hono2 = class extends Hono { - static { - __name(this, "Hono"); - } - /** - * Creates an instance of the Hono class. - * - * @param options - Optional configuration options for the Hono instance. - */ - constructor(options = {}) { - super(options); - this.router = options.router ?? new SmartRouter({ - routers: [new RegExpRouter(), new TrieRouter()] - }); - } -}; - -// node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/middleware/cors/index.js -var cors = /* @__PURE__ */ __name((options) => { - const opts = { - origin: "*", - allowMethods: ["GET", "HEAD", "PUT", "POST", "DELETE", "PATCH"], - allowHeaders: [], - exposeHeaders: [], - ...options - }; - const findAllowOrigin = ((optsOrigin) => { - if (typeof optsOrigin === "string") { - if (optsOrigin === "*") { - if (opts.credentials) { - return (origin) => origin || null; - } - return () => optsOrigin; - } else { - return (origin) => optsOrigin === origin ? origin : null; - } - } else if (typeof optsOrigin === "function") { - return optsOrigin; - } else { - return (origin) => optsOrigin.includes(origin) ? origin : null; - } - })(opts.origin); - const findAllowMethods = ((optsAllowMethods) => { - if (typeof optsAllowMethods === "function") { - return optsAllowMethods; - } else if (Array.isArray(optsAllowMethods)) { - return () => optsAllowMethods; - } else { - return () => []; - } - })(opts.allowMethods); - return /* @__PURE__ */ __name(async function cors2(c, next) { - function set(key, value) { - c.res.headers.set(key, value); - } - __name(set, "set"); - const allowOrigin = await findAllowOrigin(c.req.header("origin") || "", c); - if (allowOrigin) { - set("Access-Control-Allow-Origin", allowOrigin); - } - if (opts.credentials) { - set("Access-Control-Allow-Credentials", "true"); - } - if (opts.exposeHeaders?.length) { - set("Access-Control-Expose-Headers", opts.exposeHeaders.join(",")); - } - if (c.req.method === "OPTIONS") { - if (opts.origin !== "*" || opts.credentials) { - set("Vary", "Origin"); - } - if (opts.maxAge != null) { - set("Access-Control-Max-Age", opts.maxAge.toString()); - } - const allowMethods = await findAllowMethods(c.req.header("origin") || "", c); - if (allowMethods.length) { - set("Access-Control-Allow-Methods", allowMethods.join(",")); - } - let headers = opts.allowHeaders; - if (!headers?.length) { - const requestHeaders = c.req.header("Access-Control-Request-Headers"); - if (requestHeaders) { - headers = requestHeaders.split(/\s*,\s*/); - } - } - if (headers?.length) { - set("Access-Control-Allow-Headers", headers.join(",")); - c.res.headers.append("Vary", "Access-Control-Request-Headers"); - } - c.res.headers.delete("Content-Length"); - c.res.headers.delete("Content-Type"); - return new Response(null, { - headers: c.res.headers, - status: 204, - statusText: "No Content" - }); - } - await next(); - if (opts.origin !== "*" || opts.credentials) { - c.header("Vary", "Origin", { append: true }); - } - }, "cors2"); -}, "cors"); - -// ../../cypher-executor/src/lib/wasi-shim.ts -var WASI_ESUCCESS = 0; -var WASI_ENOSYS = 76; -var FD_STDIN = 0; -var FD_STDOUT = 1; -var FD_STDERR = 2; -function createWasiShim(stdinData, hostFunctions) { - const stdinBytes = new TextEncoder().encode(stdinData); - let stdinOffset = 0; - const stdoutChunks = []; - const stderrChunks = []; - let memory = null; - function getMemoryView() { - if (!memory) throw new Error("WASI memory not set \u2014 call setMemory() after instantiate"); - return new DataView(memory.buffer); - } - __name(getMemoryView, "getMemoryView"); - function writeOut(buf, outPtr, outLenPtr, data) { - try { - new Uint8Array(buf, outPtr, data.length).set(data); - new DataView(buf).setUint32(outLenPtr, data.length, true); - return 0; - } catch { - return 1; - } - } - __name(writeOut, "writeOut"); - function fd_write(fd, iovs, iovs_len, nwritten_ptr) { - if (fd !== FD_STDOUT && fd !== FD_STDERR) return WASI_ENOSYS; - const view = getMemoryView(); - const buf = memory.buffer; - let totalWritten = 0; - for (let i = 0; i < iovs_len; i++) { - const iov_base = view.getUint32(iovs + i * 8, true); - const iov_len = view.getUint32(iovs + i * 8 + 4, true); - if (iov_len === 0) continue; - const chunk = new Uint8Array(buf, iov_base, iov_len); - const copy = new Uint8Array(iov_len); - copy.set(chunk); - if (fd === FD_STDOUT) stdoutChunks.push(copy); - else stderrChunks.push(copy); - totalWritten += iov_len; - } - view.setUint32(nwritten_ptr, totalWritten, true); - return WASI_ESUCCESS; - } - __name(fd_write, "fd_write"); - function fd_read(fd, iovs, iovs_len, nread_ptr) { - if (fd !== FD_STDIN) return WASI_ENOSYS; - const view = getMemoryView(); - const buf = memory.buffer; - let totalRead = 0; - for (let i = 0; i < iovs_len; i++) { - const iov_base = view.getUint32(iovs + i * 8, true); - const iov_len = view.getUint32(iovs + i * 8 + 4, true); - if (iov_len === 0) continue; - const remaining = stdinBytes.length - stdinOffset; - if (remaining <= 0) break; - const toCopy = Math.min(iov_len, remaining); - const dest = new Uint8Array(buf, iov_base, toCopy); - dest.set(stdinBytes.subarray(stdinOffset, stdinOffset + toCopy)); - stdinOffset += toCopy; - totalRead += toCopy; - } - view.setUint32(nread_ptr, totalRead, true); - return WASI_ESUCCESS; - } - __name(fd_read, "fd_read"); - function proc_exit(code) { - throw new Error(`wasm exit: ${code}`); - } - __name(proc_exit, "proc_exit"); - function random_get(buf_ptr, buf_len) { - const view = new Uint8Array(memory.buffer, buf_ptr, buf_len); - crypto.getRandomValues(view); - return WASI_ESUCCESS; - } - __name(random_get, "random_get"); - let asyncifyDataPtr = 0; - const ASYNCIFY_BUF_SIZE = 1024 * 1024; - let asyncifyPendingPromise = null; - let asyncifyResult = 0; - let asyncifyExports = null; - function jspiSuspending(fn) { - const SuspendingCtor = WebAssembly["Suspending"]; - return SuspendingCtor ? new SuspendingCtor(fn) : fn; - } - __name(jspiSuspending, "jspiSuspending"); - function asyncifyWrap(fn) { - return (...args) => { - if (!memory) return 1; - const ax = asyncifyExports; - if (!ax) return 0; - const state = ax.get_state(); - if (state === 2) { - return asyncifyResult; - } - if (state === 1) { - return 0; - } - asyncifyPendingPromise = fn(...args); - ax.start_unwind(asyncifyDataPtr); - return 0; - }; - } - __name(asyncifyWrap, "asyncifyWrap"); - function hostWrap(fn) { - const SuspendingCtor = WebAssembly["Suspending"]; - if (SuspendingCtor) { - return new SuspendingCtor(fn); - } - return asyncifyWrap(fn); - } - __name(hostWrap, "hostWrap"); - const shim = { - imports: { - wasi_snapshot_preview1: { - fd_write, - fd_read, - proc_exit, - random_get, - // 其餘 syscall 回傳 ENOSYS(不允許網路/檔案系統操作) - fd_seek: /* @__PURE__ */ __name(() => WASI_ENOSYS, "fd_seek"), - fd_close: /* @__PURE__ */ __name(() => WASI_ESUCCESS, "fd_close"), - fd_fdstat_get: /* @__PURE__ */ __name(() => WASI_ENOSYS, "fd_fdstat_get"), - fd_prestat_get: /* @__PURE__ */ __name(() => WASI_ENOSYS, "fd_prestat_get"), - fd_prestat_dir_name: /* @__PURE__ */ __name(() => WASI_ENOSYS, "fd_prestat_dir_name"), - environ_get: /* @__PURE__ */ __name(() => WASI_ESUCCESS, "environ_get"), - environ_sizes_get: /* @__PURE__ */ __name((count_ptr, size_ptr) => { - if (memory) { - const view = getMemoryView(); - view.setUint32(count_ptr, 0, true); - view.setUint32(size_ptr, 0, true); - } - return WASI_ESUCCESS; - }, "environ_sizes_get"), - args_get: /* @__PURE__ */ __name(() => WASI_ESUCCESS, "args_get"), - args_sizes_get: /* @__PURE__ */ __name((argc_ptr, argv_buf_size_ptr) => { - if (memory) { - const view = getMemoryView(); - view.setUint32(argc_ptr, 0, true); - view.setUint32(argv_buf_size_ptr, 0, true); - } - return WASI_ESUCCESS; - }, "args_sizes_get"), - clock_time_get: /* @__PURE__ */ __name((id, precision, time_ptr) => { - if (memory) { - const view = getMemoryView(); - const now = BigInt(Date.now()) * 1000000n; - view.setBigUint64(time_ptr, now, true); - } - return WASI_ESUCCESS; - }, "clock_time_get"), - clock_res_get: /* @__PURE__ */ __name(() => WASI_ENOSYS, "clock_res_get"), - poll_oneoff: /* @__PURE__ */ __name(() => WASI_ENOSYS, "poll_oneoff"), - sched_yield: /* @__PURE__ */ __name(() => WASI_ESUCCESS, "sched_yield"), - proc_raise: /* @__PURE__ */ __name(() => WASI_ENOSYS, "proc_raise"), - sock_accept: /* @__PURE__ */ __name(() => WASI_ENOSYS, "sock_accept"), - sock_recv: /* @__PURE__ */ __name(() => WASI_ENOSYS, "sock_recv"), - sock_send: /* @__PURE__ */ __name(() => WASI_ENOSYS, "sock_send"), - sock_shutdown: /* @__PURE__ */ __name(() => WASI_ENOSYS, "sock_shutdown"), - path_open: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_open"), - path_create_directory: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_create_directory"), - path_remove_directory: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_remove_directory"), - path_rename: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_rename"), - path_unlink_file: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_unlink_file"), - path_filestat_get: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_filestat_get"), - path_readlink: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_readlink"), - path_symlink: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_symlink"), - path_link: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_link") - }, - // u6u host functions:讓 .wasm 零件透過 host function 呼叫外部服務 - // .wasm 零件用 //go:wasmimport u6u 宣告 - // 所有 async host function 透過 asyncifyWrap 包裝,實作 asyncify 協議 - u6u: { - http_request: hostFunctions?.http_request ? hostWrap(async (urlPtr, urlLen, methodPtr, methodLen, headersPtr, headersLen, bodyPtr, bodyLen, outPtr, outLenPtr) => { - if (!memory) return 1; - const snapBuf = memory.buffer; - const dec = new TextDecoder(); - const url = dec.decode(new Uint8Array(snapBuf, urlPtr, urlLen)); - const method = dec.decode(new Uint8Array(snapBuf, methodPtr, methodLen)); - const headers = dec.decode(new Uint8Array(snapBuf, headersPtr, headersLen)); - const body = dec.decode(new Uint8Array(snapBuf, bodyPtr, bodyLen)); - try { - const result = await hostFunctions.http_request(url, method, headers, body); - return writeOut(memory.buffer, outPtr, outLenPtr, new TextEncoder().encode(result)); - } catch { - return 1; - } - }) : () => 1, - // kv_get(keyPtr, keyLen, outPtr, outLenPtr) → 0 成功;1 錯誤;2 找不到 key - kv_get: hostFunctions?.kv_get ? hostWrap(async (keyPtr, keyLen, outPtr, outLenPtr) => { - if (!memory) { - console.error("[kv_get] memory null"); - return 1; - } - const key = new TextDecoder().decode(new Uint8Array(memory.buffer, keyPtr, keyLen)); - console.error(`[kv_get] key="${key}" keyPtr=${keyPtr} keyLen=${keyLen} outPtr=${outPtr} outLenPtr=${outLenPtr}`); - try { - const result = await hostFunctions.kv_get(key); - console.error(`[kv_get] result=${result === null ? "null" : result.slice(0, 80)}`); - if (result === null) return 2; - const encoded = new TextEncoder().encode(result); - const status = writeOut(memory.buffer, outPtr, outLenPtr, encoded); - console.error(`[kv_get] writeOut status=${status} encodedLen=${encoded.length} memBufLen=${memory.buffer.byteLength}`); - return status; - } catch (e) { - console.error(`[kv_get] error: ${e}`); - return 1; - } - }) : () => 1, - // secret_get(refPtr, refLen, outPtr, outLenPtr) → 0 成功;1 錯誤;2 找不到 ref - // 與 kv_get 同款 pointer/memory-write 機制;差別只在 host 端實作來源(env[ref] 而非 KV.get)。 - secret_get: hostFunctions?.secret_get ? hostWrap(async (refPtr, refLen, outPtr, outLenPtr) => { - if (!memory) return 1; - const ref2 = new TextDecoder().decode(new Uint8Array(memory.buffer, refPtr, refLen)); - try { - const result = await hostFunctions.secret_get(ref2); - if (result === null) return 2; - const encoded = new TextEncoder().encode(result); - return writeOut(memory.buffer, outPtr, outLenPtr, encoded); - } catch { - return 1; - } - }) : () => 1, - // kv_put(keyPtr, keyLen, valPtr, valLen, ttlSeconds) → 0 成功;1 錯誤 - kv_put: hostFunctions?.kv_put ? hostWrap(async (keyPtr, keyLen, valPtr, valLen, ttlSeconds) => { - if (!memory) return 1; - const dec = new TextDecoder(); - const key = dec.decode(new Uint8Array(memory.buffer, keyPtr, keyLen)); - const value = dec.decode(new Uint8Array(memory.buffer, valPtr, valLen)); - try { - await hostFunctions.kv_put(key, value, ttlSeconds); - return 0; - } catch { - return 1; - } - }) : () => 1, - // crypto_decrypt — 已停用,永遠回 1(失敗)。 - // - // ⚠️ 不能整條移除:現役 auth_static_key / auth_service_account / auth_oauth2 的 - // .wasm 仍宣告 `//go:wasmimport u6u crypto_decrypt`,import 缺項會讓 WASM - // **instantiate 直接失敗**(不是呼叫才失敗)→ 所有認證零件全掛。故保留成 stub, - // 讓連結成立。待三個零件的 Go 原始碼移除該 wasmimport 並重編 wasm 後,才可刪掉這條。 - crypto_decrypt: /* @__PURE__ */ __name(() => 1, "crypto_decrypt"), - // crypto_sign_rs256(dataPtr, dataLen, pkcs8Ptr, pkcs8Len, outPtr, outLenPtr) → 0 成功 - crypto_sign_rs256: hostFunctions?.crypto_sign_rs256 ? hostWrap(async (dataPtr, dataLen, pkcs8Ptr, pkcs8Len, outPtr, outLenPtr) => { - if (!memory) return 1; - const data = new Uint8Array(new Uint8Array(memory.buffer, dataPtr, dataLen)); - const pkcs8 = new Uint8Array(new Uint8Array(memory.buffer, pkcs8Ptr, pkcs8Len)); - try { - const sig = await hostFunctions.crypto_sign_rs256(data, pkcs8); - return writeOut(memory.buffer, outPtr, outLenPtr, sig); - } catch { - return 1; - } - }) : () => 1 - } - }, - setMemory(mem) { - memory = mem; - }, - async run(instance) { - const exp = instance.exports; - const startFn = exp._start ?? exp.main; - if (typeof startFn !== "function") throw new Error("WASM missing _start or main export"); - const promisingFn = WebAssembly["promising"]; - if (promisingFn) { - try { - await promisingFn(startFn)(); - } catch (e) { - if (!(e instanceof Error && e.message === "wasm exit: 0")) throw e; - } - return; - } - const asyncifyGetState = exp.asyncify_get_state; - const asyncifyStartUnwind = exp.asyncify_start_unwind; - const asyncifyStopUnwind = exp.asyncify_stop_unwind; - const asyncifyStartRewind = exp.asyncify_start_rewind; - const asyncifyStopRewind = exp.asyncify_stop_rewind; - if (asyncifyGetState && asyncifyStartUnwind && asyncifyStopUnwind && asyncifyStartRewind && asyncifyStopRewind) { - asyncifyExports = { - get_state: asyncifyGetState, - start_unwind: asyncifyStartUnwind, - stop_unwind: asyncifyStopUnwind, - start_rewind: asyncifyStartRewind, - stop_rewind: asyncifyStopRewind - }; - const mallocFn = exp.malloc; - if (mallocFn && memory) { - const totalSize = ASYNCIFY_BUF_SIZE; - asyncifyDataPtr = mallocFn(totalSize); - const view = new DataView(memory.buffer); - view.setInt32(asyncifyDataPtr, asyncifyDataPtr + 8, true); - view.setInt32(asyncifyDataPtr + 4, asyncifyDataPtr + totalSize, true); - } else if (memory) { - const memBytes = memory.buffer.byteLength; - asyncifyDataPtr = memBytes - ASYNCIFY_BUF_SIZE; - if (asyncifyDataPtr > 8) { - const view = new DataView(memory.buffer); - view.setInt32(asyncifyDataPtr, asyncifyDataPtr + 8, true); - view.setInt32(asyncifyDataPtr + 4, asyncifyDataPtr + ASYNCIFY_BUF_SIZE, true); - } - } - } - if (!asyncifyExports) { - try { - startFn(); - } catch (e) { - if (!(e instanceof Error && e.message === "wasm exit: 0")) throw e; - } - return; - } - let rewinding = false; - while (true) { - asyncifyPendingPromise = null; - try { - if (rewinding) { - asyncifyExports.start_rewind(asyncifyDataPtr); - startFn(); - asyncifyExports.stop_rewind(); - } else { - startFn(); - } - } catch (e) { - if (e instanceof Error && e.message === "wasm exit: 0") break; - throw e; - } - if (asyncifyPendingPromise !== null) { - asyncifyExports.stop_unwind(); - asyncifyResult = await asyncifyPendingPromise; - asyncifyPendingPromise = null; - rewinding = true; - continue; - } - break; - } - }, - getStdout() { - if (stdoutChunks.length === 0) return ""; - const total = stdoutChunks.reduce((n, c) => n + c.length, 0); - const merged = new Uint8Array(total); - let offset = 0; - for (const chunk of stdoutChunks) { - merged.set(chunk, offset); - offset += chunk.length; - } - return new TextDecoder().decode(merged); - }, - getStderr() { - if (stderrChunks.length === 0) return ""; - const total = stderrChunks.reduce((n, c) => n + c.length, 0); - const merged = new Uint8Array(total); - let offset = 0; - for (const chunk of stderrChunks) { - merged.set(chunk, offset); - offset += chunk.length; - } - return new TextDecoder().decode(merged); - } - }; - return shim; -} -__name(createWasiShim, "createWasiShim"); - -// src/index.ts -var app = new Hono2(); -app.use("*", cors()); -app.get("/", (c) => c.json({ ok: true, component: "kbdb_upsert_block" })); -app.post("/", async (c) => { - let input; - try { - input = await c.req.json(); - } catch { - return c.json({ success: false, error: "request body must be JSON" }, 400); - } - try { - const result = await runWasm(input); - return c.json(result); - } catch (e) { - return c.json( - { success: false, error: e instanceof Error ? e.message : String(e) }, - 500 - ); - } -}); -var index_default = app; -async function runWasm(input) { - const hostFunctions = { - http_request: /* @__PURE__ */ __name(async (url, method, headersJson, body) => { - const headers = {}; - if (headersJson) { - try { - const parsed = JSON.parse(headersJson); - if (parsed && typeof parsed === "object") { - for (const [k, v] of Object.entries(parsed)) { - if (typeof v === "string") headers[k] = v; - } - } - } catch { - } - } - const init = { method, headers }; - if (body && method.toUpperCase() !== "GET" && method.toUpperCase() !== "HEAD") { - init.body = body; - } - const res = await fetch(url, init); - const text = await res.text(); - if (!res.ok) { - return JSON.stringify({ error: `HTTP ${res.status}`, status: res.status, body: text }); - } - return text; - }, "http_request") - }; - const shim = createWasiShim(JSON.stringify(input), hostFunctions); - const instance = await WebAssembly.instantiate( - componentWasm, - shim.imports - ); - shim.setMemory(instance.exports.memory); - await shim.run(instance); - const stdout2 = shim.getStdout().trim(); - const stderr2 = shim.getStderr().trim(); - if (stderr2) console.error("[kbdb_upsert_block wasm stderr]", stderr2); - if (!stdout2) throw new Error("WASM component produced no output"); - return JSON.parse(stdout2); -} -__name(runWasm, "runWasm"); -export { - index_default as default -}; -//# sourceMappingURL=index.js.map diff --git a/tier1/km_writer/63da493254adec64001d1cee855fea62f48ff0ce-component.wasm b/tier1/km_writer/63da493254adec64001d1cee855fea62f48ff0ce-component.wasm deleted file mode 100644 index 20b3234..0000000 Binary files a/tier1/km_writer/63da493254adec64001d1cee855fea62f48ff0ce-component.wasm and /dev/null differ diff --git a/tier1/km_writer/index.js b/tier1/km_writer/index.js deleted file mode 100644 index f70d23b..0000000 --- a/tier1/km_writer/index.js +++ /dev/null @@ -1,3547 +0,0 @@ -var __defProp = Object.defineProperty; -var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); - -// 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!`); -} -__name(createNotImplementedError, "createNotImplementedError"); -// @__NO_SIDE_EFFECTS__ -function notImplemented(name) { - const fn = /* @__PURE__ */ __name(() => { - throw /* @__PURE__ */ createNotImplementedError(name); - }, "fn"); - return Object.assign(fn, { __unenv__: true }); -} -__name(notImplemented, "notImplemented"); -// @__NO_SIDE_EFFECTS__ -function notImplementedClass(name) { - return class { - __unenv__ = true; - constructor() { - throw new Error(`[unenv] ${name} is not implemented yet!`); - } - }; -} -__name(notImplementedClass, "notImplementedClass"); - -// 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 = { - name: "node", - entryType: "node", - startTime: 0, - duration: 0, - nodeStart: 0, - v8Start: 0, - bootstrapComplete: 0, - environment: 0, - loopStart: 0, - loopExit: 0, - idleTime: 0, - uvMetricsInfo: { - loopCount: 0, - events: 0, - eventsWaiting: 0 - }, - detail: void 0, - toJSON() { - return this; - } -}; -var PerformanceEntry = class { - static { - __name(this, "PerformanceEntry"); - } - __unenv__ = true; - detail; - entryType = "event"; - name; - startTime; - constructor(name, options) { - this.name = name; - this.startTime = options?.startTime || _performanceNow(); - this.detail = options?.detail; - } - get duration() { - return _performanceNow() - this.startTime; - } - toJSON() { - return { - name: this.name, - entryType: this.entryType, - startTime: this.startTime, - duration: this.duration, - detail: this.detail - }; - } -}; -var PerformanceMark = class PerformanceMark2 extends PerformanceEntry { - static { - __name(this, "PerformanceMark"); - } - entryType = "mark"; - constructor() { - super(...arguments); - } - get duration() { - return 0; - } -}; -var PerformanceMeasure = class extends PerformanceEntry { - static { - __name(this, "PerformanceMeasure"); - } - entryType = "measure"; -}; -var PerformanceResourceTiming = class extends PerformanceEntry { - static { - __name(this, "PerformanceResourceTiming"); - } - entryType = "resource"; - serverTiming = []; - connectEnd = 0; - connectStart = 0; - decodedBodySize = 0; - domainLookupEnd = 0; - domainLookupStart = 0; - encodedBodySize = 0; - fetchStart = 0; - initiatorType = ""; - name = ""; - nextHopProtocol = ""; - redirectEnd = 0; - redirectStart = 0; - requestStart = 0; - responseEnd = 0; - responseStart = 0; - secureConnectionStart = 0; - startTime = 0; - transferSize = 0; - workerStart = 0; - responseStatus = 0; -}; -var PerformanceObserverEntryList = class { - static { - __name(this, "PerformanceObserverEntryList"); - } - __unenv__ = true; - getEntries() { - return []; - } - getEntriesByName(_name, _type) { - return []; - } - getEntriesByType(type) { - return []; - } -}; -var Performance = class { - static { - __name(this, "Performance"); - } - __unenv__ = true; - timeOrigin = _timeOrigin; - eventCounts = /* @__PURE__ */ new Map(); - _entries = []; - _resourceTimingBufferSize = 0; - navigation = void 0; - timing = void 0; - timerify(_fn, _options) { - throw createNotImplementedError("Performance.timerify"); - } - get nodeTiming() { - return nodeTiming; - } - eventLoopUtilization() { - return {}; - } - markResourceTiming() { - return new PerformanceResourceTiming(""); - } - onresourcetimingbufferfull = null; - now() { - if (this.timeOrigin === _timeOrigin) { - return _performanceNow(); - } - return Date.now() - this.timeOrigin; - } - clearMarks(markName) { - this._entries = markName ? this._entries.filter((e) => e.name !== markName) : this._entries.filter((e) => e.entryType !== "mark"); - } - clearMeasures(measureName) { - this._entries = measureName ? this._entries.filter((e) => e.name !== measureName) : this._entries.filter((e) => e.entryType !== "measure"); - } - clearResourceTimings() { - this._entries = this._entries.filter((e) => e.entryType !== "resource" || e.entryType !== "navigation"); - } - getEntries() { - return this._entries; - } - getEntriesByName(name, type) { - return this._entries.filter((e) => e.name === name && (!type || e.entryType === type)); - } - getEntriesByType(type) { - return this._entries.filter((e) => e.entryType === type); - } - mark(name, options) { - const entry = new PerformanceMark(name, options); - this._entries.push(entry); - return entry; - } - measure(measureName, startOrMeasureOptions, endMark) { - let start; - let end; - if (typeof startOrMeasureOptions === "string") { - start = this.getEntriesByName(startOrMeasureOptions, "mark")[0]?.startTime; - end = this.getEntriesByName(endMark, "mark")[0]?.startTime; - } else { - start = Number.parseFloat(startOrMeasureOptions?.start) || this.now(); - end = Number.parseFloat(startOrMeasureOptions?.end) || this.now(); - } - const entry = new PerformanceMeasure(measureName, { - startTime: start, - detail: { - start, - end - } - }); - this._entries.push(entry); - return entry; - } - setResourceTimingBufferSize(maxSize) { - this._resourceTimingBufferSize = maxSize; - } - addEventListener(type, listener, options) { - throw createNotImplementedError("Performance.addEventListener"); - } - removeEventListener(type, listener, options) { - throw createNotImplementedError("Performance.removeEventListener"); - } - dispatchEvent(event) { - throw createNotImplementedError("Performance.dispatchEvent"); - } - toJSON() { - return this; - } -}; -var PerformanceObserver = class { - static { - __name(this, "PerformanceObserver"); - } - __unenv__ = true; - static supportedEntryTypes = []; - _callback = null; - constructor(callback) { - this._callback = callback; - } - takeRecords() { - return []; - } - disconnect() { - throw createNotImplementedError("PerformanceObserver.disconnect"); - } - observe(options) { - throw createNotImplementedError("PerformanceObserver.observe"); - } - bind(fn) { - return fn; - } - runInAsyncScope(fn, thisArg, ...args) { - return fn.call(thisArg, ...args); - } - asyncId() { - return 0; - } - triggerAsyncId() { - return 0; - } - emitDestroy() { - return this; - } -}; -var performance = globalThis.performance && "addEventListener" in globalThis.performance ? globalThis.performance : new Performance(); - -// 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)) { - if (key !== "constructor" && !(key in performance)) { - const desc = Object.getOwnPropertyDescriptor(proto, key); - if (desc) { - Object.defineProperty(performance, key, desc); - } - } - } -} -globalThis.performance = performance; -globalThis.Performance = Performance; -globalThis.PerformanceEntry = PerformanceEntry; -globalThis.PerformanceMark = PerformanceMark; -globalThis.PerformanceMeasure = PerformanceMeasure; -globalThis.PerformanceObserver = PerformanceObserver; -globalThis.PerformanceObserverEntryList = PerformanceObserverEntryList; -globalThis.PerformanceResourceTiming = PerformanceResourceTiming; - -// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs -import { Writable } from "node:stream"; - -// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs -var noop_default = Object.assign(() => { -}, { __unenv__: true }); - -// 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(); -var _stdout = new Writable(); -var log = _console?.log ?? noop_default; -var info = _console?.info ?? log; -var trace = _console?.trace ?? info; -var debug = _console?.debug ?? log; -var table = _console?.table ?? log; -var error = _console?.error ?? log; -var warn = _console?.warn ?? error; -var createTask = _console?.createTask ?? /* @__PURE__ */ notImplemented("console.createTask"); -var clear = _console?.clear ?? noop_default; -var count = _console?.count ?? noop_default; -var countReset = _console?.countReset ?? noop_default; -var dir = _console?.dir ?? noop_default; -var dirxml = _console?.dirxml ?? noop_default; -var group = _console?.group ?? noop_default; -var groupEnd = _console?.groupEnd ?? noop_default; -var groupCollapsed = _console?.groupCollapsed ?? noop_default; -var profile = _console?.profile ?? noop_default; -var profileEnd = _console?.profileEnd ?? noop_default; -var time = _console?.time ?? noop_default; -var timeEnd = _console?.timeEnd ?? noop_default; -var timeLog = _console?.timeLog ?? noop_default; -var timeStamp = _console?.timeStamp ?? noop_default; -var Console = _console?.Console ?? /* @__PURE__ */ notImplementedClass("console.Console"); -var _times = /* @__PURE__ */ new Map(); -var _stdoutErrorHandler = noop_default; -var _stderrErrorHandler = noop_default; - -// 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, - clear: clear2, - // @ts-expect-error undocumented public API - context, - count: count2, - countReset: countReset2, - // @ts-expect-error undocumented public API - createTask: createTask2, - debug: debug2, - dir: dir2, - dirxml: dirxml2, - error: error2, - group: group2, - groupCollapsed: groupCollapsed2, - groupEnd: groupEnd2, - info: info2, - log: log2, - profile: profile2, - profileEnd: profileEnd2, - table: table2, - time: time2, - timeEnd: timeEnd2, - timeLog: timeLog2, - timeStamp: timeStamp2, - trace: trace2, - warn: warn2 -} = workerdConsole; -Object.assign(workerdConsole, { - Console, - _ignoreErrors, - _stderr, - _stderrErrorHandler, - _stdout, - _stdoutErrorHandler, - _times -}); -var console_default = workerdConsole; - -// 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; - -// 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); - const nanos = now % 1e3 * 1e6; - if (startTime) { - let diffSeconds = seconds - startTime[0]; - let diffNanos = nanos - startTime[0]; - if (diffNanos < 0) { - diffSeconds = diffSeconds - 1; - diffNanos = 1e9 + diffNanos; - } - return [diffSeconds, diffNanos]; - } - return [seconds, nanos]; -}, "hrtime"), { bigint: /* @__PURE__ */ __name(function bigint() { - return BigInt(Date.now() * 1e6); -}, "bigint") }); - -// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs -import { EventEmitter } from "node:events"; - -// 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"); - } - fd; - isRaw = false; - isTTY = false; - constructor(fd) { - this.fd = fd; - } - setRawMode(mode) { - this.isRaw = mode; - return this; - } -}; - -// 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"); - } - fd; - columns = 80; - rows = 24; - isTTY = false; - constructor(fd) { - this.fd = fd; - } - clearLine(dir3, callback) { - callback && callback(); - return false; - } - clearScreenDown(callback) { - callback && callback(); - return false; - } - cursorTo(x, y, callback) { - callback && typeof callback === "function" && callback(); - return false; - } - moveCursor(dx, dy, callback) { - callback && callback(); - return false; - } - getColorDepth(env2) { - return 1; - } - hasColors(count3, env2) { - return false; - } - getWindowSize() { - return [this.columns, this.rows]; - } - write(str, encoding, cb) { - if (str instanceof Uint8Array) { - str = new TextDecoder().decode(str); - } - try { - console.log(str); - } catch { - } - cb && typeof cb === "function" && cb(); - return false; - } -}; - -// 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"; - -// 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"); - } - env; - hrtime; - nextTick; - constructor(impl) { - super(); - this.env = impl.env; - this.hrtime = impl.hrtime; - this.nextTick = impl.nextTick; - for (const prop of [...Object.getOwnPropertyNames(_Process.prototype), ...Object.getOwnPropertyNames(EventEmitter.prototype)]) { - const value = this[prop]; - if (typeof value === "function") { - this[prop] = value.bind(this); - } - } - } - // --- event emitter --- - emitWarning(warning, type, code) { - console.warn(`${code ? `[${code}] ` : ""}${type ? `${type}: ` : ""}${warning}`); - } - emit(...args) { - return super.emit(...args); - } - listeners(eventName) { - return super.listeners(eventName); - } - // --- stdio (lazy initializers) --- - #stdin; - #stdout; - #stderr; - get stdin() { - return this.#stdin ??= new ReadStream(0); - } - get stdout() { - return this.#stdout ??= new WriteStream(1); - } - get stderr() { - return this.#stderr ??= new WriteStream(2); - } - // --- cwd --- - #cwd = "/"; - chdir(cwd2) { - this.#cwd = cwd2; - } - cwd() { - return this.#cwd; - } - // --- dummy props and getters --- - arch = ""; - platform = ""; - argv = []; - argv0 = ""; - execArgv = []; - execPath = ""; - title = ""; - pid = 200; - ppid = 100; - get version() { - return `v${NODE_VERSION}`; - } - get versions() { - return { node: NODE_VERSION }; - } - get allowedNodeEnvironmentFlags() { - return /* @__PURE__ */ new Set(); - } - get sourceMapsEnabled() { - return false; - } - get debugPort() { - return 0; - } - get throwDeprecation() { - return false; - } - get traceDeprecation() { - return false; - } - get features() { - return {}; - } - get release() { - return {}; - } - get connected() { - return false; - } - get config() { - return {}; - } - get moduleLoadList() { - return []; - } - constrainedMemory() { - return 0; - } - availableMemory() { - return 0; - } - uptime() { - return 0; - } - resourceUsage() { - return {}; - } - // --- noop methods --- - ref() { - } - unref() { - } - // --- unimplemented methods --- - umask() { - throw createNotImplementedError("process.umask"); - } - getBuiltinModule() { - return void 0; - } - getActiveResourcesInfo() { - throw createNotImplementedError("process.getActiveResourcesInfo"); - } - exit() { - throw createNotImplementedError("process.exit"); - } - reallyExit() { - throw createNotImplementedError("process.reallyExit"); - } - kill() { - throw createNotImplementedError("process.kill"); - } - abort() { - throw createNotImplementedError("process.abort"); - } - dlopen() { - throw createNotImplementedError("process.dlopen"); - } - setSourceMapsEnabled() { - throw createNotImplementedError("process.setSourceMapsEnabled"); - } - loadEnvFile() { - throw createNotImplementedError("process.loadEnvFile"); - } - disconnect() { - throw createNotImplementedError("process.disconnect"); - } - cpuUsage() { - throw createNotImplementedError("process.cpuUsage"); - } - setUncaughtExceptionCaptureCallback() { - throw createNotImplementedError("process.setUncaughtExceptionCaptureCallback"); - } - hasUncaughtExceptionCaptureCallback() { - throw createNotImplementedError("process.hasUncaughtExceptionCaptureCallback"); - } - initgroups() { - throw createNotImplementedError("process.initgroups"); - } - openStdin() { - throw createNotImplementedError("process.openStdin"); - } - assert() { - throw createNotImplementedError("process.assert"); - } - binding() { - throw createNotImplementedError("process.binding"); - } - // --- attached interfaces --- - permission = { has: /* @__PURE__ */ notImplemented("process.permission.has") }; - report = { - directory: "", - filename: "", - signal: "SIGUSR2", - compact: false, - reportOnFatalError: false, - reportOnSignal: false, - reportOnUncaughtException: false, - getReport: /* @__PURE__ */ notImplemented("process.report.getReport"), - writeReport: /* @__PURE__ */ notImplemented("process.report.writeReport") - }; - finalization = { - register: /* @__PURE__ */ notImplemented("process.finalization.register"), - unregister: /* @__PURE__ */ notImplemented("process.finalization.unregister"), - registerBeforeExit: /* @__PURE__ */ notImplemented("process.finalization.registerBeforeExit") - }; - memoryUsage = Object.assign(() => ({ - arrayBuffers: 0, - rss: 0, - external: 0, - heapTotal: 0, - heapUsed: 0 - }), { rss: /* @__PURE__ */ __name(() => 0, "rss") }); - // --- undefined props --- - mainModule = void 0; - domain = void 0; - // optional - send = void 0; - exitCode = void 0; - channel = void 0; - getegid = void 0; - geteuid = void 0; - getgid = void 0; - getgroups = void 0; - getuid = void 0; - setegid = void 0; - seteuid = void 0; - setgid = void 0; - setgroups = void 0; - setuid = void 0; - // internals - _events = void 0; - _eventsCount = void 0; - _exiting = void 0; - _maxListeners = void 0; - _debugEnd = void 0; - _debugProcess = void 0; - _fatalException = void 0; - _getActiveHandles = void 0; - _getActiveRequests = void 0; - _kill = void 0; - _preload_modules = void 0; - _rawDebug = void 0; - _startProfilerIdleNotifier = void 0; - _stopProfilerIdleNotifier = void 0; - _tickCallback = void 0; - _disconnect = void 0; - _handleQueue = void 0; - _pendingMessage = void 0; - _channel = void 0; - _send = void 0; - _linkedBinding = void 0; -}; - -// 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"); -var unenvProcess = new Process({ - env: globalProcess.env, - hrtime, - // `nextTick` is available from workerd process v1 - nextTick: workerdProcess.nextTick -}); -var { exit, features, platform } = workerdProcess; -var { - _channel, - _debugEnd, - _debugProcess, - _disconnect, - _events, - _eventsCount, - _exiting, - _fatalException, - _getActiveHandles, - _getActiveRequests, - _handleQueue, - _kill, - _linkedBinding, - _maxListeners, - _pendingMessage, - _preload_modules, - _rawDebug, - _send, - _startProfilerIdleNotifier, - _stopProfilerIdleNotifier, - _tickCallback, - abort, - addListener, - allowedNodeEnvironmentFlags, - arch, - argv, - argv0, - assert: assert2, - availableMemory, - binding, - channel, - chdir, - config, - connected, - constrainedMemory, - cpuUsage, - cwd, - debugPort, - disconnect, - dlopen, - domain, - emit, - emitWarning, - env, - eventNames, - execArgv, - execPath, - exitCode, - finalization, - getActiveResourcesInfo, - getegid, - geteuid, - getgid, - getgroups, - getMaxListeners, - getuid, - hasUncaughtExceptionCaptureCallback, - hrtime: hrtime3, - initgroups, - kill, - listenerCount, - listeners, - loadEnvFile, - mainModule, - memoryUsage, - moduleLoadList, - nextTick, - off, - on, - once, - openStdin, - permission, - pid, - ppid, - prependListener, - prependOnceListener, - rawListeners, - reallyExit, - ref, - release, - removeAllListeners, - removeListener, - report, - resourceUsage, - send, - setegid, - seteuid, - setgid, - setgroups, - setMaxListeners, - setSourceMapsEnabled, - setuid, - setUncaughtExceptionCaptureCallback, - sourceMapsEnabled, - stderr, - stdin, - stdout, - throwDeprecation, - title, - traceDeprecation, - umask, - unref, - uptime, - version, - versions -} = unenvProcess; -var _process = { - abort, - addListener, - allowedNodeEnvironmentFlags, - hasUncaughtExceptionCaptureCallback, - setUncaughtExceptionCaptureCallback, - loadEnvFile, - sourceMapsEnabled, - arch, - argv, - argv0, - chdir, - config, - connected, - constrainedMemory, - availableMemory, - cpuUsage, - cwd, - debugPort, - dlopen, - disconnect, - emit, - emitWarning, - env, - eventNames, - execArgv, - execPath, - exit, - finalization, - features, - getBuiltinModule, - getActiveResourcesInfo, - getMaxListeners, - hrtime: hrtime3, - kill, - listeners, - listenerCount, - memoryUsage, - nextTick, - on, - off, - once, - pid, - platform, - ppid, - prependListener, - prependOnceListener, - rawListeners, - release, - removeAllListeners, - removeListener, - report, - resourceUsage, - setMaxListeners, - setSourceMapsEnabled, - stderr, - stdin, - stdout, - title, - throwDeprecation, - traceDeprecation, - umask, - uptime, - version, - versions, - // @ts-expect-error old API - domain, - initgroups, - moduleLoadList, - reallyExit, - openStdin, - assert: assert2, - binding, - send, - exitCode, - channel, - getegid, - geteuid, - getgid, - getgroups, - getuid, - setegid, - seteuid, - setgid, - setgroups, - setuid, - permission, - mainModule, - _events, - _eventsCount, - _exiting, - _maxListeners, - _debugEnd, - _debugProcess, - _fatalException, - _getActiveHandles, - _getActiveRequests, - _kill, - _preload_modules, - _rawDebug, - _startProfilerIdleNotifier, - _stopProfilerIdleNotifier, - _tickCallback, - _disconnect, - _handleQueue, - _pendingMessage, - _channel, - _send, - _linkedBinding -}; -var process_default = _process; - -// 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 "./63da493254adec64001d1cee855fea62f48ff0ce-component.wasm"; - -// 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; - return dispatch(0); - async function dispatch(i) { - if (i <= index) { - throw new Error("next() called multiple times"); - } - index = i; - let res; - let isError = false; - let handler; - if (middleware[i]) { - handler = middleware[i][0][0]; - context2.req.routeIndex = i; - } else { - handler = i === middleware.length && next || void 0; - } - if (handler) { - try { - res = await handler(context2, () => dispatch(i + 1)); - } catch (err) { - if (err instanceof Error && onError) { - context2.error = err; - res = await onError(err, context2); - isError = true; - } else { - throw err; - } - } - } else { - if (context2.finalized === false && onNotFound) { - res = await onNotFound(context2); - } - } - if (res && (context2.finalized === false || isError)) { - context2.res = res; - } - return context2; - } - __name(dispatch, "dispatch"); - }; -}, "compose"); - -// node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/request/constants.js -var GET_MATCH_RESULT = /* @__PURE__ */ Symbol(); - -// 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; - const contentType = headers.get("Content-Type"); - if (contentType?.startsWith("multipart/form-data") || contentType?.startsWith("application/x-www-form-urlencoded")) { - return parseFormData(request, { all, dot }); - } - return {}; -}, "parseBody"); -async function parseFormData(request, options) { - const formData = await request.formData(); - if (formData) { - return convertFormDataToBodyData(formData, options); - } - return {}; -} -__name(parseFormData, "parseFormData"); -function convertFormDataToBodyData(formData, options) { - const form = /* @__PURE__ */ Object.create(null); - formData.forEach((value, key) => { - const shouldParseAllValues = options.all || key.endsWith("[]"); - if (!shouldParseAllValues) { - form[key] = value; - } else { - handleParsingAllValues(form, key, value); - } - }); - if (options.dot) { - Object.entries(form).forEach(([key, value]) => { - const shouldParseDotValues = key.includes("."); - if (shouldParseDotValues) { - handleParsingNestedValues(form, key, value); - delete form[key]; - } - }); - } - return form; -} -__name(convertFormDataToBodyData, "convertFormDataToBodyData"); -var handleParsingAllValues = /* @__PURE__ */ __name((form, key, value) => { - if (form[key] !== void 0) { - if (Array.isArray(form[key])) { - ; - form[key].push(value); - } else { - form[key] = [form[key], value]; - } - } else { - if (!key.endsWith("[]")) { - form[key] = value; - } else { - form[key] = [value]; - } - } -}, "handleParsingAllValues"); -var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => { - if (/(?:^|\.)__proto__\./.test(key)) { - return; - } - let nestedForm = form; - const keys = key.split("."); - keys.forEach((key2, index) => { - if (index === keys.length - 1) { - nestedForm[key2] = value; - } else { - if (!nestedForm[key2] || typeof nestedForm[key2] !== "object" || Array.isArray(nestedForm[key2]) || nestedForm[key2] instanceof File) { - nestedForm[key2] = /* @__PURE__ */ Object.create(null); - } - nestedForm = nestedForm[key2]; - } - }); -}, "handleParsingNestedValues"); - -// 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] === "") { - paths.shift(); - } - return paths; -}, "splitPath"); -var splitRoutingPath = /* @__PURE__ */ __name((routePath) => { - const { groups, path } = extractGroupsFromPath(routePath); - const paths = splitPath(path); - return replaceGroupMarks(paths, groups); -}, "splitRoutingPath"); -var extractGroupsFromPath = /* @__PURE__ */ __name((path) => { - const groups = []; - path = path.replace(/\{[^}]+\}/g, (match2, index) => { - const mark = `@${index}`; - groups.push([mark, match2]); - return mark; - }); - return { groups, path }; -}, "extractGroupsFromPath"); -var replaceGroupMarks = /* @__PURE__ */ __name((paths, groups) => { - for (let i = groups.length - 1; i >= 0; i--) { - const [mark] = groups[i]; - for (let j = paths.length - 1; j >= 0; j--) { - if (paths[j].includes(mark)) { - paths[j] = paths[j].replace(mark, groups[i][1]); - break; - } - } - } - return paths; -}, "replaceGroupMarks"); -var patternCache = {}; -var getPattern = /* @__PURE__ */ __name((label, next) => { - if (label === "*") { - return "*"; - } - const match2 = label.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/); - if (match2) { - const cacheKey = `${label}#${next}`; - if (!patternCache[cacheKey]) { - if (match2[2]) { - patternCache[cacheKey] = next && next[0] !== ":" && next[0] !== "*" ? [cacheKey, match2[1], new RegExp(`^${match2[2]}(?=/${next})`)] : [label, match2[1], new RegExp(`^${match2[2]}$`)]; - } else { - patternCache[cacheKey] = [label, match2[1], true]; - } - } - return patternCache[cacheKey]; - } - return null; -}, "getPattern"); -var tryDecode = /* @__PURE__ */ __name((str, decoder) => { - try { - return decoder(str); - } catch { - return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (match2) => { - try { - return decoder(match2); - } catch { - return match2; - } - }); - } -}, "tryDecode"); -var tryDecodeURI = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURI), "tryDecodeURI"); -var getPath = /* @__PURE__ */ __name((request) => { - const url = request.url; - const start = url.indexOf("/", url.indexOf(":") + 4); - let i = start; - for (; i < url.length; i++) { - const charCode = url.charCodeAt(i); - if (charCode === 37) { - const queryIndex = url.indexOf("?", i); - const hashIndex = url.indexOf("#", i); - const end = queryIndex === -1 ? hashIndex === -1 ? void 0 : hashIndex : hashIndex === -1 ? queryIndex : Math.min(queryIndex, hashIndex); - const path = url.slice(start, end); - return tryDecodeURI(path.includes("%25") ? path.replace(/%25/g, "%2525") : path); - } else if (charCode === 63 || charCode === 35) { - break; - } - } - return url.slice(start, i); -}, "getPath"); -var getPathNoStrict = /* @__PURE__ */ __name((request) => { - const result = getPath(request); - return result.length > 1 && result.at(-1) === "/" ? result.slice(0, -1) : result; -}, "getPathNoStrict"); -var mergePath = /* @__PURE__ */ __name((base, sub, ...rest) => { - if (rest.length) { - sub = mergePath(sub, ...rest); - } - return `${base?.[0] === "/" ? "" : "/"}${base}${sub === "/" ? "" : `${base?.at(-1) === "/" ? "" : "/"}${sub?.[0] === "/" ? sub.slice(1) : sub}`}`; -}, "mergePath"); -var checkOptionalParameter = /* @__PURE__ */ __name((path) => { - if (path.charCodeAt(path.length - 1) !== 63 || !path.includes(":")) { - return null; - } - const segments = path.split("/"); - const results = []; - let basePath = ""; - segments.forEach((segment) => { - if (segment !== "" && !/\:/.test(segment)) { - basePath += "/" + segment; - } else if (/\:/.test(segment)) { - if (/\?/.test(segment)) { - if (results.length === 0 && basePath === "") { - results.push("/"); - } else { - results.push(basePath); - } - const optionalSegment = segment.replace("?", ""); - basePath += "/" + optionalSegment; - results.push(basePath); - } else { - basePath += "/" + segment; - } - } - }); - return results.filter((v, i, a) => a.indexOf(v) === i); -}, "checkOptionalParameter"); -var _decodeURI = /* @__PURE__ */ __name((value) => { - if (!/[%+]/.test(value)) { - return value; - } - if (value.indexOf("+") !== -1) { - value = value.replace(/\+/g, " "); - } - return value.indexOf("%") !== -1 ? tryDecode(value, decodeURIComponent_) : value; -}, "_decodeURI"); -var _getQueryParam = /* @__PURE__ */ __name((url, key, multiple) => { - let encoded; - if (!multiple && key && !/[%+]/.test(key)) { - let keyIndex2 = url.indexOf("?", 8); - if (keyIndex2 === -1) { - return void 0; - } - if (!url.startsWith(key, keyIndex2 + 1)) { - keyIndex2 = url.indexOf(`&${key}`, keyIndex2 + 1); - } - while (keyIndex2 !== -1) { - const trailingKeyCode = url.charCodeAt(keyIndex2 + key.length + 1); - if (trailingKeyCode === 61) { - const valueIndex = keyIndex2 + key.length + 2; - const endIndex = url.indexOf("&", valueIndex); - return _decodeURI(url.slice(valueIndex, endIndex === -1 ? void 0 : endIndex)); - } else if (trailingKeyCode == 38 || isNaN(trailingKeyCode)) { - return ""; - } - keyIndex2 = url.indexOf(`&${key}`, keyIndex2 + 1); - } - encoded = /[%+]/.test(url); - if (!encoded) { - return void 0; - } - } - const results = {}; - encoded ??= /[%+]/.test(url); - let keyIndex = url.indexOf("?", 8); - while (keyIndex !== -1) { - const nextKeyIndex = url.indexOf("&", keyIndex + 1); - let valueIndex = url.indexOf("=", keyIndex); - if (valueIndex > nextKeyIndex && nextKeyIndex !== -1) { - valueIndex = -1; - } - let name = url.slice( - keyIndex + 1, - valueIndex === -1 ? nextKeyIndex === -1 ? void 0 : nextKeyIndex : valueIndex - ); - if (encoded) { - name = _decodeURI(name); - } - keyIndex = nextKeyIndex; - if (name === "") { - continue; - } - let value; - if (valueIndex === -1) { - value = ""; - } else { - value = url.slice(valueIndex + 1, nextKeyIndex === -1 ? void 0 : nextKeyIndex); - if (encoded) { - value = _decodeURI(value); - } - } - if (multiple) { - if (!(results[name] && Array.isArray(results[name]))) { - results[name] = []; - } - ; - results[name].push(value); - } else { - results[name] ??= value; - } - } - return key ? results[key] : results; -}, "_getQueryParam"); -var getQueryParam = _getQueryParam; -var getQueryParams = /* @__PURE__ */ __name((url, key) => { - return _getQueryParam(url, key, true); -}, "getQueryParams"); -var decodeURIComponent_ = decodeURIComponent; - -// 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 { - __name(this, "HonoRequest"); - } - /** - * `.raw` can get the raw Request object. - * - * @see {@link https://hono.dev/docs/api/request#raw} - * - * @example - * ```ts - * // For Cloudflare Workers - * app.post('/', async (c) => { - * const metadata = c.req.raw.cf?.hostMetadata? - * ... - * }) - * ``` - */ - raw; - #validatedData; - // Short name of validatedData - #matchResult; - routeIndex = 0; - /** - * `.path` can get the pathname of the request. - * - * @see {@link https://hono.dev/docs/api/request#path} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const pathname = c.req.path // `/about/me` - * }) - * ``` - */ - path; - bodyCache = {}; - constructor(request, path = "/", matchResult = [[]]) { - this.raw = request; - this.path = path; - this.#matchResult = matchResult; - this.#validatedData = {}; - } - param(key) { - return key ? this.#getDecodedParam(key) : this.#getAllDecodedParams(); - } - #getDecodedParam(key) { - const paramKey = this.#matchResult[0][this.routeIndex][1][key]; - const param = this.#getParamValue(paramKey); - return param && /\%/.test(param) ? tryDecodeURIComponent(param) : param; - } - #getAllDecodedParams() { - const decoded = {}; - const keys = Object.keys(this.#matchResult[0][this.routeIndex][1]); - for (const key of keys) { - const value = this.#getParamValue(this.#matchResult[0][this.routeIndex][1][key]); - if (value !== void 0) { - decoded[key] = /\%/.test(value) ? tryDecodeURIComponent(value) : value; - } - } - return decoded; - } - #getParamValue(paramKey) { - return this.#matchResult[1] ? this.#matchResult[1][paramKey] : paramKey; - } - query(key) { - return getQueryParam(this.url, key); - } - queries(key) { - return getQueryParams(this.url, key); - } - header(name) { - if (name) { - return this.raw.headers.get(name) ?? void 0; - } - const headerData = {}; - this.raw.headers.forEach((value, key) => { - headerData[key] = value; - }); - return headerData; - } - async parseBody(options) { - return parseBody(this, options); - } - #cachedBody = /* @__PURE__ */ __name((key) => { - const { bodyCache, raw: raw2 } = this; - const cachedBody = bodyCache[key]; - if (cachedBody) { - return cachedBody; - } - const anyCachedKey = Object.keys(bodyCache)[0]; - if (anyCachedKey) { - return bodyCache[anyCachedKey].then((body) => { - if (anyCachedKey === "json") { - body = JSON.stringify(body); - } - return new Response(body)[key](); - }); - } - return bodyCache[key] = raw2[key](); - }, "#cachedBody"); - /** - * `.json()` can parse Request body of type `application/json` - * - * @see {@link https://hono.dev/docs/api/request#json} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.json() - * }) - * ``` - */ - json() { - return this.#cachedBody("text").then((text) => JSON.parse(text)); - } - /** - * `.text()` can parse Request body of type `text/plain` - * - * @see {@link https://hono.dev/docs/api/request#text} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.text() - * }) - * ``` - */ - text() { - return this.#cachedBody("text"); - } - /** - * `.arrayBuffer()` parse Request body as an `ArrayBuffer` - * - * @see {@link https://hono.dev/docs/api/request#arraybuffer} - * - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.arrayBuffer() - * }) - * ``` - */ - arrayBuffer() { - return this.#cachedBody("arrayBuffer"); - } - /** - * Parses the request body as a `Blob`. - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.blob(); - * }); - * ``` - * @see https://hono.dev/docs/api/request#blob - */ - blob() { - return this.#cachedBody("blob"); - } - /** - * Parses the request body as `FormData`. - * @example - * ```ts - * app.post('/entry', async (c) => { - * const body = await c.req.formData(); - * }); - * ``` - * @see https://hono.dev/docs/api/request#formdata - */ - formData() { - return this.#cachedBody("formData"); - } - /** - * Adds validated data to the request. - * - * @param target - The target of the validation. - * @param data - The validated data to add. - */ - addValidatedData(target, data) { - this.#validatedData[target] = data; - } - valid(target) { - return this.#validatedData[target]; - } - /** - * `.url()` can get the request url strings. - * - * @see {@link https://hono.dev/docs/api/request#url} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const url = c.req.url // `http://localhost:8787/about/me` - * ... - * }) - * ``` - */ - get url() { - return this.raw.url; - } - /** - * `.method()` can get the method name of the request. - * - * @see {@link https://hono.dev/docs/api/request#method} - * - * @example - * ```ts - * app.get('/about/me', (c) => { - * const method = c.req.method // `GET` - * }) - * ``` - */ - get method() { - return this.raw.method; - } - get [GET_MATCH_RESULT]() { - return this.#matchResult; - } - /** - * `.matchedRoutes()` can return a matched route in the handler - * - * @deprecated - * - * Use matchedRoutes helper defined in "hono/route" instead. - * - * @see {@link https://hono.dev/docs/api/request#matchedroutes} - * - * @example - * ```ts - * app.use('*', async function logger(c, next) { - * await next() - * c.req.matchedRoutes.forEach(({ handler, method, path }, i) => { - * const name = handler.name || (handler.length < 2 ? '[handler]' : '[middleware]') - * console.log( - * method, - * ' ', - * path, - * ' '.repeat(Math.max(10 - path.length, 0)), - * name, - * i === c.req.routeIndex ? '<- respond from here' : '' - * ) - * }) - * }) - * ``` - */ - get matchedRoutes() { - return this.#matchResult[0].map(([[, route]]) => route); - } - /** - * `routePath()` can retrieve the path registered within the handler - * - * @deprecated - * - * Use routePath helper defined in "hono/route" instead. - * - * @see {@link https://hono.dev/docs/api/request#routepath} - * - * @example - * ```ts - * app.get('/posts/:id', (c) => { - * return c.json({ path: c.req.routePath }) - * }) - * ``` - */ - get routePath() { - return this.#matchResult[0].map(([[, route]]) => route)[this.routeIndex].path; - } -}; - -// node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/html.js -var HtmlEscapedCallbackPhase = { - Stringify: 1, - BeforeStream: 2, - Stream: 3 -}; -var raw = /* @__PURE__ */ __name((value, callbacks) => { - const escapedString = new String(value); - escapedString.isEscaped = true; - escapedString.callbacks = callbacks; - return escapedString; -}, "raw"); -var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallbacks, context2, buffer) => { - if (typeof str === "object" && !(str instanceof String)) { - if (!(str instanceof Promise)) { - str = str.toString(); - } - if (str instanceof Promise) { - str = await str; - } - } - const callbacks = str.callbacks; - if (!callbacks?.length) { - return Promise.resolve(str); - } - if (buffer) { - buffer[0] += str; - } else { - buffer = [str]; - } - const resStr = Promise.all(callbacks.map((c) => c({ phase, buffer, context: context2 }))).then( - (res) => Promise.all( - res.filter(Boolean).map((str2) => resolveCallback(str2, phase, false, context2, buffer)) - ).then(() => buffer[0]) - ); - if (preserveCallbacks) { - return raw(await resStr, callbacks); - } else { - return resStr; - } -}, "resolveCallback"); - -// 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 { - "Content-Type": contentType, - ...headers - }; -}, "setDefaultContentType"); -var createResponseInstance = /* @__PURE__ */ __name((body, init) => new Response(body, init), "createResponseInstance"); -var Context = class { - static { - __name(this, "Context"); - } - #rawRequest; - #req; - /** - * `.env` can get bindings (environment variables, secrets, KV namespaces, D1 database, R2 bucket etc.) in Cloudflare Workers. - * - * @see {@link https://hono.dev/docs/api/context#env} - * - * @example - * ```ts - * // Environment object for Cloudflare Workers - * app.get('*', async c => { - * const counter = c.env.COUNTER - * }) - * ``` - */ - env = {}; - #var; - finalized = false; - /** - * `.error` can get the error object from the middleware if the Handler throws an error. - * - * @see {@link https://hono.dev/docs/api/context#error} - * - * @example - * ```ts - * app.use('*', async (c, next) => { - * await next() - * if (c.error) { - * // do something... - * } - * }) - * ``` - */ - error; - #status; - #executionCtx; - #res; - #layout; - #renderer; - #notFoundHandler; - #preparedHeaders; - #matchResult; - #path; - /** - * Creates an instance of the Context class. - * - * @param req - The Request object. - * @param options - Optional configuration options for the context. - */ - constructor(req, options) { - this.#rawRequest = req; - if (options) { - this.#executionCtx = options.executionCtx; - this.env = options.env; - this.#notFoundHandler = options.notFoundHandler; - this.#path = options.path; - this.#matchResult = options.matchResult; - } - } - /** - * `.req` is the instance of {@link HonoRequest}. - */ - get req() { - this.#req ??= new HonoRequest(this.#rawRequest, this.#path, this.#matchResult); - return this.#req; - } - /** - * @see {@link https://hono.dev/docs/api/context#event} - * The FetchEvent associated with the current request. - * - * @throws Will throw an error if the context does not have a FetchEvent. - */ - get event() { - if (this.#executionCtx && "respondWith" in this.#executionCtx) { - return this.#executionCtx; - } else { - throw Error("This context has no FetchEvent"); - } - } - /** - * @see {@link https://hono.dev/docs/api/context#executionctx} - * The ExecutionContext associated with the current request. - * - * @throws Will throw an error if the context does not have an ExecutionContext. - */ - get executionCtx() { - if (this.#executionCtx) { - return this.#executionCtx; - } else { - throw Error("This context has no ExecutionContext"); - } - } - /** - * @see {@link https://hono.dev/docs/api/context#res} - * The Response object for the current request. - */ - get res() { - return this.#res ||= createResponseInstance(null, { - headers: this.#preparedHeaders ??= new Headers() - }); - } - /** - * Sets the Response object for the current request. - * - * @param _res - The Response object to set. - */ - set res(_res) { - if (this.#res && _res) { - _res = createResponseInstance(_res.body, _res); - for (const [k, v] of this.#res.headers.entries()) { - if (k === "content-type") { - continue; - } - if (k === "set-cookie") { - const cookies = this.#res.headers.getSetCookie(); - _res.headers.delete("set-cookie"); - for (const cookie of cookies) { - _res.headers.append("set-cookie", cookie); - } - } else { - _res.headers.set(k, v); - } - } - } - this.#res = _res; - this.finalized = true; - } - /** - * `.render()` can create a response within a layout. - * - * @see {@link https://hono.dev/docs/api/context#render-setrenderer} - * - * @example - * ```ts - * app.get('/', (c) => { - * return c.render('Hello!') - * }) - * ``` - */ - render = /* @__PURE__ */ __name((...args) => { - this.#renderer ??= (content) => this.html(content); - return this.#renderer(...args); - }, "render"); - /** - * Sets the layout for the response. - * - * @param layout - The layout to set. - * @returns The layout function. - */ - setLayout = /* @__PURE__ */ __name((layout) => this.#layout = layout, "setLayout"); - /** - * Gets the current layout for the response. - * - * @returns The current layout function. - */ - getLayout = /* @__PURE__ */ __name(() => this.#layout, "getLayout"); - /** - * `.setRenderer()` can set the layout in the custom middleware. - * - * @see {@link https://hono.dev/docs/api/context#render-setrenderer} - * - * @example - * ```tsx - * app.use('*', async (c, next) => { - * c.setRenderer((content) => { - * return c.html( - * - * - *

{content}

- * - * - * ) - * }) - * await next() - * }) - * ``` - */ - setRenderer = /* @__PURE__ */ __name((renderer) => { - this.#renderer = renderer; - }, "setRenderer"); - /** - * `.header()` can set headers. - * - * @see {@link https://hono.dev/docs/api/context#header} - * - * @example - * ```ts - * app.get('/welcome', (c) => { - * // Set headers - * c.header('X-Message', 'Hello!') - * c.header('Content-Type', 'text/plain') - * - * return c.body('Thank you for coming') - * }) - * ``` - */ - header = /* @__PURE__ */ __name((name, value, options) => { - if (this.finalized) { - this.#res = createResponseInstance(this.#res.body, this.#res); - } - const headers = this.#res ? this.#res.headers : this.#preparedHeaders ??= new Headers(); - if (value === void 0) { - headers.delete(name); - } else if (options?.append) { - headers.append(name, value); - } else { - headers.set(name, value); - } - }, "header"); - status = /* @__PURE__ */ __name((status) => { - this.#status = status; - }, "status"); - /** - * `.set()` can set the value specified by the key. - * - * @see {@link https://hono.dev/docs/api/context#set-get} - * - * @example - * ```ts - * app.use('*', async (c, next) => { - * c.set('message', 'Hono is hot!!') - * await next() - * }) - * ``` - */ - set = /* @__PURE__ */ __name((key, value) => { - this.#var ??= /* @__PURE__ */ new Map(); - this.#var.set(key, value); - }, "set"); - /** - * `.get()` can use the value specified by the key. - * - * @see {@link https://hono.dev/docs/api/context#set-get} - * - * @example - * ```ts - * app.get('/', (c) => { - * const message = c.get('message') - * return c.text(`The message is "${message}"`) - * }) - * ``` - */ - get = /* @__PURE__ */ __name((key) => { - return this.#var ? this.#var.get(key) : void 0; - }, "get"); - /** - * `.var` can access the value of a variable. - * - * @see {@link https://hono.dev/docs/api/context#var} - * - * @example - * ```ts - * const result = c.var.client.oneMethod() - * ``` - */ - // c.var.propName is a read-only - get var() { - if (!this.#var) { - return {}; - } - return Object.fromEntries(this.#var); - } - #newResponse(data, arg, headers) { - const responseHeaders = this.#res ? new Headers(this.#res.headers) : this.#preparedHeaders ?? new Headers(); - if (typeof arg === "object" && "headers" in arg) { - const argHeaders = arg.headers instanceof Headers ? arg.headers : new Headers(arg.headers); - for (const [key, value] of argHeaders) { - if (key.toLowerCase() === "set-cookie") { - responseHeaders.append(key, value); - } else { - responseHeaders.set(key, value); - } - } - } - if (headers) { - for (const [k, v] of Object.entries(headers)) { - if (typeof v === "string") { - responseHeaders.set(k, v); - } else { - responseHeaders.delete(k); - for (const v2 of v) { - responseHeaders.append(k, v2); - } - } - } - } - const status = typeof arg === "number" ? arg : arg?.status ?? this.#status; - return createResponseInstance(data, { status, headers: responseHeaders }); - } - newResponse = /* @__PURE__ */ __name((...args) => this.#newResponse(...args), "newResponse"); - /** - * `.body()` can return the HTTP response. - * You can set headers with `.header()` and set HTTP status code with `.status`. - * This can also be set in `.text()`, `.json()` and so on. - * - * @see {@link https://hono.dev/docs/api/context#body} - * - * @example - * ```ts - * app.get('/welcome', (c) => { - * // Set headers - * c.header('X-Message', 'Hello!') - * c.header('Content-Type', 'text/plain') - * // Set HTTP status code - * c.status(201) - * - * // Return the response body - * return c.body('Thank you for coming') - * }) - * ``` - */ - body = /* @__PURE__ */ __name((data, arg, headers) => this.#newResponse(data, arg, headers), "body"); - /** - * `.text()` can render text as `Content-Type:text/plain`. - * - * @see {@link https://hono.dev/docs/api/context#text} - * - * @example - * ```ts - * app.get('/say', (c) => { - * return c.text('Hello!') - * }) - * ``` - */ - text = /* @__PURE__ */ __name((text, arg, headers) => { - return !this.#preparedHeaders && !this.#status && !arg && !headers && !this.finalized ? new Response(text) : this.#newResponse( - text, - arg, - setDefaultContentType(TEXT_PLAIN, headers) - ); - }, "text"); - /** - * `.json()` can render JSON as `Content-Type:application/json`. - * - * @see {@link https://hono.dev/docs/api/context#json} - * - * @example - * ```ts - * app.get('/api', (c) => { - * return c.json({ message: 'Hello!' }) - * }) - * ``` - */ - json = /* @__PURE__ */ __name((object, arg, headers) => { - return this.#newResponse( - JSON.stringify(object), - arg, - setDefaultContentType("application/json", headers) - ); - }, "json"); - html = /* @__PURE__ */ __name((html, arg, headers) => { - const res = /* @__PURE__ */ __name((html2) => this.#newResponse(html2, arg, setDefaultContentType("text/html; charset=UTF-8", headers)), "res"); - return typeof html === "object" ? resolveCallback(html, HtmlEscapedCallbackPhase.Stringify, false, {}).then(res) : res(html); - }, "html"); - /** - * `.redirect()` can Redirect, default status code is 302. - * - * @see {@link https://hono.dev/docs/api/context#redirect} - * - * @example - * ```ts - * app.get('/redirect', (c) => { - * return c.redirect('/') - * }) - * app.get('/redirect-permanently', (c) => { - * return c.redirect('/', 301) - * }) - * ``` - */ - redirect = /* @__PURE__ */ __name((location, status) => { - const locationString = String(location); - this.header( - "Location", - // Multibyes should be encoded - // eslint-disable-next-line no-control-regex - !/[^\x00-\xFF]/.test(locationString) ? locationString : encodeURI(locationString) - ); - return this.newResponse(null, status ?? 302); - }, "redirect"); - /** - * `.notFound()` can return the Not Found Response. - * - * @see {@link https://hono.dev/docs/api/context#notfound} - * - * @example - * ```ts - * app.get('/notfound', (c) => { - * return c.notFound() - * }) - * ``` - */ - notFound = /* @__PURE__ */ __name(() => { - this.#notFoundHandler ??= () => createResponseInstance(); - return this.#notFoundHandler(this); - }, "notFound"); -}; - -// 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"]; -var MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is already built."; -var UnsupportedPathError = class extends Error { - static { - __name(this, "UnsupportedPathError"); - } -}; - -// node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/utils/constants.js -var COMPOSED_HANDLER = "__COMPOSED_HANDLER"; - -// 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"); -var errorHandler = /* @__PURE__ */ __name((err, c) => { - if ("getResponse" in err) { - const res = err.getResponse(); - return c.newResponse(res.body, res); - } - console.error(err); - return c.text("Internal Server Error", 500); -}, "errorHandler"); -var Hono = class _Hono { - static { - __name(this, "_Hono"); - } - get; - post; - put; - delete; - options; - patch; - all; - on; - use; - /* - This class is like an abstract class and does not have a router. - To use it, inherit the class and implement router in the constructor. - */ - router; - getPath; - // Cannot use `#` because it requires visibility at JavaScript runtime. - _basePath = "/"; - #path = "/"; - routes = []; - constructor(options = {}) { - const allMethods = [...METHODS, METHOD_NAME_ALL_LOWERCASE]; - allMethods.forEach((method) => { - this[method] = (args1, ...args) => { - if (typeof args1 === "string") { - this.#path = args1; - } else { - this.#addRoute(method, this.#path, args1); - } - args.forEach((handler) => { - this.#addRoute(method, this.#path, handler); - }); - return this; - }; - }); - this.on = (method, path, ...handlers) => { - for (const p of [path].flat()) { - this.#path = p; - for (const m of [method].flat()) { - handlers.map((handler) => { - this.#addRoute(m.toUpperCase(), this.#path, handler); - }); - } - } - return this; - }; - this.use = (arg1, ...handlers) => { - if (typeof arg1 === "string") { - this.#path = arg1; - } else { - this.#path = "*"; - handlers.unshift(arg1); - } - handlers.forEach((handler) => { - this.#addRoute(METHOD_NAME_ALL, this.#path, handler); - }); - return this; - }; - const { strict, ...optionsWithoutStrict } = options; - Object.assign(this, optionsWithoutStrict); - this.getPath = strict ?? true ? options.getPath ?? getPath : getPathNoStrict; - } - #clone() { - const clone = new _Hono({ - router: this.router, - getPath: this.getPath - }); - clone.errorHandler = this.errorHandler; - clone.#notFoundHandler = this.#notFoundHandler; - clone.routes = this.routes; - return clone; - } - #notFoundHandler = notFoundHandler; - // Cannot use `#` because it requires visibility at JavaScript runtime. - errorHandler = errorHandler; - /** - * `.route()` allows grouping other Hono instance in routes. - * - * @see {@link https://hono.dev/docs/api/routing#grouping} - * - * @param {string} path - base Path - * @param {Hono} app - other Hono instance - * @returns {Hono} routed Hono instance - * - * @example - * ```ts - * const app = new Hono() - * const app2 = new Hono() - * - * app2.get("/user", (c) => c.text("user")) - * app.route("/api", app2) // GET /api/user - * ``` - */ - route(path, app2) { - const subApp = this.basePath(path); - app2.routes.map((r) => { - let handler; - if (app2.errorHandler === errorHandler) { - handler = r.handler; - } else { - handler = /* @__PURE__ */ __name(async (c, next) => (await compose([], app2.errorHandler)(c, () => r.handler(c, next))).res, "handler"); - handler[COMPOSED_HANDLER] = r.handler; - } - subApp.#addRoute(r.method, r.path, handler); - }); - return this; - } - /** - * `.basePath()` allows base paths to be specified. - * - * @see {@link https://hono.dev/docs/api/routing#base-path} - * - * @param {string} path - base Path - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * const api = new Hono().basePath('/api') - * ``` - */ - basePath(path) { - const subApp = this.#clone(); - subApp._basePath = mergePath(this._basePath, path); - return subApp; - } - /** - * `.onError()` handles an error and returns a customized Response. - * - * @see {@link https://hono.dev/docs/api/hono#error-handling} - * - * @param {ErrorHandler} handler - request Handler for error - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * app.onError((err, c) => { - * console.error(`${err}`) - * return c.text('Custom Error Message', 500) - * }) - * ``` - */ - onError = /* @__PURE__ */ __name((handler) => { - this.errorHandler = handler; - return this; - }, "onError"); - /** - * `.notFound()` allows you to customize a Not Found Response. - * - * @see {@link https://hono.dev/docs/api/hono#not-found} - * - * @param {NotFoundHandler} handler - request handler for not-found - * @returns {Hono} changed Hono instance - * - * @example - * ```ts - * app.notFound((c) => { - * return c.text('Custom 404 Message', 404) - * }) - * ``` - */ - notFound = /* @__PURE__ */ __name((handler) => { - this.#notFoundHandler = handler; - return this; - }, "notFound"); - /** - * `.mount()` allows you to mount applications built with other frameworks into your Hono application. - * - * @see {@link https://hono.dev/docs/api/hono#mount} - * - * @param {string} path - base Path - * @param {Function} applicationHandler - other Request Handler - * @param {MountOptions} [options] - options of `.mount()` - * @returns {Hono} mounted Hono instance - * - * @example - * ```ts - * import { Router as IttyRouter } from 'itty-router' - * import { Hono } from 'hono' - * // Create itty-router application - * const ittyRouter = IttyRouter() - * // GET /itty-router/hello - * ittyRouter.get('/hello', () => new Response('Hello from itty-router')) - * - * const app = new Hono() - * app.mount('/itty-router', ittyRouter.handle) - * ``` - * - * @example - * ```ts - * const app = new Hono() - * // Send the request to another application without modification. - * app.mount('/app', anotherApp, { - * replaceRequest: (req) => req, - * }) - * ``` - */ - mount(path, applicationHandler, options) { - let replaceRequest; - let optionHandler; - if (options) { - if (typeof options === "function") { - optionHandler = options; - } else { - optionHandler = options.optionHandler; - if (options.replaceRequest === false) { - replaceRequest = /* @__PURE__ */ __name((request) => request, "replaceRequest"); - } else { - replaceRequest = options.replaceRequest; - } - } - } - const getOptions = optionHandler ? (c) => { - const options2 = optionHandler(c); - return Array.isArray(options2) ? options2 : [options2]; - } : (c) => { - let executionContext = void 0; - try { - executionContext = c.executionCtx; - } catch { - } - return [c.env, executionContext]; - }; - replaceRequest ||= (() => { - const mergedPath = mergePath(this._basePath, path); - const pathPrefixLength = mergedPath === "/" ? 0 : mergedPath.length; - return (request) => { - const url = new URL(request.url); - url.pathname = url.pathname.slice(pathPrefixLength) || "/"; - return new Request(url, request); - }; - })(); - const handler = /* @__PURE__ */ __name(async (c, next) => { - const res = await applicationHandler(replaceRequest(c.req.raw), ...getOptions(c)); - if (res) { - return res; - } - await next(); - }, "handler"); - this.#addRoute(METHOD_NAME_ALL, mergePath(path, "*"), handler); - return this; - } - #addRoute(method, path, handler) { - method = method.toUpperCase(); - path = mergePath(this._basePath, path); - const r = { basePath: this._basePath, path, method, handler }; - this.router.add(method, path, [handler, r]); - this.routes.push(r); - } - #handleError(err, c) { - if (err instanceof Error) { - return this.errorHandler(err, c); - } - throw err; - } - #dispatch(request, executionCtx, env2, method) { - if (method === "HEAD") { - return (async () => new Response(null, await this.#dispatch(request, executionCtx, env2, "GET")))(); - } - const path = this.getPath(request, { env: env2 }); - const matchResult = this.router.match(method, path); - const c = new Context(request, { - path, - matchResult, - env: env2, - executionCtx, - notFoundHandler: this.#notFoundHandler - }); - if (matchResult[0].length === 1) { - let res; - try { - res = matchResult[0][0][0][0](c, async () => { - c.res = await this.#notFoundHandler(c); - }); - } catch (err) { - return this.#handleError(err, c); - } - return res instanceof Promise ? res.then( - (resolved) => resolved || (c.finalized ? c.res : this.#notFoundHandler(c)) - ).catch((err) => this.#handleError(err, c)) : res ?? this.#notFoundHandler(c); - } - const composed = compose(matchResult[0], this.errorHandler, this.#notFoundHandler); - return (async () => { - try { - const context2 = await composed(c); - if (!context2.finalized) { - throw new Error( - "Context is not finalized. Did you forget to return a Response object or `await next()`?" - ); - } - return context2.res; - } catch (err) { - return this.#handleError(err, c); - } - })(); - } - /** - * `.fetch()` will be entry point of your app. - * - * @see {@link https://hono.dev/docs/api/hono#fetch} - * - * @param {Request} request - request Object of request - * @param {Env} Env - env Object - * @param {ExecutionContext} - context of execution - * @returns {Response | Promise} response of request - * - */ - fetch = /* @__PURE__ */ __name((request, ...rest) => { - return this.#dispatch(request, rest[1], rest[0], request.method); - }, "fetch"); - /** - * `.request()` is a useful method for testing. - * You can pass a URL or pathname to send a GET request. - * app will return a Response object. - * ```ts - * test('GET /hello is ok', async () => { - * const res = await app.request('/hello') - * expect(res.status).toBe(200) - * }) - * ``` - * @see https://hono.dev/docs/api/hono#request - */ - request = /* @__PURE__ */ __name((input, requestInit, Env, executionCtx) => { - if (input instanceof Request) { - return this.fetch(requestInit ? new Request(input, requestInit) : input, Env, executionCtx); - } - input = input.toString(); - return this.fetch( - new Request( - /^https?:\/\//.test(input) ? input : `http://localhost${mergePath("/", input)}`, - requestInit - ), - Env, - executionCtx - ); - }, "request"); - /** - * `.fire()` automatically adds a global fetch event listener. - * This can be useful for environments that adhere to the Service Worker API, such as non-ES module Cloudflare Workers. - * @deprecated - * Use `fire` from `hono/service-worker` instead. - * ```ts - * import { Hono } from 'hono' - * import { fire } from 'hono/service-worker' - * - * const app = new Hono() - * // ... - * fire(app) - * ``` - * @see https://hono.dev/docs/api/hono#fire - * @see https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API - * @see https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ - */ - fire = /* @__PURE__ */ __name(() => { - addEventListener("fetch", (event) => { - event.respondWith(this.#dispatch(event.request, event, void 0, event.request.method)); - }); - }, "fire"); -}; - -// node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/matcher.js -var emptyParam = []; -function match(method, path) { - const matchers = this.buildAllMatchers(); - const match2 = /* @__PURE__ */ __name(((method2, path2) => { - const matcher = matchers[method2] || matchers[METHOD_NAME_ALL]; - const staticMatch = matcher[2][path2]; - if (staticMatch) { - return staticMatch; - } - const match3 = path2.match(matcher[0]); - if (!match3) { - return [[], emptyParam]; - } - const index = match3.indexOf("", 1); - return [matcher[1][index], match3]; - }), "match2"); - this.match = match2; - return match2(method, path); -} -__name(match, "match"); - -// 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 = "(?:|/.*)"; -var PATH_ERROR = /* @__PURE__ */ Symbol(); -var regExpMetaChars = new Set(".\\+*[^]$()"); -function compareKey(a, b) { - if (a.length === 1) { - return b.length === 1 ? a < b ? -1 : 1 : -1; - } - if (b.length === 1) { - return 1; - } - if (a === ONLY_WILDCARD_REG_EXP_STR || a === TAIL_WILDCARD_REG_EXP_STR) { - return 1; - } else if (b === ONLY_WILDCARD_REG_EXP_STR || b === TAIL_WILDCARD_REG_EXP_STR) { - return -1; - } - if (a === LABEL_REG_EXP_STR) { - return 1; - } else if (b === LABEL_REG_EXP_STR) { - return -1; - } - return a.length === b.length ? a < b ? -1 : 1 : b.length - a.length; -} -__name(compareKey, "compareKey"); -var Node = class _Node { - static { - __name(this, "_Node"); - } - #index; - #varIndex; - #children = /* @__PURE__ */ Object.create(null); - insert(tokens, index, paramMap, context2, pathErrorCheckOnly) { - if (tokens.length === 0) { - if (this.#index !== void 0) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - this.#index = index; - return; - } - const [token, ...restTokens] = tokens; - const pattern = token === "*" ? restTokens.length === 0 ? ["", "", ONLY_WILDCARD_REG_EXP_STR] : ["", "", LABEL_REG_EXP_STR] : token === "/*" ? ["", "", TAIL_WILDCARD_REG_EXP_STR] : token.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/); - let node; - if (pattern) { - const name = pattern[1]; - let regexpStr = pattern[2] || LABEL_REG_EXP_STR; - if (name && pattern[2]) { - if (regexpStr === ".*") { - throw PATH_ERROR; - } - regexpStr = regexpStr.replace(/^\((?!\?:)(?=[^)]+\)$)/, "(?:"); - if (/\((?!\?:)/.test(regexpStr)) { - throw PATH_ERROR; - } - } - node = this.#children[regexpStr]; - if (!node) { - if (Object.keys(this.#children).some( - (k) => k !== ONLY_WILDCARD_REG_EXP_STR && k !== TAIL_WILDCARD_REG_EXP_STR - )) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - node = this.#children[regexpStr] = new _Node(); - if (name !== "") { - node.#varIndex = context2.varIndex++; - } - } - if (!pathErrorCheckOnly && name !== "") { - paramMap.push([name, node.#varIndex]); - } - } else { - node = this.#children[token]; - if (!node) { - if (Object.keys(this.#children).some( - (k) => k.length > 1 && k !== ONLY_WILDCARD_REG_EXP_STR && k !== TAIL_WILDCARD_REG_EXP_STR - )) { - throw PATH_ERROR; - } - if (pathErrorCheckOnly) { - return; - } - node = this.#children[token] = new _Node(); - } - } - node.insert(restTokens, index, paramMap, context2, pathErrorCheckOnly); - } - buildRegExpStr() { - const childKeys = Object.keys(this.#children).sort(compareKey); - const strList = childKeys.map((k) => { - const c = this.#children[k]; - return (typeof c.#varIndex === "number" ? `(${k})@${c.#varIndex}` : regExpMetaChars.has(k) ? `\\${k}` : k) + c.buildRegExpStr(); - }); - if (typeof this.#index === "number") { - strList.unshift(`#${this.#index}`); - } - if (strList.length === 0) { - return ""; - } - if (strList.length === 1) { - return strList[0]; - } - return "(?:" + strList.join("|") + ")"; - } -}; - -// node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/reg-exp-router/trie.js -var Trie = class { - static { - __name(this, "Trie"); - } - #context = { varIndex: 0 }; - #root = new Node(); - insert(path, index, pathErrorCheckOnly) { - const paramAssoc = []; - const groups = []; - for (let i = 0; ; ) { - let replaced = false; - path = path.replace(/\{[^}]+\}/g, (m) => { - const mark = `@\\${i}`; - groups[i] = [mark, m]; - i++; - replaced = true; - return mark; - }); - if (!replaced) { - break; - } - } - const tokens = path.match(/(?::[^\/]+)|(?:\/\*$)|./g) || []; - for (let i = groups.length - 1; i >= 0; i--) { - const [mark] = groups[i]; - for (let j = tokens.length - 1; j >= 0; j--) { - if (tokens[j].indexOf(mark) !== -1) { - tokens[j] = tokens[j].replace(mark, groups[i][1]); - break; - } - } - } - this.#root.insert(tokens, index, paramAssoc, this.#context, pathErrorCheckOnly); - return paramAssoc; - } - buildRegExp() { - let regexp = this.#root.buildRegExpStr(); - if (regexp === "") { - return [/^$/, [], []]; - } - let captureIndex = 0; - const indexReplacementMap = []; - const paramReplacementMap = []; - regexp = regexp.replace(/#(\d+)|@(\d+)|\.\*\$/g, (_, handlerIndex, paramIndex) => { - if (handlerIndex !== void 0) { - indexReplacementMap[++captureIndex] = Number(handlerIndex); - return "$()"; - } - if (paramIndex !== void 0) { - paramReplacementMap[Number(paramIndex)] = ++captureIndex; - return ""; - } - return ""; - }); - return [new RegExp(`^${regexp}`), indexReplacementMap, paramReplacementMap]; - } -}; - -// 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) { - return wildcardRegExpCache[path] ??= new RegExp( - path === "*" ? "" : `^${path.replace( - /\/\*$|([.\\+*[^\]$()])/g, - (_, metaChar) => metaChar ? `\\${metaChar}` : "(?:|/.*)" - )}$` - ); -} -__name(buildWildcardRegExp, "buildWildcardRegExp"); -function clearWildcardRegExpCache() { - wildcardRegExpCache = /* @__PURE__ */ Object.create(null); -} -__name(clearWildcardRegExpCache, "clearWildcardRegExpCache"); -function buildMatcherFromPreprocessedRoutes(routes) { - const trie = new Trie(); - const handlerData = []; - if (routes.length === 0) { - return nullMatcher; - } - const routesWithStaticPathFlag = routes.map( - (route) => [!/\*|\/:/.test(route[0]), ...route] - ).sort( - ([isStaticA, pathA], [isStaticB, pathB]) => isStaticA ? 1 : isStaticB ? -1 : pathA.length - pathB.length - ); - const staticMap = /* @__PURE__ */ Object.create(null); - for (let i = 0, j = -1, len = routesWithStaticPathFlag.length; i < len; i++) { - const [pathErrorCheckOnly, path, handlers] = routesWithStaticPathFlag[i]; - if (pathErrorCheckOnly) { - staticMap[path] = [handlers.map(([h]) => [h, /* @__PURE__ */ Object.create(null)]), emptyParam]; - } else { - j++; - } - let paramAssoc; - try { - paramAssoc = trie.insert(path, j, pathErrorCheckOnly); - } catch (e) { - throw e === PATH_ERROR ? new UnsupportedPathError(path) : e; - } - if (pathErrorCheckOnly) { - continue; - } - handlerData[j] = handlers.map(([h, paramCount]) => { - const paramIndexMap = /* @__PURE__ */ Object.create(null); - paramCount -= 1; - for (; paramCount >= 0; paramCount--) { - const [key, value] = paramAssoc[paramCount]; - paramIndexMap[key] = value; - } - return [h, paramIndexMap]; - }); - } - const [regexp, indexReplacementMap, paramReplacementMap] = trie.buildRegExp(); - for (let i = 0, len = handlerData.length; i < len; i++) { - for (let j = 0, len2 = handlerData[i].length; j < len2; j++) { - const map = handlerData[i][j]?.[1]; - if (!map) { - continue; - } - const keys = Object.keys(map); - for (let k = 0, len3 = keys.length; k < len3; k++) { - map[keys[k]] = paramReplacementMap[map[keys[k]]]; - } - } - } - const handlerMap = []; - for (const i in indexReplacementMap) { - handlerMap[i] = handlerData[indexReplacementMap[i]]; - } - return [regexp, handlerMap, staticMap]; -} -__name(buildMatcherFromPreprocessedRoutes, "buildMatcherFromPreprocessedRoutes"); -function findMiddleware(middleware, path) { - if (!middleware) { - return void 0; - } - for (const k of Object.keys(middleware).sort((a, b) => b.length - a.length)) { - if (buildWildcardRegExp(k).test(path)) { - return [...middleware[k]]; - } - } - return void 0; -} -__name(findMiddleware, "findMiddleware"); -var RegExpRouter = class { - static { - __name(this, "RegExpRouter"); - } - name = "RegExpRouter"; - #middleware; - #routes; - constructor() { - this.#middleware = { [METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) }; - this.#routes = { [METHOD_NAME_ALL]: /* @__PURE__ */ Object.create(null) }; - } - add(method, path, handler) { - const middleware = this.#middleware; - const routes = this.#routes; - if (!middleware || !routes) { - throw new Error(MESSAGE_MATCHER_IS_ALREADY_BUILT); - } - if (!middleware[method]) { - ; - [middleware, routes].forEach((handlerMap) => { - handlerMap[method] = /* @__PURE__ */ Object.create(null); - Object.keys(handlerMap[METHOD_NAME_ALL]).forEach((p) => { - handlerMap[method][p] = [...handlerMap[METHOD_NAME_ALL][p]]; - }); - }); - } - if (path === "/*") { - path = "*"; - } - const paramCount = (path.match(/\/:/g) || []).length; - if (/\*$/.test(path)) { - const re = buildWildcardRegExp(path); - if (method === METHOD_NAME_ALL) { - Object.keys(middleware).forEach((m) => { - middleware[m][path] ||= findMiddleware(middleware[m], path) || findMiddleware(middleware[METHOD_NAME_ALL], path) || []; - }); - } else { - middleware[method][path] ||= findMiddleware(middleware[method], path) || findMiddleware(middleware[METHOD_NAME_ALL], path) || []; - } - Object.keys(middleware).forEach((m) => { - if (method === METHOD_NAME_ALL || method === m) { - Object.keys(middleware[m]).forEach((p) => { - re.test(p) && middleware[m][p].push([handler, paramCount]); - }); - } - }); - Object.keys(routes).forEach((m) => { - if (method === METHOD_NAME_ALL || method === m) { - Object.keys(routes[m]).forEach( - (p) => re.test(p) && routes[m][p].push([handler, paramCount]) - ); - } - }); - return; - } - const paths = checkOptionalParameter(path) || [path]; - for (let i = 0, len = paths.length; i < len; i++) { - const path2 = paths[i]; - Object.keys(routes).forEach((m) => { - if (method === METHOD_NAME_ALL || method === m) { - routes[m][path2] ||= [ - ...findMiddleware(middleware[m], path2) || findMiddleware(middleware[METHOD_NAME_ALL], path2) || [] - ]; - routes[m][path2].push([handler, paramCount - len + i + 1]); - } - }); - } - } - match = match; - buildAllMatchers() { - const matchers = /* @__PURE__ */ Object.create(null); - Object.keys(this.#routes).concat(Object.keys(this.#middleware)).forEach((method) => { - matchers[method] ||= this.#buildMatcher(method); - }); - this.#middleware = this.#routes = void 0; - clearWildcardRegExpCache(); - return matchers; - } - #buildMatcher(method) { - const routes = []; - let hasOwnRoute = method === METHOD_NAME_ALL; - [this.#middleware, this.#routes].forEach((r) => { - const ownRoute = r[method] ? Object.keys(r[method]).map((path) => [path, r[method][path]]) : []; - if (ownRoute.length !== 0) { - hasOwnRoute ||= true; - routes.push(...ownRoute); - } else if (method !== METHOD_NAME_ALL) { - routes.push( - ...Object.keys(r[METHOD_NAME_ALL]).map((path) => [path, r[METHOD_NAME_ALL][path]]) - ); - } - }); - if (!hasOwnRoute) { - return null; - } else { - return buildMatcherFromPreprocessedRoutes(routes); - } - } -}; - -// node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/smart-router/router.js -var SmartRouter = class { - static { - __name(this, "SmartRouter"); - } - name = "SmartRouter"; - #routers = []; - #routes = []; - constructor(init) { - this.#routers = init.routers; - } - add(method, path, handler) { - if (!this.#routes) { - throw new Error(MESSAGE_MATCHER_IS_ALREADY_BUILT); - } - this.#routes.push([method, path, handler]); - } - match(method, path) { - if (!this.#routes) { - throw new Error("Fatal error"); - } - const routers = this.#routers; - const routes = this.#routes; - const len = routers.length; - let i = 0; - let res; - for (; i < len; i++) { - const router = routers[i]; - try { - for (let i2 = 0, len2 = routes.length; i2 < len2; i2++) { - router.add(...routes[i2]); - } - res = router.match(method, path); - } catch (e) { - if (e instanceof UnsupportedPathError) { - continue; - } - throw e; - } - this.match = router.match.bind(router); - this.#routers = [router]; - this.#routes = void 0; - break; - } - if (i === len) { - throw new Error("Fatal error"); - } - this.name = `SmartRouter + ${this.activeRouter.name}`; - return res; - } - get activeRouter() { - if (this.#routes || this.#routers.length !== 1) { - throw new Error("No active router has been determined yet."); - } - return this.#routers[0]; - } -}; - -// 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) { - return true; - } - return false; -}, "hasChildren"); -var Node2 = class _Node2 { - static { - __name(this, "_Node"); - } - #methods; - #children; - #patterns; - #order = 0; - #params = emptyParams; - constructor(method, handler, children) { - this.#children = children || /* @__PURE__ */ Object.create(null); - this.#methods = []; - if (method && handler) { - const m = /* @__PURE__ */ Object.create(null); - m[method] = { handler, possibleKeys: [], score: 0 }; - this.#methods = [m]; - } - this.#patterns = []; - } - insert(method, path, handler) { - this.#order = ++this.#order; - let curNode = this; - const parts = splitRoutingPath(path); - const possibleKeys = []; - for (let i = 0, len = parts.length; i < len; i++) { - const p = parts[i]; - const nextP = parts[i + 1]; - const pattern = getPattern(p, nextP); - const key = Array.isArray(pattern) ? pattern[0] : p; - if (key in curNode.#children) { - curNode = curNode.#children[key]; - if (pattern) { - possibleKeys.push(pattern[1]); - } - continue; - } - curNode.#children[key] = new _Node2(); - if (pattern) { - curNode.#patterns.push(pattern); - possibleKeys.push(pattern[1]); - } - curNode = curNode.#children[key]; - } - curNode.#methods.push({ - [method]: { - handler, - possibleKeys: possibleKeys.filter((v, i, a) => a.indexOf(v) === i), - score: this.#order - } - }); - return curNode; - } - #pushHandlerSets(handlerSets, node, method, nodeParams, params) { - for (let i = 0, len = node.#methods.length; i < len; i++) { - const m = node.#methods[i]; - const handlerSet = m[method] || m[METHOD_NAME_ALL]; - const processedSet = {}; - if (handlerSet !== void 0) { - handlerSet.params = /* @__PURE__ */ Object.create(null); - handlerSets.push(handlerSet); - if (nodeParams !== emptyParams || params && params !== emptyParams) { - for (let i2 = 0, len2 = handlerSet.possibleKeys.length; i2 < len2; i2++) { - const key = handlerSet.possibleKeys[i2]; - const processed = processedSet[handlerSet.score]; - handlerSet.params[key] = params?.[key] && !processed ? params[key] : nodeParams[key] ?? params?.[key]; - processedSet[handlerSet.score] = true; - } - } - } - } - } - search(method, path) { - const handlerSets = []; - this.#params = emptyParams; - const curNode = this; - let curNodes = [curNode]; - const parts = splitPath(path); - const curNodesQueue = []; - const len = parts.length; - let partOffsets = null; - for (let i = 0; i < len; i++) { - const part = parts[i]; - const isLast = i === len - 1; - const tempNodes = []; - for (let j = 0, len2 = curNodes.length; j < len2; j++) { - const node = curNodes[j]; - const nextNode = node.#children[part]; - if (nextNode) { - nextNode.#params = node.#params; - if (isLast) { - if (nextNode.#children["*"]) { - this.#pushHandlerSets(handlerSets, nextNode.#children["*"], method, node.#params); - } - this.#pushHandlerSets(handlerSets, nextNode, method, node.#params); - } else { - tempNodes.push(nextNode); - } - } - for (let k = 0, len3 = node.#patterns.length; k < len3; k++) { - const pattern = node.#patterns[k]; - const params = node.#params === emptyParams ? {} : { ...node.#params }; - if (pattern === "*") { - const astNode = node.#children["*"]; - if (astNode) { - this.#pushHandlerSets(handlerSets, astNode, method, node.#params); - astNode.#params = params; - tempNodes.push(astNode); - } - continue; - } - const [key, name, matcher] = pattern; - if (!part && !(matcher instanceof RegExp)) { - continue; - } - const child = node.#children[key]; - if (matcher instanceof RegExp) { - if (partOffsets === null) { - partOffsets = new Array(len); - let offset = path[0] === "/" ? 1 : 0; - for (let p = 0; p < len; p++) { - partOffsets[p] = offset; - offset += parts[p].length + 1; - } - } - const restPathString = path.substring(partOffsets[i]); - const m = matcher.exec(restPathString); - if (m) { - params[name] = m[0]; - this.#pushHandlerSets(handlerSets, child, method, node.#params, params); - if (hasChildren(child.#children)) { - child.#params = params; - const componentCount = m[0].match(/\//)?.length ?? 0; - const targetCurNodes = curNodesQueue[componentCount] ||= []; - targetCurNodes.push(child); - } - continue; - } - } - if (matcher === true || matcher.test(part)) { - params[name] = part; - if (isLast) { - this.#pushHandlerSets(handlerSets, child, method, params, node.#params); - if (child.#children["*"]) { - this.#pushHandlerSets( - handlerSets, - child.#children["*"], - method, - params, - node.#params - ); - } - } else { - child.#params = params; - tempNodes.push(child); - } - } - } - } - const shifted = curNodesQueue.shift(); - curNodes = shifted ? tempNodes.concat(shifted) : tempNodes; - } - if (handlerSets.length > 1) { - handlerSets.sort((a, b) => { - return a.score - b.score; - }); - } - return [handlerSets.map(({ handler, params }) => [handler, params])]; - } -}; - -// node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/router/trie-router/router.js -var TrieRouter = class { - static { - __name(this, "TrieRouter"); - } - name = "TrieRouter"; - #node; - constructor() { - this.#node = new Node2(); - } - add(method, path, handler) { - const results = checkOptionalParameter(path); - if (results) { - for (let i = 0, len = results.length; i < len; i++) { - this.#node.insert(method, results[i], handler); - } - return; - } - this.#node.insert(method, path, handler); - } - match(method, path) { - return this.#node.search(method, path); - } -}; - -// node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/hono.js -var Hono2 = class extends Hono { - static { - __name(this, "Hono"); - } - /** - * Creates an instance of the Hono class. - * - * @param options - Optional configuration options for the Hono instance. - */ - constructor(options = {}) { - super(options); - this.router = options.router ?? new SmartRouter({ - routers: [new RegExpRouter(), new TrieRouter()] - }); - } -}; - -// node_modules/.pnpm/hono@4.12.14/node_modules/hono/dist/middleware/cors/index.js -var cors = /* @__PURE__ */ __name((options) => { - const defaults = { - origin: "*", - allowMethods: ["GET", "HEAD", "PUT", "POST", "DELETE", "PATCH"], - allowHeaders: [], - exposeHeaders: [] - }; - const opts = { - ...defaults, - ...options - }; - const findAllowOrigin = ((optsOrigin) => { - if (typeof optsOrigin === "string") { - if (optsOrigin === "*") { - if (opts.credentials) { - return (origin) => origin || null; - } - return () => optsOrigin; - } else { - return (origin) => optsOrigin === origin ? origin : null; - } - } else if (typeof optsOrigin === "function") { - return optsOrigin; - } else { - return (origin) => optsOrigin.includes(origin) ? origin : null; - } - })(opts.origin); - const findAllowMethods = ((optsAllowMethods) => { - if (typeof optsAllowMethods === "function") { - return optsAllowMethods; - } else if (Array.isArray(optsAllowMethods)) { - return () => optsAllowMethods; - } else { - return () => []; - } - })(opts.allowMethods); - return /* @__PURE__ */ __name(async function cors2(c, next) { - function set(key, value) { - c.res.headers.set(key, value); - } - __name(set, "set"); - const allowOrigin = await findAllowOrigin(c.req.header("origin") || "", c); - if (allowOrigin) { - set("Access-Control-Allow-Origin", allowOrigin); - } - if (opts.credentials) { - set("Access-Control-Allow-Credentials", "true"); - } - if (opts.exposeHeaders?.length) { - set("Access-Control-Expose-Headers", opts.exposeHeaders.join(",")); - } - if (c.req.method === "OPTIONS") { - if (opts.origin !== "*" || opts.credentials) { - set("Vary", "Origin"); - } - if (opts.maxAge != null) { - set("Access-Control-Max-Age", opts.maxAge.toString()); - } - const allowMethods = await findAllowMethods(c.req.header("origin") || "", c); - if (allowMethods.length) { - set("Access-Control-Allow-Methods", allowMethods.join(",")); - } - let headers = opts.allowHeaders; - if (!headers?.length) { - const requestHeaders = c.req.header("Access-Control-Request-Headers"); - if (requestHeaders) { - headers = requestHeaders.split(/\s*,\s*/); - } - } - if (headers?.length) { - set("Access-Control-Allow-Headers", headers.join(",")); - c.res.headers.append("Vary", "Access-Control-Request-Headers"); - } - c.res.headers.delete("Content-Length"); - c.res.headers.delete("Content-Type"); - return new Response(null, { - headers: c.res.headers, - status: 204, - statusText: "No Content" - }); - } - await next(); - if (opts.origin !== "*" || opts.credentials) { - c.header("Vary", "Origin", { append: true }); - } - }, "cors2"); -}, "cors"); - -// ../../cypher-executor/src/lib/wasi-shim.ts -var WASI_ESUCCESS = 0; -var WASI_ENOSYS = 76; -var FD_STDIN = 0; -var FD_STDOUT = 1; -var FD_STDERR = 2; -function createWasiShim(stdinData, hostFunctions) { - const stdinBytes = new TextEncoder().encode(stdinData); - let stdinOffset = 0; - const stdoutChunks = []; - const stderrChunks = []; - let memory = null; - function getMemoryView() { - if (!memory) throw new Error("WASI memory not set \u2014 call setMemory() after instantiate"); - return new DataView(memory.buffer); - } - __name(getMemoryView, "getMemoryView"); - function writeOut(buf, outPtr, outLenPtr, data) { - try { - new Uint8Array(buf, outPtr, data.length).set(data); - new DataView(buf).setUint32(outLenPtr, data.length, true); - return 0; - } catch { - return 1; - } - } - __name(writeOut, "writeOut"); - function fd_write(fd, iovs, iovs_len, nwritten_ptr) { - if (fd !== FD_STDOUT && fd !== FD_STDERR) return WASI_ENOSYS; - const view = getMemoryView(); - const buf = memory.buffer; - let totalWritten = 0; - for (let i = 0; i < iovs_len; i++) { - const iov_base = view.getUint32(iovs + i * 8, true); - const iov_len = view.getUint32(iovs + i * 8 + 4, true); - if (iov_len === 0) continue; - const chunk = new Uint8Array(buf, iov_base, iov_len); - const copy = new Uint8Array(iov_len); - copy.set(chunk); - if (fd === FD_STDOUT) stdoutChunks.push(copy); - else stderrChunks.push(copy); - totalWritten += iov_len; - } - view.setUint32(nwritten_ptr, totalWritten, true); - return WASI_ESUCCESS; - } - __name(fd_write, "fd_write"); - function fd_read(fd, iovs, iovs_len, nread_ptr) { - if (fd !== FD_STDIN) return WASI_ENOSYS; - const view = getMemoryView(); - const buf = memory.buffer; - let totalRead = 0; - for (let i = 0; i < iovs_len; i++) { - const iov_base = view.getUint32(iovs + i * 8, true); - const iov_len = view.getUint32(iovs + i * 8 + 4, true); - if (iov_len === 0) continue; - const remaining = stdinBytes.length - stdinOffset; - if (remaining <= 0) break; - const toCopy = Math.min(iov_len, remaining); - const dest = new Uint8Array(buf, iov_base, toCopy); - dest.set(stdinBytes.subarray(stdinOffset, stdinOffset + toCopy)); - stdinOffset += toCopy; - totalRead += toCopy; - } - view.setUint32(nread_ptr, totalRead, true); - return WASI_ESUCCESS; - } - __name(fd_read, "fd_read"); - function proc_exit(code) { - throw new Error(`wasm exit: ${code}`); - } - __name(proc_exit, "proc_exit"); - function random_get(buf_ptr, buf_len) { - const view = new Uint8Array(memory.buffer, buf_ptr, buf_len); - crypto.getRandomValues(view); - return WASI_ESUCCESS; - } - __name(random_get, "random_get"); - let asyncifyDataPtr = 0; - const ASYNCIFY_BUF_SIZE = 1024 * 1024; - let asyncifyPendingPromise = null; - let asyncifyResult = 0; - let asyncifyExports = null; - function jspiSuspending(fn) { - const SuspendingCtor = WebAssembly["Suspending"]; - return SuspendingCtor ? new SuspendingCtor(fn) : fn; - } - __name(jspiSuspending, "jspiSuspending"); - function asyncifyWrap(fn) { - return (...args) => { - if (!memory) return 1; - const ax = asyncifyExports; - if (!ax) return 0; - const state = ax.get_state(); - if (state === 2) { - return asyncifyResult; - } - if (state === 1) { - return 0; - } - asyncifyPendingPromise = fn(...args); - ax.start_unwind(asyncifyDataPtr); - return 0; - }; - } - __name(asyncifyWrap, "asyncifyWrap"); - function hostWrap(fn) { - const SuspendingCtor = WebAssembly["Suspending"]; - if (SuspendingCtor) { - return new SuspendingCtor(fn); - } - return asyncifyWrap(fn); - } - __name(hostWrap, "hostWrap"); - const shim = { - imports: { - wasi_snapshot_preview1: { - fd_write, - fd_read, - proc_exit, - random_get, - // 其餘 syscall 回傳 ENOSYS(不允許網路/檔案系統操作) - fd_seek: /* @__PURE__ */ __name(() => WASI_ENOSYS, "fd_seek"), - fd_close: /* @__PURE__ */ __name(() => WASI_ESUCCESS, "fd_close"), - fd_fdstat_get: /* @__PURE__ */ __name(() => WASI_ENOSYS, "fd_fdstat_get"), - fd_prestat_get: /* @__PURE__ */ __name(() => WASI_ENOSYS, "fd_prestat_get"), - fd_prestat_dir_name: /* @__PURE__ */ __name(() => WASI_ENOSYS, "fd_prestat_dir_name"), - environ_get: /* @__PURE__ */ __name(() => WASI_ESUCCESS, "environ_get"), - environ_sizes_get: /* @__PURE__ */ __name((count_ptr, size_ptr) => { - if (memory) { - const view = getMemoryView(); - view.setUint32(count_ptr, 0, true); - view.setUint32(size_ptr, 0, true); - } - return WASI_ESUCCESS; - }, "environ_sizes_get"), - args_get: /* @__PURE__ */ __name(() => WASI_ESUCCESS, "args_get"), - args_sizes_get: /* @__PURE__ */ __name((argc_ptr, argv_buf_size_ptr) => { - if (memory) { - const view = getMemoryView(); - view.setUint32(argc_ptr, 0, true); - view.setUint32(argv_buf_size_ptr, 0, true); - } - return WASI_ESUCCESS; - }, "args_sizes_get"), - clock_time_get: /* @__PURE__ */ __name((id, precision, time_ptr) => { - if (memory) { - const view = getMemoryView(); - const now = BigInt(Date.now()) * 1000000n; - view.setBigUint64(time_ptr, now, true); - } - return WASI_ESUCCESS; - }, "clock_time_get"), - clock_res_get: /* @__PURE__ */ __name(() => WASI_ENOSYS, "clock_res_get"), - poll_oneoff: /* @__PURE__ */ __name(() => WASI_ENOSYS, "poll_oneoff"), - sched_yield: /* @__PURE__ */ __name(() => WASI_ESUCCESS, "sched_yield"), - proc_raise: /* @__PURE__ */ __name(() => WASI_ENOSYS, "proc_raise"), - sock_accept: /* @__PURE__ */ __name(() => WASI_ENOSYS, "sock_accept"), - sock_recv: /* @__PURE__ */ __name(() => WASI_ENOSYS, "sock_recv"), - sock_send: /* @__PURE__ */ __name(() => WASI_ENOSYS, "sock_send"), - sock_shutdown: /* @__PURE__ */ __name(() => WASI_ENOSYS, "sock_shutdown"), - path_open: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_open"), - path_create_directory: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_create_directory"), - path_remove_directory: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_remove_directory"), - path_rename: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_rename"), - path_unlink_file: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_unlink_file"), - path_filestat_get: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_filestat_get"), - path_readlink: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_readlink"), - path_symlink: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_symlink"), - path_link: /* @__PURE__ */ __name(() => WASI_ENOSYS, "path_link") - }, - // u6u host functions:讓 .wasm 零件透過 host function 呼叫外部服務 - // .wasm 零件用 //go:wasmimport u6u 宣告 - // 所有 async host function 透過 asyncifyWrap 包裝,實作 asyncify 協議 - u6u: { - http_request: hostFunctions?.http_request ? hostWrap(async (urlPtr, urlLen, methodPtr, methodLen, headersPtr, headersLen, bodyPtr, bodyLen, outPtr, outLenPtr) => { - if (!memory) return 1; - const snapBuf = memory.buffer; - const dec = new TextDecoder(); - const url = dec.decode(new Uint8Array(snapBuf, urlPtr, urlLen)); - const method = dec.decode(new Uint8Array(snapBuf, methodPtr, methodLen)); - const headers = dec.decode(new Uint8Array(snapBuf, headersPtr, headersLen)); - const body = dec.decode(new Uint8Array(snapBuf, bodyPtr, bodyLen)); - try { - const result = await hostFunctions.http_request(url, method, headers, body); - return writeOut(memory.buffer, outPtr, outLenPtr, new TextEncoder().encode(result)); - } catch { - return 1; - } - }) : () => 1, - // kv_get(keyPtr, keyLen, outPtr, outLenPtr) → 0 成功;1 錯誤;2 找不到 key - kv_get: hostFunctions?.kv_get ? hostWrap(async (keyPtr, keyLen, outPtr, outLenPtr) => { - if (!memory) { - console.error("[kv_get] memory null"); - return 1; - } - const key = new TextDecoder().decode(new Uint8Array(memory.buffer, keyPtr, keyLen)); - console.error(`[kv_get] key="${key}" keyPtr=${keyPtr} keyLen=${keyLen} outPtr=${outPtr} outLenPtr=${outLenPtr}`); - try { - const result = await hostFunctions.kv_get(key); - console.error(`[kv_get] result=${result === null ? "null" : result.slice(0, 80)}`); - if (result === null) return 2; - const encoded = new TextEncoder().encode(result); - const status = writeOut(memory.buffer, outPtr, outLenPtr, encoded); - console.error(`[kv_get] writeOut status=${status} encodedLen=${encoded.length} memBufLen=${memory.buffer.byteLength}`); - return status; - } catch (e) { - console.error(`[kv_get] error: ${e}`); - return 1; - } - }) : () => 1, - // secret_get(refPtr, refLen, outPtr, outLenPtr) → 0 成功;1 錯誤;2 找不到 ref - // 與 kv_get 同款 pointer/memory-write 機制;差別只在 host 端實作來源(env[ref] 而非 KV.get)。 - secret_get: hostFunctions?.secret_get ? hostWrap(async (refPtr, refLen, outPtr, outLenPtr) => { - if (!memory) return 1; - const ref2 = new TextDecoder().decode(new Uint8Array(memory.buffer, refPtr, refLen)); - try { - const result = await hostFunctions.secret_get(ref2); - if (result === null) return 2; - const encoded = new TextEncoder().encode(result); - return writeOut(memory.buffer, outPtr, outLenPtr, encoded); - } catch { - return 1; - } - }) : () => 1, - // kv_put(keyPtr, keyLen, valPtr, valLen, ttlSeconds) → 0 成功;1 錯誤 - kv_put: hostFunctions?.kv_put ? hostWrap(async (keyPtr, keyLen, valPtr, valLen, ttlSeconds) => { - if (!memory) return 1; - const dec = new TextDecoder(); - const key = dec.decode(new Uint8Array(memory.buffer, keyPtr, keyLen)); - const value = dec.decode(new Uint8Array(memory.buffer, valPtr, valLen)); - try { - await hostFunctions.kv_put(key, value, ttlSeconds); - return 0; - } catch { - return 1; - } - }) : () => 1, - // crypto_decrypt — 已停用,永遠回 1(失敗)。 - // - // ⚠️ 不能整條移除:現役 auth_static_key / auth_service_account / auth_oauth2 的 - // .wasm 仍宣告 `//go:wasmimport u6u crypto_decrypt`,import 缺項會讓 WASM - // **instantiate 直接失敗**(不是呼叫才失敗)→ 所有認證零件全掛。故保留成 stub, - // 讓連結成立。待三個零件的 Go 原始碼移除該 wasmimport 並重編 wasm 後,才可刪掉這條。 - crypto_decrypt: /* @__PURE__ */ __name(() => 1, "crypto_decrypt"), - // crypto_sign_rs256(dataPtr, dataLen, pkcs8Ptr, pkcs8Len, outPtr, outLenPtr) → 0 成功 - crypto_sign_rs256: hostFunctions?.crypto_sign_rs256 ? hostWrap(async (dataPtr, dataLen, pkcs8Ptr, pkcs8Len, outPtr, outLenPtr) => { - if (!memory) return 1; - const data = new Uint8Array(new Uint8Array(memory.buffer, dataPtr, dataLen)); - const pkcs8 = new Uint8Array(new Uint8Array(memory.buffer, pkcs8Ptr, pkcs8Len)); - try { - const sig = await hostFunctions.crypto_sign_rs256(data, pkcs8); - return writeOut(memory.buffer, outPtr, outLenPtr, sig); - } catch { - return 1; - } - }) : () => 1 - } - }, - setMemory(mem) { - memory = mem; - }, - async run(instance) { - const exp = instance.exports; - const startFn = exp._start ?? exp.main; - if (typeof startFn !== "function") throw new Error("WASM missing _start or main export"); - const promisingFn = WebAssembly["promising"]; - if (promisingFn) { - try { - await promisingFn(startFn)(); - } catch (e) { - if (!(e instanceof Error && e.message === "wasm exit: 0")) throw e; - } - return; - } - const asyncifyGetState = exp.asyncify_get_state; - const asyncifyStartUnwind = exp.asyncify_start_unwind; - const asyncifyStopUnwind = exp.asyncify_stop_unwind; - const asyncifyStartRewind = exp.asyncify_start_rewind; - const asyncifyStopRewind = exp.asyncify_stop_rewind; - if (asyncifyGetState && asyncifyStartUnwind && asyncifyStopUnwind && asyncifyStartRewind && asyncifyStopRewind) { - asyncifyExports = { - get_state: asyncifyGetState, - start_unwind: asyncifyStartUnwind, - stop_unwind: asyncifyStopUnwind, - start_rewind: asyncifyStartRewind, - stop_rewind: asyncifyStopRewind - }; - const mallocFn = exp.malloc; - if (mallocFn && memory) { - const totalSize = ASYNCIFY_BUF_SIZE; - asyncifyDataPtr = mallocFn(totalSize); - const view = new DataView(memory.buffer); - view.setInt32(asyncifyDataPtr, asyncifyDataPtr + 8, true); - view.setInt32(asyncifyDataPtr + 4, asyncifyDataPtr + totalSize, true); - } else if (memory) { - const memBytes = memory.buffer.byteLength; - asyncifyDataPtr = memBytes - ASYNCIFY_BUF_SIZE; - if (asyncifyDataPtr > 8) { - const view = new DataView(memory.buffer); - view.setInt32(asyncifyDataPtr, asyncifyDataPtr + 8, true); - view.setInt32(asyncifyDataPtr + 4, asyncifyDataPtr + ASYNCIFY_BUF_SIZE, true); - } - } - } - if (!asyncifyExports) { - try { - startFn(); - } catch (e) { - if (!(e instanceof Error && e.message === "wasm exit: 0")) throw e; - } - return; - } - let rewinding = false; - while (true) { - asyncifyPendingPromise = null; - try { - if (rewinding) { - asyncifyExports.start_rewind(asyncifyDataPtr); - startFn(); - asyncifyExports.stop_rewind(); - } else { - startFn(); - } - } catch (e) { - if (e instanceof Error && e.message === "wasm exit: 0") break; - throw e; - } - if (asyncifyPendingPromise !== null) { - asyncifyExports.stop_unwind(); - asyncifyResult = await asyncifyPendingPromise; - asyncifyPendingPromise = null; - rewinding = true; - continue; - } - break; - } - }, - getStdout() { - if (stdoutChunks.length === 0) return ""; - const total = stdoutChunks.reduce((n, c) => n + c.length, 0); - const merged = new Uint8Array(total); - let offset = 0; - for (const chunk of stdoutChunks) { - merged.set(chunk, offset); - offset += chunk.length; - } - return new TextDecoder().decode(merged); - }, - getStderr() { - if (stderrChunks.length === 0) return ""; - const total = stderrChunks.reduce((n, c) => n + c.length, 0); - const merged = new Uint8Array(total); - let offset = 0; - for (const chunk of stderrChunks) { - merged.set(chunk, offset); - offset += chunk.length; - } - return new TextDecoder().decode(merged); - } - }; - return shim; -} -__name(createWasiShim, "createWasiShim"); - -// src/index.ts -var app = new Hono2(); -app.use("*", cors()); -app.get("/", (c) => c.json({ ok: true, component: "km_writer" })); -app.post("/", async (c) => { - let input; - try { - input = await c.req.json(); - } catch { - return c.json({ success: false, error: "request body must be JSON" }, 400); - } - try { - const result = await runWasm(input); - return c.json(result); - } catch (e) { - return c.json( - { success: false, error: e instanceof Error ? e.message : String(e) }, - 500 - ); - } -}); -var index_default = app; -async function runWasm(input) { - const hostFunctions = { - http_request: /* @__PURE__ */ __name(async (url, method, headersJson, body) => { - const headers = {}; - if (headersJson) { - try { - const parsed = JSON.parse(headersJson); - if (parsed && typeof parsed === "object") { - for (const [k, v] of Object.entries(parsed)) { - if (typeof v === "string") headers[k] = v; - } - } - } catch { - } - } - const init = { method, headers }; - if (body && method.toUpperCase() !== "GET" && method.toUpperCase() !== "HEAD") { - init.body = body; - } - const res = await fetch(url, init); - const text = await res.text(); - if (!res.ok) { - return JSON.stringify({ error: `HTTP ${res.status}`, status: res.status, body: text }); - } - return text; - }, "http_request") - }; - const shim = createWasiShim(JSON.stringify(input), hostFunctions); - const instance = await WebAssembly.instantiate( - componentWasm, - shim.imports - ); - shim.setMemory(instance.exports.memory); - await shim.run(instance); - const stdout2 = shim.getStdout().trim(); - if (!stdout2) throw new Error("WASM component produced no output"); - return JSON.parse(stdout2); -} -__name(runWasm, "runWasm"); -export { - index_default as default -}; -//# sourceMappingURL=index.js.map diff --git a/tier1/merge/index.js b/tier1/merge/index.js index 91c044b..96ca6dc 100644 --- a/tier1/merge/index.js +++ b/tier1/merge/index.js @@ -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: "*", diff --git a/tier1/number_ops/index.js b/tier1/number_ops/index.js index 3d61ae2..5cabe28 100644 --- a/tier1/number_ops/index.js +++ b/tier1/number_ops/index.js @@ -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: "*", diff --git a/tier1/set/index.js b/tier1/set/index.js index 44a7d42..c436f03 100644 --- a/tier1/set/index.js +++ b/tier1/set/index.js @@ -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: "*", diff --git a/tier1/string_ops/index.js b/tier1/string_ops/index.js index 8caaecc..efbcffc 100644 --- a/tier1/string_ops/index.js +++ b/tier1/string_ops/index.js @@ -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: "*", diff --git a/tier1/switch/index.js b/tier1/switch/index.js index ab5c0f3..3103bfb 100644 --- a/tier1/switch/index.js +++ b/tier1/switch/index.js @@ -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: "*", diff --git a/tier1/try_catch/index.js b/tier1/try_catch/index.js index 461c8cf..849f5b4 100644 --- a/tier1/try_catch/index.js +++ b/tier1/try_catch/index.js @@ -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: "*", diff --git a/tier1/validate_json/index.js b/tier1/validate_json/index.js index 9acd6fa..61b0b06 100644 --- a/tier1/validate_json/index.js +++ b/tier1/validate_json/index.js @@ -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: "*", diff --git a/tier1/wait/index.js b/tier1/wait/index.js index f2a34b9..64b9adf 100644 --- a/tier1/wait/index.js +++ b/tier1/wait/index.js @@ -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: "*", diff --git a/tier2/cypher/index.js b/tier2/cypher/index.js index 0f56b67..f6b1e8f 100644 --- a/tier2/cypher/index.js +++ b/tier2/cypher/index.js @@ -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(); diff --git a/tier2/kbdb/index.js b/tier2/kbdb/index.js index 65d7f13..201cc63 100644 --- a/tier2/kbdb/index.js +++ b/tier2/kbdb/index.js @@ -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); diff --git a/tier2/mcp/index.js b/tier2/mcp/index.js index 1becfca..cc05c1a 100644 --- a/tier2/mcp/index.js +++ b/tier2/mcp/index.js @@ -32,7 +32,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge mod )); -// 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/mcp/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!`); @@ -54,7 +54,7 @@ function notImplementedClass(name) { }; } var init_utils = __esm({ - "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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs"() { init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -64,10 +64,10 @@ var init_utils = __esm({ } }); -// 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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs var _timeOrigin, _performanceNow, nodeTiming, PerformanceEntry, PerformanceMark, PerformanceMeasure, PerformanceResourceTiming, PerformanceObserverEntryList, Performance, PerformanceObserver, performance; var init_performance = __esm({ - "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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/perf_hooks/performance.mjs"() { init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -311,9 +311,9 @@ var init_performance = __esm({ } }); -// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/perf_hooks.mjs +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/perf_hooks.mjs var init_perf_hooks = __esm({ - "node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/perf_hooks.mjs"() { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/perf_hooks.mjs"() { init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -321,9 +321,9 @@ var init_perf_hooks = __esm({ } }); -// node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260401.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260401.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs var init_performance2 = __esm({ - "node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260401.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs"() { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260401.1/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs"() { init_perf_hooks(); if (!("__unenv__" in performance)) { const proto = Performance.prototype; @@ -347,10 +347,10 @@ var init_performance2 = __esm({ } }); -// 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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs var noop_default; var init_noop = __esm({ - "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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs"() { init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -359,11 +359,11 @@ var init_noop = __esm({ } }); -// 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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs import { Writable } from "node:stream"; var _console, _ignoreErrors, _stderr, _stdout, log, info, trace, debug, table, error, warn, createTask, clear, count, countReset, dir, dirxml, group, groupEnd, groupCollapsed, profile, profileEnd, time, timeEnd, timeLog, timeStamp, Console, _times, _stdoutErrorHandler, _stderrErrorHandler; var init_console = __esm({ - "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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/console.mjs"() { init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -402,10 +402,10 @@ var init_console = __esm({ } }); -// node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260401.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260401.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs var workerdConsole, assert, clear2, context, count2, countReset2, createTask2, debug2, dir2, dirxml2, error2, group2, groupCollapsed2, groupEnd2, info2, log2, profile2, profileEnd2, table2, time2, timeEnd2, timeLog2, timeStamp2, trace2, warn2, console_default; var init_console2 = __esm({ - "node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260401.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs"() { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260401.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/console.mjs"() { init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -456,18 +456,18 @@ var init_console2 = __esm({ } }); -// node_modules/.pnpm/wrangler@4.80.0_@cloudflare+workers-types@4.20260404.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/wrangler@4.80.0_@cloudflare+workers-types@4.20260404.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console var init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console = __esm({ - "node_modules/.pnpm/wrangler@4.80.0_@cloudflare+workers-types@4.20260404.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console"() { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/wrangler@4.80.0_@cloudflare+workers-types@4.20260404.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-console"() { init_console2(); globalThis.console = console_default; } }); -// 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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs var hrtime; var init_hrtime = __esm({ - "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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/hrtime.mjs"() { init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -491,10 +491,10 @@ var init_hrtime = __esm({ } }); -// 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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs var ReadStream; var init_read_stream = __esm({ - "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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/read-stream.mjs"() { init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -516,10 +516,10 @@ var init_read_stream = __esm({ } }); -// 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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs var WriteStream; var init_write_stream = __esm({ - "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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/tty/write-stream.mjs"() { init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -574,9 +574,9 @@ var init_write_stream = __esm({ } }); -// node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/tty.mjs +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/tty.mjs var init_tty = __esm({ - "node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/tty.mjs"() { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/tty.mjs"() { init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -585,10 +585,10 @@ var init_tty = __esm({ } }); -// 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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs var NODE_VERSION; var init_node_version = __esm({ - "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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/node-version.mjs"() { init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -596,11 +596,11 @@ var init_node_version = __esm({ } }); -// 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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs import { EventEmitter } from "node:events"; var Process; var init_process = __esm({ - "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/mcp/node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/internal/process/process.mjs"() { init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -843,10 +843,10 @@ var init_process = __esm({ } }); -// node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260401.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260401.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs var globalProcess, getBuiltinModule, workerdProcess, unenvProcess, exit, features, platform, _channel, _debugEnd, _debugProcess, _disconnect, _events, _eventsCount, _exiting, _fatalException, _getActiveHandles, _getActiveRequests, _handleQueue, _kill, _linkedBinding, _maxListeners, _pendingMessage, _preload_modules, _rawDebug, _send, _startProfilerIdleNotifier, _stopProfilerIdleNotifier, _tickCallback, abort, addListener, allowedNodeEnvironmentFlags, arch, argv, argv0, assert2, availableMemory, binding, channel, chdir, config, connected, constrainedMemory, cpuUsage, cwd, debugPort, disconnect, dlopen, domain, emit, emitWarning, env, eventNames, execArgv, execPath, exitCode, finalization, getActiveResourcesInfo, getegid, geteuid, getgid, getgroups, getMaxListeners, getuid, hasUncaughtExceptionCaptureCallback, hrtime3, initgroups, kill, listenerCount, listeners, loadEnvFile, mainModule, memoryUsage, moduleLoadList, nextTick, off, on, once, openStdin, permission, pid, ppid, prependListener, prependOnceListener, rawListeners, reallyExit, ref, release, removeAllListeners, removeListener, report, resourceUsage, send, setegid, seteuid, setgid, setgroups, setMaxListeners, setSourceMapsEnabled, setuid, setUncaughtExceptionCaptureCallback, sourceMapsEnabled, stderr, stdin, stdout, throwDeprecation, title, traceDeprecation, umask, unref, uptime, version, versions, _process, process_default; var init_process2 = __esm({ - "node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260401.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs"() { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@cloudflare+unenv-preset@2.16.0_unenv@2.0.0-rc.24_workerd@1.20260401.1/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs"() { init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -1083,17 +1083,17 @@ var init_process2 = __esm({ } }); -// node_modules/.pnpm/wrangler@4.80.0_@cloudflare+workers-types@4.20260404.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/wrangler@4.80.0_@cloudflare+workers-types@4.20260404.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process var init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process = __esm({ - "node_modules/.pnpm/wrangler@4.80.0_@cloudflare+workers-types@4.20260404.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process"() { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/wrangler@4.80.0_@cloudflare+workers-types@4.20260404.1/node_modules/wrangler/_virtual_unenv_global_polyfill-@cloudflare-unenv-preset-node-process"() { init_process2(); globalThis.process = process_default; } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js var require_code = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -1269,9 +1269,9 @@ var require_code = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js var require_scope = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -1429,9 +1429,9 @@ var require_scope = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js var require_codegen = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -2232,9 +2232,9 @@ var require_codegen = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js var require_util = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -2419,9 +2419,9 @@ var require_util = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js var require_names = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -2461,9 +2461,9 @@ var require_names = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js var require_errors = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -2597,9 +2597,9 @@ var require_errors = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js var require_boolSchema = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -2654,9 +2654,9 @@ var require_boolSchema = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js var require_rules = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -2690,9 +2690,9 @@ var require_rules = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js var require_applicability = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -2719,9 +2719,9 @@ var require_applicability = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js var require_dataType = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -2918,9 +2918,9 @@ var require_dataType = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js var require_defaults = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -2960,9 +2960,9 @@ var require_defaults = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js var require_code2 = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -3110,9 +3110,9 @@ var require_code2 = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js var require_keyword = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -3244,9 +3244,9 @@ var require_keyword = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js var require_subschema = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -3334,9 +3334,9 @@ var require_subschema = __commonJS({ } }); -// node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js var require_fast_deep_equal = __commonJS({ - "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -3372,9 +3372,9 @@ var require_fast_deep_equal = __commonJS({ } }); -// node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js var require_json_schema_traverse = __commonJS({ - "node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports, module) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports, module) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -3465,9 +3465,9 @@ var require_json_schema_traverse = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js var require_resolve = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -3636,9 +3636,9 @@ var require_resolve = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js var require_validate = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -4186,9 +4186,9 @@ var require_validate = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js var require_validation_error = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -4208,9 +4208,9 @@ var require_validation_error = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js var require_ref_error = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -4231,9 +4231,9 @@ var require_ref_error = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js var require_compile = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -4469,9 +4469,9 @@ var require_compile = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json var require_data = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json"(exports, module) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json"(exports, module) { module.exports = { $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", description: "Meta-schema for $data reference (JSON AnySchema extension proposal)", @@ -4488,9 +4488,9 @@ var require_data = __commonJS({ } }); -// node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js var require_utils = __commonJS({ - "node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js"(exports, module) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js"(exports, module) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -4757,9 +4757,9 @@ var require_utils = __commonJS({ } }); -// node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js var require_schemes = __commonJS({ - "node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js"(exports, module) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js"(exports, module) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -4981,9 +4981,9 @@ var require_schemes = __commonJS({ } }); -// node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js var require_fast_uri = __commonJS({ - "node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js"(exports, module) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js"(exports, module) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -5245,9 +5245,9 @@ var require_fast_uri = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js var require_uri = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -5259,9 +5259,9 @@ var require_uri = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js var require_core = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -5895,9 +5895,9 @@ var require_core = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js var require_id = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -5913,9 +5913,9 @@ var require_id = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js var require_ref = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6047,9 +6047,9 @@ var require_ref = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js var require_core2 = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6071,9 +6071,9 @@ var require_core2 = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js var require_limitNumber = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6106,9 +6106,9 @@ var require_limitNumber = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js var require_multipleOf = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6137,9 +6137,9 @@ var require_multipleOf = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js var require_ucs2length = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6167,9 +6167,9 @@ var require_ucs2length = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js var require_limitLength = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6202,9 +6202,9 @@ var require_limitLength = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js var require_pattern = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6242,9 +6242,9 @@ var require_pattern = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js var require_limitProperties = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6274,9 +6274,9 @@ var require_limitProperties = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js var require_required = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6363,9 +6363,9 @@ var require_required = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js var require_limitItems = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6395,9 +6395,9 @@ var require_limitItems = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js var require_equal = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6409,9 +6409,9 @@ var require_equal = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js var require_uniqueItems = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6483,9 +6483,9 @@ var require_uniqueItems = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js var require_const = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6515,9 +6515,9 @@ var require_const = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js var require_enum = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6569,9 +6569,9 @@ var require_enum = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js var require_validation = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6610,9 +6610,9 @@ var require_validation = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js var require_additionalItems = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6668,9 +6668,9 @@ var require_additionalItems = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js var require_items = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6730,9 +6730,9 @@ var require_items = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js var require_prefixItems = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6750,9 +6750,9 @@ var require_prefixItems = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js var require_items2020 = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6788,9 +6788,9 @@ var require_items2020 = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js var require_contains = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6888,9 +6888,9 @@ var require_contains = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js var require_dependencies = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -6988,9 +6988,9 @@ var require_dependencies = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js var require_propertyNames = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7034,9 +7034,9 @@ var require_propertyNames = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js var require_additionalProperties = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7148,9 +7148,9 @@ var require_additionalProperties = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js var require_properties = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7211,9 +7211,9 @@ var require_properties = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js var require_patternProperties = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7291,9 +7291,9 @@ var require_patternProperties = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js var require_not = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7325,9 +7325,9 @@ var require_not = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js var require_anyOf = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7345,9 +7345,9 @@ var require_anyOf = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js var require_oneOf = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7407,9 +7407,9 @@ var require_oneOf = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js var require_allOf = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7437,9 +7437,9 @@ var require_allOf = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js var require_if = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7512,9 +7512,9 @@ var require_if = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js var require_thenElse = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7533,9 +7533,9 @@ var require_thenElse = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js var require_applicator = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7585,9 +7585,9 @@ var require_applicator = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js var require_format = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7686,9 +7686,9 @@ var require_format = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js var require_format2 = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7700,9 +7700,9 @@ var require_format2 = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js var require_metadata = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7726,9 +7726,9 @@ var require_metadata = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js var require_draft7 = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7751,9 +7751,9 @@ var require_draft7 = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js var require_types = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7768,9 +7768,9 @@ var require_types = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js var require_discriminator = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -7882,9 +7882,9 @@ var require_discriminator = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json var require_json_schema_draft_07 = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) { module.exports = { $schema: "http://json-schema.org/draft-07/schema#", $id: "http://json-schema.org/draft-07/schema#", @@ -8039,9 +8039,9 @@ var require_json_schema_draft_07 = __commonJS({ } }); -// node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js var require_ajv = __commonJS({ - "node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js"(exports, module) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js"(exports, module) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -8115,9 +8115,9 @@ var require_ajv = __commonJS({ } }); -// node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js var require_formats = __commonJS({ - "node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -8337,9 +8337,9 @@ var require_formats = __commonJS({ } }); -// node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js var require_limit = __commonJS({ - "node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js"(exports) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js"(exports) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -8415,9 +8415,9 @@ var require_limit = __commonJS({ } }); -// node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js var require_dist = __commonJS({ - "node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js"(exports, module) { + "../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js"(exports, module) { "use strict"; init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); @@ -8466,22 +8466,22 @@ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/index.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/hono.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/hono.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/hono-base.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/hono-base.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/compose.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/compose.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -8529,28 +8529,28 @@ var compose = /* @__PURE__ */ __name((middleware, onError, onNotFound) => { }; }, "compose"); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/context.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/context.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/request.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/request.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/http-exception.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/http-exception.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/request/constants.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/request/constants.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var GET_MATCH_RESULT = /* @__PURE__ */ Symbol(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/utils/body.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/utils/body.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -8627,7 +8627,7 @@ var handleParsingNestedValues = /* @__PURE__ */ __name((form, key, value) => { }); }, "handleParsingNestedValues"); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/utils/url.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/utils/url.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -8834,7 +8834,7 @@ var getQueryParams = /* @__PURE__ */ __name((url, key) => { }, "getQueryParams"); var decodeURIComponent_ = decodeURIComponent; -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/request.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/request.js var tryDecodeURIComponent = /* @__PURE__ */ __name((str) => tryDecode(str, decodeURIComponent_), "tryDecodeURIComponent"); var HonoRequest = class { static { @@ -9105,7 +9105,7 @@ var HonoRequest = class { } }; -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/utils/html.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/utils/html.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -9150,7 +9150,7 @@ var resolveCallback = /* @__PURE__ */ __name(async (str, phase, preserveCallback } }, "resolveCallback"); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/context.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/context.js var TEXT_PLAIN = "text/plain; charset=UTF-8"; var setDefaultContentType = /* @__PURE__ */ __name((contentType, headers) => { return { @@ -9560,7 +9560,7 @@ var Context = class { }, "notFound"); }; -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -9574,13 +9574,13 @@ var UnsupportedPathError = class extends Error { } }; -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/utils/constants.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/utils/constants.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); var COMPOSED_HANDLER = "__COMPOSED_HANDLER"; -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/hono-base.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/hono-base.js var notFoundHandler = /* @__PURE__ */ __name((c) => { return c.text("404 Not Found", 404); }, "notFoundHandler"); @@ -9954,17 +9954,17 @@ var Hono = class _Hono { }, "fire"); }; -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/index.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/router.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/router.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/matcher.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/matcher.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -9989,7 +9989,7 @@ function match(method, path) { } __name(match, "match"); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/node.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/node.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -10104,7 +10104,7 @@ var Node = class _Node { } }; -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/trie.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/trie.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -10166,7 +10166,7 @@ var Trie = class { } }; -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/router.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/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) { @@ -10352,17 +10352,17 @@ var RegExpRouter = class { } }; -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/reg-exp-router/prepared-router.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/smart-router/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/smart-router/index.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/smart-router/router.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/smart-router/router.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -10423,17 +10423,17 @@ var SmartRouter = class { } }; -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/trie-router/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/trie-router/index.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/trie-router/router.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/trie-router/router.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/trie-router/node.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/trie-router/node.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -10614,7 +10614,7 @@ var Node2 = class _Node2 { } }; -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/trie-router/router.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/router/trie-router/router.js var TrieRouter = class { static { __name(this, "TrieRouter"); @@ -10639,7 +10639,7 @@ var TrieRouter = class { } }; -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/hono.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/hono.js var Hono2 = class extends Hono { static { __name(this, "Hono"); @@ -10657,7 +10657,7 @@ var Hono2 = class extends Hono { } }; -// node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/middleware/cors/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/hono@4.12.10/node_modules/hono/dist/middleware/cors/index.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -10976,27 +10976,27 @@ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js var external_exports = {}; __export(external_exports, { BRAND: () => BRAND, @@ -11111,22 +11111,22 @@ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -11266,7 +11266,7 @@ var getParsedType = /* @__PURE__ */ __name((data) => { } }, "getParsedType"); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js var ZodIssueCode = util.arrayToEnum([ "invalid_type", "invalid_literal", @@ -11387,7 +11387,7 @@ ZodError.create = (issues) => { return error4; }; -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js var errorMap = /* @__PURE__ */ __name((issue2, _ctx) => { let message; switch (issue2.code) { @@ -11490,7 +11490,7 @@ var errorMap = /* @__PURE__ */ __name((issue2, _ctx) => { }, "errorMap"); var en_default = errorMap; -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js var overrideErrorMap = en_default; function setErrorMap(map2) { overrideErrorMap = map2; @@ -11501,7 +11501,7 @@ function getErrorMap() { } __name(getErrorMap, "getErrorMap"); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -11618,12 +11618,12 @@ var isDirty = /* @__PURE__ */ __name((x) => x.status === "dirty", "isDirty"); var isValid = /* @__PURE__ */ __name((x) => x.status === "valid", "isValid"); var isAsync = /* @__PURE__ */ __name((x) => typeof Promise !== "undefined" && x instanceof Promise, "isAsync"); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -11633,7 +11633,7 @@ var errorUtil; errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message; })(errorUtil || (errorUtil = {})); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js var ParseInputLazyPath = class { static { __name(this, "ParseInputLazyPath"); @@ -15212,17 +15212,17 @@ var coerce = { }; var NEVER = INVALID; -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/mini/external.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/mini/external.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/index.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/core.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/core.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -15294,17 +15294,17 @@ function config2(newConfig) { } __name(config2, "config"); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/parse.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/parse.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/errors.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/errors.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/util.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/util.js var util_exports = {}; __export(util_exports, { BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES, @@ -15872,7 +15872,7 @@ var Class = class { } }; -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/errors.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/errors.js var initializer = /* @__PURE__ */ __name((inst, def) => { inst.name = "$ZodError"; Object.defineProperty(inst, "_zod", { @@ -15949,7 +15949,7 @@ function formatError(error4, _mapper) { } __name(formatError, "formatError"); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/parse.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/parse.js var _parse = /* @__PURE__ */ __name((_Err) => (schema4, value, _ctx, _params) => { const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false }; const result = schema4._zod.run({ value, issues: [] }, ctx); @@ -16001,17 +16001,17 @@ var _safeParseAsync = /* @__PURE__ */ __name((_Err) => async (schema4, value, _c }, "_safeParseAsync"); var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/schemas.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/schemas.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/checks.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/checks.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/regexes.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/regexes.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -16076,7 +16076,7 @@ var _null = /null/i; var lowercase = /^[^A-Z]*$/; var uppercase = /^[^a-z]*$/; -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/checks.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/checks.js var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => { var _a; inst._zod ?? (inst._zod = {}); @@ -16461,7 +16461,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins }; }); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/doc.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/doc.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -16503,7 +16503,7 @@ var Doc = class { } }; -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/versions.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/versions.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -16513,7 +16513,7 @@ var version2 = { patch: 0 }; -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/schemas.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/schemas.js var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => { var _a; inst ?? (inst = {}); @@ -17765,7 +17765,7 @@ function handleRefineResult(result, payload, input, inst) { } __name(handleRefineResult, "handleRefineResult"); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/en.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/locales/en.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -17888,7 +17888,7 @@ function en_default2() { } __name(en_default2, "default"); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/registries.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/registries.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -17943,7 +17943,7 @@ function registry() { __name(registry, "registry"); var globalRegistry = /* @__PURE__ */ registry(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/api.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/api.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -18440,7 +18440,7 @@ function _refine(Class2, fn, _params) { } __name(_refine, "_refine"); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/to-json-schema.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/to-json-schema.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -19215,12 +19215,12 @@ function isTransforming(_schema, _ctx) { } __name(isTransforming, "isTransforming"); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/mini/parse.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/mini/parse.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/mini/schemas.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/mini/schemas.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -19270,7 +19270,7 @@ function object(shape, params) { } __name(object, "object"); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js function isZ4Schema(s) { const schema4 = s; return !!schema4._zod; @@ -19424,27 +19424,27 @@ function getLiteralValue(schema4) { } __name(getLiteralValue, "getLiteralValue"); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/schemas.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/schemas.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/checks.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/checks.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/iso.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/iso.js var iso_exports2 = {}; __export(iso_exports2, { ZodISODate: () => ZodISODate, @@ -19492,12 +19492,12 @@ function duration2(params) { } __name(duration2, "duration"); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/parse.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/parse.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/errors.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/errors.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -19534,13 +19534,13 @@ var ZodRealError = $constructor("ZodError", initializer2, { Parent: Error }); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/parse.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/parse.js var parse2 = /* @__PURE__ */ _parse(ZodRealError); var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError); var safeParse3 = /* @__PURE__ */ _safeParse(ZodRealError); var safeParseAsync3 = /* @__PURE__ */ _safeParseAsync(ZodRealError); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/schemas.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/schemas.js var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => { $ZodType.init(inst, def); inst.def = def; @@ -20181,10 +20181,10 @@ function preprocess(fn, schema4) { } __name(preprocess, "preprocess"); -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js config2(en_default2()); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js var LATEST_PROTOCOL_VERSION = "2025-11-25"; var DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26"; var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"]; @@ -21725,7 +21725,7 @@ var UrlElicitationRequiredError = class extends McpError { } }; -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -21734,17 +21734,17 @@ function isTerminal(status) { } __name(isTerminal, "isTerminal"); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/index.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -21781,7 +21781,7 @@ var getDefaultOptions = /* @__PURE__ */ __name((options) => typeof options === " ...options }, "getDefaultOptions"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Refs.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Refs.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -21805,7 +21805,7 @@ var getRefs = /* @__PURE__ */ __name((options) => { }; }, "getRefs"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/errorMessages.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -21826,7 +21826,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) { } __name(setResponseValueAndErrors, "setResponseValueAndErrors"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -21839,17 +21839,17 @@ var getRelativePath = /* @__PURE__ */ __name((pathA, pathB) => { return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/"); }, "getRelativePath"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseDef.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseDef.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/selectParser.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/selectParser.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/any.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -21869,7 +21869,7 @@ function parseAnyDef(refs) { } __name(parseAnyDef, "parseAnyDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/array.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -21897,7 +21897,7 @@ function parseArrayDef(def, refs) { } __name(parseArrayDef, "parseArrayDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -21947,7 +21947,7 @@ function parseBigintDef(def, refs) { } __name(parseBigintDef, "parseBigintDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -21958,7 +21958,7 @@ function parseBooleanDef() { } __name(parseBooleanDef, "parseBooleanDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -21967,7 +21967,7 @@ function parseBrandedDef(_def, refs) { } __name(parseBrandedDef, "parseBrandedDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -21975,7 +21975,7 @@ var parseCatchDef = /* @__PURE__ */ __name((def, refs) => { return parseDef(def.innerType._def, refs); }, "parseCatchDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/date.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22038,7 +22038,7 @@ var integerDateParser = /* @__PURE__ */ __name((def, refs) => { return res; }, "integerDateParser"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/default.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22050,7 +22050,7 @@ function parseDefaultDef(_def, refs) { } __name(parseDefaultDef, "parseDefaultDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22059,7 +22059,7 @@ function parseEffectsDef(_def, refs) { } __name(parseEffectsDef, "parseEffectsDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22071,7 +22071,7 @@ function parseEnumDef(def) { } __name(parseEnumDef, "parseEnumDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22117,7 +22117,7 @@ function parseIntersectionDef(def, refs) { } __name(parseIntersectionDef, "parseIntersectionDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22141,17 +22141,17 @@ function parseLiteralDef(def, refs) { } __name(parseLiteralDef, "parseLiteralDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/map.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/string.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22485,7 +22485,7 @@ function stringifyRegExpWithFlags(regex, refs) { } __name(stringifyRegExpWithFlags, "stringifyRegExpWithFlags"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js function parseRecordDef(def, refs) { if (refs.target === "openAi") { console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."); @@ -22538,7 +22538,7 @@ function parseRecordDef(def, refs) { } __name(parseRecordDef, "parseRecordDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/map.js function parseMapDef(def, refs) { if (refs.mapStrategy === "record") { return parseRecordDef(def, refs); @@ -22564,7 +22564,7 @@ function parseMapDef(def, refs) { } __name(parseMapDef, "parseMapDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22582,7 +22582,7 @@ function parseNativeEnumDef(def) { } __name(parseNativeEnumDef, "parseNativeEnumDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/never.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22596,7 +22596,7 @@ function parseNeverDef(refs) { } __name(parseNeverDef, "parseNeverDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/null.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22610,12 +22610,12 @@ function parseNullDef(refs) { } __name(parseNullDef, "parseNullDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/union.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22687,7 +22687,7 @@ var asAnyOf = /* @__PURE__ */ __name((def, refs) => { return anyOf.length ? { anyOf } : void 0; }, "asAnyOf"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js function parseNullableDef(def, refs) { if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) { if (refs.target === "openApi3") { @@ -22720,7 +22720,7 @@ function parseNullableDef(def, refs) { } __name(parseNullableDef, "parseNullableDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/number.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22773,7 +22773,7 @@ function parseNumberDef(def, refs) { } __name(parseNumberDef, "parseNumberDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/object.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22849,7 +22849,7 @@ function safeIsOptional(schema4) { } __name(safeIsOptional, "safeIsOptional"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22871,7 +22871,7 @@ var parseOptionalDef = /* @__PURE__ */ __name((def, refs) => { } : parseAnyDef(refs); }, "parseOptionalDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22894,7 +22894,7 @@ var parsePipelineDef = /* @__PURE__ */ __name((def, refs) => { }; }, "parsePipelineDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22903,7 +22903,7 @@ function parsePromiseDef(def, refs) { } __name(parsePromiseDef, "parsePromiseDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/set.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22927,7 +22927,7 @@ function parseSetDef(def, refs) { } __name(parseSetDef, "parseSetDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22959,7 +22959,7 @@ function parseTupleDef(def, refs) { } __name(parseTupleDef, "parseTupleDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22970,7 +22970,7 @@ function parseUndefinedDef(refs) { } __name(parseUndefinedDef, "parseUndefinedDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22979,7 +22979,7 @@ function parseUnknownDef(refs) { } __name(parseUnknownDef, "parseUnknownDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -22987,7 +22987,7 @@ var parseReadonlyDef = /* @__PURE__ */ __name((def, refs) => { return parseDef(def.innerType._def, refs); }, "parseReadonlyDef"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/selectParser.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/selectParser.js var selectParser = /* @__PURE__ */ __name((def, typeName, refs) => { switch (typeName) { case ZodFirstPartyTypeKind.ZodString: @@ -23063,7 +23063,7 @@ var selectParser = /* @__PURE__ */ __name((def, typeName, refs) => { } }, "selectParser"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseDef.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseDef.js function parseDef(def, refs, forceResolution = false) { const seenItem = refs.seen.get(def); if (refs.override) { @@ -23120,12 +23120,12 @@ var addMeta = /* @__PURE__ */ __name((def, refs, jsonSchema) => { return jsonSchema; }, "addMeta"); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parseTypes.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -23190,7 +23190,7 @@ var zodToJsonSchema = /* @__PURE__ */ __name((schema4, options) => { return combined; }, "zodToJsonSchema"); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js function mapMiniTarget(t) { if (!t) return "draft-7"; @@ -23236,7 +23236,7 @@ function parseWithCompat(schema4, data) { } __name(parseWithCompat, "parseWithCompat"); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js var DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4; var Protocol = class { static { @@ -24195,7 +24195,7 @@ function mergeCapabilities(base, additional) { } __name(mergeCapabilities, "mergeCapabilities"); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -24270,7 +24270,7 @@ var AjvJsonSchemaValidator = class { } }; -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -24489,7 +24489,7 @@ var ExperimentalServerTasks = class { } }; -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -24529,7 +24529,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) { } __name(assertClientRequestTaskCapability, "assertClientRequestTaskCapability"); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js var Server = class extends Protocol { static { __name(this, "Server"); @@ -24912,7 +24912,7 @@ var Server = class extends Protocol { } }; -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -24931,12 +24931,12 @@ var McpZodTypeKind; McpZodTypeKind2["Completable"] = "McpCompletable"; })(McpZodTypeKind || (McpZodTypeKind = {})); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -25000,7 +25000,7 @@ function validateAndWarnToolName(name) { } __name(validateAndWarnToolName, "validateAndWarnToolName"); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -25021,12 +25021,12 @@ var ExperimentalMcpServerTasks = class { } }; -// node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js var McpServer = class { static { __name(this, "McpServer"); @@ -25828,7 +25828,7 @@ var EMPTY_COMPLETION_RESULT = { } }; -// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -27351,27 +27351,27 @@ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/index.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/index.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/index.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/composer.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/composer.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/directives.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/directives.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/identity.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/identity.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -27412,7 +27412,7 @@ function isNode(node) { __name(isNode, "isNode"); var hasAnchor = /* @__PURE__ */ __name((node) => (isScalar(node) || isCollection(node)) && !!node.anchor, "hasAnchor"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/visit.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/visit.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -27572,7 +27572,7 @@ function replaceNode(key, path, node) { } __name(replaceNode, "replaceNode"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/directives.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/directives.js var escapeChars = { "!": "%21", ",": "%2C", @@ -27738,17 +27738,17 @@ var Directives = class _Directives { Directives.defaultYaml = { explicit: false, version: "1.2" }; Directives.defaultTags = { "!!": "tag:yaml.org,2002:" }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/Document.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/Document.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Alias.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Alias.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/anchors.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/anchors.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -27814,12 +27814,12 @@ function createNodeAnchors(doc, prefix) { } __name(createNodeAnchors, "createNodeAnchors"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Node.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Node.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/applyReviver.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/applyReviver.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -27867,7 +27867,7 @@ function applyReviver(reviver, obj, key, val) { } __name(applyReviver, "applyReviver"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/toJS.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/toJS.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -27894,7 +27894,7 @@ function toJS(value, arg, ctx) { } __name(toJS, "toJS"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Node.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Node.js var NodeBase = class { static { __name(this, "NodeBase"); @@ -27929,7 +27929,7 @@ var NodeBase = class { } }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Alias.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Alias.js var Alias = class extends NodeBase { static { __name(this, "Alias"); @@ -28038,17 +28038,17 @@ function getAliasCount(doc, node, anchors) { } __name(getAliasCount, "getAliasCount"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Collection.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Collection.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/createNode.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/createNode.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Scalar.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Scalar.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -28074,7 +28074,7 @@ Scalar.PLAIN = "PLAIN"; Scalar.QUOTE_DOUBLE = "QUOTE_DOUBLE"; Scalar.QUOTE_SINGLE = "QUOTE_SINGLE"; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/createNode.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/createNode.js var defaultTagPrefix = "tag:yaml.org,2002:"; function findTagObject(value, tagName, tags) { if (tagName) { @@ -28142,7 +28142,7 @@ function createNode(value, tagName, ctx) { } __name(createNode, "createNode"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Collection.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Collection.js function collectionFromPath(schema4, path, value) { let v = value; for (let i = path.length - 1; i >= 0; --i) { @@ -28278,22 +28278,22 @@ var Collection = class extends NodeBase { } }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Pair.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Pair.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyPair.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyPair.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringify.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringify.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyComment.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyComment.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -28306,12 +28306,12 @@ function indentComment(comment, indent) { __name(indentComment, "indentComment"); var lineComment = /* @__PURE__ */ __name((str, indent, comment) => str.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment, "lineComment"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyString.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyString.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/foldFlowLines.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -28443,7 +28443,7 @@ function consumeMoreIndentedLines(text, i, indent) { } __name(consumeMoreIndentedLines, "consumeMoreIndentedLines"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyString.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyString.js var getFoldOptions = /* @__PURE__ */ __name((ctx, isBlock2) => ({ indentAtStart: isBlock2 ? ctx.indent.length : ctx.indentAtStart, lineWidth: ctx.options.lineWidth, @@ -28725,7 +28725,7 @@ function stringifyString(item, ctx, onComment, onChompKeep) { } __name(stringifyString, "stringifyString"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringify.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringify.js function createStringifyContext(doc, options) { const opt = Object.assign({ blockQuote: true, @@ -28842,7 +28842,7 @@ ${ctx.indent}${str}`; } __name(stringify, "stringify"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyPair.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyPair.js function stringifyPair({ key, value }, ctx, onComment, onChompKeep) { const { allNullValues, doc, indent, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx; let keyComment = isNode(key) && key.comment || null; @@ -28966,12 +28966,12 @@ ${ctx.indent}`; } __name(stringifyPair, "stringifyPair"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/log.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/log.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -28982,7 +28982,7 @@ function warn3(logLevel, warning) { } __name(warn3, "warn"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -29038,7 +29038,7 @@ function resolveAliasValue(ctx, value) { } __name(resolveAliasValue, "resolveAliasValue"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js function addPairToJSMap(ctx, map2, { key, value }) { if (isNode(key) && key.addToJSMap) key.addToJSMap(ctx, map2, value); @@ -29093,7 +29093,7 @@ function stringifyKey(key, jsKey, ctx) { } __name(stringifyKey, "stringifyKey"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Pair.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Pair.js function createPair(key, value, ctx) { const k = createNode(key, void 0, ctx); const v = createNode(value, void 0, ctx); @@ -29126,22 +29126,22 @@ var Pair = class _Pair { } }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/Schema.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/Schema.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/map.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/map.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLMap.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLMap.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyCollection.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -29290,7 +29290,7 @@ function addCommentBefore({ indent, options: { commentString } }, lines, comment } __name(addCommentBefore, "addCommentBefore"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLMap.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLMap.js function findPair(items, key) { const k = isScalar(key) ? key.value : key; for (const it of items) { @@ -29425,7 +29425,7 @@ var YAMLMap = class extends Collection { } }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/map.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/map.js var map = { collection: "map", default: true, @@ -29439,12 +29439,12 @@ var map = { createNode: /* @__PURE__ */ __name((schema4, obj, ctx) => YAMLMap.from(schema4, obj, ctx), "createNode") }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/seq.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/seq.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLSeq.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -29555,7 +29555,7 @@ function asItemIndex(key) { } __name(asItemIndex, "asItemIndex"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/seq.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/seq.js var seq = { collection: "seq", default: true, @@ -29569,7 +29569,7 @@ var seq = { createNode: /* @__PURE__ */ __name((schema4, obj, ctx) => YAMLSeq.from(schema4, obj, ctx), "createNode") }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/string.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/string.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -29584,12 +29584,12 @@ var string3 = { } }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/tags.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/tags.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/null.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/null.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -29603,7 +29603,7 @@ var nullTag = { stringify: /* @__PURE__ */ __name(({ source }, ctx) => typeof source === "string" && nullTag.test.test(source) ? source : ctx.options.nullStr, "stringify") }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/bool.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/bool.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -29623,12 +29623,12 @@ var boolTag = { } }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/float.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/float.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyNumber.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -29653,7 +29653,7 @@ function stringifyNumber({ format, minFractionDigits, tag, value }) { } __name(stringifyNumber, "stringifyNumber"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/float.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/float.js var floatNaN = { identify: /* @__PURE__ */ __name((value) => typeof value === "number", "identify"), default: true, @@ -29689,7 +29689,7 @@ var float = { stringify: stringifyNumber }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/int.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/int.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -29729,7 +29729,7 @@ var intHex = { stringify: /* @__PURE__ */ __name((node) => intStringify(node, 16, "0x"), "stringify") }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/schema.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/schema.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -29747,7 +29747,7 @@ var schema = [ float ]; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/json/schema.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/json/schema.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -29809,7 +29809,7 @@ var jsonError = { }; var schema2 = [map, seq].concat(jsonScalars, jsonError); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -29865,12 +29865,12 @@ var binary = { } }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -29941,7 +29941,7 @@ var pairs = { createNode: createPairs }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js var YAMLOMap = class _YAMLOMap extends YAMLSeq { static { __name(this, "YAMLOMap"); @@ -30010,12 +30010,12 @@ var omap = { createNode: /* @__PURE__ */ __name((schema4, iterable, ctx) => YAMLOMap.from(schema4, iterable, ctx), "createNode") }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -30043,7 +30043,7 @@ var falseTag = { stringify: boolStringify }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -30085,7 +30085,7 @@ var float2 = { stringify: stringifyNumber }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -30159,7 +30159,7 @@ var intHex2 = { stringify: /* @__PURE__ */ __name((node) => intStringify2(node, 16, "0x"), "stringify") }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -30244,7 +30244,7 @@ var set = { } }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -30328,7 +30328,7 @@ var timestamp = { stringify: /* @__PURE__ */ __name(({ value }) => value?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? "", "stringify") }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js var schema3 = [ map, seq, @@ -30353,7 +30353,7 @@ var schema3 = [ timestamp ]; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/tags.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/tags.js var schemas = /* @__PURE__ */ new Map([ ["core", schema], ["failsafe", [map, seq, string3]], @@ -30425,7 +30425,7 @@ function getTags(customTags, schemaName, addMergeTag) { } __name(getTags, "getTags"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/Schema.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/Schema.js var sortMapEntriesByKey = /* @__PURE__ */ __name((a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0, "sortMapEntriesByKey"); var Schema = class _Schema { static { @@ -30449,7 +30449,7 @@ var Schema = class _Schema { } }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyDocument.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -30524,7 +30524,7 @@ function stringifyDocument(doc, options) { } __name(stringifyDocument, "stringifyDocument"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/Document.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/Document.js var Document = class _Document { static { __name(this, "Document"); @@ -30820,7 +30820,7 @@ function assertCollection(contents) { } __name(assertCollection, "assertCollection"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/errors.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/errors.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -30888,27 +30888,27 @@ ${pointer} } }, "prettifyError"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-doc.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-doc.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-node.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-node.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-collection.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-collection.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-map.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-map.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-props.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-props.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -31040,7 +31040,7 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIn } __name(resolveProps, "resolveProps"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-contains-newline.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-contains-newline.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -31080,7 +31080,7 @@ function containsNewline(key) { } __name(containsNewline, "containsNewline"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -31095,7 +31095,7 @@ function flowIndentCheck(indent, fc, onError) { } __name(flowIndentCheck, "flowIndentCheck"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-map-includes.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-map-includes.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -31108,7 +31108,7 @@ function mapIncludes(ctx, items, search) { } __name(mapIncludes, "mapIncludes"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-map.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-map.js var startColMsg = "All mapping items must start at the same column"; function resolveBlockMap({ composeNode: composeNode2, composeEmptyNode: composeEmptyNode2 }, ctx, bm, onError, tag) { const NodeClass = tag?.nodeClass ?? YAMLMap; @@ -31205,7 +31205,7 @@ function resolveBlockMap({ composeNode: composeNode2, composeEmptyNode: composeE } __name(resolveBlockMap, "resolveBlockMap"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-seq.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -31251,12 +31251,12 @@ function resolveBlockSeq({ composeNode: composeNode2, composeEmptyNode: composeE } __name(resolveBlockSeq, "resolveBlockSeq"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-end.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-end.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -31297,7 +31297,7 @@ function resolveEnd(end, offset, reqSpace, onError) { } __name(resolveEnd, "resolveEnd"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js var blockMsg = "Block collections are not allowed within flow collections"; var isBlock = /* @__PURE__ */ __name((token) => token && (token.type === "block-map" || token.type === "block-seq"), "isBlock"); function resolveFlowCollection({ composeNode: composeNode2, composeEmptyNode: composeEmptyNode2 }, ctx, fc, onError, tag) { @@ -31478,7 +31478,7 @@ function resolveFlowCollection({ composeNode: composeNode2, composeEmptyNode: co } __name(resolveFlowCollection, "resolveFlowCollection"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-collection.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-collection.js function resolveCollection(CN2, ctx, token, onError, tagName, tag) { const coll = token.type === "block-map" ? resolveBlockMap(CN2, ctx, token, onError, tag) : token.type === "block-seq" ? resolveBlockSeq(CN2, ctx, token, onError, tag) : resolveFlowCollection(CN2, ctx, token, onError, tag); const Coll = coll.constructor; @@ -31532,12 +31532,12 @@ function composeCollection(CN2, ctx, token, props, onError) { } __name(composeCollection, "composeCollection"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-scalar.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-scalar.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -31719,7 +31719,7 @@ function splitLines(source) { } __name(splitLines, "splitLines"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -31941,7 +31941,7 @@ function parseCharCode(source, offset, length, onError) { } __name(parseCharCode, "parseCharCode"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-scalar.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-scalar.js function composeScalar(ctx, token, tagToken, onError) { const { value, type, comment, range } = token.type === "block-scalar" ? resolveBlockScalar(ctx, token, onError) : resolveFlowScalar(token, ctx.options.strict, onError); const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null; @@ -32015,7 +32015,7 @@ function findScalarTagByTest({ atKey, directives, schema: schema4 }, value, toke } __name(findScalarTagByTest, "findScalarTagByTest"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -32043,7 +32043,7 @@ function emptyScalarPosition(offset, before, pos) { } __name(emptyScalarPosition, "emptyScalarPosition"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-node.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-node.js var CN = { composeNode, composeEmptyNode }; function composeNode(ctx, token, props, onError) { const atKey = ctx.atKey; @@ -32139,7 +32139,7 @@ function composeAlias({ options }, { offset, source, end }, onError) { } __name(composeAlias, "composeAlias"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-doc.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-doc.js function composeDoc(options, directives, { offset, start, value, end }, onError) { const opts = Object.assign({ _directives: directives }, options); const doc = new Document(void 0, opts); @@ -32173,7 +32173,7 @@ function composeDoc(options, directives, { offset, start, value, end }, onError) } __name(composeDoc, "composeDoc"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/composer.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/composer.js function getErrorPos(src) { if (typeof src === "number") return [src, src + 1]; @@ -32371,22 +32371,22 @@ ${end.comment}` : end.comment; } }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-scalar.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-scalar.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-stringify.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-stringify.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-visit.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-visit.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -32447,7 +32447,7 @@ function _visit(path, item, visitor) { } __name(_visit, "_visit"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst.js var BOM = "\uFEFF"; var DOCUMENT = ""; var FLOW_END = ""; @@ -32513,7 +32513,7 @@ function tokenType(source) { } __name(tokenType, "tokenType"); -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/lexer.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/lexer.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -33102,7 +33102,7 @@ var Lexer = class { } }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/line-counter.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/line-counter.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -33133,7 +33133,7 @@ var LineCounter = class { } }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/parser.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/parser.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); @@ -34009,7 +34009,7 @@ var Parser = class { } }; -// node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/public-api.js +// ../../../../../../../../Users/youlinhsieh/Documents/tech_projects/InkStoneCo/matrix/arcrun/mcp/node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/public-api.js init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process(); init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console(); init_performance2(); diff --git a/tier2/registry/index.js b/tier2/registry/index.js index e1a825a..b107e96 100644 --- a/tier2/registry/index.js +++ b/tier2/registry/index.js @@ -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(); diff --git a/tier2/ui/index.js b/tier2/ui/index.js index 96240c2..65e5e79 100644 --- a/tier2/ui/index.js +++ b/tier2/ui/index.js @@ -1,5 +1,5 @@ // arcrun-rag-ui — 用戶實例的 GUI(console-ui/public 內嵌;t20④d-2 由 build-ui-bundle.mjs 產生,勿手改) -const FILES = {"/console/dashboard/index.html":{"type":"text/html; charset=utf-8","b64":false,"data":"\n\n\n\n\nArcrun 駕駛艙\n\n\n\n\n\n\n
\n
\n
Arcrun 駕駛艙
\n
\n
\n \n
\n
\n
\n
\n
\n
載入中
\n
\n
\n
\n
\n
\n
今日完成
\n
/
\n
\n
\n
\n
收件匣未處理
\n
\n
來自 Telegram
\n
\n
\n
\n
等你的事
\n
載入中…
\n
\n
\n
今日路線
\n
  • 載入中…
\n
本週
\n
    \n
    系統狀況live 健康信號
    \n
    載入中…
    \n
    每 60 秒自動刷新
    \n 進入完整控制台 ›\n
    \n\n\n\n"},"/console/index.html":{"type":"text/html; charset=utf-8","b64":false,"data":"\n\n\n\n\nArcrun Console\n\n\n\n\n\n\n\n\n
    \n
    \n
    \n
    Arcrun
    \n
    私人系統・僅供擁有者進入
    \n
    \n
    \n \n \n \n
    \n
    \n
    這是一個人的智慧總部。
    若你不是擁有者,這裡沒有你要找的東西。
    \n \n \n
    \n
    \n\n\n
    \n
    \n
    \n
    Arcrun
    \n
    首次設定
    \n
    系統偵測到尚未設定擁有者帳號。
    設定一組 Email 與密碼,之後只有你能進入。
    \n
    \n
    \n \n \n \n \n
    \n
    \n \n
    \n
    \n\n\n
    \n
    \n
    Arcrun
    \n \n
    總庫搜尋
    \n
    工作流
    \n \n
    設定
    \n
    ☾ 切深色
    \n
    \n
    \n
    \n\n \n
    \n
    Arcrun 控制台
    \n
    \n
    \n
    \n
    \n
    \n
    載入中
    \n
    \n
    \n
    \n
    \n
    \n
    今日完成
    \n
    /
    \n
    \n
    \n
    \n
    收件匣未處理
    \n
    \n
    來自 Telegram
    \n
    \n
    \n
    \n
    等你的事
    \n
    載入中…
    \n
    \n
    \n
    \n
    \n
    \n 今日路線狀態即時同步\n
    \n
    • 載入中…
    \n
    本週
    \n
      \n
      每 60 秒自動刷新
      \n
      \n
      \n
      \n\n \n
      \n
      總庫搜尋
      \n
      \n
      \n
      \n 藏書地圖\n
      \n
      地圖載入中…
      \n
      \n
      \n
      \n \n \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n\n \n
      \n
      \n \n 知識卡片\n
      \n
      \n
      載入中…
      \n
      \n
      關聯視圖
      \n
      \n
      \n
      \n
      \n
      \n\n \n
      \n
      工作流
      \n \n
      載入中…
      \n
      \n
      零件與 Recipes(框架資源)
      \n
      \n \n \n
      \n
      \n
      \n
      \n\n \n
      \n
      憑證管理
      \n
      \n 🛡 保險箱原則:系統只保存目錄與加密後的值,任何頁面都看不到密文內容。只能整筆替換或刪除。\n
      \n
      \n
      新增憑證
      \n
      \n \n \n \n \n
      \n
      \n
      \n
      載入中…
      \n
      \n\n \n
      \n
      分流台全部待辦・80/15/5
      \n
      \n
      載入中…
      \n
      \n\n \n
      \n
      設定
      \n
      \n
      \n
      \n
      \n
      深色模式
      \n
      預設淺色(紙感)。切換立即生效,選擇記在這台裝置(localStorage)。
      \n
      \n
      \n
      \n
      \n
      \n \n
      語意搜尋
      \n
      狀態偵測中…
      \n
      \n
      \n
      \n
      MCP token 有效期(TTL)
      \n
      讀取中…
      \n
      \n 誠實佔位:此頁還不能改這個值——可調功能=Arcrun#19(設定頁改→存 KBDB→發 token 時讀)。實作前要調整請在部署端 env MCP_TOKEN_TTL(mcp worker)設定。\n
      \n
      \n
      \n
      更換帳號密碼
      \n
      需輸入舊密碼驗證身分
      \n
      \n \n \n \n \n
      \n
      \n
      \n \n
      \n
      系統資訊
      \n
      載入中…
      \n
      \n \n
      \n
      \n\n
      \n
      \n\n\n
      \n \n
      搜尋
      \n
      工作流
      \n \n
      設定
      \n
      \n\n
      \n\n\n\n\n"},"/index.html":{"type":"text/html; charset=utf-8","b64":false,"data":"\n\n\n\nArcrun RAG\n\n\n\n\n\n\n\n

      正在前往搜尋頁… 沒有自動跳轉請點這裡

      \n\n\n"},"/portal/index.html":{"type":"text/html; charset=utf-8","b64":false,"data":"\n\n\n\n\nArcrun Portal\n\n\n\n\n\n\n\n\n
      \n
      \n
      \n
      Arcrun
      \n
      知識入口・Portal
      \n
      \n
      \n \n \n \n
      \n
      \n
      帳號由管理員發放。忘記密碼請聯絡管理員重設。
      \n \n
      \n
      \n\n\n
      \n
      \n
      \n
      Arcrun
      \n
      歡迎!先建立你的帳號
      \n
      \n
      \n \n \n \n \n
      \n \n \n
      \n
      這組帳密就是之後登入知識庫用的,只需要設定這一次。
      \n
      \n
      \n\n\n
      \n
      \n
      Arcrun
      \n
      搜尋
      \n
      總圖
      \n
      上傳
      \n
      工作流
      \n
      管理
      \n
      設定
      \n
      ☾ 切深色
      \n
      \n
      \n
      \n\n \n
      \n
      搜尋
      \n
      \n
      \n \n \n
      \n
      \n \n \n \n
      \n \n
      \n
      AI 問答・答案附出處,可回搜尋驗證
      \n
      \n \n \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n\n \n
      \n
      總圖
      \n
      \n
      \n
      \n 點節點可跳到該實體的圖譜搜尋。這張圖由知識庫的三元組即時算出——同一份地圖的文字版\n (給 AI 注入用的總庫目錄)。\n
      \n
      \n
      \n\n \n
      \n
      \n \n 知識卡片\n
      \n
      載入中…
      \n
      \n\n \n
      \n
      上傳Markdown / 純文字
      \n
      \n 上傳的文件會進入知識庫收件管線:約 1 分鐘後可在搜尋頁找到;AI 整理後會以 wiki 卡形式出現。支援 .md / .txt(一律以 .md 收件)。\n
      \n
      \n
      把 .md / .txt 檔案拖放到這裡
      \n
      \n \n \n
      \n
      \n
      \n\n \n
      \n
      工作流唯讀・系統狀態
      \n
      \n 此頁只顯示系統裡的工作流與最近執行狀態,不能觸發執行(觸發屬系統擁有者權限)。\n
      \n
      載入中…
      \n
      \n\n \n
      \n
      設定
      \n
      \n
      \n
      我的帳號
      \n
      載入中…
      \n
      \n
      \n
      \n
      \n
      深色模式
      \n
      預設淺色(紙感)。切換立即生效,選擇記在這台裝置。
      \n
      \n
      \n
      \n
      \n
      \n
      更改密碼
      \n
      需輸入舊密碼驗證身分;新密碼至少 8 碼
      \n
      \n \n \n \n \n
      \n
      \n
      \n \n
      \n \n
      \n 你的知識庫網址(小幫手連線用)\n \n \n
      \n
      同步小幫手
      \n
      把你電腦上的資料夾變成知識庫。換電腦或重裝時可以再下載一次。
      \n
      \n 下載 Mac 版\n
      封測版未簽章,第一次請右鍵→打開。裝好第一次開啟時,貼上這個網址+你的帳號密碼就連上了。
      \n
      \n
      \n \n
      \n
      AI 設定
      \n
      \n \n
      \n
      Gemini API Key
      \n
      聊天問答與文件萃取都用這一把。免費申請,金鑰只存在你自己的知識庫裡。
      \n \n
      \n \n
      \n
      讓知識卡整理得更好(選填)
      \n \n
      \n 讀你文件、整理成知識卡的那個 AI,換成更強的模型。卡片會更抓得到重點、關聯也連得更準,之後搜尋和問答的品質跟著提升。需要你的電腦已安裝 Claude Code。不填就用上面那把 Gemini,一樣能用。\n
      \n
      \n
      \n
      \n \n
      \n
      \n
      \n
      \n \n
      \n
      \n\n \n
      \n
      管理帳號與知識庫授權
      \n\n
      帳號管理
      \n
      \n
      新增同仁帳號
      \n
      建立後會產生一組一次性密碼——只顯示這一次,請當場轉交同仁(同仁可在「設定」自行改密)。
      \n
      \n \n \n \n \n
      \n
      \n
      \n
      \n
      載入中…
      \n\n
      庫目錄管理
      \n
      \n 你的知識庫網址(小幫手連線用)\n \n \n
      \n
      \n \n 裝好同步小幫手並選好要看守的資料夾之後,每個資料夾會自動成為一個「庫」出現在下面——不需要人工新增。下面還是空的,代表小幫手還沒裝好或還沒選資料夾。\n
      \n
      載入中…
      \n
      \n\n
      \n
      \n\n\n
      \n
      搜尋
      \n
      總圖
      \n
      上傳
      \n
      工作流
      \n
      管理
      \n
      設定
      \n
      \n\n
      \n\n\n\n"},"/portal/os-split.test.mjs":{"type":"application/javascript; charset=utf-8","b64":false,"data":"import fs from 'node:fs';\nconst html = fs.readFileSync(new URL('./index.html', import.meta.url).pathname,'utf8');\n// 抽出 daemonPick 相關函式(從 DAEMON_BASE_DEFAULT 到 daemonHint 結尾)\nconst start = html.indexOf('var DAEMON_BASE_DEFAULT');\nconst endMark = \"return '(封測版未簽章,第一次請右鍵→打開)';\\n }\";\nconst end = html.indexOf(endMark) + endMark.length;\nif (start < 0 || end < start) throw new Error('抽不到函式區塊');\nconst src = html.slice(start, end);\n\nconst cases = [\n ['Windows', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/120 Safari/537.36'],\n ['Mac', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 Safari/605.1.15'],\n ['iPhone', 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 Safari/604.1'],\n ['Linux', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 Chrome/120 Safari/537.36'],\n];\nlet pass=0, fail=0;\nconst chk=(l,c,extra='')=>{ if(c){console.log('PASS:',l);pass++;} else {console.log('FAIL:',l,extra);fail++;} };\n\nfor (const [name, ua] of cases) {\n const fn = new Function('navigator','window', src + '; return {daemonPick:daemonPick, daemonHint:daemonHint, daemonBase:daemonBase};');\n const api = fn({userAgent: ua}, {});\n const d = api.daemonPick();\n const label = d.sure ? d.pick.label : '(兩個都給)';\n const url = d.sure ? d.pick.url : d.mac.url + ' + ' + d.win.url;\n console.log(`\\n[${name}] sure=${d.sure} → ${label}`);\n console.log(` url: ${url}`);\n if (name==='Windows') {\n chk('Windows 給 win zip', d.sure && d.pick.url.endsWith('ArcrunRAG-win-unsigned.zip'), d.pick&&d.pick.url);\n chk('Windows 另一版是 Mac', d.other && d.other.url.endsWith('mac-unsigned.zip'));\n chk('Windows 話術提 藍色視窗', api.daemonHint('win').includes('仍要執行'));\n }\n if (name==='Mac') {\n chk('Mac 給 mac zip', d.sure && d.pick.url.endsWith('ArcrunRAG-mac-unsigned.zip'));\n chk('Mac 另一版是 Windows', d.other && d.other.url.endsWith('win-unsigned.zip'));\n chk('Mac 話術提 右鍵打開', api.daemonHint('mac').includes('右鍵'));\n }\n if (name==='iPhone' || name==='Linux') {\n // iPhone 含 \"Mac OS X\" 但不是桌機 Mac;Linux 兩者皆非 → 都該落在「不確定=兩個都給」\n if (name==='Linux') chk('Linux 判不出來→兩個都給', d.sure===false);\n if (name==='iPhone') chk('iPhone 不該被判成 Mac(手機→兩個都給)', d.sure===false, 'sure='+d.sure);\n }\n}\n// 舊 key 相容\nconst fn2 = new Function('navigator','window', src + '; return daemonBase();');\nconsole.log('\\n[相容] daemonDownload 舊 key →', fn2({userAgent:''},{ARCRUN_CONFIG:{daemonDownload:'https://x.dev/d/ArcrunRAG-mac-unsigned.zip'}}));\nchk('舊 key 推得出目錄', fn2({userAgent:''},{ARCRUN_CONFIG:{daemonDownload:'https://x.dev/d/ArcrunRAG-mac-unsigned.zip'}})==='https://x.dev/d/');\nchk('daemonBase 新 key 優先', fn2({userAgent:''},{ARCRUN_CONFIG:{daemonBase:'https://y.dev/z'}})==='https://y.dev/z/');\nconsole.log(`\\n=== ${pass} passed, ${fail} failed ===`);\nprocess.exit(fail?1:0);\n"},"/portal/safejson.test.mjs":{"type":"application/javascript; charset=utf-8","b64":false,"data":"import fs from 'node:fs';\nconst html = fs.readFileSync(new URL('./index.html', import.meta.url).pathname,'utf8');\n\n// 抽出 safeJson 與 friendlyErr 求值\nconst grab = (name) => {\n const i = html.indexOf(`function ${name}(`);\n if (i < 0) throw new Error(`找不到 ${name}`);\n let d=0, j=html.indexOf('{', i);\n for (let k=j;k{c?(console.log('PASS:',l),pass++):(console.log('FAIL:',l,e),fail++)};\n\n// ① safeJson:非 JSON 不可拋例外(同事撞到的 404 HTML 頁)\nconst html404 = '404 Not Found';\nawait fn.safeJson({ text: () => Promise.resolve(html404) })\n .then(d => t('404 HTML → 回空物件不拋錯', typeof d === 'object' && d !== null))\n .catch(e => t('404 HTML → 不該拋錯', false, e.message));\n\nawait fn.safeJson({ text: () => Promise.resolve('') })\n .then(d => t('空回應 → 回空物件', JSON.stringify(d)==='{}'))\n .catch(() => t('空回應 → 不該拋錯', false));\n\nawait fn.safeJson({ text: () => Promise.resolve('{\"error\":\"帳號或密碼不對\"}') })\n .then(d => t('正常 JSON 仍要解析得出來', d.error === '帳號或密碼不對'), )\n .catch(() => t('正常 JSON 不該拋錯', false));\n\n// ② friendlyErr:不可把技術訊息噴給使用者\nconst leak = fn.friendlyErr(new Error('Unexpected non-whitespace character after JSON at position 4'));\nt('JSON 錯誤 → 不外洩原文', !/JSON|position/i.test(leak), `實得: ${leak}`);\nt('JSON 錯誤 → 說人話', /伺服器回應異常/.test(leak), `實得: ${leak}`);\n\nconst net = fn.friendlyErr(new Error('Failed to fetch'));\nt('網路錯誤 → 既有訊息保留', /連線中斷/.test(net), `實得: ${net}`);\n\nconst ours = fn.friendlyErr(new Error('帳號或密碼不對——用你在知識庫網站設定的那組'));\nt('我們自己的中文訊息 → 原樣顯示', /帳號或密碼不對/.test(ours), `實得: ${ours}`);\n\nconst stack = fn.friendlyErr(new Error('TypeError: Cannot read properties of undefined'));\nt('英文技術訊息 → 收斂不外洩', !/TypeError|undefined/.test(stack), `實得: ${stack}`);\n\nconsole.log(`\\n=== ${pass} passed, ${fail} failed ===`);\nprocess.exit(fail?1:0);\n"}}; +const FILES = {"/console/dashboard/index.html":{"type":"text/html; charset=utf-8","b64":false,"data":"\n\n\n\n\nArcrun 駕駛艙\n\n\n\n\n\n\n
      \n
      \n
      Arcrun 駕駛艙
      \n
      \n
      \n \n
      \n
      \n
      \n
      \n
      \n
      載入中
      \n
      \n
      \n
      \n
      \n
      \n
      今日完成
      \n
      /
      \n
      \n
      \n
      \n
      收件匣未處理
      \n
      \n
      來自 Telegram
      \n
      \n
      \n
      \n
      等你的事
      \n
      載入中…
      \n
      \n
      \n
      今日路線
      \n
      • 載入中…
      \n
      本週
      \n
        \n
        系統狀況live 健康信號
        \n
        載入中…
        \n
        每 60 秒自動刷新
        \n 進入完整控制台 ›\n
        \n\n\n\n"},"/console/index.html":{"type":"text/html; charset=utf-8","b64":false,"data":"\n\n\n\n\nArcrun Console\n\n\n\n\n\n\n\n\n
        \n
        \n
        \n
        Arcrun
        \n
        私人系統・僅供擁有者進入
        \n
        \n
        \n \n \n \n
        \n
        \n
        這是一個人的智慧總部。
        若你不是擁有者,這裡沒有你要找的東西。
        \n \n \n
        \n
        \n\n\n
        \n
        \n
        \n
        Arcrun
        \n
        首次設定
        \n
        系統偵測到尚未設定擁有者帳號。
        設定一組 Email 與密碼,之後只有你能進入。
        \n
        \n
        \n \n \n \n \n
        \n
        \n \n
        \n
        \n\n\n
        \n
        \n
        Arcrun
        \n \n
        總庫搜尋
        \n
        工作流
        \n \n
        設定
        \n
        ☾ 切深色
        \n
        \n
        \n
        \n\n \n
        \n
        Arcrun 控制台
        \n
        \n
        \n
        \n
        \n
        \n
        載入中
        \n
        \n
        \n
        \n
        \n
        \n
        今日完成
        \n
        /
        \n
        \n
        \n
        \n
        收件匣未處理
        \n
        \n
        來自 Telegram
        \n
        \n
        \n
        \n
        等你的事
        \n
        載入中…
        \n
        \n
        \n
        \n
        \n
        \n 今日路線狀態即時同步\n
        \n
        • 載入中…
        \n
        本週
        \n
          \n
          每 60 秒自動刷新
          \n
          \n
          \n
          \n\n \n
          \n
          總庫搜尋
          \n
          \n
          \n
          \n 藏書地圖\n
          \n
          地圖載入中…
          \n
          \n
          \n
          \n \n \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n\n \n
          \n
          \n \n 知識卡片\n
          \n
          \n
          載入中…
          \n
          \n
          關聯視圖
          \n
          \n
          \n
          \n
          \n
          \n\n \n
          \n
          工作流
          \n \n
          載入中…
          \n
          \n
          零件與 Recipes(框架資源)
          \n
          \n \n \n
          \n
          \n
          \n
          \n\n \n
          \n
          憑證管理
          \n
          \n 🛡 保險箱原則:系統只保存目錄與加密後的值,任何頁面都看不到密文內容。只能整筆替換或刪除。\n
          \n
          \n
          新增憑證
          \n
          \n \n \n \n \n
          \n
          \n
          \n
          載入中…
          \n
          \n\n \n
          \n
          分流台全部待辦・80/15/5
          \n
          \n
          載入中…
          \n
          \n\n \n
          \n
          設定
          \n
          \n
          \n
          \n
          \n
          深色模式
          \n
          預設淺色(紙感)。切換立即生效,選擇記在這台裝置(localStorage)。
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          語意搜尋(vectorize)
          \n
          狀態偵測中…
          \n
          \n
          \n
          \n
          \n 誠實提示:開關真相=部署端 ~/.arcrun/config.yamlkbdb_embed: trueacr update 重部署(#32 教訓:wrangler 直推改的形態 config 要同步)。Console 只如實顯示狀態,不假裝能遠端開啟。目前狀態:偵測中…\n
          \n
          \n
          \n
          MCP token 有效期(TTL)
          \n
          讀取中…
          \n
          \n 誠實佔位:此頁還不能改這個值——可調功能=Arcrun#19(設定頁改→存 KBDB→發 token 時讀)。實作前要調整請在部署端 env MCP_TOKEN_TTL(mcp worker)設定。\n
          \n
          \n
          \n
          更換帳號密碼
          \n
          需輸入舊密碼驗證身分
          \n
          \n \n \n \n \n
          \n
          \n
          \n \n
          \n
          系統資訊
          \n
          載入中…
          \n
          \n \n
          \n
          \n\n
          \n
          \n\n\n
          \n \n
          搜尋
          \n
          工作流
          \n \n
          設定
          \n
          \n\n
          \n\n\n\n\n"},"/index.html":{"type":"text/html; charset=utf-8","b64":false,"data":"\n\n\n\nArcrun RAG\n\n\n\n\n\n\n\n

          正在前往搜尋頁… 沒有自動跳轉請點這裡

          \n\n\n"},"/portal/index.html":{"type":"text/html; charset=utf-8","b64":false,"data":"\n\n\n\n\nArcrun Portal\n\n\n\n\n\n\n\n\n
          \n
          \n
          \n
          Arcrun
          \n
          知識入口・Portal
          \n
          \n
          \n \n \n \n
          \n
          \n
          帳號由管理員發放。忘記密碼請聯絡管理員重設。
          \n \n
          \n
          \n\n\n
          \n
          \n
          Arcrun
          \n
          搜尋
          \n
          總圖
          \n
          上傳
          \n
          工作流
          \n
          管理
          \n
          設定
          \n
          ☾ 切深色
          \n
          \n
          \n
          \n\n \n
          \n
          搜尋
          \n
          \n
          \n \n \n
          \n
          \n \n \n \n
          \n \n
          \n
          AI 問答・答案附出處,可回搜尋驗證
          \n
          \n \n \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n\n \n
          \n
          總圖
          \n
          \n
          \n
          \n 點節點可跳到該實體的圖譜搜尋。這張圖由知識庫的三元組即時算出——同一份地圖的文字版\n (給 AI 注入用的總庫目錄)。\n
          \n
          \n
          \n\n \n
          \n
          \n \n 知識卡片\n
          \n
          載入中…
          \n
          \n\n \n
          \n
          上傳Markdown / 純文字
          \n
          \n 上傳的文件會進入知識庫收件管線:約 1 分鐘後可在搜尋頁找到;AI 整理後會以 wiki 卡形式出現。支援 .md / .txt(一律以 .md 收件)。\n
          \n
          \n
          把 .md / .txt 檔案拖放到這裡
          \n
          \n \n \n
          \n
          \n
          \n\n \n
          \n
          工作流唯讀・系統狀態
          \n
          \n 此頁只顯示系統裡的工作流與最近執行狀態,不能觸發執行(觸發屬系統擁有者權限)。\n
          \n
          載入中…
          \n
          \n\n \n
          \n
          設定
          \n
          \n
          \n
          我的帳號
          \n
          載入中…
          \n
          \n
          \n
          \n
          \n
          深色模式
          \n
          預設淺色(紙感)。切換立即生效,選擇記在這台裝置。
          \n
          \n
          \n
          \n
          \n
          \n
          更改密碼
          \n
          需輸入舊密碼驗證身分;新密碼至少 8 碼
          \n
          \n \n \n \n \n
          \n
          \n
          \n \n
          \n
          \n\n \n
          \n
          管理帳號與知識庫授權
          \n\n
          帳號管理
          \n
          \n
          新增同仁帳號
          \n
          建立後會產生一組一次性密碼——只顯示這一次,請當場轉交同仁(同仁可在「設定」自行改密)。
          \n
          \n \n \n \n \n
          \n
          \n
          \n
          \n
          載入中…
          \n\n
          庫目錄管理
          \n
          \n 這裡是「庫」的登記簿——條目歸哪個庫由資料導入(ingest)時蓋章決定;未蓋章的舊資料一律視同 general。標了「圖譜來源」的庫決定誰能用圖譜模式(全都沒標=預設 general)。\n
          \n
          \n
          登記新庫
          \n
          \n \n \n \n \n
          \n
          \n
          \n
          載入中…
          \n
          \n\n
          \n
          \n\n\n
          \n
          搜尋
          \n
          總圖
          \n
          上傳
          \n
          工作流
          \n
          管理
          \n
          設定
          \n
          \n\n
          \n\n\n\n"}}; function b64ToBytes(b64) { const bin = atob(b64); const a = new Uint8Array(bin.length); for (let i = 0; i < bin.length; i++) a[i] = bin.charCodeAt(i); return a; } export default { async fetch(request, env) {