@arokodev/cli 0.0.0-stage → 0.1.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/dist/args.d.ts +10 -0
- package/dist/args.d.ts.map +1 -0
- package/dist/args.js +76 -0
- package/dist/args.js.map +1 -0
- package/dist/cli-brand.d.ts +6 -0
- package/dist/cli-brand.d.ts.map +1 -0
- package/dist/cli-brand.js +39 -0
- package/dist/cli-brand.js.map +1 -0
- package/dist/commands/action.d.ts +2 -0
- package/dist/commands/action.d.ts.map +1 -0
- package/dist/commands/action.js +228 -0
- package/dist/commands/action.js.map +1 -0
- package/dist/commands/ask.d.ts +5 -0
- package/dist/commands/ask.d.ts.map +1 -0
- package/dist/commands/ask.js +118 -0
- package/dist/commands/ask.js.map +1 -0
- package/dist/commands/audit.d.ts +2 -0
- package/dist/commands/audit.d.ts.map +1 -0
- package/dist/commands/audit.js +25 -0
- package/dist/commands/audit.js.map +1 -0
- package/dist/commands/claude-setup.d.ts +2 -0
- package/dist/commands/claude-setup.d.ts.map +1 -0
- package/dist/commands/claude-setup.js +36 -0
- package/dist/commands/claude-setup.js.map +1 -0
- package/dist/commands/config.d.ts +5 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +186 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/connect.d.ts +6 -0
- package/dist/commands/connect.d.ts.map +1 -0
- package/dist/commands/connect.js +138 -0
- package/dist/commands/connect.js.map +1 -0
- package/dist/commands/control.d.ts +2 -0
- package/dist/commands/control.d.ts.map +1 -0
- package/dist/commands/control.js +123 -0
- package/dist/commands/control.js.map +1 -0
- package/dist/commands/cursor-setup.d.ts +2 -0
- package/dist/commands/cursor-setup.d.ts.map +1 -0
- package/dist/commands/cursor-setup.js +104 -0
- package/dist/commands/cursor-setup.js.map +1 -0
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +345 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +61 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/logs.d.ts +2 -0
- package/dist/commands/logs.d.ts.map +1 -0
- package/dist/commands/logs.js +24 -0
- package/dist/commands/logs.js.map +1 -0
- package/dist/commands/mcp.d.ts +2 -0
- package/dist/commands/mcp.d.ts.map +1 -0
- package/dist/commands/mcp.js +117 -0
- package/dist/commands/mcp.js.map +1 -0
- package/dist/commands/open.d.ts +3 -0
- package/dist/commands/open.d.ts.map +1 -0
- package/dist/commands/open.js +10 -0
- package/dist/commands/open.js.map +1 -0
- package/dist/commands/permissions.d.ts +2 -0
- package/dist/commands/permissions.d.ts.map +1 -0
- package/dist/commands/permissions.js +105 -0
- package/dist/commands/permissions.js.map +1 -0
- package/dist/commands/relay.d.ts +2 -0
- package/dist/commands/relay.d.ts.map +1 -0
- package/dist/commands/relay.js +44 -0
- package/dist/commands/relay.js.map +1 -0
- package/dist/commands/requests.d.ts +6 -0
- package/dist/commands/requests.d.ts.map +1 -0
- package/dist/commands/requests.js +124 -0
- package/dist/commands/requests.js.map +1 -0
- package/dist/commands/restart.d.ts +2 -0
- package/dist/commands/restart.d.ts.map +1 -0
- package/dist/commands/restart.js +48 -0
- package/dist/commands/restart.js.map +1 -0
- package/dist/commands/session.d.ts +9 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +395 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/commands/start.d.ts +2 -0
- package/dist/commands/start.d.ts.map +1 -0
- package/dist/commands/start.js +84 -0
- package/dist/commands/start.js.map +1 -0
- package/dist/commands/stop.d.ts +2 -0
- package/dist/commands/stop.d.ts.map +1 -0
- package/dist/commands/stop.js +18 -0
- package/dist/commands/stop.js.map +1 -0
- package/dist/commands/task.d.ts +2 -0
- package/dist/commands/task.d.ts.map +1 -0
- package/dist/commands/task.js +318 -0
- package/dist/commands/task.js.map +1 -0
- package/dist/commands/update.d.ts +5 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/update.js +169 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/commands/version.d.ts +3 -0
- package/dist/commands/version.d.ts.map +1 -0
- package/dist/commands/version.js +40 -0
- package/dist/commands/version.js.map +1 -0
- package/dist/commands/watch.d.ts +2 -0
- package/dist/commands/watch.d.ts.map +1 -0
- package/dist/commands/watch.js +371 -0
- package/dist/commands/watch.js.map +1 -0
- package/dist/context.d.ts +4 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +11 -0
- package/dist/context.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +264 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime/background-runtime.d.ts +21 -0
- package/dist/runtime/background-runtime.d.ts.map +1 -0
- package/dist/runtime/background-runtime.js +230 -0
- package/dist/runtime/background-runtime.js.map +1 -0
- package/dist/runtime/foreground-runtime.d.ts +15 -0
- package/dist/runtime/foreground-runtime.d.ts.map +1 -0
- package/dist/runtime/foreground-runtime.js +245 -0
- package/dist/runtime/foreground-runtime.js.map +1 -0
- package/dist/runtime/upgrade-handshake.d.ts +41 -0
- package/dist/runtime/upgrade-handshake.d.ts.map +1 -0
- package/dist/runtime/upgrade-handshake.js +221 -0
- package/dist/runtime/upgrade-handshake.js.map +1 -0
- package/dist/runtime/worker.d.ts +3 -0
- package/dist/runtime/worker.d.ts.map +1 -0
- package/dist/runtime/worker.js +25 -0
- package/dist/runtime/worker.js.map +1 -0
- package/dist/version.d.ts +8 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +66 -0
- package/dist/version.js.map +1 -0
- package/dist/workspace.d.ts +5 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +17 -0
- package/dist/workspace.js.map +1 -0
- package/node_modules/@a2a-js/sdk/LICENSE +202 -0
- package/node_modules/@a2a-js/sdk/README.md +321 -0
- package/node_modules/@a2a-js/sdk/dist/a2a-CJdXl9vi.d.cts +830 -0
- package/node_modules/@a2a-js/sdk/dist/a2a-CJdXl9vi.d.ts +830 -0
- package/node_modules/@a2a-js/sdk/dist/a2a_request_handler-DYESfch9.d.ts +19 -0
- package/node_modules/@a2a-js/sdk/dist/a2a_request_handler-X6sphdno.d.cts +19 -0
- package/node_modules/@a2a-js/sdk/dist/agent_card_handler-DdsMrp1N.d.ts +57 -0
- package/node_modules/@a2a-js/sdk/dist/agent_card_handler-Hxgnif9P.d.cts +57 -0
- package/node_modules/@a2a-js/sdk/dist/base-BQdNEObP.d.cts +113 -0
- package/node_modules/@a2a-js/sdk/dist/base-BQdNEObP.d.ts +113 -0
- package/node_modules/@a2a-js/sdk/dist/cli/a2a_db.js +23 -0
- package/node_modules/@a2a-js/sdk/dist/cli/run.js +724 -0
- package/node_modules/@a2a-js/sdk/dist/client/index.cjs +6709 -0
- package/node_modules/@a2a-js/sdk/dist/client/index.d.cts +247 -0
- package/node_modules/@a2a-js/sdk/dist/client/index.d.ts +247 -0
- package/node_modules/@a2a-js/sdk/dist/client/index.js +6659 -0
- package/node_modules/@a2a-js/sdk/dist/client/transports/grpc/index.cjs +9912 -0
- package/node_modules/@a2a-js/sdk/dist/client/transports/grpc/index.d.cts +37 -0
- package/node_modules/@a2a-js/sdk/dist/client/transports/grpc/index.d.ts +37 -0
- package/node_modules/@a2a-js/sdk/dist/client/transports/grpc/index.js +9879 -0
- package/node_modules/@a2a-js/sdk/dist/common-BBr9yk4y.d.cts +9 -0
- package/node_modules/@a2a-js/sdk/dist/common-_tbJ9jX2.d.ts +9 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/index.cjs +3856 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/index.d.cts +155 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/index.d.ts +155 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/index.js +3826 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/transports/grpc/index.cjs +5988 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/transports/grpc/index.d.cts +60 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/transports/grpc/index.d.ts +60 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/transports/grpc/index.js +5953 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/index.cjs +857 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/index.d.cts +133 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/index.d.ts +133 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/index.js +808 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/express/index.cjs +3891 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/express/index.d.cts +83 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/express/index.d.ts +83 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/express/index.js +3853 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/grpc/index.cjs +6292 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/grpc/index.d.cts +1065 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/grpc/index.d.ts +1065 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/grpc/index.js +6256 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/index.cjs +2209 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/index.d.cts +1252 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/index.d.ts +1252 -0
- package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/index.js +2167 -0
- package/node_modules/@a2a-js/sdk/dist/constants-PdvgZRkF.d.cts +31 -0
- package/node_modules/@a2a-js/sdk/dist/constants-PdvgZRkF.d.ts +31 -0
- package/node_modules/@a2a-js/sdk/dist/context-BT-gNvOc.d.cts +110 -0
- package/node_modules/@a2a-js/sdk/dist/context-CI8-TqEC.d.ts +110 -0
- package/node_modules/@a2a-js/sdk/dist/core-2M_ZGi8t.d.cts +15 -0
- package/node_modules/@a2a-js/sdk/dist/core-2M_ZGi8t.d.ts +15 -0
- package/node_modules/@a2a-js/sdk/dist/default_push_notification_sender-B9XytetV.d.ts +107 -0
- package/node_modules/@a2a-js/sdk/dist/default_push_notification_sender-BLXGYWWX.d.cts +107 -0
- package/node_modules/@a2a-js/sdk/dist/errors/grpc/index.cjs +585 -0
- package/node_modules/@a2a-js/sdk/dist/errors/grpc/index.d.cts +239 -0
- package/node_modules/@a2a-js/sdk/dist/errors/grpc/index.d.ts +239 -0
- package/node_modules/@a2a-js/sdk/dist/errors/grpc/index.js +540 -0
- package/node_modules/@a2a-js/sdk/dist/errors/index.cjs +546 -0
- package/node_modules/@a2a-js/sdk/dist/errors/index.d.cts +197 -0
- package/node_modules/@a2a-js/sdk/dist/errors/index.d.ts +197 -0
- package/node_modules/@a2a-js/sdk/dist/errors/index.js +476 -0
- package/node_modules/@a2a-js/sdk/dist/extensions-DglIgEjg.d.ts +145 -0
- package/node_modules/@a2a-js/sdk/dist/extensions-JbNg_D8m.d.cts +145 -0
- package/node_modules/@a2a-js/sdk/dist/index.cjs +1933 -0
- package/node_modules/@a2a-js/sdk/dist/index.d.cts +65 -0
- package/node_modules/@a2a-js/sdk/dist/index.d.ts +65 -0
- package/node_modules/@a2a-js/sdk/dist/index.js +1826 -0
- package/node_modules/@a2a-js/sdk/dist/multitransport-client-Bq8elQ1W.d.ts +257 -0
- package/node_modules/@a2a-js/sdk/dist/multitransport-client-Co0-x8pk.d.cts +257 -0
- package/node_modules/@a2a-js/sdk/dist/push_notification_store-BS7Bm-Wx.d.cts +73 -0
- package/node_modules/@a2a-js/sdk/dist/push_notification_store-BqBwsxZu.d.ts +73 -0
- package/node_modules/@a2a-js/sdk/dist/server/database/index.cjs +1074 -0
- package/node_modules/@a2a-js/sdk/dist/server/database/index.d.cts +123 -0
- package/node_modules/@a2a-js/sdk/dist/server/database/index.d.ts +123 -0
- package/node_modules/@a2a-js/sdk/dist/server/database/index.js +1034 -0
- package/node_modules/@a2a-js/sdk/dist/server/express/index.cjs +6382 -0
- package/node_modules/@a2a-js/sdk/dist/server/express/index.d.cts +73 -0
- package/node_modules/@a2a-js/sdk/dist/server/express/index.d.ts +73 -0
- package/node_modules/@a2a-js/sdk/dist/server/express/index.js +6342 -0
- package/node_modules/@a2a-js/sdk/dist/server/grpc/index.cjs +4670 -0
- package/node_modules/@a2a-js/sdk/dist/server/grpc/index.d.cts +245 -0
- package/node_modules/@a2a-js/sdk/dist/server/grpc/index.d.ts +245 -0
- package/node_modules/@a2a-js/sdk/dist/server/grpc/index.js +4633 -0
- package/node_modules/@a2a-js/sdk/dist/server/index.cjs +3941 -0
- package/node_modules/@a2a-js/sdk/dist/server/index.d.cts +521 -0
- package/node_modules/@a2a-js/sdk/dist/server/index.d.ts +521 -0
- package/node_modules/@a2a-js/sdk/dist/server/index.js +3885 -0
- package/node_modules/@a2a-js/sdk/dist/signature-0lXTnH2m.d.ts +66 -0
- package/node_modules/@a2a-js/sdk/dist/signature-BteR1cTB.d.cts +66 -0
- package/node_modules/@a2a-js/sdk/dist/store-ITPVQgJ1.d.ts +51 -0
- package/node_modules/@a2a-js/sdk/dist/store-e4nvcBHL.d.cts +51 -0
- package/node_modules/@a2a-js/sdk/package.json +234 -0
- package/node_modules/@modelcontextprotocol/core/LICENSE +216 -0
- package/node_modules/@modelcontextprotocol/core/README.md +40 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-Anm-lwWi.d.mts +8507 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-Anm-lwWi.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-BNDyLTqp.mjs +1681 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-BNDyLTqp.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-D1CeV_Jr.cjs +2902 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-D1CeV_Jr.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-V9XJSCfa.d.cts +8507 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-V9XJSCfa.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.cjs +175 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.mjs +3 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +201 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +99 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +99 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +3 -0
- package/node_modules/@modelcontextprotocol/core/package.json +85 -0
- package/node_modules/@modelcontextprotocol/server/LICENSE +216 -0
- package/node_modules/@modelcontextprotocol/server/README.md +24 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs +7514 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts +1071 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts +1071 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs +7531 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs +986 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts +74 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts +74 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs +981 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/chunk-Bnu9O96Y.cjs +60 -0
- package/node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs +42 -0
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-D4NN8WsG.d.mts +4168 -0
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-D4NN8WsG.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-DZmmlN8e.d.cts +4170 -0
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-DZmmlN8e.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs +46 -0
- package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs +34 -0
- package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.cjs +1978 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.d.cts +810 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.d.mts +810 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.mjs +1790 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/mcp-BumlNux0.cjs +2477 -0
- package/node_modules/@modelcontextprotocol/server/dist/mcp-BumlNux0.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/mcp-DIH4cS6P.mjs +2326 -0
- package/node_modules/@modelcontextprotocol/server/dist/mcp-DIH4cS6P.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs +23 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts +11 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts +11 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs +22 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.cjs +12 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.cts +3 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.mts +3 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs +4 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs +30 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts +10 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts +10 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs +29 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/src-BhnGYybN.cjs +8200 -0
- package/node_modules/@modelcontextprotocol/server/dist/src-BhnGYybN.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/src-Cqbh3MYc.mjs +7702 -0
- package/node_modules/@modelcontextprotocol/server/dist/src-Cqbh3MYc.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs +591 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts +115 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts +115 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs +589 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts +1099 -0
- package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts +1099 -0
- package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.cjs +5 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.mjs +3 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.cjs +3 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.mjs +3 -0
- package/node_modules/@modelcontextprotocol/server/package.json +160 -0
- package/node_modules/@noble/ciphers/LICENSE +22 -0
- package/node_modules/@noble/ciphers/README.md +554 -0
- package/node_modules/@noble/ciphers/_arx.d.ts +145 -0
- package/node_modules/@noble/ciphers/_arx.js +379 -0
- package/node_modules/@noble/ciphers/_poly1305.d.ts +72 -0
- package/node_modules/@noble/ciphers/_poly1305.js +318 -0
- package/node_modules/@noble/ciphers/_polyval.d.ts +120 -0
- package/node_modules/@noble/ciphers/_polyval.js +331 -0
- package/node_modules/@noble/ciphers/aes.d.ts +472 -0
- package/node_modules/@noble/ciphers/aes.js +1823 -0
- package/node_modules/@noble/ciphers/chacha.d.ts +259 -0
- package/node_modules/@noble/ciphers/chacha.js +460 -0
- package/node_modules/@noble/ciphers/ff1.d.ts +44 -0
- package/node_modules/@noble/ciphers/ff1.js +279 -0
- package/node_modules/@noble/ciphers/index.d.ts +1 -0
- package/node_modules/@noble/ciphers/index.js +26 -0
- package/node_modules/@noble/ciphers/package.json +79 -0
- package/node_modules/@noble/ciphers/salsa.d.ts +133 -0
- package/node_modules/@noble/ciphers/salsa.js +300 -0
- package/node_modules/@noble/ciphers/src/_arx.ts +507 -0
- package/node_modules/@noble/ciphers/src/_poly1305.ts +350 -0
- package/node_modules/@noble/ciphers/src/_polyval.ts +383 -0
- package/node_modules/@noble/ciphers/src/aes.ts +2074 -0
- package/node_modules/@noble/ciphers/src/chacha.ts +483 -0
- package/node_modules/@noble/ciphers/src/ff1.ts +299 -0
- package/node_modules/@noble/ciphers/src/index.ts +25 -0
- package/node_modules/@noble/ciphers/src/salsa.ts +313 -0
- package/node_modules/@noble/ciphers/src/utils.ts +1295 -0
- package/node_modules/@noble/ciphers/src/webcrypto.ts +288 -0
- package/node_modules/@noble/ciphers/utils.d.ts +739 -0
- package/node_modules/@noble/ciphers/utils.js +896 -0
- package/node_modules/@noble/ciphers/webcrypto.d.ts +91 -0
- package/node_modules/@noble/ciphers/webcrypto.js +211 -0
- package/node_modules/@noble/curves/LICENSE +21 -0
- package/node_modules/@noble/curves/README.md +844 -0
- package/node_modules/@noble/curves/abstract/bls.d.ts +429 -0
- package/node_modules/@noble/curves/abstract/bls.js +568 -0
- package/node_modules/@noble/curves/abstract/curve.d.ts +497 -0
- package/node_modules/@noble/curves/abstract/curve.js +752 -0
- package/node_modules/@noble/curves/abstract/der.d.ts +97 -0
- package/node_modules/@noble/curves/abstract/der.js +168 -0
- package/node_modules/@noble/curves/abstract/edwards.d.ts +329 -0
- package/node_modules/@noble/curves/abstract/edwards.js +712 -0
- package/node_modules/@noble/curves/abstract/fft.d.ts +444 -0
- package/node_modules/@noble/curves/abstract/fft.js +644 -0
- package/node_modules/@noble/curves/abstract/frost.d.ts +471 -0
- package/node_modules/@noble/curves/abstract/frost.js +870 -0
- package/node_modules/@noble/curves/abstract/hash-to-curve.d.ts +291 -0
- package/node_modules/@noble/curves/abstract/hash-to-curve.js +568 -0
- package/node_modules/@noble/curves/abstract/modular.d.ts +581 -0
- package/node_modules/@noble/curves/abstract/modular.js +972 -0
- package/node_modules/@noble/curves/abstract/montgomery.d.ts +185 -0
- package/node_modules/@noble/curves/abstract/montgomery.js +311 -0
- package/node_modules/@noble/curves/abstract/oprf.d.ts +354 -0
- package/node_modules/@noble/curves/abstract/oprf.js +370 -0
- package/node_modules/@noble/curves/abstract/poseidon.d.ts +198 -0
- package/node_modules/@noble/curves/abstract/poseidon.js +482 -0
- package/node_modules/@noble/curves/abstract/tower.d.ts +211 -0
- package/node_modules/@noble/curves/abstract/tower.js +949 -0
- package/node_modules/@noble/curves/abstract/weierstrass.d.ts +455 -0
- package/node_modules/@noble/curves/abstract/weierstrass.js +1165 -0
- package/node_modules/@noble/curves/bls12-381.d.ts +23 -0
- package/node_modules/@noble/curves/bls12-381.js +753 -0
- package/node_modules/@noble/curves/bn254.d.ts +74 -0
- package/node_modules/@noble/curves/bn254.js +275 -0
- package/node_modules/@noble/curves/ed25519.d.ts +212 -0
- package/node_modules/@noble/curves/ed25519.js +649 -0
- package/node_modules/@noble/curves/ed448.d.ts +186 -0
- package/node_modules/@noble/curves/ed448.js +623 -0
- package/node_modules/@noble/curves/index.d.ts +1 -0
- package/node_modules/@noble/curves/index.js +38 -0
- package/node_modules/@noble/curves/misc.d.ts +113 -0
- package/node_modules/@noble/curves/misc.js +211 -0
- package/node_modules/@noble/curves/nist.d.ts +138 -0
- package/node_modules/@noble/curves/nist.js +270 -0
- package/node_modules/@noble/curves/package.json +98 -0
- package/node_modules/@noble/curves/secp256k1.d.ts +156 -0
- package/node_modules/@noble/curves/secp256k1.js +474 -0
- package/node_modules/@noble/curves/src/abstract/bls.ts +1063 -0
- package/node_modules/@noble/curves/src/abstract/curve.ts +1080 -0
- package/node_modules/@noble/curves/src/abstract/der.ts +223 -0
- package/node_modules/@noble/curves/src/abstract/edwards.ts +1045 -0
- package/node_modules/@noble/curves/src/abstract/fft.ts +926 -0
- package/node_modules/@noble/curves/src/abstract/frost.ts +1477 -0
- package/node_modules/@noble/curves/src/abstract/hash-to-curve.ts +717 -0
- package/node_modules/@noble/curves/src/abstract/modular.ts +1208 -0
- package/node_modules/@noble/curves/src/abstract/montgomery.ts +420 -0
- package/node_modules/@noble/curves/src/abstract/oprf.ts +805 -0
- package/node_modules/@noble/curves/src/abstract/poseidon.ts +556 -0
- package/node_modules/@noble/curves/src/abstract/tower.ts +1150 -0
- package/node_modules/@noble/curves/src/abstract/weierstrass.ts +1666 -0
- package/node_modules/@noble/curves/src/bls12-381.ts +862 -0
- package/node_modules/@noble/curves/src/bn254.ts +310 -0
- package/node_modules/@noble/curves/src/ed25519.ts +736 -0
- package/node_modules/@noble/curves/src/ed448.ts +743 -0
- package/node_modules/@noble/curves/src/index.ts +37 -0
- package/node_modules/@noble/curves/src/misc.ts +260 -0
- package/node_modules/@noble/curves/src/nist.ts +329 -0
- package/node_modules/@noble/curves/src/secp256k1.ts +591 -0
- package/node_modules/@noble/curves/src/utils.ts +930 -0
- package/node_modules/@noble/curves/src/webcrypto.ts +649 -0
- package/node_modules/@noble/curves/utils.d.ts +610 -0
- package/node_modules/@noble/curves/utils.js +710 -0
- package/node_modules/@noble/curves/webcrypto.d.ts +240 -0
- package/node_modules/@noble/curves/webcrypto.js +431 -0
- package/node_modules/@noble/hashes/LICENSE +21 -0
- package/node_modules/@noble/hashes/README.md +478 -0
- package/node_modules/@noble/hashes/_blake.d.ts +20 -0
- package/node_modules/@noble/hashes/_blake.js +59 -0
- package/node_modules/@noble/hashes/_md.d.ts +95 -0
- package/node_modules/@noble/hashes/_md.js +209 -0
- package/node_modules/@noble/hashes/_u64.d.ts +36 -0
- package/node_modules/@noble/hashes/_u64.js +77 -0
- package/node_modules/@noble/hashes/argon2.d.ts +148 -0
- package/node_modules/@noble/hashes/argon2.js +577 -0
- package/node_modules/@noble/hashes/blake1.d.ts +162 -0
- package/node_modules/@noble/hashes/blake1.js +630 -0
- package/node_modules/@noble/hashes/blake2.d.ts +203 -0
- package/node_modules/@noble/hashes/blake2.js +573 -0
- package/node_modules/@noble/hashes/blake3.d.ts +68 -0
- package/node_modules/@noble/hashes/blake3.js +310 -0
- package/node_modules/@noble/hashes/eskdf.d.ts +91 -0
- package/node_modules/@noble/hashes/eskdf.js +225 -0
- package/node_modules/@noble/hashes/hkdf.d.ts +70 -0
- package/node_modules/@noble/hashes/hkdf.js +152 -0
- package/node_modules/@noble/hashes/hmac.d.ts +50 -0
- package/node_modules/@noble/hashes/hmac.js +93 -0
- package/node_modules/@noble/hashes/index.d.ts +1 -0
- package/node_modules/@noble/hashes/index.js +34 -0
- package/node_modules/@noble/hashes/legacy.d.ts +107 -0
- package/node_modules/@noble/hashes/legacy.js +348 -0
- package/node_modules/@noble/hashes/package.json +91 -0
- package/node_modules/@noble/hashes/pbkdf2.d.ts +66 -0
- package/node_modules/@noble/hashes/pbkdf2.js +176 -0
- package/node_modules/@noble/hashes/scrypt.d.ts +98 -0
- package/node_modules/@noble/hashes/scrypt.js +304 -0
- package/node_modules/@noble/hashes/sha2.d.ts +176 -0
- package/node_modules/@noble/hashes/sha2.js +446 -0
- package/node_modules/@noble/hashes/sha3-addons.d.ts +533 -0
- package/node_modules/@noble/hashes/sha3-addons.js +973 -0
- package/node_modules/@noble/hashes/sha3.d.ts +208 -0
- package/node_modules/@noble/hashes/sha3.js +475 -0
- package/node_modules/@noble/hashes/src/_blake.ts +67 -0
- package/node_modules/@noble/hashes/src/_md.ts +227 -0
- package/node_modules/@noble/hashes/src/_u64.ts +111 -0
- package/node_modules/@noble/hashes/src/argon2.ts +693 -0
- package/node_modules/@noble/hashes/src/blake1.ts +677 -0
- package/node_modules/@noble/hashes/src/blake2.ts +648 -0
- package/node_modules/@noble/hashes/src/blake3.ts +344 -0
- package/node_modules/@noble/hashes/src/eskdf.ts +265 -0
- package/node_modules/@noble/hashes/src/hkdf.ts +161 -0
- package/node_modules/@noble/hashes/src/hmac.ts +130 -0
- package/node_modules/@noble/hashes/src/index.ts +33 -0
- package/node_modules/@noble/hashes/src/legacy.ts +361 -0
- package/node_modules/@noble/hashes/src/pbkdf2.ts +219 -0
- package/node_modules/@noble/hashes/src/scrypt.ts +375 -0
- package/node_modules/@noble/hashes/src/sha2.ts +486 -0
- package/node_modules/@noble/hashes/src/sha3-addons.ts +1157 -0
- package/node_modules/@noble/hashes/src/sha3.ts +525 -0
- package/node_modules/@noble/hashes/src/utils.ts +978 -0
- package/node_modules/@noble/hashes/src/webcrypto.ts +283 -0
- package/node_modules/@noble/hashes/utils.d.ts +560 -0
- package/node_modules/@noble/hashes/utils.js +687 -0
- package/node_modules/@noble/hashes/webcrypto.d.ts +121 -0
- package/node_modules/@noble/hashes/webcrypto.js +228 -0
- package/node_modules/@pairmesh/client/control-web/activity-present.js +238 -0
- package/node_modules/@pairmesh/client/control-web/app.css +1134 -0
- package/node_modules/@pairmesh/client/control-web/app.js +2744 -0
- package/node_modules/@pairmesh/client/control-web/history-present.js +510 -0
- package/node_modules/@pairmesh/client/control-web/home-present.js +395 -0
- package/node_modules/@pairmesh/client/control-web/index.html +170 -0
- package/node_modules/@pairmesh/client/control-web/live-present.js +628 -0
- package/node_modules/@pairmesh/client/control-web/people-present.js +244 -0
- package/node_modules/@pairmesh/client/control-web/settings-present.js +416 -0
- package/node_modules/@pairmesh/client/dist/a2a/action-client.d.ts +12 -0
- package/node_modules/@pairmesh/client/dist/a2a/action-client.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/action-client.js +48 -0
- package/node_modules/@pairmesh/client/dist/a2a/action-client.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/action-messages.d.ts +11 -0
- package/node_modules/@pairmesh/client/dist/a2a/action-messages.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/action-messages.js +41 -0
- package/node_modules/@pairmesh/client/dist/a2a/action-messages.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/adapter.d.ts +16 -0
- package/node_modules/@pairmesh/client/dist/a2a/adapter.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/adapter.js +93 -0
- package/node_modules/@pairmesh/client/dist/a2a/adapter.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/client-factory.d.ts +19 -0
- package/node_modules/@pairmesh/client/dist/a2a/client-factory.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/client-factory.js +58 -0
- package/node_modules/@pairmesh/client/dist/a2a/client-factory.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/inspection-client.d.ts +50 -0
- package/node_modules/@pairmesh/client/dist/a2a/inspection-client.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/inspection-client.js +431 -0
- package/node_modules/@pairmesh/client/dist/a2a/inspection-client.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/inspection-messages.d.ts +12 -0
- package/node_modules/@pairmesh/client/dist/a2a/inspection-messages.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/inspection-messages.js +48 -0
- package/node_modules/@pairmesh/client/dist/a2a/inspection-messages.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/pairing-client.d.ts +18 -0
- package/node_modules/@pairmesh/client/dist/a2a/pairing-client.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/pairing-client.js +69 -0
- package/node_modules/@pairmesh/client/dist/a2a/pairing-client.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/pairing-messages.d.ts +13 -0
- package/node_modules/@pairmesh/client/dist/a2a/pairing-messages.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/pairing-messages.js +64 -0
- package/node_modules/@pairmesh/client/dist/a2a/pairing-messages.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/task-client.d.ts +12 -0
- package/node_modules/@pairmesh/client/dist/a2a/task-client.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/task-client.js +48 -0
- package/node_modules/@pairmesh/client/dist/a2a/task-client.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/task-lifecycle.d.ts +10 -0
- package/node_modules/@pairmesh/client/dist/a2a/task-lifecycle.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/task-lifecycle.js +124 -0
- package/node_modules/@pairmesh/client/dist/a2a/task-lifecycle.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/task-messages.d.ts +11 -0
- package/node_modules/@pairmesh/client/dist/a2a/task-messages.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/a2a/task-messages.js +41 -0
- package/node_modules/@pairmesh/client/dist/a2a/task-messages.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/apply/lifecycle-ops.d.ts +19 -0
- package/node_modules/@pairmesh/client/dist/action/apply/lifecycle-ops.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/apply/lifecycle-ops.js +232 -0
- package/node_modules/@pairmesh/client/dist/action/apply/lifecycle-ops.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/apply/mutation-journal.d.ts +40 -0
- package/node_modules/@pairmesh/client/dist/action/apply/mutation-journal.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/apply/mutation-journal.js +235 -0
- package/node_modules/@pairmesh/client/dist/action/apply/mutation-journal.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/apply/patch-applicator.d.ts +79 -0
- package/node_modules/@pairmesh/client/dist/action/apply/patch-applicator.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/apply/patch-applicator.js +382 -0
- package/node_modules/@pairmesh/client/dist/action/apply/patch-applicator.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/apply/unified-diff-apply.d.ts +30 -0
- package/node_modules/@pairmesh/client/dist/action/apply/unified-diff-apply.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/apply/unified-diff-apply.js +242 -0
- package/node_modules/@pairmesh/client/dist/action/apply/unified-diff-apply.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/apply/workspace-lock.d.ts +2 -0
- package/node_modules/@pairmesh/client/dist/action/apply/workspace-lock.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/apply/workspace-lock.js +22 -0
- package/node_modules/@pairmesh/client/dist/action/apply/workspace-lock.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/artifacts.d.ts +19 -0
- package/node_modules/@pairmesh/client/dist/action/artifacts.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/artifacts.js +89 -0
- package/node_modules/@pairmesh/client/dist/action/artifacts.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/change-propose-executor.d.ts +35 -0
- package/node_modules/@pairmesh/client/dist/action/change-propose-executor.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/change-propose-executor.js +229 -0
- package/node_modules/@pairmesh/client/dist/action/change-propose-executor.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/digest.d.ts +4 -0
- package/node_modules/@pairmesh/client/dist/action/digest.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/digest.js +25 -0
- package/node_modules/@pairmesh/client/dist/action/digest.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/executor.d.ts +39 -0
- package/node_modules/@pairmesh/client/dist/action/executor.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/executor.js +115 -0
- package/node_modules/@pairmesh/client/dist/action/executor.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/index.d.ts +24 -0
- package/node_modules/@pairmesh/client/dist/action/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/index.js +24 -0
- package/node_modules/@pairmesh/client/dist/action/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/lifecycle.d.ts +4 -0
- package/node_modules/@pairmesh/client/dist/action/lifecycle.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/lifecycle.js +20 -0
- package/node_modules/@pairmesh/client/dist/action/lifecycle.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/owner-activity-summary.d.ts +39 -0
- package/node_modules/@pairmesh/client/dist/action/owner-activity-summary.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/owner-activity-summary.js +103 -0
- package/node_modules/@pairmesh/client/dist/action/owner-activity-summary.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/artifact.d.ts +31 -0
- package/node_modules/@pairmesh/client/dist/action/process/artifact.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/artifact.js +55 -0
- package/node_modules/@pairmesh/client/dist/action/process/artifact.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/concurrency.d.ts +5 -0
- package/node_modules/@pairmesh/client/dist/action/process/concurrency.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/concurrency.js +23 -0
- package/node_modules/@pairmesh/client/dist/action/process/concurrency.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/owner-projection.d.ts +16 -0
- package/node_modules/@pairmesh/client/dist/action/process/owner-projection.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/owner-projection.js +88 -0
- package/node_modules/@pairmesh/client/dist/action/process/owner-projection.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/resolve.d.ts +61 -0
- package/node_modules/@pairmesh/client/dist/action/process/resolve.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/resolve.js +338 -0
- package/node_modules/@pairmesh/client/dist/action/process/resolve.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/runner.d.ts +31 -0
- package/node_modules/@pairmesh/client/dist/action/process/runner.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/runner.js +177 -0
- package/node_modules/@pairmesh/client/dist/action/process/runner.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/shell-host-policy.d.ts +24 -0
- package/node_modules/@pairmesh/client/dist/action/process/shell-host-policy.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/shell-host-policy.js +243 -0
- package/node_modules/@pairmesh/client/dist/action/process/shell-host-policy.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/spawn-journal.d.ts +10 -0
- package/node_modules/@pairmesh/client/dist/action/process/spawn-journal.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process/spawn-journal.js +39 -0
- package/node_modules/@pairmesh/client/dist/action/process/spawn-journal.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process-execute-executor.d.ts +27 -0
- package/node_modules/@pairmesh/client/dist/action/process-execute-executor.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/process-execute-executor.js +242 -0
- package/node_modules/@pairmesh/client/dist/action/process-execute-executor.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/progress.d.ts +35 -0
- package/node_modules/@pairmesh/client/dist/action/progress.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/progress.js +163 -0
- package/node_modules/@pairmesh/client/dist/action/progress.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/coding-agent-generator.d.ts +21 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/coding-agent-generator.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/coding-agent-generator.js +66 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/coding-agent-generator.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/generator.d.ts +23 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/generator.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/generator.js +2 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/generator.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/index.d.ts +8 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/index.js +7 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/limits.d.ts +13 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/limits.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/limits.js +12 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/limits.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/paths.d.ts +17 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/paths.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/paths.js +161 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/paths.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/schema.d.ts +49 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/schema.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/schema.js +54 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/schema.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/unified-diff.d.ts +29 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/unified-diff.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/unified-diff.js +425 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/unified-diff.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/working-tree.d.ts +10 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/working-tree.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/working-tree.js +55 -0
- package/node_modules/@pairmesh/client/dist/action/proposal/working-tree.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/provider-activity.d.ts +22 -0
- package/node_modules/@pairmesh/client/dist/action/provider-activity.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/provider-activity.js +118 -0
- package/node_modules/@pairmesh/client/dist/action/provider-activity.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/registry.d.ts +17 -0
- package/node_modules/@pairmesh/client/dist/action/registry.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/registry.js +92 -0
- package/node_modules/@pairmesh/client/dist/action/registry.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/remote-handler.d.ts +14 -0
- package/node_modules/@pairmesh/client/dist/action/remote-handler.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/remote-handler.js +297 -0
- package/node_modules/@pairmesh/client/dist/action/remote-handler.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/repository-edit-executor.d.ts +22 -0
- package/node_modules/@pairmesh/client/dist/action/repository-edit-executor.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/repository-edit-executor.js +400 -0
- package/node_modules/@pairmesh/client/dist/action/repository-edit-executor.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/service.d.ts +160 -0
- package/node_modules/@pairmesh/client/dist/action/service.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/service.js +975 -0
- package/node_modules/@pairmesh/client/dist/action/service.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/session-bridge.d.ts +64 -0
- package/node_modules/@pairmesh/client/dist/action/session-bridge.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/session-bridge.js +177 -0
- package/node_modules/@pairmesh/client/dist/action/session-bridge.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/tests/concurrency.d.ts +6 -0
- package/node_modules/@pairmesh/client/dist/action/tests/concurrency.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/tests/concurrency.js +26 -0
- package/node_modules/@pairmesh/client/dist/action/tests/concurrency.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/tests/process-runner.d.ts +27 -0
- package/node_modules/@pairmesh/client/dist/action/tests/process-runner.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/tests/process-runner.js +159 -0
- package/node_modules/@pairmesh/client/dist/action/tests/process-runner.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/tests/profile.d.ts +70 -0
- package/node_modules/@pairmesh/client/dist/action/tests/profile.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/tests/profile.js +322 -0
- package/node_modules/@pairmesh/client/dist/action/tests/profile.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/tests-run-executor.d.ts +25 -0
- package/node_modules/@pairmesh/client/dist/action/tests-run-executor.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/tests-run-executor.js +193 -0
- package/node_modules/@pairmesh/client/dist/action/tests-run-executor.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/watch-present.d.ts +134 -0
- package/node_modules/@pairmesh/client/dist/action/watch-present.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/action/watch-present.js +278 -0
- package/node_modules/@pairmesh/client/dist/action/watch-present.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/audit/index.d.ts +2 -0
- package/node_modules/@pairmesh/client/dist/audit/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/audit/index.js +2 -0
- package/node_modules/@pairmesh/client/dist/audit/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/audit/log.d.ts +73 -0
- package/node_modules/@pairmesh/client/dist/audit/log.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/audit/log.js +298 -0
- package/node_modules/@pairmesh/client/dist/audit/log.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/bearer.d.ts +9 -0
- package/node_modules/@pairmesh/client/dist/auth/bearer.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/bearer.js +25 -0
- package/node_modules/@pairmesh/client/dist/auth/bearer.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/capabilities.d.ts +87 -0
- package/node_modules/@pairmesh/client/dist/auth/capabilities.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/capabilities.js +361 -0
- package/node_modules/@pairmesh/client/dist/auth/capabilities.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/credentials.d.ts +24 -0
- package/node_modules/@pairmesh/client/dist/auth/credentials.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/credentials.js +54 -0
- package/node_modules/@pairmesh/client/dist/auth/credentials.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/index.d.ts +7 -0
- package/node_modules/@pairmesh/client/dist/auth/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/index.js +7 -0
- package/node_modules/@pairmesh/client/dist/auth/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/invites.d.ts +38 -0
- package/node_modules/@pairmesh/client/dist/auth/invites.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/invites.js +119 -0
- package/node_modules/@pairmesh/client/dist/auth/invites.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/secrets.d.ts +18 -0
- package/node_modules/@pairmesh/client/dist/auth/secrets.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/secrets.js +39 -0
- package/node_modules/@pairmesh/client/dist/auth/secrets.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/session-security.d.ts +25 -0
- package/node_modules/@pairmesh/client/dist/auth/session-security.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/auth/session-security.js +68 -0
- package/node_modules/@pairmesh/client/dist/auth/session-security.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/bootstrap.d.ts +5 -0
- package/node_modules/@pairmesh/client/dist/bootstrap.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/bootstrap.js +8 -0
- package/node_modules/@pairmesh/client/dist/bootstrap.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/build-info.d.ts +21 -0
- package/node_modules/@pairmesh/client/dist/build-info.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/build-info.generated.d.ts +23 -0
- package/node_modules/@pairmesh/client/dist/build-info.generated.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/build-info.generated.js +23 -0
- package/node_modules/@pairmesh/client/dist/build-info.generated.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/build-info.js +2 -0
- package/node_modules/@pairmesh/client/dist/build-info.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/claude-code-session/index.d.ts +2 -0
- package/node_modules/@pairmesh/client/dist/claude-code-session/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/claude-code-session/index.js +2 -0
- package/node_modules/@pairmesh/client/dist/claude-code-session/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/claude-code-session/setup.d.ts +27 -0
- package/node_modules/@pairmesh/client/dist/claude-code-session/setup.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/claude-code-session/setup.js +139 -0
- package/node_modules/@pairmesh/client/dist/claude-code-session/setup.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/acp-client.d.ts +30 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/acp-client.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/acp-client.js +131 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/acp-client.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/availability.d.ts +10 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/availability.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/availability.js +108 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/availability.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/claude-code-adapter.d.ts +64 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/claude-code-adapter.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/claude-code-adapter.js +474 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/claude-code-adapter.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/claude-stream-activity.d.ts +81 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/claude-stream-activity.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/claude-stream-activity.js +559 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/claude-stream-activity.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/config.d.ts +18 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/config.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/config.js +140 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/config.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/cursor-acp-activity.d.ts +77 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/cursor-acp-activity.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/cursor-acp-activity.js +437 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/cursor-acp-activity.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/cursor-adapter.d.ts +30 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/cursor-adapter.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/cursor-adapter.js +553 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/cursor-adapter.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/descriptors.d.ts +8 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/descriptors.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/descriptors.js +66 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/descriptors.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/fake-adapter.d.ts +20 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/fake-adapter.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/fake-adapter.js +528 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/fake-adapter.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/gemini-cli-adapter.d.ts +55 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/gemini-cli-adapter.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/gemini-cli-adapter.js +337 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/gemini-cli-adapter.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/gemini-stream-activity.d.ts +69 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/gemini-stream-activity.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/gemini-stream-activity.js +500 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/gemini-stream-activity.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/index.d.ts +23 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/index.js +26 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/lazy-adapter.d.ts +19 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/lazy-adapter.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/lazy-adapter.js +93 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/lazy-adapter.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/ndjson-line-buffer.d.ts +24 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/ndjson-line-buffer.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/ndjson-line-buffer.js +65 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/ndjson-line-buffer.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/prompt.d.ts +26 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/prompt.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/prompt.js +189 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/prompt.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/proposal-provider-response.d.ts +24 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/proposal-provider-response.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/proposal-provider-response.js +193 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/proposal-provider-response.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/provider-visibility.d.ts +61 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/provider-visibility.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/provider-visibility.js +70 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/provider-visibility.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/registry.d.ts +13 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/registry.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/registry.js +66 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/registry.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/sanitize.d.ts +7 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/sanitize.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/sanitize.js +29 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/sanitize.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/source-references.d.ts +14 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/source-references.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/source-references.js +222 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/source-references.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/streaming-process.d.ts +32 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/streaming-process.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/streaming-process.js +115 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/streaming-process.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/types.d.ts +121 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/types.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/types.js +27 -0
- package/node_modules/@pairmesh/client/dist/coding-agent/types.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/ask-intent.d.ts +64 -0
- package/node_modules/@pairmesh/client/dist/collaboration/ask-intent.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/ask-intent.js +175 -0
- package/node_modules/@pairmesh/client/dist/collaboration/ask-intent.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/collaborative-task-service.d.ts +38 -0
- package/node_modules/@pairmesh/client/dist/collaboration/collaborative-task-service.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/collaborative-task-service.js +461 -0
- package/node_modules/@pairmesh/client/dist/collaboration/collaborative-task-service.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/continuation-orchestrator.d.ts +79 -0
- package/node_modules/@pairmesh/client/dist/collaboration/continuation-orchestrator.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/continuation-orchestrator.js +813 -0
- package/node_modules/@pairmesh/client/dist/collaboration/continuation-orchestrator.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/fake-task-worker.d.ts +35 -0
- package/node_modules/@pairmesh/client/dist/collaboration/fake-task-worker.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/fake-task-worker.js +80 -0
- package/node_modules/@pairmesh/client/dist/collaboration/fake-task-worker.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/gemini-goal-mcp-provision.d.ts +42 -0
- package/node_modules/@pairmesh/client/dist/collaboration/gemini-goal-mcp-provision.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/gemini-goal-mcp-provision.js +320 -0
- package/node_modules/@pairmesh/client/dist/collaboration/gemini-goal-mcp-provision.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-config.d.ts +44 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-config.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-config.js +88 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-config.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-stdio.d.ts +2 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-stdio.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-stdio.js +84 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-stdio.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-host-tools.d.ts +31 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-host-tools.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-host-tools.js +210 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-host-tools.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-prompt.d.ts +20 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-prompt.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-prompt.js +98 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-prompt.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-task-worker.d.ts +94 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-task-worker.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-task-worker.js +745 -0
- package/node_modules/@pairmesh/client/dist/collaboration/goal-task-worker.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/host-request-service.d.ts +45 -0
- package/node_modules/@pairmesh/client/dist/collaboration/host-request-service.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/host-request-service.js +447 -0
- package/node_modules/@pairmesh/client/dist/collaboration/host-request-service.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/index.d.ts +17 -0
- package/node_modules/@pairmesh/client/dist/collaboration/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/index.js +17 -0
- package/node_modules/@pairmesh/client/dist/collaboration/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/input-request-service.d.ts +79 -0
- package/node_modules/@pairmesh/client/dist/collaboration/input-request-service.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/input-request-service.js +586 -0
- package/node_modules/@pairmesh/client/dist/collaboration/input-request-service.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/orchestrate.d.ts +89 -0
- package/node_modules/@pairmesh/client/dist/collaboration/orchestrate.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/orchestrate.js +369 -0
- package/node_modules/@pairmesh/client/dist/collaboration/orchestrate.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/present.d.ts +5 -0
- package/node_modules/@pairmesh/client/dist/collaboration/present.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/present.js +130 -0
- package/node_modules/@pairmesh/client/dist/collaboration/present.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/requester-action-mirror.d.ts +26 -0
- package/node_modules/@pairmesh/client/dist/collaboration/requester-action-mirror.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/requester-action-mirror.js +202 -0
- package/node_modules/@pairmesh/client/dist/collaboration/requester-action-mirror.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/requester-actions.d.ts +8 -0
- package/node_modules/@pairmesh/client/dist/collaboration/requester-actions.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/requester-actions.js +39 -0
- package/node_modules/@pairmesh/client/dist/collaboration/requester-actions.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/task-progress-present.d.ts +124 -0
- package/node_modules/@pairmesh/client/dist/collaboration/task-progress-present.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/task-progress-present.js +587 -0
- package/node_modules/@pairmesh/client/dist/collaboration/task-progress-present.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/task-remote-handler.d.ts +30 -0
- package/node_modules/@pairmesh/client/dist/collaboration/task-remote-handler.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/collaboration/task-remote-handler.js +351 -0
- package/node_modules/@pairmesh/client/dist/collaboration/task-remote-handler.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/e2e/keys.d.ts +23 -0
- package/node_modules/@pairmesh/client/dist/connectivity/e2e/keys.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/e2e/keys.js +31 -0
- package/node_modules/@pairmesh/client/dist/connectivity/e2e/keys.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/e2e/session.d.ts +18 -0
- package/node_modules/@pairmesh/client/dist/connectivity/e2e/session.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/e2e/session.js +84 -0
- package/node_modules/@pairmesh/client/dist/connectivity/e2e/session.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/hosted-relay-default.d.ts +12 -0
- package/node_modules/@pairmesh/client/dist/connectivity/hosted-relay-default.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/hosted-relay-default.js +33 -0
- package/node_modules/@pairmesh/client/dist/connectivity/hosted-relay-default.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/index.d.ts +24 -0
- package/node_modules/@pairmesh/client/dist/connectivity/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/index.js +24 -0
- package/node_modules/@pairmesh/client/dist/connectivity/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/access-token.d.ts +27 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/access-token.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/access-token.js +32 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/access-token.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-id.d.ts +7 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-id.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-id.js +9 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-id.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-manager.d.ts +45 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-manager.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-manager.js +84 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-manager.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/client.d.ts +125 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/client.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/client.js +480 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/client.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/frames.d.ts +39 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/frames.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/frames.js +58 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/frames.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/hosted-server.d.ts +162 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/hosted-server.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/hosted-server.js +901 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/hosted-server.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/http-tunnel.d.ts +137 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/http-tunnel.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/http-tunnel.js +422 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/http-tunnel.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/liveness.d.ts +59 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/liveness.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/liveness.js +151 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/liveness.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/log-gate.d.ts +16 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/log-gate.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/log-gate.js +83 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/log-gate.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/mock-server.d.ts +36 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/mock-server.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/mock-server.js +305 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/mock-server.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/network-restore.d.ts +33 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/network-restore.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/network-restore.js +97 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/network-restore.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/reconnect-policy.d.ts +35 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/reconnect-policy.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/reconnect-policy.js +56 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/reconnect-policy.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/rendezvous-http.d.ts +35 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/rendezvous-http.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/rendezvous-http.js +88 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/rendezvous-http.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/route-diagnostics.d.ts +65 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/route-diagnostics.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/route-diagnostics.js +120 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/route-diagnostics.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/token-compare.d.ts +9 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/token-compare.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/token-compare.js +31 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/token-compare.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/traffic-trace.d.ts +43 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/traffic-trace.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/traffic-trace.js +87 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay/traffic-trace.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-bootstrap.d.ts +133 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-bootstrap.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-bootstrap.js +1148 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-bootstrap.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-bridge.d.ts +137 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-bridge.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-bridge.js +688 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-bridge.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-route-store.d.ts +101 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-route-store.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-route-store.js +138 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-route-store.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-runtime.d.ts +4 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-runtime.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-runtime.js +8 -0
- package/node_modules/@pairmesh/client/dist/connectivity/relay-runtime.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/rendezvous.d.ts +16 -0
- package/node_modules/@pairmesh/client/dist/connectivity/rendezvous.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/rendezvous.js +13 -0
- package/node_modules/@pairmesh/client/dist/connectivity/rendezvous.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/resolver.d.ts +33 -0
- package/node_modules/@pairmesh/client/dist/connectivity/resolver.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/connectivity/resolver.js +24 -0
- package/node_modules/@pairmesh/client/dist/connectivity/resolver.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/action-inbox.d.ts +22 -0
- package/node_modules/@pairmesh/client/dist/control/action-inbox.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/action-inbox.js +95 -0
- package/node_modules/@pairmesh/client/dist/control/action-inbox.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/exchange.d.ts +21 -0
- package/node_modules/@pairmesh/client/dist/control/exchange.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/exchange.js +62 -0
- package/node_modules/@pairmesh/client/dist/control/exchange.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/http-client.d.ts +108 -0
- package/node_modules/@pairmesh/client/dist/control/http-client.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/http-client.js +156 -0
- package/node_modules/@pairmesh/client/dist/control/http-client.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/http-server.d.ts +34 -0
- package/node_modules/@pairmesh/client/dist/control/http-server.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/http-server.js +480 -0
- package/node_modules/@pairmesh/client/dist/control/http-server.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/index.d.ts +10 -0
- package/node_modules/@pairmesh/client/dist/control/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/index.js +8 -0
- package/node_modules/@pairmesh/client/dist/control/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/open-inbox.d.ts +22 -0
- package/node_modules/@pairmesh/client/dist/control/open-inbox.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/open-inbox.js +74 -0
- package/node_modules/@pairmesh/client/dist/control/open-inbox.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/service.d.ts +678 -0
- package/node_modules/@pairmesh/client/dist/control/service.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/service.js +639 -0
- package/node_modules/@pairmesh/client/dist/control/service.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/token.d.ts +4 -0
- package/node_modules/@pairmesh/client/dist/control/token.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/token.js +14 -0
- package/node_modules/@pairmesh/client/dist/control/token.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/types.d.ts +127 -0
- package/node_modules/@pairmesh/client/dist/control/types.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/types.js +2 -0
- package/node_modules/@pairmesh/client/dist/control/types.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/web-static.d.ts +4 -0
- package/node_modules/@pairmesh/client/dist/control/web-static.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/control/web-static.js +61 -0
- package/node_modules/@pairmesh/client/dist/control/web-static.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/control-web/activity-present.js +238 -0
- package/node_modules/@pairmesh/client/dist/control-web/app.css +1134 -0
- package/node_modules/@pairmesh/client/dist/control-web/app.js +2744 -0
- package/node_modules/@pairmesh/client/dist/control-web/history-present.js +510 -0
- package/node_modules/@pairmesh/client/dist/control-web/home-present.js +395 -0
- package/node_modules/@pairmesh/client/dist/control-web/index.html +170 -0
- package/node_modules/@pairmesh/client/dist/control-web/live-present.js +628 -0
- package/node_modules/@pairmesh/client/dist/control-web/people-present.js +244 -0
- package/node_modules/@pairmesh/client/dist/control-web/settings-present.js +416 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/cursor-config.d.ts +45 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/cursor-config.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/cursor-config.js +185 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/cursor-config.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/gitignore.d.ts +6 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/gitignore.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/gitignore.js +53 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/gitignore.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/index.d.ts +4 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/index.js +4 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/mcp-launch.d.ts +35 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/mcp-launch.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/mcp-launch.js +211 -0
- package/node_modules/@pairmesh/client/dist/cursor-mcp/mcp-launch.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/execution/provider-snapshot.d.ts +14 -0
- package/node_modules/@pairmesh/client/dist/execution/provider-snapshot.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/execution/provider-snapshot.js +17 -0
- package/node_modules/@pairmesh/client/dist/execution/provider-snapshot.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/health/cache.d.ts +9 -0
- package/node_modules/@pairmesh/client/dist/health/cache.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/health/cache.js +21 -0
- package/node_modules/@pairmesh/client/dist/health/cache.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/health/index.d.ts +5 -0
- package/node_modules/@pairmesh/client/dist/health/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/health/index.js +5 -0
- package/node_modules/@pairmesh/client/dist/health/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/health/peer-connectivity.d.ts +36 -0
- package/node_modules/@pairmesh/client/dist/health/peer-connectivity.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/health/peer-connectivity.js +72 -0
- package/node_modules/@pairmesh/client/dist/health/peer-connectivity.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/health/peer-health.d.ts +18 -0
- package/node_modules/@pairmesh/client/dist/health/peer-health.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/health/peer-health.js +147 -0
- package/node_modules/@pairmesh/client/dist/health/peer-health.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/health/runtime-health.d.ts +8 -0
- package/node_modules/@pairmesh/client/dist/health/runtime-health.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/health/runtime-health.js +65 -0
- package/node_modules/@pairmesh/client/dist/health/runtime-health.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/identity.d.ts +30 -0
- package/node_modules/@pairmesh/client/dist/identity.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/identity.js +44 -0
- package/node_modules/@pairmesh/client/dist/identity.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/index.d.ts +47 -0
- package/node_modules/@pairmesh/client/dist/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/index.js +45 -0
- package/node_modules/@pairmesh/client/dist/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/active-inspections.d.ts +5 -0
- package/node_modules/@pairmesh/client/dist/inspect/active-inspections.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/active-inspections.js +26 -0
- package/node_modules/@pairmesh/client/dist/inspect/active-inspections.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/execution-store.d.ts +52 -0
- package/node_modules/@pairmesh/client/dist/inspect/execution-store.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/execution-store.js +271 -0
- package/node_modules/@pairmesh/client/dist/inspect/execution-store.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/handler.d.ts +13 -0
- package/node_modules/@pairmesh/client/dist/inspect/handler.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/handler.js +350 -0
- package/node_modules/@pairmesh/client/dist/inspect/handler.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/messages.d.ts +20 -0
- package/node_modules/@pairmesh/client/dist/inspect/messages.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/messages.js +67 -0
- package/node_modules/@pairmesh/client/dist/inspect/messages.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/remote-sync.d.ts +33 -0
- package/node_modules/@pairmesh/client/dist/inspect/remote-sync.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/remote-sync.js +387 -0
- package/node_modules/@pairmesh/client/dist/inspect/remote-sync.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/requester-progress.d.ts +7 -0
- package/node_modules/@pairmesh/client/dist/inspect/requester-progress.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/requester-progress.js +44 -0
- package/node_modules/@pairmesh/client/dist/inspect/requester-progress.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/thread-store.d.ts +28 -0
- package/node_modules/@pairmesh/client/dist/inspect/thread-store.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/thread-store.js +132 -0
- package/node_modules/@pairmesh/client/dist/inspect/thread-store.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/timing.d.ts +30 -0
- package/node_modules/@pairmesh/client/dist/inspect/timing.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/inspect/timing.js +51 -0
- package/node_modules/@pairmesh/client/dist/inspect/timing.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/index.d.ts +7 -0
- package/node_modules/@pairmesh/client/dist/local-config/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/index.js +7 -0
- package/node_modules/@pairmesh/client/dist/local-config/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/paths.d.ts +24 -0
- package/node_modules/@pairmesh/client/dist/local-config/paths.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/paths.js +88 -0
- package/node_modules/@pairmesh/client/dist/local-config/paths.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/port.d.ts +5 -0
- package/node_modules/@pairmesh/client/dist/local-config/port.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/port.js +25 -0
- package/node_modules/@pairmesh/client/dist/local-config/port.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/project-resolve.d.ts +40 -0
- package/node_modules/@pairmesh/client/dist/local-config/project-resolve.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/project-resolve.js +116 -0
- package/node_modules/@pairmesh/client/dist/local-config/project-resolve.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/resolver.d.ts +48 -0
- package/node_modules/@pairmesh/client/dist/local-config/resolver.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/resolver.js +156 -0
- package/node_modules/@pairmesh/client/dist/local-config/resolver.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/runtime-info.d.ts +6 -0
- package/node_modules/@pairmesh/client/dist/local-config/runtime-info.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/runtime-info.js +34 -0
- package/node_modules/@pairmesh/client/dist/local-config/runtime-info.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/schema.d.ts +131 -0
- package/node_modules/@pairmesh/client/dist/local-config/schema.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-config/schema.js +84 -0
- package/node_modules/@pairmesh/client/dist/local-config/schema.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/build-compatibility.d.ts +16 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/build-compatibility.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/build-compatibility.js +32 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/build-compatibility.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/deferred-restart.d.ts +16 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/deferred-restart.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/deferred-restart.js +38 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/deferred-restart.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/index.d.ts +8 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/index.js +8 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-identity.d.ts +17 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-identity.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-identity.js +26 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-identity.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-idle.d.ts +18 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-idle.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-idle.js +21 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-idle.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-logs.d.ts +17 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-logs.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-logs.js +85 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-logs.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-manager.d.ts +20 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-manager.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-manager.js +96 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/runtime-manager.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/upgrade-restart-lock.d.ts +16 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/upgrade-restart-lock.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/upgrade-restart-lock.js +98 -0
- package/node_modules/@pairmesh/client/dist/local-runtime/upgrade-restart-lock.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/notify/attention.d.ts +34 -0
- package/node_modules/@pairmesh/client/dist/notify/attention.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/notify/attention.js +85 -0
- package/node_modules/@pairmesh/client/dist/notify/attention.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/notify/deliver.d.ts +52 -0
- package/node_modules/@pairmesh/client/dist/notify/deliver.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/notify/deliver.js +181 -0
- package/node_modules/@pairmesh/client/dist/notify/deliver.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/notify/index.d.ts +6 -0
- package/node_modules/@pairmesh/client/dist/notify/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/notify/index.js +6 -0
- package/node_modules/@pairmesh/client/dist/notify/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/notify/onboarding-prefs.d.ts +16 -0
- package/node_modules/@pairmesh/client/dist/notify/onboarding-prefs.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/notify/onboarding-prefs.js +50 -0
- package/node_modules/@pairmesh/client/dist/notify/onboarding-prefs.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/notify/owner-presence.d.ts +41 -0
- package/node_modules/@pairmesh/client/dist/notify/owner-presence.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/notify/owner-presence.js +124 -0
- package/node_modules/@pairmesh/client/dist/notify/owner-presence.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/notify/permission.d.ts +49 -0
- package/node_modules/@pairmesh/client/dist/notify/permission.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/notify/permission.js +222 -0
- package/node_modules/@pairmesh/client/dist/notify/permission.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/pairing/active-runtime.d.ts +24 -0
- package/node_modules/@pairmesh/client/dist/pairing/active-runtime.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/pairing/active-runtime.js +49 -0
- package/node_modules/@pairmesh/client/dist/pairing/active-runtime.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/pairing/address.d.ts +12 -0
- package/node_modules/@pairmesh/client/dist/pairing/address.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/pairing/address.js +50 -0
- package/node_modules/@pairmesh/client/dist/pairing/address.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/pairing/index.d.ts +5 -0
- package/node_modules/@pairmesh/client/dist/pairing/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/pairing/index.js +5 -0
- package/node_modules/@pairmesh/client/dist/pairing/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/pairing/join-command.d.ts +15 -0
- package/node_modules/@pairmesh/client/dist/pairing/join-command.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/pairing/join-command.js +16 -0
- package/node_modules/@pairmesh/client/dist/pairing/join-command.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/pairing/join-preflight.d.ts +2 -0
- package/node_modules/@pairmesh/client/dist/pairing/join-preflight.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/pairing/join-preflight.js +42 -0
- package/node_modules/@pairmesh/client/dist/pairing/join-preflight.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/progress/activity-display.d.ts +60 -0
- package/node_modules/@pairmesh/client/dist/progress/activity-display.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/progress/activity-display.js +491 -0
- package/node_modules/@pairmesh/client/dist/progress/activity-display.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/reliability/index.d.ts +5 -0
- package/node_modules/@pairmesh/client/dist/reliability/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/reliability/index.js +5 -0
- package/node_modules/@pairmesh/client/dist/reliability/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/reliability/store.d.ts +12 -0
- package/node_modules/@pairmesh/client/dist/reliability/store.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/reliability/store.js +93 -0
- package/node_modules/@pairmesh/client/dist/reliability/store.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/reliability/summary.d.ts +25 -0
- package/node_modules/@pairmesh/client/dist/reliability/summary.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/reliability/summary.js +73 -0
- package/node_modules/@pairmesh/client/dist/reliability/summary.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/reliability/tracker.d.ts +61 -0
- package/node_modules/@pairmesh/client/dist/reliability/tracker.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/reliability/tracker.js +174 -0
- package/node_modules/@pairmesh/client/dist/reliability/tracker.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/reliability/types.d.ts +44 -0
- package/node_modules/@pairmesh/client/dist/reliability/types.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/reliability/types.js +60 -0
- package/node_modules/@pairmesh/client/dist/reliability/types.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/handshake-server.d.ts +32 -0
- package/node_modules/@pairmesh/client/dist/session/handshake-server.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/handshake-server.js +421 -0
- package/node_modules/@pairmesh/client/dist/session/handshake-server.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/manager.d.ts +1599 -0
- package/node_modules/@pairmesh/client/dist/session/manager.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/manager.js +3127 -0
- package/node_modules/@pairmesh/client/dist/session/manager.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/peer-view.d.ts +60 -0
- package/node_modules/@pairmesh/client/dist/session/peer-view.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/peer-view.js +180 -0
- package/node_modules/@pairmesh/client/dist/session/peer-view.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/receiver-actions.d.ts +5 -0
- package/node_modules/@pairmesh/client/dist/session/receiver-actions.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/receiver-actions.js +38 -0
- package/node_modules/@pairmesh/client/dist/session/receiver-actions.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/receiver-inspections.d.ts +38 -0
- package/node_modules/@pairmesh/client/dist/session/receiver-inspections.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/receiver-inspections.js +104 -0
- package/node_modules/@pairmesh/client/dist/session/receiver-inspections.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/relationship.d.ts +19 -0
- package/node_modules/@pairmesh/client/dist/session/relationship.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/relationship.js +40 -0
- package/node_modules/@pairmesh/client/dist/session/relationship.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/schemas.d.ts +1826 -0
- package/node_modules/@pairmesh/client/dist/session/schemas.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/session/schemas.js +152 -0
- package/node_modules/@pairmesh/client/dist/session/schemas.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/state/state-lock.d.ts +19 -0
- package/node_modules/@pairmesh/client/dist/state/state-lock.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/state/state-lock.js +136 -0
- package/node_modules/@pairmesh/client/dist/state/state-lock.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/state/store.d.ts +72 -0
- package/node_modules/@pairmesh/client/dist/state/store.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/state/store.js +252 -0
- package/node_modules/@pairmesh/client/dist/state/store.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/artifact.d.ts +19 -0
- package/node_modules/@pairmesh/client/dist/update/artifact.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/artifact.js +150 -0
- package/node_modules/@pairmesh/client/dist/update/artifact.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/channel.d.ts +12 -0
- package/node_modules/@pairmesh/client/dist/update/channel.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/channel.js +96 -0
- package/node_modules/@pairmesh/client/dist/update/channel.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/check.d.ts +11 -0
- package/node_modules/@pairmesh/client/dist/update/check.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/check.js +82 -0
- package/node_modules/@pairmesh/client/dist/update/check.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/constants.d.ts +9 -0
- package/node_modules/@pairmesh/client/dist/update/constants.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/constants.js +20 -0
- package/node_modules/@pairmesh/client/dist/update/constants.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/index.d.ts +10 -0
- package/node_modules/@pairmesh/client/dist/update/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/index.js +10 -0
- package/node_modules/@pairmesh/client/dist/update/index.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/install.d.ts +39 -0
- package/node_modules/@pairmesh/client/dist/update/install.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/install.js +114 -0
- package/node_modules/@pairmesh/client/dist/update/install.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/manifest.d.ts +8 -0
- package/node_modules/@pairmesh/client/dist/update/manifest.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/manifest.js +100 -0
- package/node_modules/@pairmesh/client/dist/update/manifest.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/peer-boundary.d.ts +4 -0
- package/node_modules/@pairmesh/client/dist/update/peer-boundary.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/peer-boundary.js +14 -0
- package/node_modules/@pairmesh/client/dist/update/peer-boundary.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/semver.d.ts +18 -0
- package/node_modules/@pairmesh/client/dist/update/semver.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/semver.js +82 -0
- package/node_modules/@pairmesh/client/dist/update/semver.js.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/types.d.ts +57 -0
- package/node_modules/@pairmesh/client/dist/update/types.d.ts.map +1 -0
- package/node_modules/@pairmesh/client/dist/update/types.js +2 -0
- package/node_modules/@pairmesh/client/dist/update/types.js.map +1 -0
- package/node_modules/@pairmesh/client/package.json +35 -0
- package/node_modules/@pairmesh/client/vendor/macos/LICENSE +18 -0
- package/node_modules/@pairmesh/client/vendor/macos/README.md +17 -0
- package/node_modules/@pairmesh/client/vendor/macos/terminal-notifier.app/Contents/Info.plist +36 -0
- package/node_modules/@pairmesh/client/vendor/macos/terminal-notifier.app/Contents/MacOS/terminal-notifier +0 -0
- package/node_modules/@pairmesh/client/vendor/macos/terminal-notifier.app/Contents/PkgInfo +1 -0
- package/node_modules/@pairmesh/client/vendor/macos/terminal-notifier.app/Contents/Resources/Terminal.icns +0 -0
- package/node_modules/@pairmesh/client/vendor/macos/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings +2 -0
- package/node_modules/@pairmesh/client/vendor/macos/terminal-notifier.app/Contents/_CodeSignature/CodeResources +146 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/agent-card.d.ts +6 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/agent-card.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/agent-card.js +115 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/agent-card.js.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/audit-hooks.d.ts +25 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/audit-hooks.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/audit-hooks.js +149 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/audit-hooks.js.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/auth.d.ts +34 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/auth.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/auth.js +87 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/auth.js.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/client.d.ts +7 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/client.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/client.js +88 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/client.js.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/executor.d.ts +20 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/executor.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/executor.js +542 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/executor.js.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/identity.d.ts +3 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/identity.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/identity.js +3 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/identity.js.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/index.d.ts +8 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/index.js +8 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/index.js.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/request-handler.d.ts +31 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/request-handler.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/request-handler.js +96 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/request-handler.js.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/runtime.d.ts +23 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/runtime.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/runtime.js +120 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/runtime.js.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/test-ports.d.ts +18 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/test-ports.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/test-ports.js +48 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/test-ports.js.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/types.d.ts +19 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/types.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/types.js +14 -0
- package/node_modules/@pairmesh/coordination/dist/a2a/types.js.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/cli/agent.d.ts +2 -0
- package/node_modules/@pairmesh/coordination/dist/cli/agent.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/cli/agent.js +4 -0
- package/node_modules/@pairmesh/coordination/dist/cli/agent.js.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/cli/send.d.ts +2 -0
- package/node_modules/@pairmesh/coordination/dist/cli/send.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/cli/send.js +24 -0
- package/node_modules/@pairmesh/coordination/dist/cli/send.js.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/index.d.ts +7 -0
- package/node_modules/@pairmesh/coordination/dist/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/coordination/dist/index.js +10 -0
- package/node_modules/@pairmesh/coordination/dist/index.js.map +1 -0
- package/node_modules/@pairmesh/coordination/package.json +43 -0
- package/node_modules/@pairmesh/mcp/dist/context.d.ts +9 -0
- package/node_modules/@pairmesh/mcp/dist/context.d.ts.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/context.js +45 -0
- package/node_modules/@pairmesh/mcp/dist/context.js.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/create-server.d.ts +11 -0
- package/node_modules/@pairmesh/mcp/dist/create-server.d.ts.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/create-server.js +507 -0
- package/node_modules/@pairmesh/mcp/dist/create-server.js.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/errors.d.ts +8 -0
- package/node_modules/@pairmesh/mcp/dist/errors.d.ts.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/errors.js +79 -0
- package/node_modules/@pairmesh/mcp/dist/errors.js.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/index.d.ts +3 -0
- package/node_modules/@pairmesh/mcp/dist/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/index.js +5 -0
- package/node_modules/@pairmesh/mcp/dist/index.js.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/progress.d.ts +7 -0
- package/node_modules/@pairmesh/mcp/dist/progress.d.ts.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/progress.js +17 -0
- package/node_modules/@pairmesh/mcp/dist/progress.js.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/receiver-tools.d.ts +6 -0
- package/node_modules/@pairmesh/mcp/dist/receiver-tools.d.ts.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/receiver-tools.js +217 -0
- package/node_modules/@pairmesh/mcp/dist/receiver-tools.js.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/server.d.ts +5 -0
- package/node_modules/@pairmesh/mcp/dist/server.d.ts.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/server.js +5 -0
- package/node_modules/@pairmesh/mcp/dist/server.js.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/tools/handlers.d.ts +148 -0
- package/node_modules/@pairmesh/mcp/dist/tools/handlers.d.ts.map +1 -0
- package/node_modules/@pairmesh/mcp/dist/tools/handlers.js +437 -0
- package/node_modules/@pairmesh/mcp/dist/tools/handlers.js.map +1 -0
- package/node_modules/@pairmesh/mcp/package.json +41 -0
- package/node_modules/@pairmesh/permissions/dist/index.d.ts +2 -0
- package/node_modules/@pairmesh/permissions/dist/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/permissions/dist/index.js +2 -0
- package/node_modules/@pairmesh/permissions/dist/index.js.map +1 -0
- package/node_modules/@pairmesh/permissions/package.json +22 -0
- package/node_modules/@pairmesh/protocol/dist/a2a-references.d.ts +16 -0
- package/node_modules/@pairmesh/protocol/dist/a2a-references.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/a2a-references.js +12 -0
- package/node_modules/@pairmesh/protocol/dist/a2a-references.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/action.d.ts +1089 -0
- package/node_modules/@pairmesh/protocol/dist/action.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/action.js +249 -0
- package/node_modules/@pairmesh/protocol/dist/action.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/agent.d.ts +14 -0
- package/node_modules/@pairmesh/protocol/dist/agent.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/agent.js +22 -0
- package/node_modules/@pairmesh/protocol/dist/agent.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/audit.d.ts +1080 -0
- package/node_modules/@pairmesh/protocol/dist/audit.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/audit.js +186 -0
- package/node_modules/@pairmesh/protocol/dist/audit.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/auth.d.ts +113 -0
- package/node_modules/@pairmesh/protocol/dist/auth.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/auth.js +83 -0
- package/node_modules/@pairmesh/protocol/dist/auth.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/collaborative-task.d.ts +289 -0
- package/node_modules/@pairmesh/protocol/dist/collaborative-task.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/collaborative-task.js +187 -0
- package/node_modules/@pairmesh/protocol/dist/collaborative-task.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/common.d.ts +4 -0
- package/node_modules/@pairmesh/protocol/dist/common.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/common.js +8 -0
- package/node_modules/@pairmesh/protocol/dist/common.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/continuation.d.ts +166 -0
- package/node_modules/@pairmesh/protocol/dist/continuation.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/continuation.js +155 -0
- package/node_modules/@pairmesh/protocol/dist/continuation.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/developer.d.ts +10 -0
- package/node_modules/@pairmesh/protocol/dist/developer.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/developer.js +17 -0
- package/node_modules/@pairmesh/protocol/dist/developer.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/device.d.ts +9 -0
- package/node_modules/@pairmesh/protocol/dist/device.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/device.js +11 -0
- package/node_modules/@pairmesh/protocol/dist/device.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/errors/codes.d.ts +107 -0
- package/node_modules/@pairmesh/protocol/dist/errors/codes.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/errors/codes.js +106 -0
- package/node_modules/@pairmesh/protocol/dist/errors/codes.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/errors/index.d.ts +4 -0
- package/node_modules/@pairmesh/protocol/dist/errors/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/errors/index.js +4 -0
- package/node_modules/@pairmesh/protocol/dist/errors/index.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/errors/schema.d.ts +131 -0
- package/node_modules/@pairmesh/protocol/dist/errors/schema.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/errors/schema.js +40 -0
- package/node_modules/@pairmesh/protocol/dist/errors/schema.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/errors/validation.d.ts +13 -0
- package/node_modules/@pairmesh/protocol/dist/errors/validation.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/errors/validation.js +57 -0
- package/node_modules/@pairmesh/protocol/dist/errors/validation.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/health.d.ts +109 -0
- package/node_modules/@pairmesh/protocol/dist/health.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/health.js +68 -0
- package/node_modules/@pairmesh/protocol/dist/health.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/host-request.d.ts +86 -0
- package/node_modules/@pairmesh/protocol/dist/host-request.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/host-request.js +93 -0
- package/node_modules/@pairmesh/protocol/dist/host-request.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/ids.d.ts +39 -0
- package/node_modules/@pairmesh/protocol/dist/ids.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/ids.js +30 -0
- package/node_modules/@pairmesh/protocol/dist/ids.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/index.d.ts +28 -0
- package/node_modules/@pairmesh/protocol/dist/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/index.js +28 -0
- package/node_modules/@pairmesh/protocol/dist/index.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/input-request.d.ts +1024 -0
- package/node_modules/@pairmesh/protocol/dist/input-request.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/input-request.js +167 -0
- package/node_modules/@pairmesh/protocol/dist/input-request.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/inspection-execution.d.ts +241 -0
- package/node_modules/@pairmesh/protocol/dist/inspection-execution.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/inspection-execution.js +94 -0
- package/node_modules/@pairmesh/protocol/dist/inspection-execution.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/inspection-thread.d.ts +77 -0
- package/node_modules/@pairmesh/protocol/dist/inspection-thread.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/inspection-thread.js +43 -0
- package/node_modules/@pairmesh/protocol/dist/inspection-thread.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/inspection.d.ts +773 -0
- package/node_modules/@pairmesh/protocol/dist/inspection.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/inspection.js +65 -0
- package/node_modules/@pairmesh/protocol/dist/inspection.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/pairing.d.ts +1905 -0
- package/node_modules/@pairmesh/protocol/dist/pairing.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/pairing.js +111 -0
- package/node_modules/@pairmesh/protocol/dist/pairing.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/permissions.d.ts +158 -0
- package/node_modules/@pairmesh/protocol/dist/permissions.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/permissions.js +141 -0
- package/node_modules/@pairmesh/protocol/dist/permissions.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/progress-event.d.ts +253 -0
- package/node_modules/@pairmesh/protocol/dist/progress-event.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/progress-event.js +619 -0
- package/node_modules/@pairmesh/protocol/dist/progress-event.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/project.d.ts +8 -0
- package/node_modules/@pairmesh/protocol/dist/project.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/project.js +18 -0
- package/node_modules/@pairmesh/protocol/dist/project.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/provider-message-aggregator.d.ts +34 -0
- package/node_modules/@pairmesh/protocol/dist/provider-message-aggregator.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/provider-message-aggregator.js +81 -0
- package/node_modules/@pairmesh/protocol/dist/provider-message-aggregator.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/session-code.d.ts +5 -0
- package/node_modules/@pairmesh/protocol/dist/session-code.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/session-code.js +20 -0
- package/node_modules/@pairmesh/protocol/dist/session-code.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/session.d.ts +25 -0
- package/node_modules/@pairmesh/protocol/dist/session.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/session.js +22 -0
- package/node_modules/@pairmesh/protocol/dist/session.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/source-reference.d.ts +50 -0
- package/node_modules/@pairmesh/protocol/dist/source-reference.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/source-reference.js +33 -0
- package/node_modules/@pairmesh/protocol/dist/source-reference.js.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/version.d.ts +15 -0
- package/node_modules/@pairmesh/protocol/dist/version.d.ts.map +1 -0
- package/node_modules/@pairmesh/protocol/dist/version.js +14 -0
- package/node_modules/@pairmesh/protocol/dist/version.js.map +1 -0
- package/node_modules/@pairmesh/protocol/package.json +22 -0
- package/node_modules/@pairmesh/shared/dist/branded-env.d.ts +37 -0
- package/node_modules/@pairmesh/shared/dist/branded-env.d.ts.map +1 -0
- package/node_modules/@pairmesh/shared/dist/branded-env.js +61 -0
- package/node_modules/@pairmesh/shared/dist/branded-env.js.map +1 -0
- package/node_modules/@pairmesh/shared/dist/index.d.ts +6 -0
- package/node_modules/@pairmesh/shared/dist/index.d.ts.map +1 -0
- package/node_modules/@pairmesh/shared/dist/index.js +5 -0
- package/node_modules/@pairmesh/shared/dist/index.js.map +1 -0
- package/node_modules/@pairmesh/shared/package.json +19 -0
- package/node_modules/accepts/HISTORY.md +250 -0
- package/node_modules/accepts/LICENSE +23 -0
- package/node_modules/accepts/README.md +140 -0
- package/node_modules/accepts/index.js +238 -0
- package/node_modules/accepts/package.json +47 -0
- package/node_modules/body-parser/LICENSE +23 -0
- package/node_modules/body-parser/README.md +509 -0
- package/node_modules/body-parser/index.js +55 -0
- package/node_modules/body-parser/lib/read.js +247 -0
- package/node_modules/body-parser/lib/types/json.js +186 -0
- package/node_modules/body-parser/lib/types/raw.js +42 -0
- package/node_modules/body-parser/lib/types/text.js +36 -0
- package/node_modules/body-parser/lib/types/urlencoded.js +138 -0
- package/node_modules/body-parser/lib/utils.js +100 -0
- package/node_modules/body-parser/package.json +65 -0
- package/node_modules/bytes/History.md +97 -0
- package/node_modules/bytes/LICENSE +23 -0
- package/node_modules/bytes/Readme.md +152 -0
- package/node_modules/bytes/index.js +170 -0
- package/node_modules/bytes/package.json +42 -0
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/call-bound/.eslintrc +13 -0
- package/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/node_modules/call-bound/.nycrc +9 -0
- package/node_modules/call-bound/CHANGELOG.md +42 -0
- package/node_modules/call-bound/LICENSE +21 -0
- package/node_modules/call-bound/README.md +53 -0
- package/node_modules/call-bound/index.d.ts +94 -0
- package/node_modules/call-bound/index.js +19 -0
- package/node_modules/call-bound/package.json +99 -0
- package/node_modules/call-bound/test/index.js +61 -0
- package/node_modules/call-bound/tsconfig.json +10 -0
- package/node_modules/content-disposition/LICENSE +22 -0
- package/node_modules/content-disposition/README.md +211 -0
- package/node_modules/content-disposition/dist/index.d.ts +72 -0
- package/node_modules/content-disposition/dist/index.js +388 -0
- package/node_modules/content-disposition/dist/index.js.map +1 -0
- package/node_modules/content-disposition/package.json +52 -0
- package/node_modules/content-type/LICENSE +22 -0
- package/node_modules/content-type/README.md +71 -0
- package/node_modules/content-type/dist/index.d.ts +46 -0
- package/node_modules/content-type/dist/index.js +176 -0
- package/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/content-type/package.json +52 -0
- package/node_modules/cookie/LICENSE +24 -0
- package/node_modules/cookie/README.md +317 -0
- package/node_modules/cookie/SECURITY.md +25 -0
- package/node_modules/cookie/index.js +335 -0
- package/node_modules/cookie/package.json +44 -0
- package/node_modules/cookie-signature/History.md +70 -0
- package/node_modules/cookie-signature/LICENSE +22 -0
- package/node_modules/cookie-signature/Readme.md +23 -0
- package/node_modules/cookie-signature/index.js +47 -0
- package/node_modules/cookie-signature/package.json +24 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/depd/History.md +103 -0
- package/node_modules/depd/LICENSE +22 -0
- package/node_modules/depd/Readme.md +280 -0
- package/node_modules/depd/index.js +538 -0
- package/node_modules/depd/lib/browser/index.js +77 -0
- package/node_modules/depd/package.json +45 -0
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/ee-first/LICENSE +22 -0
- package/node_modules/ee-first/README.md +80 -0
- package/node_modules/ee-first/index.js +95 -0
- package/node_modules/ee-first/package.json +29 -0
- package/node_modules/encodeurl/LICENSE +22 -0
- package/node_modules/encodeurl/README.md +109 -0
- package/node_modules/encodeurl/index.js +60 -0
- package/node_modules/encodeurl/package.json +40 -0
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +56 -0
- package/node_modules/es-define-property/tsconfig.json +10 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +44 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +79 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +7 -0
- package/node_modules/escape-html/LICENSE +24 -0
- package/node_modules/escape-html/Readme.md +43 -0
- package/node_modules/escape-html/index.js +78 -0
- package/node_modules/escape-html/package.json +24 -0
- package/node_modules/etag/HISTORY.md +83 -0
- package/node_modules/etag/LICENSE +22 -0
- package/node_modules/etag/README.md +159 -0
- package/node_modules/etag/index.js +131 -0
- package/node_modules/etag/package.json +47 -0
- package/node_modules/express/LICENSE +24 -0
- package/node_modules/express/Readme.md +282 -0
- package/node_modules/express/index.js +11 -0
- package/node_modules/express/lib/application.js +631 -0
- package/node_modules/express/lib/express.js +81 -0
- package/node_modules/express/lib/request.js +527 -0
- package/node_modules/express/lib/response.js +1050 -0
- package/node_modules/express/lib/utils.js +271 -0
- package/node_modules/express/lib/view.js +205 -0
- package/node_modules/express/package.json +99 -0
- package/node_modules/finalhandler/HISTORY.md +239 -0
- package/node_modules/finalhandler/LICENSE +22 -0
- package/node_modules/finalhandler/README.md +150 -0
- package/node_modules/finalhandler/index.js +293 -0
- package/node_modules/finalhandler/package.json +47 -0
- package/node_modules/forwarded/HISTORY.md +21 -0
- package/node_modules/forwarded/LICENSE +22 -0
- package/node_modules/forwarded/README.md +57 -0
- package/node_modules/forwarded/index.js +90 -0
- package/node_modules/forwarded/package.json +45 -0
- package/node_modules/fresh/HISTORY.md +80 -0
- package/node_modules/fresh/LICENSE +23 -0
- package/node_modules/fresh/README.md +117 -0
- package/node_modules/fresh/index.js +136 -0
- package/node_modules/fresh/package.json +46 -0
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/get-intrinsic/.eslintrc +42 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +9 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/node_modules/get-intrinsic/LICENSE +21 -0
- package/node_modules/get-intrinsic/README.md +71 -0
- package/node_modules/get-intrinsic/index.js +378 -0
- package/node_modules/get-intrinsic/package.json +97 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +45 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/test/index.js +36 -0
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.nycrc +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +14 -0
- package/node_modules/has-symbols/package.json +111 -0
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +45 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/node_modules/has-symbols/test/tests.js +58 -0
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +58 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/eslint.config.mjs +6 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/http-errors/HISTORY.md +186 -0
- package/node_modules/http-errors/LICENSE +23 -0
- package/node_modules/http-errors/README.md +169 -0
- package/node_modules/http-errors/index.js +290 -0
- package/node_modules/http-errors/package.json +54 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/README.md +138 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +180 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/iconv-lite/encodings/utf32.js +314 -0
- package/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/iconv-lite/lib/index.d.ts +129 -0
- package/node_modules/iconv-lite/lib/index.js +182 -0
- package/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/iconv-lite/package.json +70 -0
- package/node_modules/iconv-lite/types/encodings.d.ts +425 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/ipaddr.js/LICENSE +19 -0
- package/node_modules/ipaddr.js/README.md +233 -0
- package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/node_modules/ipaddr.js/package.json +35 -0
- package/node_modules/is-promise/LICENSE +19 -0
- package/node_modules/is-promise/index.d.ts +2 -0
- package/node_modules/is-promise/index.js +6 -0
- package/node_modules/is-promise/index.mjs +3 -0
- package/node_modules/is-promise/package.json +30 -0
- package/node_modules/is-promise/readme.md +33 -0
- package/node_modules/jose/LICENSE.md +21 -0
- package/node_modules/jose/README.md +150 -0
- package/node_modules/jose/dist/types/index.d.ts +55 -0
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +24 -0
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +40 -0
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +24 -0
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +46 -0
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +28 -0
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +51 -0
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +10 -0
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +15 -0
- package/node_modules/jose/dist/types/jwks/local.d.ts +17 -0
- package/node_modules/jose/dist/types/jwks/remote.d.ts +94 -0
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +20 -0
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +25 -0
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +22 -0
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +25 -0
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +38 -0
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +29 -0
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +34 -0
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +57 -0
- package/node_modules/jose/dist/types/jwt/sign.d.ts +21 -0
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +19 -0
- package/node_modules/jose/dist/types/jwt/verify.d.ts +35 -0
- package/node_modules/jose/dist/types/key/export.d.ts +19 -0
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +33 -0
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +30 -0
- package/node_modules/jose/dist/types/key/import.d.ts +67 -0
- package/node_modules/jose/dist/types/types.d.ts +736 -0
- package/node_modules/jose/dist/types/util/base64url.d.ts +16 -0
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +8 -0
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +10 -0
- package/node_modules/jose/dist/types/util/errors.d.ts +182 -0
- package/node_modules/jose/dist/webapi/index.js +70 -0
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +7 -0
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +26 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +15 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +35 -0
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +40 -0
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +105 -0
- package/node_modules/jose/dist/webapi/jwk/embedded.js +30 -0
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +55 -0
- package/node_modules/jose/dist/webapi/jwks/local.js +59 -0
- package/node_modules/jose/dist/webapi/jwks/remote.js +101 -0
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +20 -0
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +8 -0
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +23 -0
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +12 -0
- package/node_modules/jose/dist/webapi/jws/general/sign.js +58 -0
- package/node_modules/jose/dist/webapi/jws/general/verify.js +48 -0
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +13 -0
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +45 -0
- package/node_modules/jose/dist/webapi/jwt/sign.js +19 -0
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +34 -0
- package/node_modules/jose/dist/webapi/jwt/verify.js +13 -0
- package/node_modules/jose/dist/webapi/key/export.js +35 -0
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +35 -0
- package/node_modules/jose/dist/webapi/key/generate_secret.js +36 -0
- package/node_modules/jose/dist/webapi/key/import.js +53 -0
- package/node_modules/jose/dist/webapi/lib/asn1.js +138 -0
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +75 -0
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +90 -0
- package/node_modules/jose/dist/webapi/lib/deflate.js +40 -0
- package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +116 -0
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +187 -0
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +75 -0
- package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +74 -0
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +46 -0
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +86 -0
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +146 -0
- package/node_modules/jose/dist/webapi/lib/key.js +155 -0
- package/node_modules/jose/dist/webapi/lib/key_algorithm.js +15 -0
- package/node_modules/jose/dist/webapi/lib/key_descriptor.js +9 -0
- package/node_modules/jose/dist/webapi/lib/key_management.js +196 -0
- package/node_modules/jose/dist/webapi/lib/validate.js +122 -0
- package/node_modules/jose/dist/webapi/util/base64url.js +16 -0
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +33 -0
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +19 -0
- package/node_modules/jose/dist/webapi/util/errors.js +109 -0
- package/node_modules/jose/package.json +134 -0
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/media-typer/HISTORY.md +50 -0
- package/node_modules/media-typer/LICENSE +22 -0
- package/node_modules/media-typer/README.md +94 -0
- package/node_modules/media-typer/index.js +135 -0
- package/node_modules/media-typer/package.json +37 -0
- package/node_modules/merge-descriptors/index.d.ts +11 -0
- package/node_modules/merge-descriptors/index.js +26 -0
- package/node_modules/merge-descriptors/license +11 -0
- package/node_modules/merge-descriptors/package.json +50 -0
- package/node_modules/merge-descriptors/readme.md +55 -0
- package/node_modules/mime-db/HISTORY.md +541 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +109 -0
- package/node_modules/mime-db/db.json +9342 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +56 -0
- package/node_modules/mime-types/HISTORY.md +428 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +126 -0
- package/node_modules/mime-types/index.js +211 -0
- package/node_modules/mime-types/mimeScore.js +57 -0
- package/node_modules/mime-types/package.json +49 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/negotiator/LICENSE +24 -0
- package/node_modules/negotiator/README.md +212 -0
- package/node_modules/negotiator/index.js +83 -0
- package/node_modules/negotiator/lib/accept.js +54 -0
- package/node_modules/negotiator/lib/charset.js +145 -0
- package/node_modules/negotiator/lib/encoding.js +184 -0
- package/node_modules/negotiator/lib/language.js +158 -0
- package/node_modules/negotiator/lib/mediaType.js +176 -0
- package/node_modules/negotiator/package.json +49 -0
- package/node_modules/object-inspect/.eslintrc +53 -0
- package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/node_modules/object-inspect/.nycrc +13 -0
- package/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/node_modules/object-inspect/LICENSE +21 -0
- package/node_modules/object-inspect/example/all.js +23 -0
- package/node_modules/object-inspect/example/circular.js +6 -0
- package/node_modules/object-inspect/example/fn.js +5 -0
- package/node_modules/object-inspect/example/inspect.js +10 -0
- package/node_modules/object-inspect/index.js +544 -0
- package/node_modules/object-inspect/package-support.json +20 -0
- package/node_modules/object-inspect/package.json +105 -0
- package/node_modules/object-inspect/readme.markdown +84 -0
- package/node_modules/object-inspect/test/bigint.js +58 -0
- package/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/node_modules/object-inspect/test/circular.js +16 -0
- package/node_modules/object-inspect/test/deep.js +12 -0
- package/node_modules/object-inspect/test/element.js +53 -0
- package/node_modules/object-inspect/test/err.js +48 -0
- package/node_modules/object-inspect/test/fakes.js +29 -0
- package/node_modules/object-inspect/test/fn.js +76 -0
- package/node_modules/object-inspect/test/global.js +17 -0
- package/node_modules/object-inspect/test/has.js +15 -0
- package/node_modules/object-inspect/test/holes.js +15 -0
- package/node_modules/object-inspect/test/indent-option.js +271 -0
- package/node_modules/object-inspect/test/inspect.js +139 -0
- package/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/node_modules/object-inspect/test/number.js +58 -0
- package/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/node_modules/object-inspect/test/undef.js +12 -0
- package/node_modules/object-inspect/test/values.js +261 -0
- package/node_modules/object-inspect/test-core-js.js +26 -0
- package/node_modules/object-inspect/util.inspect.js +1 -0
- package/node_modules/on-finished/HISTORY.md +98 -0
- package/node_modules/on-finished/LICENSE +23 -0
- package/node_modules/on-finished/README.md +162 -0
- package/node_modules/on-finished/index.js +234 -0
- package/node_modules/on-finished/package.json +39 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/parseurl/HISTORY.md +58 -0
- package/node_modules/parseurl/LICENSE +24 -0
- package/node_modules/parseurl/README.md +133 -0
- package/node_modules/parseurl/index.js +158 -0
- package/node_modules/parseurl/package.json +40 -0
- package/node_modules/path-to-regexp/LICENSE +21 -0
- package/node_modules/path-to-regexp/Readme.md +224 -0
- package/node_modules/path-to-regexp/dist/index.d.ts +147 -0
- package/node_modules/path-to-regexp/dist/index.js +431 -0
- package/node_modules/path-to-regexp/dist/index.js.map +1 -0
- package/node_modules/path-to-regexp/package.json +64 -0
- package/node_modules/proxy-addr/HISTORY.md +167 -0
- package/node_modules/proxy-addr/LICENSE +22 -0
- package/node_modules/proxy-addr/README.md +139 -0
- package/node_modules/proxy-addr/index.js +359 -0
- package/node_modules/proxy-addr/package.json +51 -0
- package/node_modules/qs/.editorconfig +46 -0
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.github/SECURITY.md +11 -0
- package/node_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +848 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +776 -0
- package/node_modules/qs/dist/qs.js +141 -0
- package/node_modules/qs/eslint.config.mjs +57 -0
- package/node_modules/qs/lib/formats.js +23 -0
- package/node_modules/qs/lib/index.js +11 -0
- package/node_modules/qs/lib/parse.js +413 -0
- package/node_modules/qs/lib/stringify.js +378 -0
- package/node_modules/qs/lib/utils.js +388 -0
- package/node_modules/qs/package.json +95 -0
- package/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/node_modules/qs/test/parse.js +2122 -0
- package/node_modules/qs/test/stringify.js +1765 -0
- package/node_modules/qs/test/utils.js +638 -0
- package/node_modules/range-parser/HISTORY.md +56 -0
- package/node_modules/range-parser/LICENSE +23 -0
- package/node_modules/range-parser/README.md +85 -0
- package/node_modules/range-parser/index.js +181 -0
- package/node_modules/range-parser/package.json +48 -0
- package/node_modules/raw-body/LICENSE +22 -0
- package/node_modules/raw-body/README.md +223 -0
- package/node_modules/raw-body/index.d.ts +85 -0
- package/node_modules/raw-body/index.js +336 -0
- package/node_modules/raw-body/package.json +46 -0
- package/node_modules/router/HISTORY.md +228 -0
- package/node_modules/router/LICENSE +23 -0
- package/node_modules/router/README.md +416 -0
- package/node_modules/router/index.js +748 -0
- package/node_modules/router/lib/layer.js +247 -0
- package/node_modules/router/lib/route.js +242 -0
- package/node_modules/router/package.json +44 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/send/LICENSE +23 -0
- package/node_modules/send/README.md +317 -0
- package/node_modules/send/index.js +997 -0
- package/node_modules/send/package.json +63 -0
- package/node_modules/serve-static/LICENSE +25 -0
- package/node_modules/serve-static/README.md +253 -0
- package/node_modules/serve-static/index.js +208 -0
- package/node_modules/serve-static/package.json +44 -0
- package/node_modules/setprototypeof/LICENSE +13 -0
- package/node_modules/setprototypeof/README.md +31 -0
- package/node_modules/setprototypeof/index.d.ts +2 -0
- package/node_modules/setprototypeof/index.js +17 -0
- package/node_modules/setprototypeof/package.json +38 -0
- package/node_modules/setprototypeof/test/index.js +24 -0
- package/node_modules/side-channel/.editorconfig +9 -0
- package/node_modules/side-channel/.eslintrc +12 -0
- package/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel/.nycrc +13 -0
- package/node_modules/side-channel/CHANGELOG.md +120 -0
- package/node_modules/side-channel/LICENSE +21 -0
- package/node_modules/side-channel/README.md +61 -0
- package/node_modules/side-channel/index.d.ts +14 -0
- package/node_modules/side-channel/index.js +46 -0
- package/node_modules/side-channel/package.json +85 -0
- package/node_modules/side-channel/test/index.js +120 -0
- package/node_modules/side-channel/tsconfig.json +9 -0
- package/node_modules/side-channel-list/.editorconfig +9 -0
- package/node_modules/side-channel-list/.eslintrc +11 -0
- package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-list/.nycrc +13 -0
- package/node_modules/side-channel-list/CHANGELOG.md +36 -0
- package/node_modules/side-channel-list/LICENSE +21 -0
- package/node_modules/side-channel-list/README.md +62 -0
- package/node_modules/side-channel-list/index.d.ts +13 -0
- package/node_modules/side-channel-list/index.js +111 -0
- package/node_modules/side-channel-list/list.d.ts +14 -0
- package/node_modules/side-channel-list/package.json +77 -0
- package/node_modules/side-channel-list/test/index.js +154 -0
- package/node_modules/side-channel-list/tsconfig.json +9 -0
- package/node_modules/side-channel-map/.editorconfig +9 -0
- package/node_modules/side-channel-map/.eslintrc +11 -0
- package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-map/.nycrc +13 -0
- package/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/node_modules/side-channel-map/LICENSE +21 -0
- package/node_modules/side-channel-map/README.md +62 -0
- package/node_modules/side-channel-map/index.d.ts +15 -0
- package/node_modules/side-channel-map/index.js +68 -0
- package/node_modules/side-channel-map/package.json +80 -0
- package/node_modules/side-channel-map/test/index.js +114 -0
- package/node_modules/side-channel-map/tsconfig.json +9 -0
- package/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/node_modules/side-channel-weakmap/README.md +62 -0
- package/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/node_modules/side-channel-weakmap/index.js +84 -0
- package/node_modules/side-channel-weakmap/package.json +87 -0
- package/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/node_modules/statuses/HISTORY.md +87 -0
- package/node_modules/statuses/LICENSE +23 -0
- package/node_modules/statuses/README.md +139 -0
- package/node_modules/statuses/codes.json +65 -0
- package/node_modules/statuses/index.js +146 -0
- package/node_modules/statuses/package.json +49 -0
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/LICENSE +21 -0
- package/node_modules/toidentifier/README.md +61 -0
- package/node_modules/toidentifier/index.js +32 -0
- package/node_modules/toidentifier/package.json +38 -0
- package/node_modules/type-is/HISTORY.md +292 -0
- package/node_modules/type-is/LICENSE +23 -0
- package/node_modules/type-is/README.md +198 -0
- package/node_modules/type-is/index.js +240 -0
- package/node_modules/type-is/package.json +51 -0
- package/node_modules/unpipe/HISTORY.md +4 -0
- package/node_modules/unpipe/LICENSE +22 -0
- package/node_modules/unpipe/README.md +43 -0
- package/node_modules/unpipe/index.js +69 -0
- package/node_modules/unpipe/package.json +27 -0
- package/node_modules/vary/HISTORY.md +39 -0
- package/node_modules/vary/LICENSE +22 -0
- package/node_modules/vary/README.md +101 -0
- package/node_modules/vary/index.js +149 -0
- package/node_modules/vary/package.json +43 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +22 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +19 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +530 -0
- package/node_modules/ws/lib/receiver.js +743 -0
- package/node_modules/ws/lib/sender.js +607 -0
- package/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/ws/lib/websocket-server.js +562 -0
- package/node_modules/ws/lib/websocket.js +1421 -0
- package/node_modules/ws/package.json +74 -0
- package/node_modules/ws/wrapper.mjs +21 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +218 -0
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +52 -0
- package/node_modules/zod/index.d.cts +3 -0
- package/node_modules/zod/index.d.ts +3 -0
- package/node_modules/zod/index.js +7 -0
- package/node_modules/zod/locales/index.cjs +36 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +51 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +147 -0
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +7 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +340 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +33 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +78 -0
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +97 -0
- package/node_modules/zod/src/v4/classic/external.ts +57 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +20 -0
- package/node_modules/zod/src/v4/classic/parse.ts +88 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +190 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1875 -0
- package/node_modules/zod/src/v4/core/checks.ts +1266 -0
- package/node_modules/zod/src/v4/core/compile.ts +2313 -0
- package/node_modules/zod/src/v4/core/core.ts +230 -0
- package/node_modules/zod/src/v4/core/doc.ts +52 -0
- package/node_modules/zod/src/v4/core/errors.ts +543 -0
- package/node_modules/zod/src/v4/core/index.ts +19 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
- package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/node_modules/zod/src/v4/core/parse.ts +309 -0
- package/node_modules/zod/src/v4/core/regexes.ts +217 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +5192 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
- package/node_modules/zod/src/v4/core/util.ts +1280 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +120 -0
- package/node_modules/zod/src/v4/locales/az.ts +116 -0
- package/node_modules/zod/src/v4/locales/be.ts +188 -0
- package/node_modules/zod/src/v4/locales/bg.ts +133 -0
- package/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/node_modules/zod/src/v4/locales/ca.ts +121 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/node_modules/zod/src/v4/locales/cs.ts +123 -0
- package/node_modules/zod/src/v4/locales/da.ts +128 -0
- package/node_modules/zod/src/v4/locales/de.ts +121 -0
- package/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +136 -0
- package/node_modules/zod/src/v4/locales/eo.ts +123 -0
- package/node_modules/zod/src/v4/locales/es.ts +145 -0
- package/node_modules/zod/src/v4/locales/fa.ts +131 -0
- package/node_modules/zod/src/v4/locales/fi.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr.ts +139 -0
- package/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/node_modules/zod/src/v4/locales/he.ts +253 -0
- package/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/node_modules/zod/src/v4/locales/hr.ts +135 -0
- package/node_modules/zod/src/v4/locales/hu.ts +122 -0
- package/node_modules/zod/src/v4/locales/hy.ts +175 -0
- package/node_modules/zod/src/v4/locales/id.ts +120 -0
- package/node_modules/zod/src/v4/locales/index.ts +63 -0
- package/node_modules/zod/src/v4/locales/is.ts +124 -0
- package/node_modules/zod/src/v4/locales/it.ts +121 -0
- package/node_modules/zod/src/v4/locales/ja.ts +119 -0
- package/node_modules/zod/src/v4/locales/ka.ts +128 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +124 -0
- package/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +126 -0
- package/node_modules/zod/src/v4/locales/lt.ts +243 -0
- package/node_modules/zod/src/v4/locales/mk.ts +123 -0
- package/node_modules/zod/src/v4/locales/ms.ts +120 -0
- package/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +121 -0
- package/node_modules/zod/src/v4/locales/ota.ts +122 -0
- package/node_modules/zod/src/v4/locales/pl.ts +123 -0
- package/node_modules/zod/src/v4/locales/ps.ts +131 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/node_modules/zod/src/v4/locales/pt.ts +159 -0
- package/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/node_modules/zod/src/v4/locales/ru.ts +188 -0
- package/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/node_modules/zod/src/v4/locales/sl.ts +123 -0
- package/node_modules/zod/src/v4/locales/sv.ts +124 -0
- package/node_modules/zod/src/v4/locales/ta.ts +123 -0
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +124 -0
- package/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/node_modules/zod/src/v4/locales/tr.ts +116 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +122 -0
- package/node_modules/zod/src/v4/locales/ur.ts +124 -0
- package/node_modules/zod/src/v4/locales/uz.ts +120 -0
- package/node_modules/zod/src/v4/locales/vi.ts +122 -0
- package/node_modules/zod/src/v4/locales/yo.ts +129 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
- package/node_modules/zod/src/v4/mini/checks.ts +33 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +52 -0
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +16 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +167 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +143 -0
- package/node_modules/zod/v3/errors.cjs +36 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +41 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +156 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +52 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +21 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3798 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3697 -0
- package/node_modules/zod/v4/classic/checks.cjs +53 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +66 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +80 -0
- package/node_modules/zod/v4/classic/compat.d.cts +48 -0
- package/node_modules/zod/v4/classic/compat.d.ts +48 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +102 -0
- package/node_modules/zod/v4/classic/errors.d.cts +29 -0
- package/node_modules/zod/v4/classic/errors.d.ts +29 -0
- package/node_modules/zod/v4/classic/errors.js +57 -0
- package/node_modules/zod/v4/classic/external.cjs +97 -0
- package/node_modules/zod/v4/classic/external.d.cts +19 -0
- package/node_modules/zod/v4/classic/external.d.ts +19 -0
- package/node_modules/zod/v4/classic/external.js +17 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +52 -0
- package/node_modules/zod/v4/classic/index.d.cts +3 -0
- package/node_modules/zod/v4/classic/index.d.ts +3 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +68 -0
- package/node_modules/zod/v4/classic/iso.d.cts +7 -0
- package/node_modules/zod/v4/classic/iso.d.ts +7 -0
- package/node_modules/zod/v4/classic/iso.js +15 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +63 -0
- package/node_modules/zod/v4/classic/parse.d.cts +44 -0
- package/node_modules/zod/v4/classic/parse.d.ts +44 -0
- package/node_modules/zod/v4/classic/parse.js +16 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
- package/node_modules/zod/v4/classic/schemas.js +1535 -0
- package/node_modules/zod/v4/core/api.cjs +1269 -0
- package/node_modules/zod/v4/core/api.d.cts +335 -0
- package/node_modules/zod/v4/core/api.d.ts +335 -0
- package/node_modules/zod/v4/core/api.js +1107 -0
- package/node_modules/zod/v4/core/checks.cjs +561 -0
- package/node_modules/zod/v4/core/checks.d.cts +294 -0
- package/node_modules/zod/v4/core/checks.d.ts +294 -0
- package/node_modules/zod/v4/core/checks.js +516 -0
- package/node_modules/zod/v4/core/compile.cjs +1908 -0
- package/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/node_modules/zod/v4/core/compile.js +1858 -0
- package/node_modules/zod/v4/core/core.cjs +167 -0
- package/node_modules/zod/v4/core/core.d.cts +82 -0
- package/node_modules/zod/v4/core/core.d.ts +82 -0
- package/node_modules/zod/v4/core/core.js +141 -0
- package/node_modules/zod/v4/core/doc.cjs +61 -0
- package/node_modules/zod/v4/core/doc.d.cts +16 -0
- package/node_modules/zod/v4/core/doc.d.ts +16 -0
- package/node_modules/zod/v4/core/doc.js +38 -0
- package/node_modules/zod/v4/core/errors.cjs +317 -0
- package/node_modules/zod/v4/core/errors.d.cts +225 -0
- package/node_modules/zod/v4/core/errors.d.ts +225 -0
- package/node_modules/zod/v4/core/errors.js +267 -0
- package/node_modules/zod/v4/core/index.cjs +70 -0
- package/node_modules/zod/v4/core/index.d.cts +19 -0
- package/node_modules/zod/v4/core/index.d.ts +19 -0
- package/node_modules/zod/v4/core/index.js +19 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
- package/node_modules/zod/v4/core/json-schema.cjs +21 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +311 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +233 -0
- package/node_modules/zod/v4/core/parse.d.cts +52 -0
- package/node_modules/zod/v4/core/parse.d.ts +52 -0
- package/node_modules/zod/v4/core/parse.js +175 -0
- package/node_modules/zod/v4/core/regexes.cjs +209 -0
- package/node_modules/zod/v4/core/regexes.d.cts +90 -0
- package/node_modules/zod/v4/core/regexes.d.ts +90 -0
- package/node_modules/zod/v4/core/regexes.js +156 -0
- package/node_modules/zod/v4/core/registries.cjs +75 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2669 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1273 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1273 -0
- package/node_modules/zod/v4/core/schemas.js +2606 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
- package/node_modules/zod/v4/core/to-json-schema.js +651 -0
- package/node_modules/zod/v4/core/util.cjs +949 -0
- package/node_modules/zod/v4/core/util.d.cts +278 -0
- package/node_modules/zod/v4/core/util.d.ts +278 -0
- package/node_modules/zod/v4/core/util.js +859 -0
- package/node_modules/zod/v4/core/versions.cjs +27 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/core/visit.cjs +214 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +51 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +4 -0
- package/node_modules/zod/v4/locales/ar.cjs +138 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +111 -0
- package/node_modules/zod/v4/locales/az.cjs +137 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +110 -0
- package/node_modules/zod/v4/locales/be.cjs +195 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +168 -0
- package/node_modules/zod/v4/locales/bg.cjs +152 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +125 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +139 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +112 -0
- package/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +143 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +116 -0
- package/node_modules/zod/v4/locales/da.cjs +147 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +120 -0
- package/node_modules/zod/v4/locales/de.cjs +140 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +113 -0
- package/node_modules/zod/v4/locales/el.cjs +139 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +112 -0
- package/node_modules/zod/v4/locales/en.cjs +152 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +125 -0
- package/node_modules/zod/v4/locales/eo.cjs +141 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +114 -0
- package/node_modules/zod/v4/locales/es.cjs +163 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +136 -0
- package/node_modules/zod/v4/locales/fa.cjs +146 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +119 -0
- package/node_modules/zod/v4/locales/fi.cjs +144 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +117 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +112 -0
- package/node_modules/zod/v4/locales/fr.cjs +156 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +129 -0
- package/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +113 -0
- package/node_modules/zod/v4/locales/he.cjs +248 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +221 -0
- package/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +153 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +126 -0
- package/node_modules/zod/v4/locales/hu.cjs +140 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +113 -0
- package/node_modules/zod/v4/locales/hy.cjs +185 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +158 -0
- package/node_modules/zod/v4/locales/id.cjs +138 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +111 -0
- package/node_modules/zod/v4/locales/index.cjs +152 -0
- package/node_modules/zod/v4/locales/index.d.cts +63 -0
- package/node_modules/zod/v4/locales/index.d.ts +63 -0
- package/node_modules/zod/v4/locales/index.js +63 -0
- package/node_modules/zod/v4/locales/is.cjs +141 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +114 -0
- package/node_modules/zod/v4/locales/it.cjs +140 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +113 -0
- package/node_modules/zod/v4/locales/ja.cjs +139 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +112 -0
- package/node_modules/zod/v4/locales/ka.cjs +144 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +117 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +142 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +115 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +143 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +116 -0
- package/node_modules/zod/v4/locales/lt.cjs +234 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +207 -0
- package/node_modules/zod/v4/locales/mk.cjs +141 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +114 -0
- package/node_modules/zod/v4/locales/ms.cjs +139 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +112 -0
- package/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +142 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +115 -0
- package/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +113 -0
- package/node_modules/zod/v4/locales/no.cjs +140 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +113 -0
- package/node_modules/zod/v4/locales/ota.cjs +141 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +114 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +141 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +114 -0
- package/node_modules/zod/v4/locales/ps.cjs +146 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +119 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +169 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +142 -0
- package/node_modules/zod/v4/locales/ro.cjs +149 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +122 -0
- package/node_modules/zod/v4/locales/ru.cjs +195 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +168 -0
- package/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +141 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +114 -0
- package/node_modules/zod/v4/locales/sv.cjs +142 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +115 -0
- package/node_modules/zod/v4/locales/ta.cjs +142 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +115 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +142 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +115 -0
- package/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +137 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +110 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +140 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +113 -0
- package/node_modules/zod/v4/locales/ur.cjs +142 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +115 -0
- package/node_modules/zod/v4/locales/uz.cjs +140 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +113 -0
- package/node_modules/zod/v4/locales/vi.cjs +140 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +113 -0
- package/node_modules/zod/v4/locales/yo.cjs +139 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +112 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +114 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +112 -0
- package/node_modules/zod/v4/mini/checks.cjs +54 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +71 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +95 -0
- package/node_modules/zod/v4/mini/external.d.cts +16 -0
- package/node_modules/zod/v4/mini/external.d.ts +16 -0
- package/node_modules/zod/v4/mini/external.js +16 -0
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +51 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +83 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +37 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
- package/node_modules/zod/v4/mini/schemas.js +1002 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +51 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/package.json +41 -4
- package/README.md +0 -3
|
@@ -0,0 +1,3127 @@
|
|
|
1
|
+
import { ActionIdSchema, CollaborativeTaskEventIdSchema, CollaborativeTaskIdSchema, createPairMeshError, generateSessionCode, InputRequestIdSchema, InspectionExecutionRecordSchema, IsoUtcTimestampSchema, PAIRMESH_METADATA_VERSION, PairMeshSessionParticipantSchema, PairMeshSessionSchema, PeerIdSchema, SessionCodeSchema, SessionIdSchema, PairMeshInviteSecretSchema } from "@pairmesh/protocol";
|
|
2
|
+
import { randomBytes, randomUUID } from "node:crypto";
|
|
3
|
+
import { generateBearerToken } from "../auth/secrets.js";
|
|
4
|
+
import { createInvite, assertCanMintOpenInvite, revokeInviteById, isInviteRedeemable } from "../auth/invites.js";
|
|
5
|
+
import { revokeInboundCredentials } from "../auth/credentials.js";
|
|
6
|
+
import { createSessionSecurity, describeSessionSecurity, requireOutboundBearer, requireSessionSecurity } from "../auth/session-security.js";
|
|
7
|
+
import { decidePermissionRequest, ensureDefaultGrants, getGrantPolicy, isGrantableCapability, listGrantsForPeer, listPendingPermissionRequests, revokeParticipantCapabilities, setGrantPolicy } from "../auth/capabilities.js";
|
|
8
|
+
import { buildJoinRequest, sendPairMeshJoinRequest } from "../a2a/pairing-client.js";
|
|
9
|
+
import { buildInspectionRequest, runPairMeshInspectionInteractive, waitForPairMeshInspectionTask, cancelPairMeshInspectionTask } from "../a2a/inspection-client.js";
|
|
10
|
+
import { sendA2AMessage } from "../a2a/adapter.js";
|
|
11
|
+
import { sendPairMeshActionRequest } from "../a2a/action-client.js";
|
|
12
|
+
import { sendPairMeshTaskRequest } from "../a2a/task-client.js";
|
|
13
|
+
import { CollaborativeTaskService, InputRequestService, mintCollaborativeTaskEventId, HostRequestBridge, ContinuationOrchestrator, createGoalTaskWorker, FakeTaskWorker } from "../collaboration/index.js";
|
|
14
|
+
import { createLocalPairMeshIdentity, normalizeAgentBaseUrl } from "../identity.js";
|
|
15
|
+
import { ActionService } from "../action/service.js";
|
|
16
|
+
import { CodingAgentProposalGenerator } from "../action/proposal/coding-agent-generator.js";
|
|
17
|
+
import { isTerminalActionStatus } from "../action/lifecycle.js";
|
|
18
|
+
import { buildActionMirrorFromWire, findActionExecution, findLinkedActionForPermission, listPendingActionExecutions, toActionSafeView, upsertMirroredActionFromWire } from "../action/session-bridge.js";
|
|
19
|
+
import { LazyCodingAgentAdapter } from "../coding-agent/lazy-adapter.js";
|
|
20
|
+
import { loadConfigFile } from "../local-config/resolver.js";
|
|
21
|
+
import { configFilePath } from "../local-config/paths.js";
|
|
22
|
+
import { buildExecutionProviderSnapshot } from "../execution/provider-snapshot.js";
|
|
23
|
+
import { joinResponseToLocalState, mergeRelationshipIntoLocalState } from "./handshake-server.js";
|
|
24
|
+
import { listReceiverActionViews } from "./receiver-actions.js";
|
|
25
|
+
import { listReceiverInspectionViews, toInspectionSafeView } from "./receiver-inspections.js";
|
|
26
|
+
import { listRequesterActionViews } from "../collaboration/requester-actions.js";
|
|
27
|
+
import { isPairedWithLocal, peerRelationshipStatus } from "./relationship.js";
|
|
28
|
+
import { closeThreadRecord, createInitiatorThreadRecord, listInspectionThreads, requireInitiatorThread } from "../inspect/thread-store.js";
|
|
29
|
+
import { attachA2ATaskReference, completeExecutionRecord, createExecutionRecord, findExecutionRecord, findRecentDuplicateExecution, findResumableApprovalRequiredExecution, setExecutionLocalWaitState, updateExecutionProgress, upsertExecutionRecord } from "../inspect/execution-store.js";
|
|
30
|
+
import { applySuccessfulRemoteResponse, buildInspectionStatusView, syncExecutionFromRemoteTask } from "../inspect/remote-sync.js";
|
|
31
|
+
import { formatInspectionDuplicateWorkingMessage, formatInspectionStillWorkingMessage, formatInspectionTransportUnavailableMessage, formatInspectionWaitExpiredMessage, formatInspectionWorkingMessage } from "../inspect/messages.js";
|
|
32
|
+
import { clampInspectionWaitMs, loadInspectionTimingFromEnv } from "../inspect/timing.js";
|
|
33
|
+
import { projectPeerAgentStatus, projectPeerConnectivity } from "../health/peer-connectivity.js";
|
|
34
|
+
import { assertPeerReadyForInspection, fetchPeerHealth, invalidatePeerHealthCache } from "../health/peer-health.js";
|
|
35
|
+
import { getRuntimeRelayBridge } from "../connectivity/relay-runtime.js";
|
|
36
|
+
import { LocalStateStore } from "../state/store.js";
|
|
37
|
+
import { clearRelayRoute, loadRelayRoute, relayRouteFileFromStateFile } from "../connectivity/relay-route-store.js";
|
|
38
|
+
import { AuditLog, buildAuditEvent, buildResultSharedMetadata, mapAuthFailureReason } from "../audit/index.js";
|
|
39
|
+
import { LOCAL_STATE_VERSION } from "./schemas.js";
|
|
40
|
+
import { assertPairedForAsk, listSafePeers as buildSafePeerList, normalizeServiceLabel, resolvePeerTarget, toSafePeerMeta, toSafePeerView } from "./peer-view.js";
|
|
41
|
+
/** Bounded retention of spent invites so replays get a precise error code. */
|
|
42
|
+
const INVITE_HISTORY_LIMIT = 20;
|
|
43
|
+
function requireActiveState(state) {
|
|
44
|
+
if (state.session.status === "closed") {
|
|
45
|
+
throw createPairMeshError({
|
|
46
|
+
code: "pairmesh.session_closed",
|
|
47
|
+
message: "The local PairMesh session is closed.",
|
|
48
|
+
details: { sessionCode: state.sessionCode }
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return state;
|
|
52
|
+
}
|
|
53
|
+
function mergeActionResultIntoLatest(latest, resultState, execution) {
|
|
54
|
+
const artifacts = [...(latest.actionArtifacts ?? [])];
|
|
55
|
+
for (const artifact of resultState.actionArtifacts ?? []) {
|
|
56
|
+
if (!artifacts.some((entry) => entry.artifactId === artifact.artifactId)) {
|
|
57
|
+
artifacts.push(artifact);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
...latest,
|
|
62
|
+
actionExecutions: [
|
|
63
|
+
...(latest.actionExecutions ?? []).filter((entry) => entry.actionId !== execution.actionId),
|
|
64
|
+
execution
|
|
65
|
+
],
|
|
66
|
+
actionArtifacts: artifacts
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export class SessionManager {
|
|
70
|
+
stateStore;
|
|
71
|
+
skipPeerHealthPreflight;
|
|
72
|
+
inspectionTiming;
|
|
73
|
+
auditLog;
|
|
74
|
+
workspaceRoot;
|
|
75
|
+
injectedActionService;
|
|
76
|
+
lazyActionService;
|
|
77
|
+
lazyContinuationOrchestrator;
|
|
78
|
+
activeOutbound = new Map();
|
|
79
|
+
ownerPresence;
|
|
80
|
+
/** Serialize creator pairwise egress binds so concurrent hellos cannot swap peers. */
|
|
81
|
+
presenceBindQueue = Promise.resolve();
|
|
82
|
+
constructor(options = {}) {
|
|
83
|
+
this.stateStore = options.stateStore ?? new LocalStateStore();
|
|
84
|
+
this.skipPeerHealthPreflight = options.skipPeerHealthPreflight ?? false;
|
|
85
|
+
this.inspectionTiming = options.inspectionTiming ?? loadInspectionTimingFromEnv();
|
|
86
|
+
this.auditLog = options.auditLog ?? AuditLog.fromStateFile(this.stateStore.stateFilePath);
|
|
87
|
+
this.workspaceRoot = options.workspaceRoot;
|
|
88
|
+
this.injectedActionService = options.actionService;
|
|
89
|
+
}
|
|
90
|
+
attachOwnerPresence(presence) {
|
|
91
|
+
this.ownerPresence = presence;
|
|
92
|
+
this.getActionService().setOnActionRecordChange(({ previous, next }) => {
|
|
93
|
+
void this.dispatchOwnerPresence(previous, next);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
async dispatchOwnerPresence(previous, next) {
|
|
97
|
+
if (!this.ownerPresence) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
try {
|
|
101
|
+
const state = await this.stateStore.load();
|
|
102
|
+
if (!state) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
await this.ownerPresence.handleActionTransition({ state, previous, next });
|
|
106
|
+
}
|
|
107
|
+
catch {
|
|
108
|
+
// never break action path
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
/** Exposes audit health for doctor without reading event contents. */
|
|
112
|
+
getAuditHealth() {
|
|
113
|
+
return this.auditLog.getHealth();
|
|
114
|
+
}
|
|
115
|
+
async listAuditEvents(limit = 50) {
|
|
116
|
+
await this.auditLog.flush();
|
|
117
|
+
return await this.auditLog.readRecent(limit);
|
|
118
|
+
}
|
|
119
|
+
/** Await pending audit writes (tests). */
|
|
120
|
+
async flushAudit() {
|
|
121
|
+
await this.auditLog.flush();
|
|
122
|
+
}
|
|
123
|
+
async createSession(input) {
|
|
124
|
+
const existing = await this.stateStore.load();
|
|
125
|
+
if (existing?.session.status === "active") {
|
|
126
|
+
throw createPairMeshError({
|
|
127
|
+
code: "pairmesh.session_invalid_state",
|
|
128
|
+
message: "An active PairMesh session already exists locally. Leave it before creating another.",
|
|
129
|
+
details: { sessionCode: existing.sessionCode }
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
const agentUrl = normalizeAgentBaseUrl(input.agentUrl);
|
|
133
|
+
const identity = createLocalPairMeshIdentity(input.name, agentUrl);
|
|
134
|
+
const sessionId = SessionIdSchema.parse(`ses_${randomUUID()}`);
|
|
135
|
+
const sessionCode = generateSessionCode(randomBytes(8));
|
|
136
|
+
const createdAt = nowUtc();
|
|
137
|
+
const session = PairMeshSessionSchema.parse({
|
|
138
|
+
id: sessionId,
|
|
139
|
+
createdBy: identity.developer.id,
|
|
140
|
+
createdAt,
|
|
141
|
+
status: "active"
|
|
142
|
+
});
|
|
143
|
+
const localParticipant = this.buildLocalParticipantRecord({
|
|
144
|
+
session,
|
|
145
|
+
identity,
|
|
146
|
+
agentUrl,
|
|
147
|
+
isLocal: true,
|
|
148
|
+
serviceLabel: normalizeServiceLabel(input.serviceLabel)
|
|
149
|
+
});
|
|
150
|
+
const invite = createInvite({
|
|
151
|
+
inviterParticipantId: localParticipant.participant.id,
|
|
152
|
+
...(input.initialGrants ? { initialGrants: input.initialGrants } : {})
|
|
153
|
+
});
|
|
154
|
+
const state = {
|
|
155
|
+
stateVersion: LOCAL_STATE_VERSION,
|
|
156
|
+
sessionCode,
|
|
157
|
+
session,
|
|
158
|
+
localParticipant,
|
|
159
|
+
peers: [],
|
|
160
|
+
inspectionThreads: [],
|
|
161
|
+
inspectionExecutions: [],
|
|
162
|
+
permissionRequests: [],
|
|
163
|
+
actionExecutions: [],
|
|
164
|
+
actionArtifacts: [],
|
|
165
|
+
collaborativeTasks: [],
|
|
166
|
+
inputRequests: [],
|
|
167
|
+
hostToolCalls: [],
|
|
168
|
+
providerTurns: [],
|
|
169
|
+
continuationEvents: [],
|
|
170
|
+
sessionSecurity: {
|
|
171
|
+
...createSessionSecurity(),
|
|
172
|
+
invites: [invite.record]
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
await this.stateStore.replaceEntireDocument(state);
|
|
176
|
+
this.emitAudit(buildAuditEvent({
|
|
177
|
+
eventType: "session.created",
|
|
178
|
+
projectId: identity.project.id,
|
|
179
|
+
sessionId: session.id,
|
|
180
|
+
sessionCode,
|
|
181
|
+
actor: {
|
|
182
|
+
participantId: localParticipant.participant.id,
|
|
183
|
+
agentId: localParticipant.agent.id,
|
|
184
|
+
peerName: localParticipant.agent.name
|
|
185
|
+
},
|
|
186
|
+
metadata: {}
|
|
187
|
+
}));
|
|
188
|
+
this.emitAudit(buildAuditEvent({
|
|
189
|
+
eventType: "invite.created",
|
|
190
|
+
projectId: identity.project.id,
|
|
191
|
+
sessionId: session.id,
|
|
192
|
+
sessionCode,
|
|
193
|
+
actor: {
|
|
194
|
+
participantId: localParticipant.participant.id,
|
|
195
|
+
agentId: localParticipant.agent.id,
|
|
196
|
+
peerName: localParticipant.agent.name
|
|
197
|
+
},
|
|
198
|
+
metadata: { invitationId: invite.record.invitationId }
|
|
199
|
+
}));
|
|
200
|
+
return {
|
|
201
|
+
...this.toStatusView(state),
|
|
202
|
+
invite: {
|
|
203
|
+
sessionCode,
|
|
204
|
+
inviteSecret: invite.secret,
|
|
205
|
+
expiresAt: invite.record.expiresAt,
|
|
206
|
+
invitationId: invite.record.invitationId
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
async createSessionInvite(options) {
|
|
211
|
+
let inviteSecret = "";
|
|
212
|
+
let expiresAt = "";
|
|
213
|
+
let invitationId = "";
|
|
214
|
+
let audit;
|
|
215
|
+
const next = await this.stateStore.update((state) => {
|
|
216
|
+
if (state.session.status === "closed") {
|
|
217
|
+
throw createPairMeshError({
|
|
218
|
+
code: "pairmesh.session_closed",
|
|
219
|
+
message: "The local PairMesh session is closed.",
|
|
220
|
+
details: { sessionCode: state.sessionCode }
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
const security = requireSessionSecurity(state);
|
|
224
|
+
assertCanMintOpenInvite(security);
|
|
225
|
+
const invite = createInvite({
|
|
226
|
+
inviterParticipantId: state.localParticipant.participant.id,
|
|
227
|
+
...(options?.initialGrants ? { initialGrants: options.initialGrants } : {})
|
|
228
|
+
});
|
|
229
|
+
inviteSecret = invite.secret;
|
|
230
|
+
expiresAt = invite.record.expiresAt;
|
|
231
|
+
invitationId = invite.record.invitationId;
|
|
232
|
+
audit = {
|
|
233
|
+
projectId: state.localParticipant.agent.projectId,
|
|
234
|
+
sessionId: state.session.id,
|
|
235
|
+
sessionCode: state.sessionCode,
|
|
236
|
+
actorParticipantId: state.localParticipant.participant.id,
|
|
237
|
+
actorAgentId: state.localParticipant.agent.id,
|
|
238
|
+
actorPeerName: state.localParticipant.agent.name
|
|
239
|
+
};
|
|
240
|
+
return {
|
|
241
|
+
...state,
|
|
242
|
+
sessionSecurity: {
|
|
243
|
+
...security,
|
|
244
|
+
invites: [...security.invites.slice(-INVITE_HISTORY_LIMIT), invite.record]
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
});
|
|
248
|
+
await this.registerInviteRelayAccessToken(next.sessionCode, inviteSecret);
|
|
249
|
+
if (audit) {
|
|
250
|
+
this.emitAudit(buildAuditEvent({
|
|
251
|
+
eventType: "invite.created",
|
|
252
|
+
projectId: audit.projectId,
|
|
253
|
+
sessionId: audit.sessionId,
|
|
254
|
+
sessionCode: audit.sessionCode,
|
|
255
|
+
actor: {
|
|
256
|
+
participantId: audit.actorParticipantId,
|
|
257
|
+
agentId: audit.actorAgentId,
|
|
258
|
+
peerName: audit.actorPeerName
|
|
259
|
+
},
|
|
260
|
+
metadata: { invitationId }
|
|
261
|
+
}));
|
|
262
|
+
}
|
|
263
|
+
return {
|
|
264
|
+
sessionCode: next.sessionCode,
|
|
265
|
+
inviteSecret: inviteSecret,
|
|
266
|
+
expiresAt: expiresAt,
|
|
267
|
+
invitationId: invitationId
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* List outstanding invite metadata without secrets or hashes.
|
|
272
|
+
* Use `revokeSessionInvite(invitationId)` to revoke one invite.
|
|
273
|
+
*/
|
|
274
|
+
async listSessionInvites() {
|
|
275
|
+
const state = await this.requireActiveSession();
|
|
276
|
+
const security = state.sessionSecurity;
|
|
277
|
+
if (!security) {
|
|
278
|
+
return [];
|
|
279
|
+
}
|
|
280
|
+
const now = new Date();
|
|
281
|
+
return security.invites.map((invite) => {
|
|
282
|
+
let status;
|
|
283
|
+
if (invite.revokedAt) {
|
|
284
|
+
status = "revoked";
|
|
285
|
+
}
|
|
286
|
+
else if (invite.usedAt) {
|
|
287
|
+
status = "used";
|
|
288
|
+
}
|
|
289
|
+
else if (isInviteRedeemable(invite, now)) {
|
|
290
|
+
status = "open";
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
status = "expired";
|
|
294
|
+
}
|
|
295
|
+
return {
|
|
296
|
+
invitationId: invite.invitationId,
|
|
297
|
+
expiresAt: invite.expiresAt,
|
|
298
|
+
createdAt: invite.createdAt,
|
|
299
|
+
status
|
|
300
|
+
};
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
async resolveCreatorRelayAttachCredentials(sessionCode) {
|
|
304
|
+
const normalized = sessionCode.trim().toUpperCase();
|
|
305
|
+
const fromBridge = getRuntimeRelayBridge()?.getAttachCredentials?.();
|
|
306
|
+
if (fromBridge && fromBridge.sessionCode.trim().toUpperCase() === normalized) {
|
|
307
|
+
return {
|
|
308
|
+
relayWsUrl: fromBridge.relayWsUrl,
|
|
309
|
+
relaySessionId: fromBridge.relaySessionId,
|
|
310
|
+
relayAccessToken: fromBridge.relayAccessToken
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
const route = await loadRelayRoute(relayRouteFileFromStateFile(this.stateStore.stateFilePath));
|
|
314
|
+
if (!route ||
|
|
315
|
+
route.sessionCode.trim().toUpperCase() !== normalized ||
|
|
316
|
+
route.role !== "creator") {
|
|
317
|
+
return null;
|
|
318
|
+
}
|
|
319
|
+
return {
|
|
320
|
+
relayWsUrl: route.relayWsUrl,
|
|
321
|
+
relaySessionId: route.relaySessionId,
|
|
322
|
+
relayAccessToken: route.relayAccessToken
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
async registerInviteRelayAccessToken(sessionCode, inviteSecret) {
|
|
326
|
+
const attach = await this.resolveCreatorRelayAttachCredentials(sessionCode);
|
|
327
|
+
if (!attach) {
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
try {
|
|
331
|
+
const { deriveRelayAccessToken } = await import("../connectivity/relay/access-token.js");
|
|
332
|
+
const { registerRemoteRelayAccessToken, relayWsUrlToHttpBase } = await import("../connectivity/relay/rendezvous-http.js");
|
|
333
|
+
const newToken = deriveRelayAccessToken({
|
|
334
|
+
inviteSecret,
|
|
335
|
+
sessionCode,
|
|
336
|
+
relaySessionId: attach.relaySessionId
|
|
337
|
+
});
|
|
338
|
+
if (newToken === attach.relayAccessToken) {
|
|
339
|
+
return;
|
|
340
|
+
}
|
|
341
|
+
await registerRemoteRelayAccessToken({
|
|
342
|
+
relayHttpBaseUrl: relayWsUrlToHttpBase(attach.relayWsUrl),
|
|
343
|
+
relaySessionId: attach.relaySessionId,
|
|
344
|
+
authorizingToken: attach.relayAccessToken,
|
|
345
|
+
newToken
|
|
346
|
+
});
|
|
347
|
+
const { rememberAuthorizedRelayAccessToken, relayRouteFileFromStateFile } = await import("../connectivity/relay-route-store.js");
|
|
348
|
+
await rememberAuthorizedRelayAccessToken(relayRouteFileFromStateFile(this.stateStore.stateFilePath), newToken);
|
|
349
|
+
}
|
|
350
|
+
catch {
|
|
351
|
+
/* Relay may be local-mock without HTTP API; Stage 8 invite remains valid. */
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
/** Revoke one open invite by id without affecting other outstanding invites. */
|
|
355
|
+
async revokeSessionInvite(invitationId) {
|
|
356
|
+
const state = await this.stateStore.update((latest) => {
|
|
357
|
+
requireActiveState(latest);
|
|
358
|
+
const security = requireSessionSecurity(latest);
|
|
359
|
+
return {
|
|
360
|
+
...latest,
|
|
361
|
+
sessionSecurity: revokeInviteById(security, invitationId)
|
|
362
|
+
};
|
|
363
|
+
});
|
|
364
|
+
this.emitAudit(buildAuditEvent({
|
|
365
|
+
eventType: "invite.revoked",
|
|
366
|
+
projectId: state.localParticipant.agent.projectId,
|
|
367
|
+
sessionId: state.session.id,
|
|
368
|
+
sessionCode: state.sessionCode,
|
|
369
|
+
actor: {
|
|
370
|
+
participantId: state.localParticipant.participant.id,
|
|
371
|
+
agentId: state.localParticipant.agent.id,
|
|
372
|
+
peerName: state.localParticipant.agent.name
|
|
373
|
+
},
|
|
374
|
+
metadata: { invitationId }
|
|
375
|
+
}));
|
|
376
|
+
}
|
|
377
|
+
async joinSession(input) {
|
|
378
|
+
const sessionCode = parseSessionCode(input.sessionCode);
|
|
379
|
+
const existing = await this.stateStore.load();
|
|
380
|
+
if (existing?.session.status === "active") {
|
|
381
|
+
if (existing.sessionCode === sessionCode) {
|
|
382
|
+
// Already in this collaboration. Prefer pair-later when a fresh invite is
|
|
383
|
+
// presented; fall back to idempotent status if the invite cannot be redeemed
|
|
384
|
+
// (e.g. duplicate join with a spent create-time invite).
|
|
385
|
+
try {
|
|
386
|
+
return await this.establishRelationship({
|
|
387
|
+
peerUrl: input.peerUrl,
|
|
388
|
+
inviteSecret: input.inviteSecret
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
catch (error) {
|
|
392
|
+
if (isPairMeshErrorLike(error) &&
|
|
393
|
+
(error.code === "pairmesh.invite_used" ||
|
|
394
|
+
error.code === "pairmesh.invite_invalid" ||
|
|
395
|
+
error.code === "pairmesh.invite_expired")) {
|
|
396
|
+
return this.toStatusView(existing);
|
|
397
|
+
}
|
|
398
|
+
throw error;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
throw createPairMeshError({
|
|
402
|
+
code: "pairmesh.session_invalid_state",
|
|
403
|
+
message: "An active PairMesh session already exists locally. Leave it before joining another.",
|
|
404
|
+
details: { sessionCode: existing.sessionCode }
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
const localAgentUrl = normalizeAgentBaseUrl(input.agentUrl);
|
|
408
|
+
const identity = createLocalPairMeshIdentity(input.name, localAgentUrl);
|
|
409
|
+
const inviteSecret = parseInviteSecret(input.inviteSecret);
|
|
410
|
+
// Minted before the handshake: the creator stores its hash so it can call
|
|
411
|
+
// back into this agent once pairing completes.
|
|
412
|
+
const offeredInboundBearer = generateBearerToken();
|
|
413
|
+
const joinRequest = buildJoinRequest(sessionCode, identity, localAgentUrl, {
|
|
414
|
+
inviteSecret,
|
|
415
|
+
offeredInboundBearer
|
|
416
|
+
});
|
|
417
|
+
const response = await sendPairMeshJoinRequest(input.peerUrl, joinRequest);
|
|
418
|
+
if (!response.accepted) {
|
|
419
|
+
throw response.error;
|
|
420
|
+
}
|
|
421
|
+
const state = joinResponseToLocalState({
|
|
422
|
+
response,
|
|
423
|
+
localAgentId: identity.agent.id,
|
|
424
|
+
offeredInboundBearer
|
|
425
|
+
});
|
|
426
|
+
// Join A2A payload does not carry serviceLabel yet — apply only locally.
|
|
427
|
+
const localServiceLabel = normalizeServiceLabel(input.serviceLabel);
|
|
428
|
+
const withThreads = {
|
|
429
|
+
...state,
|
|
430
|
+
stateVersion: LOCAL_STATE_VERSION,
|
|
431
|
+
localParticipant: localServiceLabel
|
|
432
|
+
? { ...state.localParticipant, serviceLabel: localServiceLabel }
|
|
433
|
+
: state.localParticipant,
|
|
434
|
+
inspectionThreads: state.inspectionThreads ?? [],
|
|
435
|
+
inspectionExecutions: state.inspectionExecutions ?? [],
|
|
436
|
+
permissionRequests: state.permissionRequests ?? [],
|
|
437
|
+
actionExecutions: state.actionExecutions ?? [],
|
|
438
|
+
actionArtifacts: state.actionArtifacts ?? [],
|
|
439
|
+
// Route subsequent A2A through the transport URL that succeeded for join
|
|
440
|
+
// (relay local egress in relay mode; peer URL otherwise).
|
|
441
|
+
peers: state.peers.map((peer) => ({
|
|
442
|
+
...peer,
|
|
443
|
+
a2aAgentUrl: normalizeAgentBaseUrl(input.peerUrl)
|
|
444
|
+
}))
|
|
445
|
+
};
|
|
446
|
+
await this.stateStore.replaceEntireDocument(withThreads);
|
|
447
|
+
const inviter = withThreads.peers.find((peer) => isPairedWithLocal(peer));
|
|
448
|
+
this.emitAudit(buildAuditEvent({
|
|
449
|
+
eventType: "peer.joined",
|
|
450
|
+
projectId: withThreads.localParticipant.agent.projectId,
|
|
451
|
+
sessionId: withThreads.session.id,
|
|
452
|
+
sessionCode: withThreads.sessionCode,
|
|
453
|
+
actor: {
|
|
454
|
+
participantId: withThreads.localParticipant.participant.id,
|
|
455
|
+
agentId: withThreads.localParticipant.agent.id,
|
|
456
|
+
peerName: withThreads.localParticipant.agent.name
|
|
457
|
+
},
|
|
458
|
+
target: inviter
|
|
459
|
+
? {
|
|
460
|
+
participantId: inviter.participant.id,
|
|
461
|
+
agentId: inviter.agent.id,
|
|
462
|
+
peerName: inviter.agent.name
|
|
463
|
+
}
|
|
464
|
+
: undefined,
|
|
465
|
+
metadata: { peerName: inviter?.agent.name }
|
|
466
|
+
}));
|
|
467
|
+
return this.toStatusView(withThreads);
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Establish a pairwise relationship with another collaboration member using
|
|
471
|
+
* their invite, without leaving the local collaboration or wiping other peers.
|
|
472
|
+
*/
|
|
473
|
+
async establishRelationship(input) {
|
|
474
|
+
const state = await this.requireActiveSession();
|
|
475
|
+
requireSessionSecurity(state);
|
|
476
|
+
const inviteSecret = parseInviteSecret(input.inviteSecret);
|
|
477
|
+
const offeredInboundBearer = generateBearerToken();
|
|
478
|
+
const identity = {
|
|
479
|
+
developer: state.localParticipant.developer,
|
|
480
|
+
device: state.localParticipant.device ?? {
|
|
481
|
+
id: state.localParticipant.agent.deviceId,
|
|
482
|
+
developerId: state.localParticipant.developer.id,
|
|
483
|
+
name: `${state.localParticipant.agent.name}-device`,
|
|
484
|
+
platform: "darwin"
|
|
485
|
+
},
|
|
486
|
+
agent: state.localParticipant.agent,
|
|
487
|
+
project: {
|
|
488
|
+
id: state.localParticipant.agent.projectId,
|
|
489
|
+
name: state.localParticipant.agent.name
|
|
490
|
+
}
|
|
491
|
+
};
|
|
492
|
+
const joinRequest = buildJoinRequest(state.sessionCode, identity, state.localParticipant.a2aAgentUrl, {
|
|
493
|
+
inviteSecret,
|
|
494
|
+
offeredInboundBearer
|
|
495
|
+
}, { peerId: state.localParticipant.participant.id });
|
|
496
|
+
const response = await sendPairMeshJoinRequest(input.peerUrl, joinRequest);
|
|
497
|
+
if (!response.accepted) {
|
|
498
|
+
throw response.error;
|
|
499
|
+
}
|
|
500
|
+
const peerTransportUrl = normalizeAgentBaseUrl(input.peerUrl);
|
|
501
|
+
const merged = await this.stateStore.update((latest) => mergeRelationshipIntoLocalState({
|
|
502
|
+
state: requireActiveState(latest),
|
|
503
|
+
response,
|
|
504
|
+
offeredInboundBearer,
|
|
505
|
+
peerTransportUrl
|
|
506
|
+
}));
|
|
507
|
+
// path to re-announce / re-bind so transport readiness follows without restart.
|
|
508
|
+
void getRuntimeRelayBridge()
|
|
509
|
+
?.reconcilePeerTransports()
|
|
510
|
+
.catch(() => {
|
|
511
|
+
/* best-effort */
|
|
512
|
+
});
|
|
513
|
+
const paired = merged.peers.find((peer) => isPairedWithLocal(peer) && peer.a2aAgentUrl === peerTransportUrl);
|
|
514
|
+
this.emitAudit(buildAuditEvent({
|
|
515
|
+
eventType: "peer.joined",
|
|
516
|
+
projectId: merged.localParticipant.agent.projectId,
|
|
517
|
+
sessionId: merged.session.id,
|
|
518
|
+
sessionCode: merged.sessionCode,
|
|
519
|
+
actor: {
|
|
520
|
+
participantId: merged.localParticipant.participant.id,
|
|
521
|
+
agentId: merged.localParticipant.agent.id,
|
|
522
|
+
peerName: merged.localParticipant.agent.name
|
|
523
|
+
},
|
|
524
|
+
target: paired
|
|
525
|
+
? {
|
|
526
|
+
participantId: paired.participant.id,
|
|
527
|
+
agentId: paired.agent.id,
|
|
528
|
+
peerName: paired.agent.name
|
|
529
|
+
}
|
|
530
|
+
: undefined,
|
|
531
|
+
metadata: { peerName: paired?.agent.name }
|
|
532
|
+
}));
|
|
533
|
+
return this.toStatusView(merged);
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Revokes the local pairwise relationship with one peer. The peer remains a
|
|
537
|
+
* known collaboration member (unpaired/revoked) — this is not a global kick.
|
|
538
|
+
*/
|
|
539
|
+
async removePeer(peerRef) {
|
|
540
|
+
let peer;
|
|
541
|
+
let revokedCredentials = 0;
|
|
542
|
+
let priorGrants = [];
|
|
543
|
+
const state = await this.stateStore.update((latest) => {
|
|
544
|
+
requireActiveState(latest);
|
|
545
|
+
const security = requireSessionSecurity(latest);
|
|
546
|
+
const resolved = resolvePeerRecord(latest, peerRef);
|
|
547
|
+
if (!resolved) {
|
|
548
|
+
throw createPairMeshError({
|
|
549
|
+
code: "pairmesh.peer_not_found",
|
|
550
|
+
message: "Peer not found in the active PairMesh session.",
|
|
551
|
+
details: { peerRef }
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
peer = resolved;
|
|
555
|
+
const revokedSecurity = revokeInboundCredentials(security, peer.participant.id);
|
|
556
|
+
revokedCredentials = revokedSecurity.acceptedInbound.filter((credential) => credential.participantId === peer.participant.id && credential.revokedAt !== undefined).length;
|
|
557
|
+
priorGrants = listGrantsForPeer(latest, peer.participant.id);
|
|
558
|
+
const unpairedPeer = {
|
|
559
|
+
participant: peer.participant,
|
|
560
|
+
agent: peer.agent,
|
|
561
|
+
developer: peer.developer,
|
|
562
|
+
device: peer.device,
|
|
563
|
+
a2aAgentUrl: peer.a2aAgentUrl,
|
|
564
|
+
isLocal: false,
|
|
565
|
+
connectivity: peer.connectivity
|
|
566
|
+
// outboundBearer intentionally omitted — relationship revoked locally
|
|
567
|
+
};
|
|
568
|
+
return revokeParticipantCapabilities({
|
|
569
|
+
...latest,
|
|
570
|
+
peers: latest.peers.map((candidate) => candidate.participant.id === peer.participant.id ? unpairedPeer : candidate),
|
|
571
|
+
inspectionThreads: latest.inspectionThreads.filter((thread) => thread.thread.targetPeerId !== peer.participant.id),
|
|
572
|
+
sessionSecurity: revokedSecurity
|
|
573
|
+
}, peer.participant.id);
|
|
574
|
+
});
|
|
575
|
+
this.emitAudit(buildAuditEvent({
|
|
576
|
+
eventType: "peer.removed",
|
|
577
|
+
projectId: state.localParticipant.agent.projectId,
|
|
578
|
+
sessionId: state.session.id,
|
|
579
|
+
sessionCode: state.sessionCode,
|
|
580
|
+
actor: {
|
|
581
|
+
participantId: state.localParticipant.participant.id,
|
|
582
|
+
agentId: state.localParticipant.agent.id,
|
|
583
|
+
peerName: state.localParticipant.agent.name
|
|
584
|
+
},
|
|
585
|
+
target: {
|
|
586
|
+
participantId: peer.participant.id,
|
|
587
|
+
agentId: peer.agent.id,
|
|
588
|
+
peerName: peer.agent.name
|
|
589
|
+
},
|
|
590
|
+
metadata: {
|
|
591
|
+
peerName: peer.agent.name,
|
|
592
|
+
revokedCredentials
|
|
593
|
+
}
|
|
594
|
+
}));
|
|
595
|
+
for (const grant of priorGrants) {
|
|
596
|
+
this.emitAudit(buildAuditEvent({
|
|
597
|
+
eventType: "capability.revoked",
|
|
598
|
+
projectId: state.localParticipant.agent.projectId,
|
|
599
|
+
sessionId: state.session.id,
|
|
600
|
+
sessionCode: state.sessionCode,
|
|
601
|
+
actor: {
|
|
602
|
+
participantId: state.localParticipant.participant.id,
|
|
603
|
+
agentId: state.localParticipant.agent.id,
|
|
604
|
+
peerName: state.localParticipant.agent.name
|
|
605
|
+
},
|
|
606
|
+
target: {
|
|
607
|
+
participantId: peer.participant.id,
|
|
608
|
+
agentId: peer.agent.id,
|
|
609
|
+
peerName: peer.agent.name
|
|
610
|
+
},
|
|
611
|
+
metadata: {
|
|
612
|
+
capabilityId: grant.capabilityId,
|
|
613
|
+
policy: grant.policy,
|
|
614
|
+
scope: "session"
|
|
615
|
+
}
|
|
616
|
+
}));
|
|
617
|
+
}
|
|
618
|
+
return { peer: peer.agent.name, revokedCredentials };
|
|
619
|
+
}
|
|
620
|
+
async getSessionStatus() {
|
|
621
|
+
const state = await this.requireActiveSession();
|
|
622
|
+
return this.toStatusView(state);
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* Safe peer rows for CLI / MCP / Control. Never includes secrets or paths.
|
|
626
|
+
* Probes per-peer health (cached) unless `skipHealthProbe` is set.
|
|
627
|
+
*/
|
|
628
|
+
async listSafePeers(options) {
|
|
629
|
+
const state = await this.requireActiveSession();
|
|
630
|
+
const bridge = getRuntimeRelayBridge();
|
|
631
|
+
const relayStatus = bridge?.getStatus();
|
|
632
|
+
const relayLifecycle = relayStatus?.lifecycle ?? "idle";
|
|
633
|
+
const relayMode = relayStatus?.mode === "relay" && relayLifecycle !== "idle";
|
|
634
|
+
const creatorRouteAuthority = relayMode && relayStatus?.role === "creator";
|
|
635
|
+
const connectivityByParticipantId = {};
|
|
636
|
+
const agentByParticipantId = {};
|
|
637
|
+
for (const peer of state.peers) {
|
|
638
|
+
const relationship = peerRelationshipStatus(state, peer);
|
|
639
|
+
let health;
|
|
640
|
+
const shouldProbe = !options?.skipHealthProbe &&
|
|
641
|
+
isPairedWithLocal(peer) &&
|
|
642
|
+
(relationship === "paired" || relationship === "revoked");
|
|
643
|
+
if (shouldProbe) {
|
|
644
|
+
health = await fetchPeerHealth(peer.agent.name, peer.a2aAgentUrl, {
|
|
645
|
+
bearerToken: peer.outboundBearer
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
const presenceId = peer.connectivity?.relayPresenceId;
|
|
649
|
+
// Presence-bound relay peers: READY only via CreatorPeerBinding (never façade /health).
|
|
650
|
+
// CLI process has no bridge — still require verified route (doctor reads Control).
|
|
651
|
+
const verifiedRouteRequired = Boolean(presenceId && (creatorRouteAuthority || !bridge || relayStatus?.role === "creator"));
|
|
652
|
+
const routeHealth = verifiedRouteRequired && presenceId && bridge
|
|
653
|
+
? bridge.getPeerRouteHealth(presenceId)
|
|
654
|
+
: undefined;
|
|
655
|
+
connectivityByParticipantId[peer.participant.id] = projectPeerConnectivity({
|
|
656
|
+
relationship,
|
|
657
|
+
relayLifecycle,
|
|
658
|
+
relayMode,
|
|
659
|
+
health,
|
|
660
|
+
...(verifiedRouteRequired
|
|
661
|
+
? {
|
|
662
|
+
verifiedRouteRequired: true,
|
|
663
|
+
...(routeHealth ? { routeHealth } : {})
|
|
664
|
+
}
|
|
665
|
+
: {})
|
|
666
|
+
});
|
|
667
|
+
const agent = projectPeerAgentStatus(health);
|
|
668
|
+
if (agent) {
|
|
669
|
+
agentByParticipantId[peer.participant.id] = agent;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
return buildSafePeerList(state, {
|
|
673
|
+
connectivityByParticipantId,
|
|
674
|
+
agentByParticipantId
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
async getSafePeer(peerRef, options) {
|
|
678
|
+
const state = await this.requireActiveSession();
|
|
679
|
+
const { peer } = resolvePeerTarget(state, peerRef);
|
|
680
|
+
const relationship = peerRelationshipStatus(state, peer);
|
|
681
|
+
const bridge = getRuntimeRelayBridge();
|
|
682
|
+
const relayStatus = bridge?.getStatus();
|
|
683
|
+
const relayLifecycle = relayStatus?.lifecycle ?? "idle";
|
|
684
|
+
const relayMode = relayStatus?.mode === "relay" && relayLifecycle !== "idle";
|
|
685
|
+
const creatorRouteAuthority = relayMode && relayStatus?.role === "creator";
|
|
686
|
+
let health;
|
|
687
|
+
const shouldProbe = !options?.skipHealthProbe &&
|
|
688
|
+
isPairedWithLocal(peer) &&
|
|
689
|
+
(relationship === "paired" || relationship === "revoked");
|
|
690
|
+
if (shouldProbe) {
|
|
691
|
+
health = await fetchPeerHealth(peer.agent.name, peer.a2aAgentUrl, {
|
|
692
|
+
bearerToken: peer.outboundBearer
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
const presenceId = peer.connectivity?.relayPresenceId;
|
|
696
|
+
const verifiedRouteRequired = Boolean(presenceId && (creatorRouteAuthority || !bridge || relayStatus?.role === "creator"));
|
|
697
|
+
const routeHealth = verifiedRouteRequired && presenceId && bridge
|
|
698
|
+
? bridge.getPeerRouteHealth(presenceId)
|
|
699
|
+
: undefined;
|
|
700
|
+
return toSafePeerView(state, peer, {
|
|
701
|
+
connectivity: projectPeerConnectivity({
|
|
702
|
+
relationship,
|
|
703
|
+
relayLifecycle,
|
|
704
|
+
relayMode,
|
|
705
|
+
health,
|
|
706
|
+
...(verifiedRouteRequired
|
|
707
|
+
? {
|
|
708
|
+
verifiedRouteRequired: true,
|
|
709
|
+
...(routeHealth ? { routeHealth } : {})
|
|
710
|
+
}
|
|
711
|
+
: {})
|
|
712
|
+
}),
|
|
713
|
+
agent: projectPeerAgentStatus(health)
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
async listPeerPermissions(peerRef) {
|
|
717
|
+
const state = await this.stateStore.update(async (latest) => {
|
|
718
|
+
if (latest.session.status === "closed") {
|
|
719
|
+
throw createPairMeshError({
|
|
720
|
+
code: "pairmesh.session_closed",
|
|
721
|
+
message: "The local PairMesh session is closed.",
|
|
722
|
+
details: { sessionCode: latest.sessionCode }
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
const peers = peerRef
|
|
726
|
+
? (() => {
|
|
727
|
+
const peer = resolvePeerRecord(latest, peerRef);
|
|
728
|
+
if (!peer) {
|
|
729
|
+
throw createPairMeshError({
|
|
730
|
+
code: "pairmesh.peer_not_found",
|
|
731
|
+
message: "Peer not found in the active PairMesh session.",
|
|
732
|
+
details: { peerRef }
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
return [peer];
|
|
736
|
+
})()
|
|
737
|
+
: latest.peers;
|
|
738
|
+
let security = requireSessionSecurity(latest);
|
|
739
|
+
for (const peer of peers) {
|
|
740
|
+
security = ensureDefaultGrants(security, peer.participant.id);
|
|
741
|
+
}
|
|
742
|
+
if (security === latest.sessionSecurity) {
|
|
743
|
+
return latest;
|
|
744
|
+
}
|
|
745
|
+
return { ...latest, sessionSecurity: security };
|
|
746
|
+
});
|
|
747
|
+
const peers = peerRef
|
|
748
|
+
? (() => {
|
|
749
|
+
const peer = resolvePeerRecord(state, peerRef);
|
|
750
|
+
if (!peer) {
|
|
751
|
+
throw createPairMeshError({
|
|
752
|
+
code: "pairmesh.peer_not_found",
|
|
753
|
+
message: "Peer not found in the active PairMesh session.",
|
|
754
|
+
details: { peerRef }
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
return [peer];
|
|
758
|
+
})()
|
|
759
|
+
: state.peers;
|
|
760
|
+
return peers.map((peer) => ({
|
|
761
|
+
peer: peer.agent.name,
|
|
762
|
+
participantId: peer.participant.id,
|
|
763
|
+
grants: listGrantsForPeer(state, peer.participant.id)
|
|
764
|
+
}));
|
|
765
|
+
}
|
|
766
|
+
async listPendingPermissions() {
|
|
767
|
+
const state = await this.requireActiveSession();
|
|
768
|
+
return listPendingPermissionRequests(state);
|
|
769
|
+
}
|
|
770
|
+
async setPeerCapability(peerRef, capabilityId, policy) {
|
|
771
|
+
if (!isGrantableCapability(capabilityId)) {
|
|
772
|
+
throw createPairMeshError({
|
|
773
|
+
code: "pairmesh.capability_not_allowed",
|
|
774
|
+
message: `Unknown or unimplemented capability: ${capabilityId}`,
|
|
775
|
+
details: { capabilityId }
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
let previousPolicy;
|
|
779
|
+
let peerName = "";
|
|
780
|
+
let peerParticipantId = "";
|
|
781
|
+
let peerAgentId = "";
|
|
782
|
+
let auditContext;
|
|
783
|
+
await this.stateStore.update((state) => {
|
|
784
|
+
if (state.session.status === "closed") {
|
|
785
|
+
throw createPairMeshError({
|
|
786
|
+
code: "pairmesh.session_closed",
|
|
787
|
+
message: "The local PairMesh session is closed.",
|
|
788
|
+
details: { sessionCode: state.sessionCode }
|
|
789
|
+
});
|
|
790
|
+
}
|
|
791
|
+
const peer = resolvePeerRecord(state, peerRef);
|
|
792
|
+
if (!peer) {
|
|
793
|
+
throw createPairMeshError({
|
|
794
|
+
code: "pairmesh.peer_not_found",
|
|
795
|
+
message: "Peer not found in the active PairMesh session.",
|
|
796
|
+
details: { peerRef }
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
previousPolicy = getGrantPolicy(state, peer.participant.id, capabilityId);
|
|
800
|
+
peerName = peer.agent.name;
|
|
801
|
+
peerParticipantId = peer.participant.id;
|
|
802
|
+
peerAgentId = peer.agent.id;
|
|
803
|
+
auditContext = {
|
|
804
|
+
projectId: state.localParticipant.agent.projectId,
|
|
805
|
+
sessionId: state.session.id,
|
|
806
|
+
sessionCode: state.sessionCode,
|
|
807
|
+
actorParticipantId: state.localParticipant.participant.id,
|
|
808
|
+
actorAgentId: state.localParticipant.agent.id,
|
|
809
|
+
actorPeerName: state.localParticipant.agent.name
|
|
810
|
+
};
|
|
811
|
+
return setGrantPolicy(state, peer.participant.id, capabilityId, policy);
|
|
812
|
+
});
|
|
813
|
+
if (previousPolicy !== policy && auditContext) {
|
|
814
|
+
this.emitAudit(buildAuditEvent({
|
|
815
|
+
eventType: policy === "deny" ? "capability.revoked" : "capability.granted",
|
|
816
|
+
projectId: auditContext.projectId,
|
|
817
|
+
sessionId: auditContext.sessionId,
|
|
818
|
+
sessionCode: auditContext.sessionCode,
|
|
819
|
+
actor: {
|
|
820
|
+
participantId: auditContext.actorParticipantId,
|
|
821
|
+
agentId: auditContext.actorAgentId,
|
|
822
|
+
peerName: auditContext.actorPeerName
|
|
823
|
+
},
|
|
824
|
+
target: {
|
|
825
|
+
participantId: peerParticipantId,
|
|
826
|
+
agentId: peerAgentId,
|
|
827
|
+
peerName: peerName
|
|
828
|
+
},
|
|
829
|
+
metadata: {
|
|
830
|
+
capabilityId,
|
|
831
|
+
policy,
|
|
832
|
+
scope: "session"
|
|
833
|
+
}
|
|
834
|
+
}));
|
|
835
|
+
}
|
|
836
|
+
return { peer: peerName, capabilityId, policy };
|
|
837
|
+
}
|
|
838
|
+
async decidePendingPermission(permissionRequestId, decision) {
|
|
839
|
+
let linkedExecution;
|
|
840
|
+
let resume;
|
|
841
|
+
const request = await this.stateStore.enqueue(async () => {
|
|
842
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
843
|
+
const pending = (state.permissionRequests ?? []).find((entry) => entry.permissionRequestId === permissionRequestId);
|
|
844
|
+
const linked = pending
|
|
845
|
+
? findLinkedActionForPermission(state, permissionRequestId, pending.correlationRequestId)
|
|
846
|
+
: undefined;
|
|
847
|
+
if (linked) {
|
|
848
|
+
const actionDecision = decision === "allow-once"
|
|
849
|
+
? "allow-once"
|
|
850
|
+
: decision === "allow-session"
|
|
851
|
+
? "allow-session"
|
|
852
|
+
: "deny";
|
|
853
|
+
const begun = await this.getActionService().approveActionBegin(state, {
|
|
854
|
+
actionId: linked.actionId,
|
|
855
|
+
decision: actionDecision
|
|
856
|
+
});
|
|
857
|
+
await this.stateStore.writeExclusive(begun.state);
|
|
858
|
+
linkedExecution = begun.execution;
|
|
859
|
+
resume = begun.resume;
|
|
860
|
+
return ((begun.state.permissionRequests ?? []).find((entry) => entry.permissionRequestId === permissionRequestId) ??
|
|
861
|
+
pending ??
|
|
862
|
+
(() => {
|
|
863
|
+
throw createPairMeshError({
|
|
864
|
+
code: "pairmesh.permission_request_not_found",
|
|
865
|
+
message: "Permission request not found after action decision."
|
|
866
|
+
});
|
|
867
|
+
})());
|
|
868
|
+
}
|
|
869
|
+
const decided = decidePermissionRequest(state, permissionRequestId, decision);
|
|
870
|
+
await this.stateStore.writeExclusive(decided.state);
|
|
871
|
+
return decided.request;
|
|
872
|
+
});
|
|
873
|
+
if (resume) {
|
|
874
|
+
const resumed = await resume();
|
|
875
|
+
linkedExecution = resumed.execution;
|
|
876
|
+
await this.stateStore.update((latest) => mergeActionResultIntoLatest(latest, resumed.state, resumed.execution));
|
|
877
|
+
}
|
|
878
|
+
const auditState = await this.stateStore.load();
|
|
879
|
+
if (auditState) {
|
|
880
|
+
this.emitPermissionDecisionAudit(auditState, request, decision);
|
|
881
|
+
if (linkedExecution) {
|
|
882
|
+
this.emitActionDecisionAudit(auditState, linkedExecution, decision);
|
|
883
|
+
await this.afterCollaborativeActionTerminal(linkedExecution);
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
return request;
|
|
887
|
+
}
|
|
888
|
+
async listPendingActions() {
|
|
889
|
+
const state = await this.requireActiveSession();
|
|
890
|
+
return listPendingActionExecutions(state).map((execution) => toActionSafeView(state, execution));
|
|
891
|
+
}
|
|
892
|
+
async listReceiverActions(filter, limit = 50) {
|
|
893
|
+
const state = await this.requireActiveSession();
|
|
894
|
+
return listReceiverActionViews(state, filter, limit);
|
|
895
|
+
}
|
|
896
|
+
async listReceiverInspections(filter, limit = 50) {
|
|
897
|
+
const state = await this.requireActiveSession();
|
|
898
|
+
return listReceiverInspectionViews(state, filter, limit);
|
|
899
|
+
}
|
|
900
|
+
async getInspection(requestId) {
|
|
901
|
+
const state = await this.requireActiveSession();
|
|
902
|
+
const execution = findExecutionRecord(state, requestId);
|
|
903
|
+
if (!execution || execution.ownerRole !== "receiver") {
|
|
904
|
+
throw createPairMeshError({
|
|
905
|
+
code: "pairmesh.inspection_not_found",
|
|
906
|
+
message: "Inspection execution not found.",
|
|
907
|
+
details: { requestId }
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
return toInspectionSafeView(state, execution);
|
|
911
|
+
}
|
|
912
|
+
async listRequesterActions(filter = "all", limit = 50) {
|
|
913
|
+
const state = await this.requireActiveSession();
|
|
914
|
+
return listRequesterActionViews(state, filter, limit);
|
|
915
|
+
}
|
|
916
|
+
async getAction(actionId) {
|
|
917
|
+
const state = await this.requireActiveSession();
|
|
918
|
+
const execution = findActionExecution(state, actionId);
|
|
919
|
+
if (!execution) {
|
|
920
|
+
throw createPairMeshError({
|
|
921
|
+
code: "pairmesh.action_not_found",
|
|
922
|
+
message: "Action execution not found.",
|
|
923
|
+
details: { actionId }
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
return toActionSafeView(state, execution);
|
|
927
|
+
}
|
|
928
|
+
async reviewActionProposal(actionIdOrArtifactId) {
|
|
929
|
+
const state = await this.requireActiveSession();
|
|
930
|
+
const service = this.getActionService();
|
|
931
|
+
const asAction = findActionExecution(state, actionIdOrArtifactId);
|
|
932
|
+
if (asAction) {
|
|
933
|
+
return service.getProposal(state, { actionId: asAction.actionId });
|
|
934
|
+
}
|
|
935
|
+
return service.getProposal(state, {
|
|
936
|
+
artifactId: actionIdOrArtifactId
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
async approveAction(actionId, decision) {
|
|
940
|
+
const begun = await this.stateStore.enqueue(async () => {
|
|
941
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
942
|
+
const result = await this.getActionService().approveActionBegin(state, {
|
|
943
|
+
actionId: ActionIdSchema.parse(actionId),
|
|
944
|
+
decision
|
|
945
|
+
});
|
|
946
|
+
await this.stateStore.writeExclusive(result.state);
|
|
947
|
+
return result;
|
|
948
|
+
});
|
|
949
|
+
const result = begun.resume ? await begun.resume() : begun;
|
|
950
|
+
if (begun.resume) {
|
|
951
|
+
await this.stateStore.update((latest) => mergeActionResultIntoLatest(latest, result.state, result.execution));
|
|
952
|
+
}
|
|
953
|
+
const latest = await this.requireActiveSession();
|
|
954
|
+
this.emitActionDecisionAudit(latest, result.execution, decision);
|
|
955
|
+
if (result.execution.permissionRequestId) {
|
|
956
|
+
const request = (latest.permissionRequests ?? []).find((entry) => entry.permissionRequestId === result.execution.permissionRequestId);
|
|
957
|
+
if (request) {
|
|
958
|
+
this.emitPermissionDecisionAudit(latest, request, decision);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
await this.afterCollaborativeActionTerminal(result.execution);
|
|
962
|
+
return toActionSafeView(latest, result.execution);
|
|
963
|
+
}
|
|
964
|
+
async denyAction(actionId) {
|
|
965
|
+
return this.approveAction(actionId, "deny");
|
|
966
|
+
}
|
|
967
|
+
async cancelLocalAction(actionId) {
|
|
968
|
+
let result;
|
|
969
|
+
const state = await this.stateStore.update((latest) => {
|
|
970
|
+
requireActiveState(latest);
|
|
971
|
+
result = this.getActionService().cancelAction(latest, ActionIdSchema.parse(actionId));
|
|
972
|
+
return result.state;
|
|
973
|
+
});
|
|
974
|
+
if (result.execution.status === "cancelled") {
|
|
975
|
+
this.emitAudit(buildAuditEvent({
|
|
976
|
+
eventType: "action.cancelled",
|
|
977
|
+
projectId: state.localParticipant.agent.projectId,
|
|
978
|
+
sessionId: state.session.id,
|
|
979
|
+
sessionCode: state.sessionCode,
|
|
980
|
+
actor: {
|
|
981
|
+
participantId: state.localParticipant.participant.id,
|
|
982
|
+
agentId: state.localParticipant.agent.id,
|
|
983
|
+
peerName: state.localParticipant.agent.name
|
|
984
|
+
},
|
|
985
|
+
correlation: { requestId: result.execution.actionId },
|
|
986
|
+
metadata: {
|
|
987
|
+
actionId: result.execution.actionId,
|
|
988
|
+
actionType: result.execution.actionType,
|
|
989
|
+
capabilityId: result.execution.capabilityId,
|
|
990
|
+
status: result.execution.status,
|
|
991
|
+
...(result.execution.permissionRequestId
|
|
992
|
+
? { permissionRequestId: result.execution.permissionRequestId }
|
|
993
|
+
: {})
|
|
994
|
+
}
|
|
995
|
+
}));
|
|
996
|
+
}
|
|
997
|
+
await this.afterCollaborativeActionTerminal(result.execution);
|
|
998
|
+
return toActionSafeView(result.state, result.execution);
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* R5-8-D3 — When an Action linked to a CollaborativeTask reaches a terminal
|
|
1002
|
+
* status, observe it so the task leaves blocked_on_action, then continue the
|
|
1003
|
+
* provider turn. Without this, Approve Once can complete the Action while Live
|
|
1004
|
+
* stays "Waiting for approval" and Needs you goes empty.
|
|
1005
|
+
*/
|
|
1006
|
+
async afterCollaborativeActionTerminal(execution) {
|
|
1007
|
+
if (!execution.taskId || !isTerminalActionStatus(execution.status)) {
|
|
1008
|
+
return;
|
|
1009
|
+
}
|
|
1010
|
+
let event = null;
|
|
1011
|
+
try {
|
|
1012
|
+
event = await this.getContinuationOrchestrator().observeActionTerminal(execution);
|
|
1013
|
+
}
|
|
1014
|
+
catch {
|
|
1015
|
+
return;
|
|
1016
|
+
}
|
|
1017
|
+
if (!event) {
|
|
1018
|
+
return;
|
|
1019
|
+
}
|
|
1020
|
+
const providerId = await this.resolveGoalProviderId();
|
|
1021
|
+
const workspaceRoot = this.workspaceRoot ?? process.cwd();
|
|
1022
|
+
const worker = createGoalTaskWorker({
|
|
1023
|
+
providerId,
|
|
1024
|
+
workspaceRoot,
|
|
1025
|
+
...(providerId === "fake"
|
|
1026
|
+
? {
|
|
1027
|
+
fakeWorker: new FakeTaskWorker({
|
|
1028
|
+
instanceId: `action-continue-${execution.actionId}`,
|
|
1029
|
+
script: [
|
|
1030
|
+
{
|
|
1031
|
+
kind: "completed",
|
|
1032
|
+
summary: "Continuation after Action terminal (default Fake)."
|
|
1033
|
+
}
|
|
1034
|
+
]
|
|
1035
|
+
})
|
|
1036
|
+
}
|
|
1037
|
+
: {}),
|
|
1038
|
+
disableCursorSessionReuse: true
|
|
1039
|
+
});
|
|
1040
|
+
const orchestrator = this.getContinuationOrchestrator(worker);
|
|
1041
|
+
void orchestrator.continueTask(event.taskId).catch(() => {
|
|
1042
|
+
// Durable working + ContinuationEvent remain; pairmesh task continue can retry.
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
async requestPeerAction(input) {
|
|
1046
|
+
const prep = await this.mutateSession(async (state) => {
|
|
1047
|
+
const peer = resolvePeerRecord(state, input.peerRef);
|
|
1048
|
+
if (!peer) {
|
|
1049
|
+
throw createPairMeshError({
|
|
1050
|
+
code: "pairmesh.peer_not_found",
|
|
1051
|
+
message: "Peer not found in the active PairMesh session.",
|
|
1052
|
+
details: { peerRef: input.peerRef }
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
assertPairedForAsk(state, peer);
|
|
1056
|
+
const bearerToken = requireOutboundBearer(state, peer);
|
|
1057
|
+
const actionId = input.actionId ?? ActionIdSchema.parse(`act_${randomUUID()}`);
|
|
1058
|
+
return {
|
|
1059
|
+
peer,
|
|
1060
|
+
bearerToken,
|
|
1061
|
+
actionId,
|
|
1062
|
+
sessionId: state.session.id,
|
|
1063
|
+
localParticipantId: state.localParticipant.participant.id
|
|
1064
|
+
};
|
|
1065
|
+
});
|
|
1066
|
+
const wire = await sendPairMeshActionRequest(prep.peer.a2aAgentUrl, {
|
|
1067
|
+
metadataVersion: PAIRMESH_METADATA_VERSION,
|
|
1068
|
+
sessionId: prep.sessionId,
|
|
1069
|
+
operation: "request",
|
|
1070
|
+
actionId: prep.actionId,
|
|
1071
|
+
actionType: input.actionType,
|
|
1072
|
+
...(input.parameters ? { parameters: input.parameters } : {}),
|
|
1073
|
+
...(input.artifactRef ? { artifactRef: input.artifactRef } : {})
|
|
1074
|
+
}, { bearerToken: prep.bearerToken });
|
|
1075
|
+
if (!wire.accepted) {
|
|
1076
|
+
throw createPairMeshError(wire.error);
|
|
1077
|
+
}
|
|
1078
|
+
await this.mutateSession((state) => {
|
|
1079
|
+
const mirror = buildActionMirrorFromWire(wire, {
|
|
1080
|
+
requesterParticipantId: prep.localParticipantId,
|
|
1081
|
+
targetParticipantId: prep.peer.participant.id,
|
|
1082
|
+
parameters: input.parameters,
|
|
1083
|
+
artifactRef: input.artifactRef
|
|
1084
|
+
});
|
|
1085
|
+
const upserted = upsertMirroredActionFromWire(state, mirror);
|
|
1086
|
+
state.actionExecutions = upserted.state.actionExecutions;
|
|
1087
|
+
});
|
|
1088
|
+
return wire;
|
|
1089
|
+
}
|
|
1090
|
+
async getPeerActionStatus(actionId) {
|
|
1091
|
+
const prep = await this.mutateSession(async (state) => {
|
|
1092
|
+
const execution = findActionExecution(state, actionId);
|
|
1093
|
+
if (!execution) {
|
|
1094
|
+
throw createPairMeshError({
|
|
1095
|
+
code: "pairmesh.action_not_found",
|
|
1096
|
+
message: "Action execution not found.",
|
|
1097
|
+
details: { actionId }
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
const peer = state.peers.find((entry) => entry.participant.id === execution.targetParticipantId);
|
|
1101
|
+
if (!peer) {
|
|
1102
|
+
throw createPairMeshError({
|
|
1103
|
+
code: "pairmesh.peer_not_found",
|
|
1104
|
+
message: "Action target peer is not present in the local session.",
|
|
1105
|
+
details: { actionId, targetParticipantId: execution.targetParticipantId }
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
assertPairedForAsk(state, peer);
|
|
1109
|
+
return {
|
|
1110
|
+
peer,
|
|
1111
|
+
bearerToken: requireOutboundBearer(state, peer),
|
|
1112
|
+
sessionId: state.session.id,
|
|
1113
|
+
actionId: execution.actionId,
|
|
1114
|
+
parameters: execution.parameters,
|
|
1115
|
+
artifactRef: execution.artifactRefs?.[0],
|
|
1116
|
+
localParticipantId: state.localParticipant.participant.id
|
|
1117
|
+
};
|
|
1118
|
+
});
|
|
1119
|
+
const wire = await sendPairMeshActionRequest(prep.peer.a2aAgentUrl, {
|
|
1120
|
+
metadataVersion: PAIRMESH_METADATA_VERSION,
|
|
1121
|
+
sessionId: prep.sessionId,
|
|
1122
|
+
operation: "status",
|
|
1123
|
+
actionId: prep.actionId
|
|
1124
|
+
}, { bearerToken: prep.bearerToken });
|
|
1125
|
+
if (!wire.accepted) {
|
|
1126
|
+
throw createPairMeshError(wire.error);
|
|
1127
|
+
}
|
|
1128
|
+
return this.mutateSession((state) => {
|
|
1129
|
+
const mirror = buildActionMirrorFromWire(wire, {
|
|
1130
|
+
requesterParticipantId: prep.localParticipantId,
|
|
1131
|
+
targetParticipantId: prep.peer.participant.id,
|
|
1132
|
+
parameters: prep.parameters,
|
|
1133
|
+
artifactRef: prep.artifactRef
|
|
1134
|
+
});
|
|
1135
|
+
const upserted = upsertMirroredActionFromWire(state, mirror);
|
|
1136
|
+
state.actionExecutions = upserted.state.actionExecutions;
|
|
1137
|
+
return toActionSafeView(state, upserted.execution);
|
|
1138
|
+
});
|
|
1139
|
+
}
|
|
1140
|
+
async waitForAction(actionId, options) {
|
|
1141
|
+
const waitMs = Math.max(0, options.waitMs);
|
|
1142
|
+
const pollIntervalMs = Math.max(50, options.pollIntervalMs ?? 250);
|
|
1143
|
+
const started = Date.now();
|
|
1144
|
+
let last;
|
|
1145
|
+
while (Date.now() - started <= waitMs) {
|
|
1146
|
+
if (options.signal?.aborted) {
|
|
1147
|
+
throw createPairMeshError({
|
|
1148
|
+
code: "pairmesh.inspection_cancelled",
|
|
1149
|
+
message: "Action wait was cancelled."
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
const state = await this.requireActiveSession();
|
|
1153
|
+
const local = findActionExecution(state, actionId);
|
|
1154
|
+
if (!local) {
|
|
1155
|
+
throw createPairMeshError({
|
|
1156
|
+
code: "pairmesh.action_not_found",
|
|
1157
|
+
message: "Action execution not found.",
|
|
1158
|
+
details: { actionId }
|
|
1159
|
+
});
|
|
1160
|
+
}
|
|
1161
|
+
if (isTerminalActionStatus(local.status)) {
|
|
1162
|
+
return { action: toActionSafeView(state, local), timedOut: false };
|
|
1163
|
+
}
|
|
1164
|
+
const isLocalReceiver = local.targetParticipantId === state.localParticipant.participant.id;
|
|
1165
|
+
if (!isLocalReceiver) {
|
|
1166
|
+
try {
|
|
1167
|
+
last = await this.getPeerActionStatus(actionId);
|
|
1168
|
+
if (last.terminal) {
|
|
1169
|
+
return { action: last, timedOut: false };
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
catch {
|
|
1173
|
+
last = toActionSafeView(state, local);
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
else {
|
|
1177
|
+
last = toActionSafeView(state, local);
|
|
1178
|
+
}
|
|
1179
|
+
const remaining = waitMs - (Date.now() - started);
|
|
1180
|
+
if (remaining <= 0) {
|
|
1181
|
+
break;
|
|
1182
|
+
}
|
|
1183
|
+
await delay(Math.min(pollIntervalMs, remaining), options.signal);
|
|
1184
|
+
}
|
|
1185
|
+
if (!last) {
|
|
1186
|
+
const state = await this.requireActiveSession();
|
|
1187
|
+
const local = findActionExecution(state, actionId);
|
|
1188
|
+
if (!local) {
|
|
1189
|
+
throw createPairMeshError({
|
|
1190
|
+
code: "pairmesh.action_not_found",
|
|
1191
|
+
message: "Action execution not found.",
|
|
1192
|
+
details: { actionId }
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1195
|
+
last = toActionSafeView(state, local);
|
|
1196
|
+
}
|
|
1197
|
+
return { action: last, timedOut: !last.terminal };
|
|
1198
|
+
}
|
|
1199
|
+
async cancelPeerAction(actionId) {
|
|
1200
|
+
const prep = await this.mutateSession(async (state) => {
|
|
1201
|
+
const execution = findActionExecution(state, actionId);
|
|
1202
|
+
if (!execution) {
|
|
1203
|
+
throw createPairMeshError({
|
|
1204
|
+
code: "pairmesh.action_not_found",
|
|
1205
|
+
message: "Action execution not found.",
|
|
1206
|
+
details: { actionId }
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
const peer = state.peers.find((entry) => entry.participant.id === execution.targetParticipantId);
|
|
1210
|
+
if (!peer) {
|
|
1211
|
+
throw createPairMeshError({
|
|
1212
|
+
code: "pairmesh.peer_not_found",
|
|
1213
|
+
message: "Action target peer is not present in the local session.",
|
|
1214
|
+
details: { actionId }
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
assertPairedForAsk(state, peer);
|
|
1218
|
+
return {
|
|
1219
|
+
peer,
|
|
1220
|
+
bearerToken: requireOutboundBearer(state, peer),
|
|
1221
|
+
sessionId: state.session.id,
|
|
1222
|
+
actionId: execution.actionId,
|
|
1223
|
+
parameters: execution.parameters,
|
|
1224
|
+
artifactRef: execution.artifactRefs?.[0],
|
|
1225
|
+
localParticipantId: state.localParticipant.participant.id
|
|
1226
|
+
};
|
|
1227
|
+
});
|
|
1228
|
+
const wire = await sendPairMeshActionRequest(prep.peer.a2aAgentUrl, {
|
|
1229
|
+
metadataVersion: PAIRMESH_METADATA_VERSION,
|
|
1230
|
+
sessionId: prep.sessionId,
|
|
1231
|
+
operation: "cancel",
|
|
1232
|
+
actionId: prep.actionId
|
|
1233
|
+
}, { bearerToken: prep.bearerToken });
|
|
1234
|
+
if (!wire.accepted) {
|
|
1235
|
+
throw createPairMeshError(wire.error);
|
|
1236
|
+
}
|
|
1237
|
+
return this.mutateSession((state) => {
|
|
1238
|
+
const mirror = buildActionMirrorFromWire(wire, {
|
|
1239
|
+
requesterParticipantId: prep.localParticipantId,
|
|
1240
|
+
targetParticipantId: prep.peer.participant.id,
|
|
1241
|
+
parameters: prep.parameters,
|
|
1242
|
+
artifactRef: prep.artifactRef
|
|
1243
|
+
});
|
|
1244
|
+
const upserted = upsertMirroredActionFromWire(state, mirror);
|
|
1245
|
+
state.actionExecutions = upserted.state.actionExecutions;
|
|
1246
|
+
return toActionSafeView(state, upserted.execution);
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
/** R5-2/R5-3: create a receiver-authoritative CollaborativeTask (local). */
|
|
1250
|
+
async createCollaborativeTask(input) {
|
|
1251
|
+
const state = await this.requireActiveSession();
|
|
1252
|
+
const tasks = new CollaborativeTaskService(this.stateStore);
|
|
1253
|
+
return tasks.createTask({
|
|
1254
|
+
sessionId: state.session.id,
|
|
1255
|
+
requesterParticipantId: input.requesterParticipantId ??
|
|
1256
|
+
state.peers[0]?.participant.id ??
|
|
1257
|
+
state.localParticipant.participant.id,
|
|
1258
|
+
ownerParticipantId: input.ownerParticipantId ?? state.localParticipant.participant.id,
|
|
1259
|
+
originalGoal: input.originalGoal,
|
|
1260
|
+
...(input.threadId ? { threadId: input.threadId } : {})
|
|
1261
|
+
});
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
* R5-3: create InputRequest on receiver and deliver to requester peer over A2A.
|
|
1265
|
+
* Does not invoke providers or create Actions.
|
|
1266
|
+
*/
|
|
1267
|
+
async createAndDeliverInputRequest(input) {
|
|
1268
|
+
const inputs = new InputRequestService(this.stateStore);
|
|
1269
|
+
const tasks = new CollaborativeTaskService(this.stateStore);
|
|
1270
|
+
const created = await inputs.createInputRequest({
|
|
1271
|
+
taskId: input.taskId,
|
|
1272
|
+
question: input.question,
|
|
1273
|
+
options: input.options,
|
|
1274
|
+
allowFreeText: input.allowFreeText
|
|
1275
|
+
});
|
|
1276
|
+
const prep = await this.mutateSession(async (state) => {
|
|
1277
|
+
const peerRef = input.requesterPeerRef ?? created.task.requesterParticipantId;
|
|
1278
|
+
const peer = resolvePeerRecord(state, peerRef);
|
|
1279
|
+
if (!peer) {
|
|
1280
|
+
throw createPairMeshError({
|
|
1281
|
+
code: "pairmesh.peer_not_found",
|
|
1282
|
+
message: "Requester peer not found for InputRequest delivery.",
|
|
1283
|
+
details: { peerRef }
|
|
1284
|
+
});
|
|
1285
|
+
}
|
|
1286
|
+
return {
|
|
1287
|
+
peer,
|
|
1288
|
+
bearerToken: requireOutboundBearer(state, peer),
|
|
1289
|
+
sessionId: state.session.id
|
|
1290
|
+
};
|
|
1291
|
+
});
|
|
1292
|
+
const wire = await sendPairMeshTaskRequest(prep.peer.a2aAgentUrl, {
|
|
1293
|
+
metadataVersion: PAIRMESH_METADATA_VERSION,
|
|
1294
|
+
sessionId: prep.sessionId,
|
|
1295
|
+
operation: "input.deliver",
|
|
1296
|
+
taskId: created.task.taskId,
|
|
1297
|
+
inputRequest: inputs.toRequesterView(created.inputRequest),
|
|
1298
|
+
task: tasks.toRequesterView(created.task)
|
|
1299
|
+
}, { bearerToken: prep.bearerToken });
|
|
1300
|
+
if (!wire.accepted) {
|
|
1301
|
+
throw createPairMeshError(wire.error);
|
|
1302
|
+
}
|
|
1303
|
+
return {
|
|
1304
|
+
task: created.task,
|
|
1305
|
+
inputRequest: created.inputRequest,
|
|
1306
|
+
delivered: true
|
|
1307
|
+
};
|
|
1308
|
+
}
|
|
1309
|
+
/** R5-3: answer a pending InputRequest (local authority if receiver, else A2A to owner). */
|
|
1310
|
+
async answerCollaborativeInputRequest(input) {
|
|
1311
|
+
const inputs = new InputRequestService(this.stateStore);
|
|
1312
|
+
const local = await inputs.getInputRequest(input.inputRequestId);
|
|
1313
|
+
const state = await this.requireActiveSession();
|
|
1314
|
+
const taskId = input.taskId ?? local?.taskId;
|
|
1315
|
+
if (!taskId) {
|
|
1316
|
+
throw createPairMeshError({
|
|
1317
|
+
code: "pairmesh.input_request_not_found",
|
|
1318
|
+
message: "InputRequest not found locally; provide taskId or receive a deliver first.",
|
|
1319
|
+
details: { inputRequestId: input.inputRequestId }
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
const task = await new CollaborativeTaskService(this.stateStore).getTask(taskId);
|
|
1323
|
+
const localIsOwner = task && task.ownerParticipantId === state.localParticipant.participant.id;
|
|
1324
|
+
if (localIsOwner) {
|
|
1325
|
+
return inputs.answerInputRequest({
|
|
1326
|
+
taskId,
|
|
1327
|
+
inputRequestId: input.inputRequestId,
|
|
1328
|
+
answer: input.answer,
|
|
1329
|
+
answeringParticipantId: state.localParticipant.participant.id,
|
|
1330
|
+
answerEventId: input.answerEventId ?? mintCollaborativeTaskEventId()
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
// Requester → receiver answer over A2A
|
|
1334
|
+
const ownerPeer = task ? resolvePeerRecord(state, task.ownerParticipantId) : null;
|
|
1335
|
+
if (!ownerPeer) {
|
|
1336
|
+
throw createPairMeshError({
|
|
1337
|
+
code: "pairmesh.peer_not_found",
|
|
1338
|
+
message: "Cannot resolve owner peer to submit InputRequest answer.",
|
|
1339
|
+
details: { taskId, inputRequestId: input.inputRequestId }
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
const bearerToken = requireOutboundBearer(state, ownerPeer);
|
|
1343
|
+
const answerEventId = input.answerEventId ?? mintCollaborativeTaskEventId();
|
|
1344
|
+
const wire = await sendPairMeshTaskRequest(ownerPeer.a2aAgentUrl, {
|
|
1345
|
+
metadataVersion: PAIRMESH_METADATA_VERSION,
|
|
1346
|
+
sessionId: state.session.id,
|
|
1347
|
+
operation: "input.answer",
|
|
1348
|
+
taskId: CollaborativeTaskIdSchema.parse(taskId),
|
|
1349
|
+
inputRequestId: InputRequestIdSchema.parse(input.inputRequestId),
|
|
1350
|
+
answer: input.answer,
|
|
1351
|
+
answerEventId: CollaborativeTaskEventIdSchema.parse(answerEventId)
|
|
1352
|
+
}, { bearerToken });
|
|
1353
|
+
if (!wire.accepted) {
|
|
1354
|
+
throw createPairMeshError(wire.error);
|
|
1355
|
+
}
|
|
1356
|
+
if (wire.task && wire.inputRequest) {
|
|
1357
|
+
await inputs.upsertMirroredDeliver({
|
|
1358
|
+
task: wire.task,
|
|
1359
|
+
inputRequest: wire.inputRequest
|
|
1360
|
+
});
|
|
1361
|
+
}
|
|
1362
|
+
return {
|
|
1363
|
+
task: await new CollaborativeTaskService(this.stateStore).getTask(taskId),
|
|
1364
|
+
inputRequest: await inputs.getInputRequest(input.inputRequestId),
|
|
1365
|
+
wire
|
|
1366
|
+
};
|
|
1367
|
+
}
|
|
1368
|
+
async listPendingInputRequests() {
|
|
1369
|
+
const inputs = new InputRequestService(this.stateStore);
|
|
1370
|
+
const pending = await inputs.listInputRequests({ status: "pending" });
|
|
1371
|
+
return pending.map((entry) => inputs.toRequesterView(entry));
|
|
1372
|
+
}
|
|
1373
|
+
async getCollaborativeTask(taskId) {
|
|
1374
|
+
return new CollaborativeTaskService(this.stateStore).getTask(taskId);
|
|
1375
|
+
}
|
|
1376
|
+
async getInputRequest(inputRequestId) {
|
|
1377
|
+
const inputs = new InputRequestService(this.stateStore);
|
|
1378
|
+
const row = await inputs.getInputRequest(inputRequestId);
|
|
1379
|
+
return row ? inputs.toRequesterView(row) : null;
|
|
1380
|
+
}
|
|
1381
|
+
async getLocalParticipantId() {
|
|
1382
|
+
const state = await this.requireActiveSession();
|
|
1383
|
+
return state.localParticipant.participant.id;
|
|
1384
|
+
}
|
|
1385
|
+
/** R5-7 — serialized active session snapshot for Control projections. */
|
|
1386
|
+
async readActiveSessionState() {
|
|
1387
|
+
return this.requireActiveSession();
|
|
1388
|
+
}
|
|
1389
|
+
/** R5-7 — CollaborativeTask domain service bound to this session store. */
|
|
1390
|
+
getCollaborativeTaskService() {
|
|
1391
|
+
return new CollaborativeTaskService(this.stateStore);
|
|
1392
|
+
}
|
|
1393
|
+
/** R5-7 — InputRequest domain service bound to this session store. */
|
|
1394
|
+
getInputRequestService() {
|
|
1395
|
+
return new InputRequestService(this.stateStore);
|
|
1396
|
+
}
|
|
1397
|
+
/**
|
|
1398
|
+
* R5-8-D3 — Heal CollaborativeTasks still blocked_on_action whose linked Action
|
|
1399
|
+
* is already terminal (Approve Once completed but observe was missed).
|
|
1400
|
+
*/
|
|
1401
|
+
async reconcileCollaborativeActionContinuations() {
|
|
1402
|
+
const events = await this.getContinuationOrchestrator().reconcileActionContinuations();
|
|
1403
|
+
if (events.length === 0) {
|
|
1404
|
+
return 0;
|
|
1405
|
+
}
|
|
1406
|
+
const providerId = await this.resolveGoalProviderId();
|
|
1407
|
+
const workspaceRoot = this.workspaceRoot ?? process.cwd();
|
|
1408
|
+
const worker = createGoalTaskWorker({
|
|
1409
|
+
providerId,
|
|
1410
|
+
workspaceRoot,
|
|
1411
|
+
...(providerId === "fake"
|
|
1412
|
+
? {
|
|
1413
|
+
fakeWorker: new FakeTaskWorker({
|
|
1414
|
+
instanceId: "reconcile-action-continue",
|
|
1415
|
+
script: [
|
|
1416
|
+
{
|
|
1417
|
+
kind: "completed",
|
|
1418
|
+
summary: "Continuation after Action reconcile (default Fake)."
|
|
1419
|
+
}
|
|
1420
|
+
]
|
|
1421
|
+
})
|
|
1422
|
+
}
|
|
1423
|
+
: {}),
|
|
1424
|
+
disableCursorSessionReuse: true
|
|
1425
|
+
});
|
|
1426
|
+
const orchestrator = this.getContinuationOrchestrator(worker);
|
|
1427
|
+
for (const event of events) {
|
|
1428
|
+
void orchestrator.continueTask(event.taskId).catch(() => {
|
|
1429
|
+
// Leave durable ContinuationEvent for pairmesh task continue.
|
|
1430
|
+
});
|
|
1431
|
+
}
|
|
1432
|
+
return events.length;
|
|
1433
|
+
}
|
|
1434
|
+
/**
|
|
1435
|
+
* Lazy ContinuationOrchestrator bound to ActionService + HostRequestBridge.
|
|
1436
|
+
* Caller may swap the worker (e.g. Fake multi-instance tests).
|
|
1437
|
+
*/
|
|
1438
|
+
getContinuationOrchestrator(worker) {
|
|
1439
|
+
if (!this.lazyContinuationOrchestrator) {
|
|
1440
|
+
const actionService = this.getActionService();
|
|
1441
|
+
const bridge = new HostRequestBridge({
|
|
1442
|
+
stateStore: this.stateStore,
|
|
1443
|
+
actionService
|
|
1444
|
+
});
|
|
1445
|
+
this.lazyContinuationOrchestrator = new ContinuationOrchestrator({
|
|
1446
|
+
stateStore: this.stateStore,
|
|
1447
|
+
actionService,
|
|
1448
|
+
hostBridge: bridge,
|
|
1449
|
+
worker: worker ??
|
|
1450
|
+
new FakeTaskWorker({
|
|
1451
|
+
instanceId: "session-default",
|
|
1452
|
+
script: [{ kind: "completed", summary: "Default Fake worker completed." }]
|
|
1453
|
+
})
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
else if (worker) {
|
|
1457
|
+
this.lazyContinuationOrchestrator.setWorker(worker);
|
|
1458
|
+
}
|
|
1459
|
+
return this.lazyContinuationOrchestrator;
|
|
1460
|
+
}
|
|
1461
|
+
/**
|
|
1462
|
+
* Owner-local collaborative goal start (receiver path).
|
|
1463
|
+
* Creates CollaborativeTask + first provider turn via GoalTaskWorker.
|
|
1464
|
+
*/
|
|
1465
|
+
async runCollaborativeGoal(input) {
|
|
1466
|
+
const state = await this.requireActiveSession();
|
|
1467
|
+
const ownerId = state.localParticipant.participant.id;
|
|
1468
|
+
const requesterId = input.requesterParticipantId ?? state.peers[0]?.participant.id ?? ownerId;
|
|
1469
|
+
const tasks = new CollaborativeTaskService(this.stateStore);
|
|
1470
|
+
const task = await tasks.createTask({
|
|
1471
|
+
sessionId: state.session.id,
|
|
1472
|
+
requesterParticipantId: requesterId,
|
|
1473
|
+
ownerParticipantId: ownerId,
|
|
1474
|
+
originalGoal: input.originalGoal
|
|
1475
|
+
});
|
|
1476
|
+
const providerId = await this.resolveGoalProviderId(input.providerId);
|
|
1477
|
+
const workspaceRoot = this.workspaceRoot ?? process.cwd();
|
|
1478
|
+
const worker = createGoalTaskWorker({
|
|
1479
|
+
providerId,
|
|
1480
|
+
workspaceRoot,
|
|
1481
|
+
...(providerId === "fake"
|
|
1482
|
+
? {
|
|
1483
|
+
fakeWorker: new FakeTaskWorker({
|
|
1484
|
+
instanceId: `goal-${task.taskId}`,
|
|
1485
|
+
onTurn: async () => ({
|
|
1486
|
+
kind: "completed",
|
|
1487
|
+
summary: "Fake goal worker completed first turn (no scripted host tools)."
|
|
1488
|
+
})
|
|
1489
|
+
})
|
|
1490
|
+
}
|
|
1491
|
+
: {}),
|
|
1492
|
+
disableCursorSessionReuse: true
|
|
1493
|
+
});
|
|
1494
|
+
const orchestrator = this.getContinuationOrchestrator(worker);
|
|
1495
|
+
const turn = await orchestrator.startTaskTurn(task.taskId);
|
|
1496
|
+
const latest = (await tasks.getTask(task.taskId));
|
|
1497
|
+
return {
|
|
1498
|
+
taskId: latest.taskId,
|
|
1499
|
+
status: latest.status,
|
|
1500
|
+
continuationSeq: latest.continuationSeq,
|
|
1501
|
+
turn,
|
|
1502
|
+
presentation: `Goal task ${latest.taskId} status=${latest.status}`
|
|
1503
|
+
};
|
|
1504
|
+
}
|
|
1505
|
+
/** Explicit continuation dispatch after InputRequest answer / Action observe. */
|
|
1506
|
+
async continueCollaborativeGoal(taskId) {
|
|
1507
|
+
const orchestrator = this.getContinuationOrchestrator();
|
|
1508
|
+
return orchestrator.continueTask(taskId);
|
|
1509
|
+
}
|
|
1510
|
+
/** Observe a terminal Action and emit ContinuationEvent (idempotent). */
|
|
1511
|
+
async observeCollaborativeActionTerminal(execution) {
|
|
1512
|
+
return this.getContinuationOrchestrator().observeActionTerminal(execution);
|
|
1513
|
+
}
|
|
1514
|
+
/**
|
|
1515
|
+
* Requester → remote owner: A2A task.goal create+start.
|
|
1516
|
+
* Pre-R5 peers without pairmesh.task skill → collaborative_task_unsupported.
|
|
1517
|
+
*/
|
|
1518
|
+
async startCollaborativeGoalOnPeer(input) {
|
|
1519
|
+
const prep = await this.mutateSession(async (state) => {
|
|
1520
|
+
const peer = resolvePeerRecord(state, input.peerRef);
|
|
1521
|
+
if (!peer) {
|
|
1522
|
+
throw createPairMeshError({
|
|
1523
|
+
code: "pairmesh.peer_not_found",
|
|
1524
|
+
message: "Peer not found for collaborative goal.",
|
|
1525
|
+
details: { peerRef: input.peerRef }
|
|
1526
|
+
});
|
|
1527
|
+
}
|
|
1528
|
+
return {
|
|
1529
|
+
peer,
|
|
1530
|
+
bearerToken: requireOutboundBearer(state, peer),
|
|
1531
|
+
sessionId: state.session.id
|
|
1532
|
+
};
|
|
1533
|
+
});
|
|
1534
|
+
const wire = await sendPairMeshTaskRequest(prep.peer.a2aAgentUrl, {
|
|
1535
|
+
metadataVersion: PAIRMESH_METADATA_VERSION,
|
|
1536
|
+
sessionId: prep.sessionId,
|
|
1537
|
+
operation: "task.goal",
|
|
1538
|
+
originalGoal: input.originalGoal
|
|
1539
|
+
}, { bearerToken: prep.bearerToken });
|
|
1540
|
+
if (!wire.accepted) {
|
|
1541
|
+
throw createPairMeshError(wire.error);
|
|
1542
|
+
}
|
|
1543
|
+
if (wire.task && wire.inputRequest) {
|
|
1544
|
+
await new InputRequestService(this.stateStore).upsertMirroredDeliver({
|
|
1545
|
+
task: wire.task,
|
|
1546
|
+
inputRequest: wire.inputRequest
|
|
1547
|
+
});
|
|
1548
|
+
}
|
|
1549
|
+
return {
|
|
1550
|
+
taskId: wire.taskId,
|
|
1551
|
+
status: wire.status ?? "working",
|
|
1552
|
+
...(typeof wire.continuationSeq === "number"
|
|
1553
|
+
? { continuationSeq: wire.continuationSeq }
|
|
1554
|
+
: {}),
|
|
1555
|
+
...(wire.pendingInputRequestId ? { pendingInputRequestId: wire.pendingInputRequestId } : {})
|
|
1556
|
+
};
|
|
1557
|
+
}
|
|
1558
|
+
/**
|
|
1559
|
+
* Requester → remote owner: short task.status hop (≪ ingress abort).
|
|
1560
|
+
* Always mirrors safe task (+ linkedAction) locally — R5-R1 CF1.
|
|
1561
|
+
*/
|
|
1562
|
+
async fetchCollaborativeTaskStatusOnPeer(input) {
|
|
1563
|
+
const prep = await this.mutateSession(async (state) => {
|
|
1564
|
+
const peer = resolvePeerRecord(state, input.peerRef);
|
|
1565
|
+
if (!peer) {
|
|
1566
|
+
throw createPairMeshError({
|
|
1567
|
+
code: "pairmesh.peer_not_found",
|
|
1568
|
+
message: "Peer not found for collaborative task status.",
|
|
1569
|
+
details: { peerRef: input.peerRef }
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1572
|
+
return {
|
|
1573
|
+
peer,
|
|
1574
|
+
bearerToken: requireOutboundBearer(state, peer),
|
|
1575
|
+
sessionId: state.session.id,
|
|
1576
|
+
localParticipantId: state.localParticipant.participant.id
|
|
1577
|
+
};
|
|
1578
|
+
});
|
|
1579
|
+
const wire = await sendPairMeshTaskRequest(prep.peer.a2aAgentUrl, {
|
|
1580
|
+
metadataVersion: PAIRMESH_METADATA_VERSION,
|
|
1581
|
+
sessionId: prep.sessionId,
|
|
1582
|
+
operation: "task.status",
|
|
1583
|
+
taskId: CollaborativeTaskIdSchema.parse(input.taskId)
|
|
1584
|
+
}, { bearerToken: prep.bearerToken });
|
|
1585
|
+
if (!wire.accepted) {
|
|
1586
|
+
throw createPairMeshError(wire.error);
|
|
1587
|
+
}
|
|
1588
|
+
if (wire.task && wire.inputRequest) {
|
|
1589
|
+
await new InputRequestService(this.stateStore).upsertMirroredDeliver({
|
|
1590
|
+
task: wire.task,
|
|
1591
|
+
inputRequest: wire.inputRequest
|
|
1592
|
+
});
|
|
1593
|
+
}
|
|
1594
|
+
else if (wire.task) {
|
|
1595
|
+
await new InputRequestService(this.stateStore).upsertMirroredTask({
|
|
1596
|
+
task: wire.task
|
|
1597
|
+
});
|
|
1598
|
+
}
|
|
1599
|
+
if (wire.linkedAction && wire.task) {
|
|
1600
|
+
const { upsertMirroredLinkedAction } = await import("../collaboration/requester-action-mirror.js");
|
|
1601
|
+
await this.stateStore.mutate((state) => {
|
|
1602
|
+
const upserted = upsertMirroredLinkedAction(state, wire.linkedAction, {
|
|
1603
|
+
requesterParticipantId: wire.task.requesterParticipantId,
|
|
1604
|
+
targetParticipantId: wire.task.ownerParticipantId,
|
|
1605
|
+
taskId: wire.task.taskId
|
|
1606
|
+
});
|
|
1607
|
+
state.actionExecutions = upserted.state.actionExecutions;
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
return {
|
|
1611
|
+
taskId: wire.taskId,
|
|
1612
|
+
status: wire.status ?? wire.task?.status ?? "working",
|
|
1613
|
+
...(typeof wire.continuationSeq === "number"
|
|
1614
|
+
? { continuationSeq: wire.continuationSeq }
|
|
1615
|
+
: {}),
|
|
1616
|
+
...(wire.pendingInputRequestId ? { pendingInputRequestId: wire.pendingInputRequestId } : {}),
|
|
1617
|
+
...(wire.task?.blockedOnActionId ? { blockedOnActionId: wire.task.blockedOnActionId } : {}),
|
|
1618
|
+
...(wire.task?.result?.summary ? { resultSummary: wire.task.result.summary } : {}),
|
|
1619
|
+
...(wire.task?.failure?.message ? { failureSummary: wire.task.failure.message } : {}),
|
|
1620
|
+
...(wire.linkedAction ? { linkedAction: wire.linkedAction } : {})
|
|
1621
|
+
};
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* Poll remote task.status until terminal, waiting_for_input, or waitMs elapses (R5-8-D2 / R5-R1).
|
|
1625
|
+
* Continues through blocked_on_action so Approve Once → result can land on the requester.
|
|
1626
|
+
* Each hop stays under relay ingress; long provider work lives on the receiver.
|
|
1627
|
+
*/
|
|
1628
|
+
async waitForCollaborativeGoalOnPeer(input) {
|
|
1629
|
+
const deadline = Date.now() + Math.max(0, input.waitMs);
|
|
1630
|
+
const pollIntervalMs = input.pollIntervalMs ?? 1_000;
|
|
1631
|
+
const continueStatuses = new Set(["working", "blocked_on_action"]);
|
|
1632
|
+
let latest = await this.fetchCollaborativeTaskStatusOnPeer({
|
|
1633
|
+
peerRef: input.peerRef,
|
|
1634
|
+
taskId: input.taskId
|
|
1635
|
+
});
|
|
1636
|
+
while (continueStatuses.has(latest.status) && Date.now() < deadline) {
|
|
1637
|
+
await new Promise((resolve) => {
|
|
1638
|
+
setTimeout(resolve, pollIntervalMs);
|
|
1639
|
+
});
|
|
1640
|
+
if (Date.now() >= deadline) {
|
|
1641
|
+
break;
|
|
1642
|
+
}
|
|
1643
|
+
latest = await this.fetchCollaborativeTaskStatusOnPeer({
|
|
1644
|
+
peerRef: input.peerRef,
|
|
1645
|
+
taskId: input.taskId
|
|
1646
|
+
});
|
|
1647
|
+
}
|
|
1648
|
+
return {
|
|
1649
|
+
...latest,
|
|
1650
|
+
timedOut: continueStatuses.has(latest.status)
|
|
1651
|
+
};
|
|
1652
|
+
}
|
|
1653
|
+
async resolveGoalProviderId(override) {
|
|
1654
|
+
if (override) {
|
|
1655
|
+
return override;
|
|
1656
|
+
}
|
|
1657
|
+
const workspaceRoot = this.workspaceRoot;
|
|
1658
|
+
if (!workspaceRoot) {
|
|
1659
|
+
return "fake";
|
|
1660
|
+
}
|
|
1661
|
+
try {
|
|
1662
|
+
const config = await loadConfigFile(configFilePath(workspaceRoot));
|
|
1663
|
+
const provider = config.codingAgent?.provider;
|
|
1664
|
+
if (provider === "claude-code" ||
|
|
1665
|
+
provider === "cursor" ||
|
|
1666
|
+
provider === "gemini-cli" ||
|
|
1667
|
+
provider === "fake") {
|
|
1668
|
+
return provider;
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
catch {
|
|
1672
|
+
// fall through
|
|
1673
|
+
}
|
|
1674
|
+
return "fake";
|
|
1675
|
+
}
|
|
1676
|
+
/** Lazy ActionService used by Control approve bridge and local receiver APIs. */
|
|
1677
|
+
getActionService() {
|
|
1678
|
+
if (this.injectedActionService) {
|
|
1679
|
+
return this.injectedActionService;
|
|
1680
|
+
}
|
|
1681
|
+
if (!this.lazyActionService) {
|
|
1682
|
+
const workspaceRoot = this.workspaceRoot;
|
|
1683
|
+
this.lazyActionService = new ActionService({
|
|
1684
|
+
stateFilePath: this.stateStore.stateFilePath,
|
|
1685
|
+
onLiveActionPersist: async (execution) => {
|
|
1686
|
+
await this.stateStore.update((latest) => {
|
|
1687
|
+
return {
|
|
1688
|
+
...latest,
|
|
1689
|
+
actionExecutions: [
|
|
1690
|
+
...(latest.actionExecutions ?? []).filter((entry) => entry.actionId !== execution.actionId),
|
|
1691
|
+
execution
|
|
1692
|
+
]
|
|
1693
|
+
};
|
|
1694
|
+
});
|
|
1695
|
+
},
|
|
1696
|
+
...(workspaceRoot
|
|
1697
|
+
? {
|
|
1698
|
+
workspaceRoot,
|
|
1699
|
+
proposalGenerator: new CodingAgentProposalGenerator(new LazyCodingAgentAdapter()),
|
|
1700
|
+
resolveExecutionProviderSnapshot: async () => {
|
|
1701
|
+
try {
|
|
1702
|
+
const config = await loadConfigFile(configFilePath(workspaceRoot));
|
|
1703
|
+
const providerId = config.codingAgent?.provider;
|
|
1704
|
+
if (!providerId)
|
|
1705
|
+
return undefined;
|
|
1706
|
+
return buildExecutionProviderSnapshot({ providerId });
|
|
1707
|
+
}
|
|
1708
|
+
catch {
|
|
1709
|
+
return undefined;
|
|
1710
|
+
}
|
|
1711
|
+
},
|
|
1712
|
+
loadTestsConfig: async () => {
|
|
1713
|
+
try {
|
|
1714
|
+
const config = await loadConfigFile(configFilePath(workspaceRoot));
|
|
1715
|
+
return config.tests;
|
|
1716
|
+
}
|
|
1717
|
+
catch {
|
|
1718
|
+
return {
|
|
1719
|
+
maxConcurrent: 1,
|
|
1720
|
+
sessionAllowedProfiles: [],
|
|
1721
|
+
profiles: {}
|
|
1722
|
+
};
|
|
1723
|
+
}
|
|
1724
|
+
},
|
|
1725
|
+
loadProcessConfig: async () => {
|
|
1726
|
+
try {
|
|
1727
|
+
const config = await loadConfigFile(configFilePath(workspaceRoot));
|
|
1728
|
+
return (config.processExecution ?? {
|
|
1729
|
+
maxConcurrent: 1,
|
|
1730
|
+
defaultTimeoutMs: 120_000,
|
|
1731
|
+
maxTimeoutMs: 600_000,
|
|
1732
|
+
maxOutputBytes: 262_144,
|
|
1733
|
+
env: {}
|
|
1734
|
+
});
|
|
1735
|
+
}
|
|
1736
|
+
catch {
|
|
1737
|
+
return {
|
|
1738
|
+
maxConcurrent: 1,
|
|
1739
|
+
defaultTimeoutMs: 120_000,
|
|
1740
|
+
maxTimeoutMs: 600_000,
|
|
1741
|
+
maxOutputBytes: 262_144,
|
|
1742
|
+
env: {}
|
|
1743
|
+
};
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
: {})
|
|
1748
|
+
});
|
|
1749
|
+
}
|
|
1750
|
+
return this.lazyActionService;
|
|
1751
|
+
}
|
|
1752
|
+
emitPermissionDecisionAudit(state, request, decision) {
|
|
1753
|
+
const peer = state.peers.find((entry) => entry.participant.id === request.participantId);
|
|
1754
|
+
this.emitAudit(buildAuditEvent({
|
|
1755
|
+
eventType: decision === "deny" ? "permission.denied" : "permission.allowed",
|
|
1756
|
+
projectId: state.localParticipant.agent.projectId,
|
|
1757
|
+
sessionId: state.session.id,
|
|
1758
|
+
sessionCode: state.sessionCode,
|
|
1759
|
+
actor: {
|
|
1760
|
+
participantId: state.localParticipant.participant.id,
|
|
1761
|
+
agentId: state.localParticipant.agent.id,
|
|
1762
|
+
peerName: state.localParticipant.agent.name
|
|
1763
|
+
},
|
|
1764
|
+
target: peer
|
|
1765
|
+
? {
|
|
1766
|
+
participantId: peer.participant.id,
|
|
1767
|
+
agentId: peer.agent.id,
|
|
1768
|
+
peerName: peer.agent.name
|
|
1769
|
+
}
|
|
1770
|
+
: { participantId: request.participantId },
|
|
1771
|
+
correlation: {
|
|
1772
|
+
requestId: request.correlationRequestId,
|
|
1773
|
+
...(request.threadId ? { threadId: request.threadId } : {})
|
|
1774
|
+
},
|
|
1775
|
+
metadata: {
|
|
1776
|
+
capabilityId: request.capabilityId,
|
|
1777
|
+
permissionRequestId: request.permissionRequestId,
|
|
1778
|
+
decision,
|
|
1779
|
+
...(decision === "allow-once"
|
|
1780
|
+
? { scope: "once" }
|
|
1781
|
+
: decision === "allow-session"
|
|
1782
|
+
? { scope: "session" }
|
|
1783
|
+
: {})
|
|
1784
|
+
}
|
|
1785
|
+
}));
|
|
1786
|
+
}
|
|
1787
|
+
emitActionDecisionAudit(state, execution, decision) {
|
|
1788
|
+
const eventType = execution.status === "denied" || decision === "deny"
|
|
1789
|
+
? "action.denied"
|
|
1790
|
+
: execution.status === "expired"
|
|
1791
|
+
? "action.failed"
|
|
1792
|
+
: execution.status === "completed"
|
|
1793
|
+
? "action.completed"
|
|
1794
|
+
: "action.approved";
|
|
1795
|
+
const peer = state.peers.find((entry) => entry.participant.id === execution.requesterParticipantId);
|
|
1796
|
+
this.emitAudit(buildAuditEvent({
|
|
1797
|
+
eventType,
|
|
1798
|
+
projectId: state.localParticipant.agent.projectId,
|
|
1799
|
+
sessionId: state.session.id,
|
|
1800
|
+
sessionCode: state.sessionCode,
|
|
1801
|
+
actor: {
|
|
1802
|
+
participantId: state.localParticipant.participant.id,
|
|
1803
|
+
agentId: state.localParticipant.agent.id,
|
|
1804
|
+
peerName: state.localParticipant.agent.name
|
|
1805
|
+
},
|
|
1806
|
+
target: peer
|
|
1807
|
+
? {
|
|
1808
|
+
participantId: peer.participant.id,
|
|
1809
|
+
agentId: peer.agent.id,
|
|
1810
|
+
peerName: peer.agent.name
|
|
1811
|
+
}
|
|
1812
|
+
: { participantId: execution.requesterParticipantId },
|
|
1813
|
+
correlation: { requestId: execution.actionId },
|
|
1814
|
+
metadata: {
|
|
1815
|
+
actionId: execution.actionId,
|
|
1816
|
+
actionType: execution.actionType,
|
|
1817
|
+
capabilityId: execution.capabilityId,
|
|
1818
|
+
requesterParticipantId: execution.requesterParticipantId,
|
|
1819
|
+
targetParticipantId: execution.targetParticipantId,
|
|
1820
|
+
status: execution.status,
|
|
1821
|
+
...(execution.permissionRequestId
|
|
1822
|
+
? { permissionRequestId: execution.permissionRequestId }
|
|
1823
|
+
: {}),
|
|
1824
|
+
...(execution.artifactRefs?.[0]
|
|
1825
|
+
? {
|
|
1826
|
+
artifactId: execution.artifactRefs[0].artifactId,
|
|
1827
|
+
artifactHash: execution.artifactRefs[0].contentHash
|
|
1828
|
+
}
|
|
1829
|
+
: {})
|
|
1830
|
+
}
|
|
1831
|
+
}));
|
|
1832
|
+
}
|
|
1833
|
+
async leaveSession() {
|
|
1834
|
+
const state = await this.stateStore.load();
|
|
1835
|
+
if (!state) {
|
|
1836
|
+
await clearRelayRoute(relayRouteFileFromStateFile(this.stateStore.stateFilePath));
|
|
1837
|
+
throw createPairMeshError({
|
|
1838
|
+
code: "pairmesh.session_not_found",
|
|
1839
|
+
message: "No local PairMesh session found."
|
|
1840
|
+
});
|
|
1841
|
+
}
|
|
1842
|
+
// Discarding the state discards every credential the session issued, so no
|
|
1843
|
+
// bearer or invite can be replayed against a later session on this machine.
|
|
1844
|
+
this.emitAudit(buildAuditEvent({
|
|
1845
|
+
eventType: "session.left",
|
|
1846
|
+
projectId: state.localParticipant.agent.projectId,
|
|
1847
|
+
sessionId: state.session.id,
|
|
1848
|
+
sessionCode: state.sessionCode,
|
|
1849
|
+
actor: {
|
|
1850
|
+
participantId: state.localParticipant.participant.id,
|
|
1851
|
+
agentId: state.localParticipant.agent.id,
|
|
1852
|
+
peerName: state.localParticipant.agent.name
|
|
1853
|
+
},
|
|
1854
|
+
metadata: {}
|
|
1855
|
+
}));
|
|
1856
|
+
await this.stateStore.clear();
|
|
1857
|
+
await clearRelayRoute(relayRouteFileFromStateFile(this.stateStore.stateFilePath));
|
|
1858
|
+
await getRuntimeRelayBridge()?.stop({ clearPersisted: true, intentional: true });
|
|
1859
|
+
}
|
|
1860
|
+
async bindRelayPeerTransport(endpoint) {
|
|
1861
|
+
if (typeof endpoint === "string") {
|
|
1862
|
+
const url = endpoint.replace(/\/$/, "");
|
|
1863
|
+
const state = await this.stateStore.update((latest) => ({
|
|
1864
|
+
...requireActiveState(latest),
|
|
1865
|
+
peers: latest.peers.map((peer) => ({
|
|
1866
|
+
...peer,
|
|
1867
|
+
a2aAgentUrl: url,
|
|
1868
|
+
connectivity: {
|
|
1869
|
+
mode: "relay",
|
|
1870
|
+
relayHandle: peer.connectivity?.relayHandle,
|
|
1871
|
+
peerTransportPublicKey: peer.connectivity?.peerTransportPublicKey
|
|
1872
|
+
}
|
|
1873
|
+
}))
|
|
1874
|
+
}));
|
|
1875
|
+
for (const peer of state.peers) {
|
|
1876
|
+
invalidatePeerHealthCache({ peerName: peer.agent.name });
|
|
1877
|
+
}
|
|
1878
|
+
return;
|
|
1879
|
+
}
|
|
1880
|
+
const url = endpoint.localEndpoint.replace(/\/$/, "");
|
|
1881
|
+
await this.stateStore.update((latest) => ({
|
|
1882
|
+
...requireActiveState(latest),
|
|
1883
|
+
peers: latest.peers.map((peer) => {
|
|
1884
|
+
if (peer.participant.id !== endpoint.peerParticipantId) {
|
|
1885
|
+
return peer;
|
|
1886
|
+
}
|
|
1887
|
+
return {
|
|
1888
|
+
...peer,
|
|
1889
|
+
a2aAgentUrl: url,
|
|
1890
|
+
connectivity: {
|
|
1891
|
+
mode: "relay",
|
|
1892
|
+
relayHandle: peer.connectivity?.relayHandle,
|
|
1893
|
+
peerTransportPublicKey: peer.connectivity?.peerTransportPublicKey
|
|
1894
|
+
}
|
|
1895
|
+
};
|
|
1896
|
+
})
|
|
1897
|
+
}));
|
|
1898
|
+
}
|
|
1899
|
+
async bindRelayPeerTransportForRelayPresence(input) {
|
|
1900
|
+
const run = this.presenceBindQueue.then(() => this.bindRelayPeerTransportForRelayPresenceLocked(input));
|
|
1901
|
+
this.presenceBindQueue = run.then(() => undefined, () => undefined);
|
|
1902
|
+
return run;
|
|
1903
|
+
}
|
|
1904
|
+
async bindRelayPeerTransportForRelayPresenceLocked(input) {
|
|
1905
|
+
const url = input.localEndpoint.replace(/\/$/, "");
|
|
1906
|
+
const pub = input.transportPublicKey.trim().toLowerCase();
|
|
1907
|
+
const relayParticipantId = input.relayParticipantId.trim();
|
|
1908
|
+
const cardName = await fetchRelayPeerAgentCardName(url);
|
|
1909
|
+
let binding;
|
|
1910
|
+
await this.stateStore.update((latest) => {
|
|
1911
|
+
requireActiveState(latest);
|
|
1912
|
+
const cardMatches = (peer) => !cardName || peer.agent.name === cardName;
|
|
1913
|
+
let matched = latest.peers.find((peer) => peer.connectivity?.relayPresenceId === relayParticipantId);
|
|
1914
|
+
if (matched && !cardMatches(matched)) {
|
|
1915
|
+
matched = undefined;
|
|
1916
|
+
}
|
|
1917
|
+
if (!matched) {
|
|
1918
|
+
matched = latest.peers.find((peer) => isPairedWithLocal(peer) &&
|
|
1919
|
+
peer.connectivity?.peerTransportPublicKey?.toLowerCase() === pub);
|
|
1920
|
+
if (matched && !cardMatches(matched)) {
|
|
1921
|
+
matched = undefined;
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
if (!matched && cardName) {
|
|
1925
|
+
const byAgent = latest.peers.filter((peer) => isPairedWithLocal(peer) && peer.agent.name === cardName);
|
|
1926
|
+
if (byAgent.length === 1) {
|
|
1927
|
+
matched = byAgent[0];
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
if (!matched) {
|
|
1931
|
+
// Only safe when exactly one paired peer still lacks a presence binding.
|
|
1932
|
+
const candidates = latest.peers.filter((peer) => isPairedWithLocal(peer) && !peer.connectivity?.relayPresenceId);
|
|
1933
|
+
if (candidates.length === 1 && cardMatches(candidates[0])) {
|
|
1934
|
+
matched = candidates[0];
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
if (!matched) {
|
|
1938
|
+
// Single-peer sessions only: remap the sole relay peer after presence churn.
|
|
1939
|
+
const paired = latest.peers.filter((peer) => isPairedWithLocal(peer));
|
|
1940
|
+
if (paired.length === 1 && cardMatches(paired[0])) {
|
|
1941
|
+
matched = paired[0];
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
if (!matched) {
|
|
1945
|
+
return latest;
|
|
1946
|
+
}
|
|
1947
|
+
const matchedId = matched.participant.id;
|
|
1948
|
+
const next = {
|
|
1949
|
+
...latest,
|
|
1950
|
+
peers: latest.peers.map((peer) => {
|
|
1951
|
+
if (peer.participant.id === matchedId) {
|
|
1952
|
+
return {
|
|
1953
|
+
...peer,
|
|
1954
|
+
a2aAgentUrl: url,
|
|
1955
|
+
connectivity: {
|
|
1956
|
+
mode: "relay",
|
|
1957
|
+
relayPresenceId: relayParticipantId,
|
|
1958
|
+
peerTransportPublicKey: pub,
|
|
1959
|
+
relayHandle: peer.connectivity?.relayHandle
|
|
1960
|
+
}
|
|
1961
|
+
};
|
|
1962
|
+
}
|
|
1963
|
+
// Drop stolen presence / pubkey / duplicate URL so a prior swap cannot stick.
|
|
1964
|
+
const samePresence = peer.connectivity?.relayPresenceId === relayParticipantId;
|
|
1965
|
+
const sameUrl = peer.a2aAgentUrl.replace(/\/$/, "") === url;
|
|
1966
|
+
const samePub = peer.connectivity?.peerTransportPublicKey?.toLowerCase() === pub;
|
|
1967
|
+
if (!samePresence && !sameUrl && !samePub) {
|
|
1968
|
+
return peer;
|
|
1969
|
+
}
|
|
1970
|
+
return {
|
|
1971
|
+
...peer,
|
|
1972
|
+
connectivity: {
|
|
1973
|
+
mode: "relay",
|
|
1974
|
+
...(peer.connectivity?.relayHandle
|
|
1975
|
+
? { relayHandle: peer.connectivity.relayHandle }
|
|
1976
|
+
: {})
|
|
1977
|
+
}
|
|
1978
|
+
};
|
|
1979
|
+
})
|
|
1980
|
+
};
|
|
1981
|
+
binding = { peer: matched, previousUrl: matched.a2aAgentUrl };
|
|
1982
|
+
return next;
|
|
1983
|
+
});
|
|
1984
|
+
if (!binding) {
|
|
1985
|
+
return;
|
|
1986
|
+
}
|
|
1987
|
+
const bound = binding;
|
|
1988
|
+
invalidatePeerHealthCache({ peerName: bound.peer.agent.name });
|
|
1989
|
+
if (bound.previousUrl && bound.previousUrl.replace(/\/$/, "") !== url) {
|
|
1990
|
+
invalidatePeerHealthCache({ a2aAgentUrl: bound.previousUrl });
|
|
1991
|
+
}
|
|
1992
|
+
const peerName = bound.peer.agent.name;
|
|
1993
|
+
const peerUrl = url;
|
|
1994
|
+
const bearer = bound.peer.outboundBearer;
|
|
1995
|
+
const { getReliabilityTracker } = await import("../reliability/tracker.js");
|
|
1996
|
+
const { getRuntimeRelayBridge } = await import("../connectivity/relay-runtime.js");
|
|
1997
|
+
const tracker = getReliabilityTracker();
|
|
1998
|
+
const bridge = getRuntimeRelayBridge();
|
|
1999
|
+
const recoveryCorrelation = bridge?.getRecoveryCorrelationId() ?? undefined;
|
|
2000
|
+
tracker.begin("peer.presence_to_ready", {
|
|
2001
|
+
transport: "relay",
|
|
2002
|
+
replacePrior: true,
|
|
2003
|
+
...(recoveryCorrelation ? { correlationId: recoveryCorrelation } : {})
|
|
2004
|
+
});
|
|
2005
|
+
void fetchPeerHealth(peerName, peerUrl, { bearerToken: bearer, skipCache: true })
|
|
2006
|
+
.then((health) => {
|
|
2007
|
+
if (health.reachable) {
|
|
2008
|
+
tracker.completeActive("peer.presence_to_ready", {
|
|
2009
|
+
outcome: "success",
|
|
2010
|
+
phase: "peer_ready"
|
|
2011
|
+
});
|
|
2012
|
+
if (recoveryCorrelation) {
|
|
2013
|
+
tracker.completeActive("recovery.trigger_to_peer_ready", {
|
|
2014
|
+
outcome: "success",
|
|
2015
|
+
correlationId: recoveryCorrelation,
|
|
2016
|
+
reason: bridge?.getLastReconnectReason()
|
|
2017
|
+
});
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
else {
|
|
2021
|
+
tracker.completeActive("peer.presence_to_ready", {
|
|
2022
|
+
outcome: "failed",
|
|
2023
|
+
reason: "peer_unreachable"
|
|
2024
|
+
});
|
|
2025
|
+
}
|
|
2026
|
+
})
|
|
2027
|
+
.catch(() => {
|
|
2028
|
+
tracker.completeActive("peer.presence_to_ready", {
|
|
2029
|
+
outcome: "failed",
|
|
2030
|
+
reason: "peer_health_error"
|
|
2031
|
+
});
|
|
2032
|
+
});
|
|
2033
|
+
}
|
|
2034
|
+
async sendToPeer(peerRef, message) {
|
|
2035
|
+
const state = await this.requireActiveSession();
|
|
2036
|
+
const peer = resolvePeerRecord(state, peerRef);
|
|
2037
|
+
if (!peer) {
|
|
2038
|
+
throw createPairMeshError({
|
|
2039
|
+
code: "pairmesh.peer_not_found",
|
|
2040
|
+
message: "Peer not found in the active PairMesh session.",
|
|
2041
|
+
details: { peerRef }
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
return await sendA2AMessage({
|
|
2045
|
+
targetAgentUrl: peer.a2aAgentUrl,
|
|
2046
|
+
message,
|
|
2047
|
+
pairmeshSessionId: state.session.id,
|
|
2048
|
+
bearerToken: requireOutboundBearer(state, peer)
|
|
2049
|
+
});
|
|
2050
|
+
}
|
|
2051
|
+
async getPeerHealth(peerRef) {
|
|
2052
|
+
const state = await this.requireActiveSession();
|
|
2053
|
+
const peer = resolvePeerRecord(state, peerRef);
|
|
2054
|
+
if (!peer) {
|
|
2055
|
+
throw createPairMeshError({
|
|
2056
|
+
code: "pairmesh.peer_not_found",
|
|
2057
|
+
message: "Peer not found in the active PairMesh session.",
|
|
2058
|
+
details: { peerRef }
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
2061
|
+
return await fetchPeerHealth(peer.agent.name, peer.a2aAgentUrl, {
|
|
2062
|
+
bearerToken: peer.outboundBearer
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
async getInspectionStatus(requestId) {
|
|
2066
|
+
const priorStatus = await this.stateStore.enqueue(async () => {
|
|
2067
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2068
|
+
return findExecutionRecord(state, requestId)?.status;
|
|
2069
|
+
});
|
|
2070
|
+
const synced = await syncExecutionFromRemoteTask(requestId, this.stateStore, {
|
|
2071
|
+
maxDurationMs: this.inspectionTiming.maxDurationMs,
|
|
2072
|
+
quickSync: true
|
|
2073
|
+
});
|
|
2074
|
+
await this.stateStore.enqueue(async () => {
|
|
2075
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2076
|
+
this.auditSyncedStatusTransition(state, synced.record, priorStatus);
|
|
2077
|
+
});
|
|
2078
|
+
const peer = await this.stateStore.enqueue(async () => {
|
|
2079
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2080
|
+
return state.peers.find((candidate) => candidate.participant.id === synced.record.peerId);
|
|
2081
|
+
});
|
|
2082
|
+
return buildInspectionStatusView(synced.record, {
|
|
2083
|
+
...(peer ? { safePeer: toSafePeerMeta(peer) } : {})
|
|
2084
|
+
});
|
|
2085
|
+
}
|
|
2086
|
+
async waitForInspection(requestId, options = {}) {
|
|
2087
|
+
const waitMs = clampInspectionWaitMs(options.waitMs, this.inspectionTiming, {
|
|
2088
|
+
clampToMcpMax: options.clampToMcpMax
|
|
2089
|
+
});
|
|
2090
|
+
const started = Date.now();
|
|
2091
|
+
let lastTransportUnavailable = false;
|
|
2092
|
+
let record = await this.stateStore.enqueue(async () => {
|
|
2093
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2094
|
+
const found = findExecutionRecord(state, requestId);
|
|
2095
|
+
if (!found) {
|
|
2096
|
+
throw createPairMeshError({
|
|
2097
|
+
code: "pairmesh.inspection_not_found",
|
|
2098
|
+
message: "No inspection execution found for the given request id.",
|
|
2099
|
+
details: { requestId }
|
|
2100
|
+
});
|
|
2101
|
+
}
|
|
2102
|
+
return found;
|
|
2103
|
+
});
|
|
2104
|
+
while (Date.now() - started < waitMs) {
|
|
2105
|
+
if (options.signal?.aborted) {
|
|
2106
|
+
throw createPairMeshError({
|
|
2107
|
+
code: "pairmesh.inspection_cancelled",
|
|
2108
|
+
message: "Inspection wait was cancelled."
|
|
2109
|
+
});
|
|
2110
|
+
}
|
|
2111
|
+
const priorStatus = record.status;
|
|
2112
|
+
try {
|
|
2113
|
+
const synced = await syncExecutionFromRemoteTask(requestId, this.stateStore, {
|
|
2114
|
+
maxDurationMs: this.inspectionTiming.maxDurationMs,
|
|
2115
|
+
signal: options.signal
|
|
2116
|
+
});
|
|
2117
|
+
record = synced.record;
|
|
2118
|
+
lastTransportUnavailable = false;
|
|
2119
|
+
}
|
|
2120
|
+
catch (error) {
|
|
2121
|
+
if (isPairMeshErrorLike(error) &&
|
|
2122
|
+
(error.code === "pairmesh.peer_transport_unavailable" ||
|
|
2123
|
+
error.code === "pairmesh.peer_unreachable")) {
|
|
2124
|
+
lastTransportUnavailable = true;
|
|
2125
|
+
await delay(Math.min(this.inspectionTiming.pollIntervalMs, waitMs), options.signal);
|
|
2126
|
+
continue;
|
|
2127
|
+
}
|
|
2128
|
+
throw error;
|
|
2129
|
+
}
|
|
2130
|
+
await this.stateStore.enqueue(async () => {
|
|
2131
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2132
|
+
this.auditSyncedStatusTransition(state, record, priorStatus);
|
|
2133
|
+
});
|
|
2134
|
+
if (record.status === "completed" && record.result) {
|
|
2135
|
+
const safePeer = await this.stateStore.enqueue(async () => {
|
|
2136
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2137
|
+
return this.safePeerFromExecution(state, record);
|
|
2138
|
+
});
|
|
2139
|
+
return {
|
|
2140
|
+
completed: true,
|
|
2141
|
+
requestId: record.requestId,
|
|
2142
|
+
threadId: record.threadId,
|
|
2143
|
+
status: "completed",
|
|
2144
|
+
lifecycle: "completed",
|
|
2145
|
+
peer: record.peerName,
|
|
2146
|
+
...safePeer,
|
|
2147
|
+
...(record.progressEvents?.length ? { progressEvents: record.progressEvents } : {}),
|
|
2148
|
+
result: {
|
|
2149
|
+
summary: record.result.summary,
|
|
2150
|
+
findings: record.result.findings,
|
|
2151
|
+
references: record.result.references ?? []
|
|
2152
|
+
}
|
|
2153
|
+
};
|
|
2154
|
+
}
|
|
2155
|
+
if (["failed", "timed_out", "cancelled"].includes(record.status)) {
|
|
2156
|
+
const safePeer = await this.stateStore.enqueue(async () => {
|
|
2157
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2158
|
+
return this.safePeerFromExecution(state, record);
|
|
2159
|
+
});
|
|
2160
|
+
const lifecycle = record.status === "timed_out"
|
|
2161
|
+
? "timed_out"
|
|
2162
|
+
: record.status === "cancelled"
|
|
2163
|
+
? "cancelled"
|
|
2164
|
+
: "failed";
|
|
2165
|
+
return {
|
|
2166
|
+
completed: false,
|
|
2167
|
+
requestId: record.requestId,
|
|
2168
|
+
threadId: record.threadId,
|
|
2169
|
+
status: record.status,
|
|
2170
|
+
lifecycle,
|
|
2171
|
+
peer: record.peerName,
|
|
2172
|
+
...safePeer,
|
|
2173
|
+
...(record.progressEvents?.length ? { progressEvents: record.progressEvents } : {}),
|
|
2174
|
+
...(record.error ? { error: record.error } : {}),
|
|
2175
|
+
message: record.message ?? record.error?.message
|
|
2176
|
+
};
|
|
2177
|
+
}
|
|
2178
|
+
await delay(Math.min(this.inspectionTiming.pollIntervalMs, waitMs), options.signal);
|
|
2179
|
+
}
|
|
2180
|
+
await this.mutateSession((state) => {
|
|
2181
|
+
setExecutionLocalWaitState(state, requestId, "expired");
|
|
2182
|
+
});
|
|
2183
|
+
record = await this.stateStore.enqueue(async () => {
|
|
2184
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2185
|
+
return findExecutionRecord(state, requestId);
|
|
2186
|
+
});
|
|
2187
|
+
const peerName = record.peerName;
|
|
2188
|
+
// A running execution with no remote task id never reached the peer (e.g.
|
|
2189
|
+
// auth failure left a zombie before this fix). Do not tell the client the
|
|
2190
|
+
// remote task is "running normally" — that causes endless wait loops.
|
|
2191
|
+
if (!record.a2aTaskReference?.a2aTaskId &&
|
|
2192
|
+
(record.status === "running" || record.status === "pending")) {
|
|
2193
|
+
await this.mutateSession((state) => {
|
|
2194
|
+
completeExecutionRecord(state, requestId, "failed", {
|
|
2195
|
+
code: "pairmesh.internal_error",
|
|
2196
|
+
message: "Inspection never obtained a remote task from the peer. Retry with pairmesh_ask_peer (do not keep waiting)."
|
|
2197
|
+
});
|
|
2198
|
+
});
|
|
2199
|
+
record = await this.stateStore.enqueue(async () => {
|
|
2200
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2201
|
+
return findExecutionRecord(state, requestId);
|
|
2202
|
+
});
|
|
2203
|
+
const safePeer = await this.stateStore.enqueue(async () => {
|
|
2204
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2205
|
+
return this.safePeerFromExecution(state, record);
|
|
2206
|
+
});
|
|
2207
|
+
return {
|
|
2208
|
+
completed: false,
|
|
2209
|
+
requestId: record.requestId,
|
|
2210
|
+
threadId: record.threadId,
|
|
2211
|
+
status: "failed",
|
|
2212
|
+
lifecycle: "failed",
|
|
2213
|
+
peer: peerName,
|
|
2214
|
+
...safePeer,
|
|
2215
|
+
...(record.progressEvents?.length ? { progressEvents: record.progressEvents } : {}),
|
|
2216
|
+
...(record.error ? { error: record.error } : {}),
|
|
2217
|
+
message: record.message ?? record.error?.message
|
|
2218
|
+
};
|
|
2219
|
+
}
|
|
2220
|
+
const safePeer = await this.stateStore.enqueue(async () => {
|
|
2221
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2222
|
+
return this.safePeerFromExecution(state, record);
|
|
2223
|
+
});
|
|
2224
|
+
if (lastTransportUnavailable && (record.status === "running" || record.status === "pending")) {
|
|
2225
|
+
return {
|
|
2226
|
+
completed: false,
|
|
2227
|
+
requestId: record.requestId,
|
|
2228
|
+
threadId: record.threadId,
|
|
2229
|
+
status: record.status === "running" ? "working" : record.status,
|
|
2230
|
+
lifecycle: "peer_transport_unavailable",
|
|
2231
|
+
peer: peerName,
|
|
2232
|
+
...safePeer,
|
|
2233
|
+
...(record.progressEvents?.length ? { progressEvents: record.progressEvents } : {}),
|
|
2234
|
+
error: {
|
|
2235
|
+
code: "pairmesh.peer_transport_unavailable",
|
|
2236
|
+
message: formatInspectionTransportUnavailableMessage(peerName, record.requestId)
|
|
2237
|
+
},
|
|
2238
|
+
message: formatInspectionTransportUnavailableMessage(peerName, record.requestId)
|
|
2239
|
+
};
|
|
2240
|
+
}
|
|
2241
|
+
const stillRunning = record.status === "running" || record.status === "pending";
|
|
2242
|
+
return {
|
|
2243
|
+
completed: false,
|
|
2244
|
+
requestId: record.requestId,
|
|
2245
|
+
threadId: record.threadId,
|
|
2246
|
+
status: record.status === "running" ? "working" : record.status,
|
|
2247
|
+
lifecycle: stillRunning ? "requester_wait_expired" : "running",
|
|
2248
|
+
peer: peerName,
|
|
2249
|
+
...safePeer,
|
|
2250
|
+
...(record.progressEvents?.length ? { progressEvents: record.progressEvents } : {}),
|
|
2251
|
+
message: stillRunning
|
|
2252
|
+
? formatInspectionWaitExpiredMessage(peerName, record.requestId)
|
|
2253
|
+
: (record.message ?? formatInspectionStillWorkingMessage(peerName, record.requestId))
|
|
2254
|
+
};
|
|
2255
|
+
}
|
|
2256
|
+
async cancelInspection(requestId) {
|
|
2257
|
+
const controller = this.activeOutbound.get(requestId);
|
|
2258
|
+
if (controller) {
|
|
2259
|
+
controller.abort();
|
|
2260
|
+
this.activeOutbound.delete(requestId);
|
|
2261
|
+
}
|
|
2262
|
+
const cancelMeta = await this.stateStore.enqueue(async () => {
|
|
2263
|
+
const state = await this.stateStore.load();
|
|
2264
|
+
if (!state) {
|
|
2265
|
+
return null;
|
|
2266
|
+
}
|
|
2267
|
+
const record = findExecutionRecord(state, requestId);
|
|
2268
|
+
if (!record) {
|
|
2269
|
+
return { priorStatus: undefined };
|
|
2270
|
+
}
|
|
2271
|
+
const peerUrl = record.peerAgentUrl ?? record.a2aTaskReference?.agent?.a2aAgentCardUrl;
|
|
2272
|
+
const bearerToken = state.peers.find((peer) => peer.participant.id === record.peerId)?.outboundBearer;
|
|
2273
|
+
return {
|
|
2274
|
+
priorStatus: record.status,
|
|
2275
|
+
a2aTaskId: record.a2aTaskReference?.a2aTaskId,
|
|
2276
|
+
peerUrl,
|
|
2277
|
+
bearerToken
|
|
2278
|
+
};
|
|
2279
|
+
});
|
|
2280
|
+
if (cancelMeta?.a2aTaskId && cancelMeta.peerUrl) {
|
|
2281
|
+
try {
|
|
2282
|
+
await cancelPairMeshInspectionTask(cancelMeta.peerUrl, cancelMeta.a2aTaskId, cancelMeta.bearerToken);
|
|
2283
|
+
}
|
|
2284
|
+
catch {
|
|
2285
|
+
// Best-effort remote cancellation.
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2288
|
+
if (cancelMeta) {
|
|
2289
|
+
await this.mutateSession((state) => {
|
|
2290
|
+
completeExecutionRecord(state, requestId, "cancelled", {
|
|
2291
|
+
code: "pairmesh.inspection_cancelled",
|
|
2292
|
+
message: "Inspection was cancelled."
|
|
2293
|
+
});
|
|
2294
|
+
const cancelled = findExecutionRecord(state, requestId);
|
|
2295
|
+
if (cancelled && cancelMeta.priorStatus !== "cancelled") {
|
|
2296
|
+
this.auditSyncedStatusTransition(state, cancelled, cancelMeta.priorStatus);
|
|
2297
|
+
}
|
|
2298
|
+
});
|
|
2299
|
+
}
|
|
2300
|
+
return { requestId, cancelled: controller !== undefined || cancelMeta !== null };
|
|
2301
|
+
}
|
|
2302
|
+
async askPeer(peerRef, question) {
|
|
2303
|
+
this.assertRelayTransportAllowsInspection();
|
|
2304
|
+
const prep = await this.mutateSession(async (state) => {
|
|
2305
|
+
const peer = resolvePeerRecord(state, peerRef);
|
|
2306
|
+
if (!peer) {
|
|
2307
|
+
throw createPairMeshError({
|
|
2308
|
+
code: "pairmesh.peer_not_found",
|
|
2309
|
+
message: "Peer not found in the active PairMesh session.",
|
|
2310
|
+
details: { peerRef }
|
|
2311
|
+
});
|
|
2312
|
+
}
|
|
2313
|
+
assertPairedForAsk(state, peer);
|
|
2314
|
+
const approvalResume = findResumableApprovalRequiredExecution(state, {
|
|
2315
|
+
peerId: peer.participant.id,
|
|
2316
|
+
question
|
|
2317
|
+
});
|
|
2318
|
+
if (approvalResume) {
|
|
2319
|
+
return {
|
|
2320
|
+
kind: "approval_resume",
|
|
2321
|
+
peer,
|
|
2322
|
+
threadId: approvalResume.threadId,
|
|
2323
|
+
turnNumber: approvalResume.turnNumber,
|
|
2324
|
+
reuseRequestId: approvalResume.requestId
|
|
2325
|
+
};
|
|
2326
|
+
}
|
|
2327
|
+
const duplicate = findRecentDuplicateExecution(state, {
|
|
2328
|
+
peerId: peer.participant.id,
|
|
2329
|
+
question,
|
|
2330
|
+
windowMs: this.inspectionTiming.duplicateQuestionWindowMs
|
|
2331
|
+
});
|
|
2332
|
+
if (duplicate) {
|
|
2333
|
+
return { kind: "duplicate", peer, duplicate };
|
|
2334
|
+
}
|
|
2335
|
+
const threadRecord = createInitiatorThreadRecord({
|
|
2336
|
+
state,
|
|
2337
|
+
targetPeerName: peerRef.trim(),
|
|
2338
|
+
targetPeerId: peer.participant.id,
|
|
2339
|
+
topic: question.slice(0, 200)
|
|
2340
|
+
});
|
|
2341
|
+
state.inspectionThreads.push(threadRecord);
|
|
2342
|
+
return {
|
|
2343
|
+
kind: "new",
|
|
2344
|
+
peer,
|
|
2345
|
+
threadId: threadRecord.thread.id
|
|
2346
|
+
};
|
|
2347
|
+
});
|
|
2348
|
+
if (prep.kind === "duplicate") {
|
|
2349
|
+
const state = await this.requireActiveSession();
|
|
2350
|
+
return this.reuseDuplicateInspectionResult(state, prep.peer, prep.duplicate);
|
|
2351
|
+
}
|
|
2352
|
+
if (prep.kind === "approval_resume") {
|
|
2353
|
+
return await this.executeInspectionTurn(prep.threadId, prep.peer, question, prep.turnNumber, undefined, prep.reuseRequestId);
|
|
2354
|
+
}
|
|
2355
|
+
return await this.executeInspectionTurn(prep.threadId, prep.peer, question, 1);
|
|
2356
|
+
}
|
|
2357
|
+
async followUpInspection(threadId, question, options) {
|
|
2358
|
+
this.assertRelayTransportAllowsInspection();
|
|
2359
|
+
const state = await this.requireActiveSession();
|
|
2360
|
+
const threadRecord = requireInitiatorThread(state, threadId);
|
|
2361
|
+
const peer = state.peers.find((candidate) => candidate.participant.id === threadRecord.thread.targetPeerId);
|
|
2362
|
+
if (!peer) {
|
|
2363
|
+
throw createPairMeshError({
|
|
2364
|
+
code: "pairmesh.peer_not_found",
|
|
2365
|
+
message: "Inspection thread target peer is no longer in the active session.",
|
|
2366
|
+
details: { threadId }
|
|
2367
|
+
});
|
|
2368
|
+
}
|
|
2369
|
+
// Follow-ups route by stored participant id only. Optional peerRef must match.
|
|
2370
|
+
if (options?.peerRef?.trim()) {
|
|
2371
|
+
const resolved = resolvePeerRecord(state, options.peerRef);
|
|
2372
|
+
if (!resolved || resolved.participant.id !== peer.participant.id) {
|
|
2373
|
+
throw createPairMeshError({
|
|
2374
|
+
code: "pairmesh.invalid_metadata",
|
|
2375
|
+
message: "Follow-up peer selector does not match the thread's stored participant id.",
|
|
2376
|
+
details: {
|
|
2377
|
+
threadId,
|
|
2378
|
+
threadParticipantId: peer.participant.id,
|
|
2379
|
+
peerRef: options.peerRef.trim()
|
|
2380
|
+
}
|
|
2381
|
+
});
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
assertPairedForAsk(state, peer);
|
|
2385
|
+
const turnNumber = threadRecord.turns.length + 1;
|
|
2386
|
+
const duplicate = findRecentDuplicateExecution(state, {
|
|
2387
|
+
peerId: peer.participant.id,
|
|
2388
|
+
question,
|
|
2389
|
+
threadId: threadRecord.thread.id,
|
|
2390
|
+
windowMs: this.inspectionTiming.duplicateQuestionWindowMs
|
|
2391
|
+
});
|
|
2392
|
+
if (duplicate) {
|
|
2393
|
+
return this.reuseDuplicateInspectionResult(state, peer, duplicate);
|
|
2394
|
+
}
|
|
2395
|
+
return await this.executeInspectionTurn(threadRecord.thread.id, peer, question, turnNumber);
|
|
2396
|
+
}
|
|
2397
|
+
async retryInspection(threadId, retryOfRequestId) {
|
|
2398
|
+
const state = await this.requireActiveSession();
|
|
2399
|
+
const priorExecution = findExecutionRecord(state, retryOfRequestId);
|
|
2400
|
+
if (!priorExecution) {
|
|
2401
|
+
throw createPairMeshError({
|
|
2402
|
+
code: "pairmesh.inspection_not_found",
|
|
2403
|
+
message: "Cannot retry: prior inspection execution was not found.",
|
|
2404
|
+
details: { retryOfRequestId }
|
|
2405
|
+
});
|
|
2406
|
+
}
|
|
2407
|
+
if (priorExecution.status === "completed") {
|
|
2408
|
+
throw createPairMeshError({
|
|
2409
|
+
code: "pairmesh.inspection_thread_invalid_state",
|
|
2410
|
+
message: "Cannot retry a completed inspection. Use the existing result or ask a follow-up.",
|
|
2411
|
+
details: { retryOfRequestId }
|
|
2412
|
+
});
|
|
2413
|
+
}
|
|
2414
|
+
if (!["timed_out", "failed", "cancelled"].includes(priorExecution.status)) {
|
|
2415
|
+
throw createPairMeshError({
|
|
2416
|
+
code: "pairmesh.inspection_thread_invalid_state",
|
|
2417
|
+
message: "Cannot retry an inspection that is still running.",
|
|
2418
|
+
details: { retryOfRequestId, status: priorExecution.status }
|
|
2419
|
+
});
|
|
2420
|
+
}
|
|
2421
|
+
const threadRecord = requireInitiatorThread(state, threadId);
|
|
2422
|
+
const peer = state.peers.find((candidate) => candidate.participant.id === threadRecord.thread.targetPeerId);
|
|
2423
|
+
if (!peer) {
|
|
2424
|
+
throw createPairMeshError({
|
|
2425
|
+
code: "pairmesh.peer_not_found",
|
|
2426
|
+
message: "Inspection thread target peer is no longer in the active session.",
|
|
2427
|
+
details: { threadId }
|
|
2428
|
+
});
|
|
2429
|
+
}
|
|
2430
|
+
return await this.executeInspectionTurn(threadRecord.thread.id, peer, priorExecution.question, priorExecution.turnNumber, retryOfRequestId);
|
|
2431
|
+
}
|
|
2432
|
+
async listInspectionThreads(peerFilter) {
|
|
2433
|
+
const state = await this.requireActiveSession();
|
|
2434
|
+
return listInspectionThreads(state, peerFilter).map((record) => ({
|
|
2435
|
+
id: record.thread.id,
|
|
2436
|
+
peer: record.targetPeerName,
|
|
2437
|
+
status: record.thread.status,
|
|
2438
|
+
turnCount: record.turns.length,
|
|
2439
|
+
createdAt: record.thread.createdAt,
|
|
2440
|
+
updatedAt: record.thread.updatedAt,
|
|
2441
|
+
...(record.thread.topic ? { topic: record.thread.topic } : {})
|
|
2442
|
+
}));
|
|
2443
|
+
}
|
|
2444
|
+
async getInspectionThread(threadId) {
|
|
2445
|
+
const state = await this.requireActiveSession();
|
|
2446
|
+
const record = requireInitiatorThread(state, threadId);
|
|
2447
|
+
return {
|
|
2448
|
+
id: record.thread.id,
|
|
2449
|
+
peer: record.targetPeerName,
|
|
2450
|
+
status: record.thread.status,
|
|
2451
|
+
createdAt: record.thread.createdAt,
|
|
2452
|
+
updatedAt: record.thread.updatedAt,
|
|
2453
|
+
...(record.thread.topic ? { topic: record.thread.topic } : {}),
|
|
2454
|
+
turns: record.turns.map((turn) => ({
|
|
2455
|
+
requestId: turn.turn.requestId,
|
|
2456
|
+
question: turn.turn.question,
|
|
2457
|
+
createdAt: turn.turn.createdAt,
|
|
2458
|
+
...(turn.result
|
|
2459
|
+
? {
|
|
2460
|
+
summary: turn.result.summary,
|
|
2461
|
+
findings: turn.result.findings,
|
|
2462
|
+
references: turn.result.references ?? []
|
|
2463
|
+
}
|
|
2464
|
+
: {})
|
|
2465
|
+
}))
|
|
2466
|
+
};
|
|
2467
|
+
}
|
|
2468
|
+
async closeInspectionThread(threadId) {
|
|
2469
|
+
await this.mutateSession((state) => {
|
|
2470
|
+
const record = requireInitiatorThread(state, threadId);
|
|
2471
|
+
closeThreadRecord(record);
|
|
2472
|
+
});
|
|
2473
|
+
}
|
|
2474
|
+
async executeInspectionTurn(threadId, peer, question, turnNumber, retryOfRequestId, reuseRequestId) {
|
|
2475
|
+
const prep = await this.mutateSession(async (state) => {
|
|
2476
|
+
const threadRecord = requireInitiatorThread(state, threadId);
|
|
2477
|
+
// Fail fast when this pairing has no credential rather than after the peer
|
|
2478
|
+
// rejects the authenticated call.
|
|
2479
|
+
requireOutboundBearer(state, peer);
|
|
2480
|
+
const request = buildInspectionRequest(state.session.id, threadId, question, turnNumber, reuseRequestId);
|
|
2481
|
+
this.emitAudit(buildAuditEvent({
|
|
2482
|
+
eventType: "inspection.requested",
|
|
2483
|
+
projectId: state.localParticipant.agent.projectId,
|
|
2484
|
+
sessionId: state.session.id,
|
|
2485
|
+
sessionCode: state.sessionCode,
|
|
2486
|
+
actor: {
|
|
2487
|
+
participantId: state.localParticipant.participant.id,
|
|
2488
|
+
agentId: state.localParticipant.agent.id,
|
|
2489
|
+
peerName: state.localParticipant.agent.name
|
|
2490
|
+
},
|
|
2491
|
+
target: {
|
|
2492
|
+
participantId: peer.participant.id,
|
|
2493
|
+
agentId: peer.agent.id,
|
|
2494
|
+
peerName: peer.agent.name
|
|
2495
|
+
},
|
|
2496
|
+
correlation: { requestId: request.requestId, threadId },
|
|
2497
|
+
metadata: { direction: "outbound" }
|
|
2498
|
+
}));
|
|
2499
|
+
const existing = findExecutionRecord(state, request.requestId);
|
|
2500
|
+
if (existing) {
|
|
2501
|
+
if (existing.status === "completed" && existing.result) {
|
|
2502
|
+
return {
|
|
2503
|
+
action: "completed",
|
|
2504
|
+
request,
|
|
2505
|
+
targetPeerName: threadRecord.targetPeerName,
|
|
2506
|
+
result: existing.result
|
|
2507
|
+
};
|
|
2508
|
+
}
|
|
2509
|
+
if (existing.status === "running" || existing.status === "pending") {
|
|
2510
|
+
return {
|
|
2511
|
+
action: "finish_existing",
|
|
2512
|
+
request,
|
|
2513
|
+
targetPeerName: threadRecord.targetPeerName,
|
|
2514
|
+
requestId: existing.requestId
|
|
2515
|
+
};
|
|
2516
|
+
}
|
|
2517
|
+
// Resume after approval_required (or other terminal) with the same requestId.
|
|
2518
|
+
if (reuseRequestId &&
|
|
2519
|
+
(existing.status === "failed" ||
|
|
2520
|
+
existing.status === "timed_out" ||
|
|
2521
|
+
existing.status === "cancelled")) {
|
|
2522
|
+
const resumedBase = {
|
|
2523
|
+
...existing,
|
|
2524
|
+
status: "pending",
|
|
2525
|
+
phase: "accepted",
|
|
2526
|
+
message: "Resuming after local peer approval.",
|
|
2527
|
+
updatedAt: IsoUtcTimestampSchema.parse(new Date().toISOString())
|
|
2528
|
+
};
|
|
2529
|
+
const rest = { ...resumedBase };
|
|
2530
|
+
delete rest.completedAt;
|
|
2531
|
+
delete rest.error;
|
|
2532
|
+
delete rest.a2aTaskReference;
|
|
2533
|
+
delete rest.localWaitState;
|
|
2534
|
+
delete rest.remoteTaskState;
|
|
2535
|
+
delete rest.result;
|
|
2536
|
+
delete rest.executionStartedAt;
|
|
2537
|
+
upsertExecutionRecord(state, InspectionExecutionRecordSchema.parse(rest));
|
|
2538
|
+
return {
|
|
2539
|
+
action: "finish_existing",
|
|
2540
|
+
request,
|
|
2541
|
+
targetPeerName: threadRecord.targetPeerName,
|
|
2542
|
+
requestId: request.requestId
|
|
2543
|
+
};
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
const execution = createExecutionRecord({
|
|
2547
|
+
threadId,
|
|
2548
|
+
peerId: peer.participant.id,
|
|
2549
|
+
peerName: threadRecord.targetPeerName,
|
|
2550
|
+
turnNumber,
|
|
2551
|
+
question,
|
|
2552
|
+
requestId: request.requestId,
|
|
2553
|
+
peerAgentUrl: peer.a2aAgentUrl,
|
|
2554
|
+
retryOfRequestId
|
|
2555
|
+
});
|
|
2556
|
+
upsertExecutionRecord(state, execution);
|
|
2557
|
+
return {
|
|
2558
|
+
action: "new",
|
|
2559
|
+
request,
|
|
2560
|
+
targetPeerName: threadRecord.targetPeerName,
|
|
2561
|
+
requestId: request.requestId
|
|
2562
|
+
};
|
|
2563
|
+
});
|
|
2564
|
+
if (prep.action === "completed") {
|
|
2565
|
+
return this.toCompletedInspectionResult(peer, prep.targetPeerName, prep.request, prep.result);
|
|
2566
|
+
}
|
|
2567
|
+
if (!this.skipPeerHealthPreflight) {
|
|
2568
|
+
const health = await fetchPeerHealth(peer.agent.name, peer.a2aAgentUrl, {
|
|
2569
|
+
bearerToken: peer.outboundBearer
|
|
2570
|
+
});
|
|
2571
|
+
await this.mutateSession((state) => {
|
|
2572
|
+
updateExecutionProgress(state, prep.requestId, {
|
|
2573
|
+
phase: health.reachable ? "peer-reachable" : "failed",
|
|
2574
|
+
message: health.reachable
|
|
2575
|
+
? `${peer.agent.name}'s PairMesh agent is reachable.`
|
|
2576
|
+
: `${peer.agent.name}'s PairMesh agent is unreachable.`
|
|
2577
|
+
});
|
|
2578
|
+
});
|
|
2579
|
+
assertPeerReadyForInspection(peer.agent.name, health);
|
|
2580
|
+
}
|
|
2581
|
+
return await this.finishInteractiveInspection(threadId, prep.request, peer, prep.targetPeerName, prep.requestId);
|
|
2582
|
+
}
|
|
2583
|
+
async finishInteractiveInspection(threadId, request, peer, targetPeerName, requestId) {
|
|
2584
|
+
const bearerToken = await this.stateStore.enqueue(async () => {
|
|
2585
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2586
|
+
return requireOutboundBearer(state, peer);
|
|
2587
|
+
});
|
|
2588
|
+
await this.mutateSession((state) => {
|
|
2589
|
+
updateExecutionProgress(state, requestId, {
|
|
2590
|
+
phase: "inspecting",
|
|
2591
|
+
message: `${peer.agent.name}'s coding agent is inspecting...`
|
|
2592
|
+
});
|
|
2593
|
+
setExecutionLocalWaitState(state, requestId, "waiting");
|
|
2594
|
+
});
|
|
2595
|
+
const outbound = new AbortController();
|
|
2596
|
+
this.activeOutbound.set(requestId, outbound);
|
|
2597
|
+
let elapsedTimer;
|
|
2598
|
+
elapsedTimer = setInterval(() => {
|
|
2599
|
+
void this.mutateSession((state) => {
|
|
2600
|
+
const current = findExecutionRecord(state, requestId);
|
|
2601
|
+
if (!current || (current.status !== "running" && current.status !== "pending")) {
|
|
2602
|
+
return;
|
|
2603
|
+
}
|
|
2604
|
+
const clockStart = current.executionStartedAt ?? current.startedAt;
|
|
2605
|
+
updateExecutionProgress(state, requestId, {
|
|
2606
|
+
phase: "inspecting",
|
|
2607
|
+
message: `Still inspecting — ${Math.round((Date.now() - Date.parse(clockStart)) / 1000)} seconds elapsed.`,
|
|
2608
|
+
elapsedMs: Date.now() - Date.parse(clockStart)
|
|
2609
|
+
});
|
|
2610
|
+
});
|
|
2611
|
+
}, 5_000);
|
|
2612
|
+
try {
|
|
2613
|
+
const existingTaskId = await this.stateStore.enqueue(async () => {
|
|
2614
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2615
|
+
const existingRecord = findExecutionRecord(state, requestId);
|
|
2616
|
+
return existingRecord?.a2aTaskReference?.a2aTaskId;
|
|
2617
|
+
});
|
|
2618
|
+
if (existingTaskId) {
|
|
2619
|
+
const polled = await waitForPairMeshInspectionTask(peer.a2aAgentUrl, existingTaskId, {
|
|
2620
|
+
signal: outbound.signal,
|
|
2621
|
+
timeoutMs: this.inspectionTiming.interactiveWaitMs,
|
|
2622
|
+
pollIntervalMs: this.inspectionTiming.pollIntervalMs,
|
|
2623
|
+
bearerToken
|
|
2624
|
+
});
|
|
2625
|
+
if (polled.response?.accepted) {
|
|
2626
|
+
await applySuccessfulRemoteResponse(requestId, polled.response, this.stateStore);
|
|
2627
|
+
const completed = await this.stateStore.enqueue(async () => {
|
|
2628
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2629
|
+
const record = findExecutionRecord(state, requestId);
|
|
2630
|
+
if (!record?.result) {
|
|
2631
|
+
return undefined;
|
|
2632
|
+
}
|
|
2633
|
+
this.auditInspectionSuccess(state, peer, request, record);
|
|
2634
|
+
return record.result;
|
|
2635
|
+
});
|
|
2636
|
+
if (completed) {
|
|
2637
|
+
return this.toCompletedInspectionResult(peer, targetPeerName, request, completed);
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
else if (polled.response && !polled.response.accepted) {
|
|
2641
|
+
const approval = await this.toApprovalRequiredResult(threadId, targetPeerName, request, peer, polled.response.error);
|
|
2642
|
+
if (approval) {
|
|
2643
|
+
return approval;
|
|
2644
|
+
}
|
|
2645
|
+
throw polled.response.error;
|
|
2646
|
+
}
|
|
2647
|
+
else {
|
|
2648
|
+
await this.mutateSession((state) => {
|
|
2649
|
+
setExecutionLocalWaitState(state, requestId, "expired");
|
|
2650
|
+
});
|
|
2651
|
+
return {
|
|
2652
|
+
completed: false,
|
|
2653
|
+
status: "working",
|
|
2654
|
+
threadId,
|
|
2655
|
+
peer: targetPeerName,
|
|
2656
|
+
safePeer: toSafePeerMeta(peer),
|
|
2657
|
+
requestId,
|
|
2658
|
+
question: request.question,
|
|
2659
|
+
message: formatInspectionWorkingMessage(peer.agent.name, requestId)
|
|
2660
|
+
};
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2663
|
+
const interactive = await runPairMeshInspectionInteractive(peer.a2aAgentUrl, request, {
|
|
2664
|
+
signal: outbound.signal,
|
|
2665
|
+
timeoutMs: this.inspectionTiming.interactiveWaitMs,
|
|
2666
|
+
bearerToken
|
|
2667
|
+
});
|
|
2668
|
+
await this.mutateSession((state) => {
|
|
2669
|
+
attachA2ATaskReference(state, requestId, interactive.a2aTaskId, peer.a2aAgentUrl, interactive.remoteTaskState);
|
|
2670
|
+
});
|
|
2671
|
+
if (interactive.completed && interactive.response?.accepted) {
|
|
2672
|
+
await applySuccessfulRemoteResponse(requestId, interactive.response, this.stateStore);
|
|
2673
|
+
const completed = await this.stateStore.enqueue(async () => {
|
|
2674
|
+
const state = await this.loadActiveSessionUnchecked();
|
|
2675
|
+
const record = findExecutionRecord(state, requestId);
|
|
2676
|
+
if (!record?.result) {
|
|
2677
|
+
return undefined;
|
|
2678
|
+
}
|
|
2679
|
+
this.auditInspectionSuccess(state, peer, request, record);
|
|
2680
|
+
return record.result;
|
|
2681
|
+
});
|
|
2682
|
+
if (completed) {
|
|
2683
|
+
return this.toCompletedInspectionResult(peer, targetPeerName, request, completed);
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
if (interactive.response && !interactive.response.accepted) {
|
|
2687
|
+
const approval = await this.toApprovalRequiredResult(threadId, targetPeerName, request, peer, interactive.response.error);
|
|
2688
|
+
if (approval) {
|
|
2689
|
+
return approval;
|
|
2690
|
+
}
|
|
2691
|
+
throw interactive.response.error;
|
|
2692
|
+
}
|
|
2693
|
+
await this.mutateSession((state) => {
|
|
2694
|
+
setExecutionLocalWaitState(state, requestId, "expired");
|
|
2695
|
+
});
|
|
2696
|
+
return {
|
|
2697
|
+
completed: false,
|
|
2698
|
+
status: "working",
|
|
2699
|
+
threadId,
|
|
2700
|
+
peer: targetPeerName,
|
|
2701
|
+
safePeer: toSafePeerMeta(peer),
|
|
2702
|
+
requestId,
|
|
2703
|
+
question: request.question,
|
|
2704
|
+
message: formatInspectionWorkingMessage(peer.agent.name, requestId)
|
|
2705
|
+
};
|
|
2706
|
+
}
|
|
2707
|
+
catch (error) {
|
|
2708
|
+
if (isPairMeshErrorLike(error)) {
|
|
2709
|
+
const pmError = error;
|
|
2710
|
+
await this.mutateSession((state) => {
|
|
2711
|
+
if (pmError.code === "pairmesh.inspection_timeout") {
|
|
2712
|
+
completeExecutionRecord(state, requestId, "timed_out", {
|
|
2713
|
+
code: pmError.code,
|
|
2714
|
+
message: pmError.message
|
|
2715
|
+
});
|
|
2716
|
+
this.auditInspectionTerminal(state, peer, request, "inspection.timed_out", pmError.code);
|
|
2717
|
+
}
|
|
2718
|
+
else if (pmError.code === "pairmesh.inspection_cancelled") {
|
|
2719
|
+
completeExecutionRecord(state, requestId, "cancelled", {
|
|
2720
|
+
code: pmError.code,
|
|
2721
|
+
message: pmError.message
|
|
2722
|
+
});
|
|
2723
|
+
this.auditInspectionTerminal(state, peer, request, "inspection.cancelled", pmError.code);
|
|
2724
|
+
}
|
|
2725
|
+
else if (pmError.code === "pairmesh.peer_unreachable" ||
|
|
2726
|
+
pmError.code === "pairmesh.coding_agent_unavailable" ||
|
|
2727
|
+
pmError.code === "pairmesh.authentication_required" ||
|
|
2728
|
+
pmError.code === "pairmesh.authentication_failed" ||
|
|
2729
|
+
pmError.code === "pairmesh.peer_revoked" ||
|
|
2730
|
+
pmError.code === "pairmesh.capability_denied") {
|
|
2731
|
+
// Terminal auth/reachability failures must not leave a "running"
|
|
2732
|
+
// zombie — retries would otherwise reuse it as "still working".
|
|
2733
|
+
completeExecutionRecord(state, requestId, "failed", {
|
|
2734
|
+
code: pmError.code,
|
|
2735
|
+
message: pmError.message
|
|
2736
|
+
});
|
|
2737
|
+
this.auditInspectionTerminal(state, peer, request, "inspection.failed", pmError.code);
|
|
2738
|
+
if (pmError.code === "pairmesh.authentication_required" ||
|
|
2739
|
+
pmError.code === "pairmesh.authentication_failed" ||
|
|
2740
|
+
pmError.code === "pairmesh.peer_revoked") {
|
|
2741
|
+
this.emitAudit(buildAuditEvent({
|
|
2742
|
+
eventType: "authentication.failed",
|
|
2743
|
+
projectId: state.localParticipant.agent.projectId,
|
|
2744
|
+
sessionId: state.session.id,
|
|
2745
|
+
sessionCode: state.sessionCode,
|
|
2746
|
+
actor: {
|
|
2747
|
+
participantId: state.localParticipant.participant.id,
|
|
2748
|
+
agentId: state.localParticipant.agent.id,
|
|
2749
|
+
peerName: state.localParticipant.agent.name
|
|
2750
|
+
},
|
|
2751
|
+
target: {
|
|
2752
|
+
participantId: peer.participant.id,
|
|
2753
|
+
agentId: peer.agent.id,
|
|
2754
|
+
peerName: peer.agent.name
|
|
2755
|
+
},
|
|
2756
|
+
correlation: { requestId, threadId: request.threadId },
|
|
2757
|
+
metadata: {
|
|
2758
|
+
reason: mapAuthFailureReason(pmError.code),
|
|
2759
|
+
skill: "pairmesh.inspect"
|
|
2760
|
+
}
|
|
2761
|
+
}));
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
});
|
|
2765
|
+
}
|
|
2766
|
+
throw error;
|
|
2767
|
+
}
|
|
2768
|
+
finally {
|
|
2769
|
+
if (elapsedTimer) {
|
|
2770
|
+
clearInterval(elapsedTimer);
|
|
2771
|
+
}
|
|
2772
|
+
this.activeOutbound.delete(requestId);
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
toCompletedInspectionResult(peer, peerName, request, result) {
|
|
2776
|
+
return {
|
|
2777
|
+
completed: true,
|
|
2778
|
+
threadId: request.threadId,
|
|
2779
|
+
peer: peerName,
|
|
2780
|
+
safePeer: toSafePeerMeta(peer),
|
|
2781
|
+
requestId: request.requestId,
|
|
2782
|
+
question: request.question,
|
|
2783
|
+
summary: result.summary,
|
|
2784
|
+
findings: result.findings,
|
|
2785
|
+
references: result.references ?? []
|
|
2786
|
+
};
|
|
2787
|
+
}
|
|
2788
|
+
async toApprovalRequiredResult(threadId, targetPeerName, request, peer, error) {
|
|
2789
|
+
if (error.code !== "pairmesh.approval_required") {
|
|
2790
|
+
return undefined;
|
|
2791
|
+
}
|
|
2792
|
+
const details = error.details && typeof error.details === "object" && !Array.isArray(error.details)
|
|
2793
|
+
? error.details
|
|
2794
|
+
: {};
|
|
2795
|
+
const permissionRequestId = typeof details.permissionRequestId === "string"
|
|
2796
|
+
? details.permissionRequestId
|
|
2797
|
+
: "perm_unknown";
|
|
2798
|
+
const capability = typeof details.capability === "string" ? details.capability : "repository.inspect";
|
|
2799
|
+
await this.mutateSession((state) => {
|
|
2800
|
+
completeExecutionRecord(state, request.requestId, "failed", {
|
|
2801
|
+
code: error.code,
|
|
2802
|
+
message: error.message
|
|
2803
|
+
});
|
|
2804
|
+
// Approval wait is not ACP execution — clear any premature deadline clock/task ref.
|
|
2805
|
+
const failed = findExecutionRecord(state, request.requestId);
|
|
2806
|
+
if (failed) {
|
|
2807
|
+
const cleared = { ...failed };
|
|
2808
|
+
delete cleared.executionStartedAt;
|
|
2809
|
+
delete cleared.a2aTaskReference;
|
|
2810
|
+
delete cleared.remoteTaskState;
|
|
2811
|
+
upsertExecutionRecord(state, InspectionExecutionRecordSchema.parse(cleared));
|
|
2812
|
+
}
|
|
2813
|
+
this.auditInspectionTerminal(state, peer, request, "inspection.failed", error.code);
|
|
2814
|
+
});
|
|
2815
|
+
return {
|
|
2816
|
+
completed: false,
|
|
2817
|
+
status: "approval_required",
|
|
2818
|
+
threadId,
|
|
2819
|
+
peer: targetPeerName,
|
|
2820
|
+
safePeer: toSafePeerMeta(peer),
|
|
2821
|
+
requestId: request.requestId,
|
|
2822
|
+
question: request.question,
|
|
2823
|
+
permissionRequestId,
|
|
2824
|
+
capability,
|
|
2825
|
+
message: error.message ||
|
|
2826
|
+
`${peer.agent.name} must approve ${capability} before this request can run. Do not re-pair or run PairMesh setup — wait for local approval, then ask again with the same question to resume this requestId.`
|
|
2827
|
+
};
|
|
2828
|
+
}
|
|
2829
|
+
async reuseDuplicateInspectionResult(state, peer, duplicate) {
|
|
2830
|
+
const threadRecord = requireInitiatorThread(state, duplicate.threadId);
|
|
2831
|
+
if (duplicate.status === "completed" && duplicate.result) {
|
|
2832
|
+
return {
|
|
2833
|
+
completed: true,
|
|
2834
|
+
threadId: duplicate.threadId,
|
|
2835
|
+
peer: threadRecord.targetPeerName,
|
|
2836
|
+
safePeer: toSafePeerMeta(peer),
|
|
2837
|
+
requestId: duplicate.requestId,
|
|
2838
|
+
question: duplicate.question,
|
|
2839
|
+
summary: duplicate.result.summary,
|
|
2840
|
+
findings: duplicate.result.findings,
|
|
2841
|
+
references: duplicate.result.references ?? []
|
|
2842
|
+
};
|
|
2843
|
+
}
|
|
2844
|
+
if (duplicate.status === "running" || duplicate.status === "pending") {
|
|
2845
|
+
return {
|
|
2846
|
+
completed: false,
|
|
2847
|
+
status: "working",
|
|
2848
|
+
threadId: duplicate.threadId,
|
|
2849
|
+
peer: threadRecord.targetPeerName,
|
|
2850
|
+
safePeer: toSafePeerMeta(peer),
|
|
2851
|
+
requestId: duplicate.requestId,
|
|
2852
|
+
question: duplicate.question,
|
|
2853
|
+
message: formatInspectionDuplicateWorkingMessage(peer.agent.name, duplicate.requestId)
|
|
2854
|
+
};
|
|
2855
|
+
}
|
|
2856
|
+
return await this.executeInspectionTurn(duplicate.threadId, peer, duplicate.question, duplicate.turnNumber);
|
|
2857
|
+
}
|
|
2858
|
+
emitAudit(event) {
|
|
2859
|
+
this.auditLog.record(event);
|
|
2860
|
+
}
|
|
2861
|
+
auditInspectionSuccess(state, peer, request, record) {
|
|
2862
|
+
const startedMs = Date.parse(record.startedAt);
|
|
2863
|
+
const durationMs = Number.isFinite(startedMs) ? Math.max(0, Date.now() - startedMs) : undefined;
|
|
2864
|
+
this.auditInspectionTerminal(state, peer, request, "inspection.completed", undefined, durationMs);
|
|
2865
|
+
this.emitAudit(buildAuditEvent({
|
|
2866
|
+
eventType: "inspection.result_shared",
|
|
2867
|
+
projectId: state.localParticipant.agent.projectId,
|
|
2868
|
+
sessionId: state.session.id,
|
|
2869
|
+
sessionCode: state.sessionCode,
|
|
2870
|
+
actor: {
|
|
2871
|
+
participantId: peer.participant.id,
|
|
2872
|
+
agentId: peer.agent.id,
|
|
2873
|
+
peerName: peer.agent.name
|
|
2874
|
+
},
|
|
2875
|
+
target: {
|
|
2876
|
+
participantId: state.localParticipant.participant.id,
|
|
2877
|
+
agentId: state.localParticipant.agent.id,
|
|
2878
|
+
peerName: state.localParticipant.agent.name
|
|
2879
|
+
},
|
|
2880
|
+
correlation: { requestId: request.requestId, threadId: request.threadId },
|
|
2881
|
+
metadata: buildResultSharedMetadata({
|
|
2882
|
+
direction: "inbound",
|
|
2883
|
+
summary: record.result?.summary,
|
|
2884
|
+
findings: record.result?.findings,
|
|
2885
|
+
references: record.result?.references
|
|
2886
|
+
})
|
|
2887
|
+
}));
|
|
2888
|
+
}
|
|
2889
|
+
auditInspectionTerminal(state, peer, request, eventType, errorCode, durationMs) {
|
|
2890
|
+
this.emitAudit(buildAuditEvent({
|
|
2891
|
+
eventType,
|
|
2892
|
+
projectId: state.localParticipant.agent.projectId,
|
|
2893
|
+
sessionId: state.session.id,
|
|
2894
|
+
sessionCode: state.sessionCode,
|
|
2895
|
+
actor: {
|
|
2896
|
+
participantId: state.localParticipant.participant.id,
|
|
2897
|
+
agentId: state.localParticipant.agent.id,
|
|
2898
|
+
peerName: state.localParticipant.agent.name
|
|
2899
|
+
},
|
|
2900
|
+
target: {
|
|
2901
|
+
participantId: peer.participant.id,
|
|
2902
|
+
agentId: peer.agent.id,
|
|
2903
|
+
peerName: peer.agent.name
|
|
2904
|
+
},
|
|
2905
|
+
correlation: { requestId: request.requestId, threadId: request.threadId },
|
|
2906
|
+
metadata: {
|
|
2907
|
+
direction: "outbound",
|
|
2908
|
+
...(durationMs !== undefined ? { durationMs } : {}),
|
|
2909
|
+
...(errorCode ? { errorCode } : {})
|
|
2910
|
+
}
|
|
2911
|
+
}));
|
|
2912
|
+
}
|
|
2913
|
+
/**
|
|
2914
|
+
* Emit initiator-side audit when status/wait sync observes a new terminal state
|
|
2915
|
+
* (cancel, hard timeout, or completed result retrieved after local wait expiry).
|
|
2916
|
+
*/
|
|
2917
|
+
auditSyncedStatusTransition(state, record, priorStatus) {
|
|
2918
|
+
if (!priorStatus || priorStatus === record.status) {
|
|
2919
|
+
return;
|
|
2920
|
+
}
|
|
2921
|
+
const peer = state.peers.find((entry) => entry.participant.id === record.peerId);
|
|
2922
|
+
if (!peer) {
|
|
2923
|
+
return;
|
|
2924
|
+
}
|
|
2925
|
+
const request = {
|
|
2926
|
+
requestId: record.requestId,
|
|
2927
|
+
threadId: record.threadId
|
|
2928
|
+
};
|
|
2929
|
+
const startedMs = Date.parse(record.startedAt);
|
|
2930
|
+
const durationMs = Number.isFinite(startedMs) ? Math.max(0, Date.now() - startedMs) : undefined;
|
|
2931
|
+
if (record.status === "completed" && record.result) {
|
|
2932
|
+
this.auditInspectionSuccess(state, peer, request, record);
|
|
2933
|
+
return;
|
|
2934
|
+
}
|
|
2935
|
+
if (record.status === "timed_out") {
|
|
2936
|
+
this.auditInspectionTerminal(state, peer, request, "inspection.timed_out", record.error?.code ?? "pairmesh.inspection_timeout", durationMs);
|
|
2937
|
+
return;
|
|
2938
|
+
}
|
|
2939
|
+
if (record.status === "cancelled") {
|
|
2940
|
+
this.auditInspectionTerminal(state, peer, request, "inspection.cancelled", record.error?.code ?? "pairmesh.inspection_cancelled", durationMs);
|
|
2941
|
+
return;
|
|
2942
|
+
}
|
|
2943
|
+
if (record.status === "failed") {
|
|
2944
|
+
this.auditInspectionTerminal(state, peer, request, "inspection.failed", record.error?.code, durationMs);
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
async requireActiveSession() {
|
|
2948
|
+
return this.stateStore.enqueue(async () => {
|
|
2949
|
+
return await this.loadActiveSessionUnchecked();
|
|
2950
|
+
});
|
|
2951
|
+
}
|
|
2952
|
+
/** Serialized load → mutate → save. Never call across network/ACP waits. */
|
|
2953
|
+
async mutateSession(mutator) {
|
|
2954
|
+
return this.stateStore.mutate(mutator);
|
|
2955
|
+
}
|
|
2956
|
+
async loadActiveSessionUnchecked() {
|
|
2957
|
+
const state = await this.stateStore.load();
|
|
2958
|
+
if (!state) {
|
|
2959
|
+
throw createPairMeshError({
|
|
2960
|
+
code: "pairmesh.session_not_found",
|
|
2961
|
+
message: "No local PairMesh session found."
|
|
2962
|
+
});
|
|
2963
|
+
}
|
|
2964
|
+
if (state.session.status === "closed") {
|
|
2965
|
+
throw createPairMeshError({
|
|
2966
|
+
code: "pairmesh.session_closed",
|
|
2967
|
+
message: "The local PairMesh session is closed.",
|
|
2968
|
+
details: { sessionCode: state.sessionCode }
|
|
2969
|
+
});
|
|
2970
|
+
}
|
|
2971
|
+
return state;
|
|
2972
|
+
}
|
|
2973
|
+
assertRelayTransportAllowsInspection() {
|
|
2974
|
+
const bridge = getRuntimeRelayBridge();
|
|
2975
|
+
if (!bridge) {
|
|
2976
|
+
return;
|
|
2977
|
+
}
|
|
2978
|
+
const status = bridge.getStatus();
|
|
2979
|
+
if (status.lifecycle === "ready" && status.connected) {
|
|
2980
|
+
return;
|
|
2981
|
+
}
|
|
2982
|
+
if (status.lifecycle === "idle" || status.lifecycle === "stopped") {
|
|
2983
|
+
// No active relay path — direct/overlay or not yet started; peer health decides.
|
|
2984
|
+
return;
|
|
2985
|
+
}
|
|
2986
|
+
if (status.lifecycle === "reconnecting" ||
|
|
2987
|
+
status.lifecycle === "offline" ||
|
|
2988
|
+
status.lifecycle === "connecting" ||
|
|
2989
|
+
status.lifecycle === "e2e_negotiating" ||
|
|
2990
|
+
status.lifecycle === "connected") {
|
|
2991
|
+
throw createPairMeshError({
|
|
2992
|
+
code: "pairmesh.connectivity_reconnecting",
|
|
2993
|
+
message: "PairMesh is reconnecting the relay transport. Wait for peer ready, then retry the same ask — do not re-pair.",
|
|
2994
|
+
details: {
|
|
2995
|
+
lifecycle: status.lifecycle,
|
|
2996
|
+
...(typeof status.reconnectAttempt === "number"
|
|
2997
|
+
? { reconnectAttempt: status.reconnectAttempt }
|
|
2998
|
+
: {})
|
|
2999
|
+
}
|
|
3000
|
+
});
|
|
3001
|
+
}
|
|
3002
|
+
if (status.lifecycle === "auth_failed") {
|
|
3003
|
+
throw createPairMeshError({
|
|
3004
|
+
code: "pairmesh.relay_authentication_failed",
|
|
3005
|
+
message: "Relay authentication failed. Check connectivity.relayUrl and session route credentials — this is not a Stage 8 peer permission error.",
|
|
3006
|
+
details: { lifecycle: status.lifecycle }
|
|
3007
|
+
});
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
buildLocalParticipantRecord(options) {
|
|
3011
|
+
const participant = PairMeshSessionParticipantSchema.parse({
|
|
3012
|
+
id: PeerIdSchema.parse(`peer_${randomUUID()}`),
|
|
3013
|
+
sessionId: options.session.id,
|
|
3014
|
+
developerId: options.identity.developer.id,
|
|
3015
|
+
agentId: options.identity.agent.id,
|
|
3016
|
+
joinedAt: nowUtc()
|
|
3017
|
+
});
|
|
3018
|
+
return {
|
|
3019
|
+
participant,
|
|
3020
|
+
agent: options.identity.agent,
|
|
3021
|
+
developer: options.identity.developer,
|
|
3022
|
+
device: options.identity.device,
|
|
3023
|
+
a2aAgentUrl: options.agentUrl,
|
|
3024
|
+
isLocal: options.isLocal,
|
|
3025
|
+
...(options.serviceLabel ? { serviceLabel: options.serviceLabel } : {})
|
|
3026
|
+
};
|
|
3027
|
+
}
|
|
3028
|
+
safePeerFromExecution(state, record) {
|
|
3029
|
+
const peer = state.peers.find((candidate) => candidate.participant.id === record.peerId);
|
|
3030
|
+
return peer ? { safePeer: toSafePeerMeta(peer) } : {};
|
|
3031
|
+
}
|
|
3032
|
+
toStatusView(state) {
|
|
3033
|
+
return {
|
|
3034
|
+
sessionCode: state.sessionCode,
|
|
3035
|
+
sessionId: state.session.id,
|
|
3036
|
+
status: state.session.status,
|
|
3037
|
+
createdAt: state.session.createdAt,
|
|
3038
|
+
localParticipant: state.localParticipant,
|
|
3039
|
+
peers: state.peers,
|
|
3040
|
+
security: describeSessionSecurity(state)
|
|
3041
|
+
};
|
|
3042
|
+
}
|
|
3043
|
+
}
|
|
3044
|
+
async function fetchRelayPeerAgentCardName(localEndpoint) {
|
|
3045
|
+
try {
|
|
3046
|
+
const cardRes = await fetch(`${localEndpoint.replace(/\/$/, "")}/.well-known/agent-card.json`, {
|
|
3047
|
+
signal: AbortSignal.timeout(8_000)
|
|
3048
|
+
});
|
|
3049
|
+
if (!cardRes.ok) {
|
|
3050
|
+
return undefined;
|
|
3051
|
+
}
|
|
3052
|
+
const card = (await cardRes.json());
|
|
3053
|
+
const name = card.name?.trim();
|
|
3054
|
+
return name && name.length > 0 ? name : undefined;
|
|
3055
|
+
}
|
|
3056
|
+
catch {
|
|
3057
|
+
return undefined;
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
export function parseInviteSecret(value) {
|
|
3061
|
+
const parsed = PairMeshInviteSecretSchema.safeParse(value.trim());
|
|
3062
|
+
if (!parsed.success) {
|
|
3063
|
+
throw createPairMeshError({
|
|
3064
|
+
code: "pairmesh.invite_invalid",
|
|
3065
|
+
message: "Invalid PairMesh invite secret. Use the exact `--invite` value from the creator's join command."
|
|
3066
|
+
});
|
|
3067
|
+
}
|
|
3068
|
+
return parsed.data;
|
|
3069
|
+
}
|
|
3070
|
+
export function parseSessionCode(value) {
|
|
3071
|
+
const parsed = SessionCodeSchema.safeParse(value.trim().toUpperCase());
|
|
3072
|
+
if (!parsed.success) {
|
|
3073
|
+
throw createPairMeshError({
|
|
3074
|
+
code: "pairmesh.invalid_metadata",
|
|
3075
|
+
message: "Invalid PairMesh session code.",
|
|
3076
|
+
details: { sessionCode: value }
|
|
3077
|
+
});
|
|
3078
|
+
}
|
|
3079
|
+
return parsed.data;
|
|
3080
|
+
}
|
|
3081
|
+
export function resolvePeerRecord(state, peerRef) {
|
|
3082
|
+
try {
|
|
3083
|
+
return resolvePeerTarget(state, peerRef).peer;
|
|
3084
|
+
}
|
|
3085
|
+
catch (error) {
|
|
3086
|
+
if (isPairMeshErrorLike(error) && error.code === "pairmesh.peer_not_found") {
|
|
3087
|
+
return undefined;
|
|
3088
|
+
}
|
|
3089
|
+
throw error;
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
function nowUtc() {
|
|
3093
|
+
return IsoUtcTimestampSchema.parse(new Date().toISOString());
|
|
3094
|
+
}
|
|
3095
|
+
function isPairMeshErrorLike(error) {
|
|
3096
|
+
return (typeof error === "object" &&
|
|
3097
|
+
error !== null &&
|
|
3098
|
+
"code" in error &&
|
|
3099
|
+
typeof error.code === "string" &&
|
|
3100
|
+
error.code.startsWith("pairmesh.") &&
|
|
3101
|
+
"message" in error &&
|
|
3102
|
+
typeof error.message === "string");
|
|
3103
|
+
}
|
|
3104
|
+
async function delay(ms, signal) {
|
|
3105
|
+
await new Promise((resolve, reject) => {
|
|
3106
|
+
const timer = setTimeout(resolve, ms);
|
|
3107
|
+
if (!signal) {
|
|
3108
|
+
return;
|
|
3109
|
+
}
|
|
3110
|
+
if (signal.aborted) {
|
|
3111
|
+
clearTimeout(timer);
|
|
3112
|
+
reject(createPairMeshError({
|
|
3113
|
+
code: "pairmesh.inspection_cancelled",
|
|
3114
|
+
message: "Inspection was cancelled."
|
|
3115
|
+
}));
|
|
3116
|
+
return;
|
|
3117
|
+
}
|
|
3118
|
+
signal.addEventListener("abort", () => {
|
|
3119
|
+
clearTimeout(timer);
|
|
3120
|
+
reject(createPairMeshError({
|
|
3121
|
+
code: "pairmesh.inspection_cancelled",
|
|
3122
|
+
message: "Inspection was cancelled."
|
|
3123
|
+
}));
|
|
3124
|
+
}, { once: true });
|
|
3125
|
+
});
|
|
3126
|
+
}
|
|
3127
|
+
//# sourceMappingURL=manager.js.map
|