@coro-ai/runner 0.1.33 → 0.1.36
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/dashboard-dist/assets/{index-C7l2FOsX.js → index-DVdRvXW2.js} +1 -1
- package/dashboard-dist/index.html +1 -1
- package/dist/src/clients/github.d.ts +21 -10
- package/dist/src/clients/github.js +48 -40
- package/dist/src/clients/github.js.map +1 -1
- package/dist/src/clients/tracker/jira.js +6 -0
- package/dist/src/clients/tracker/jira.js.map +1 -1
- package/dist/src/clients/tracker/linear.js +6 -2
- package/dist/src/clients/tracker/linear.js.map +1 -1
- package/dist/src/clients/tracker/types.d.ts +11 -0
- package/dist/src/cloud/db/postgres-backend.js +21 -13
- package/dist/src/cloud/db/postgres-backend.js.map +1 -1
- package/dist/src/cloud/db/schema.d.ts +1 -1
- package/dist/src/intake/system-prompt.js +3 -0
- package/dist/src/intake/system-prompt.js.map +1 -1
- package/dist/src/jobs/phase-assignment.d.ts +42 -0
- package/dist/src/jobs/phase-assignment.js +46 -43
- package/dist/src/jobs/phase-assignment.js.map +1 -1
- package/dist/src/jobs/runner.js +63 -34
- package/dist/src/jobs/runner.js.map +1 -1
- package/dist/src/mcp-handlers.d.ts +1 -0
- package/dist/src/mcp-handlers.js +6 -2
- package/dist/src/mcp-handlers.js.map +1 -1
- package/dist/src/mcp-server.js +6 -1
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/plugins/builtin/github-tracker/intelligence/snippets/github-issues-keys.md +4 -1
- package/dist/src/plugins/builtin/jira/index.js +12 -0
- package/dist/src/plugins/builtin/jira/index.js.map +1 -1
- package/dist/src/plugins/builtin/jira/intelligence/snippets/jira-transitions.md +6 -1
- package/dist/src/plugins/builtin/linear/index.js +12 -0
- package/dist/src/plugins/builtin/linear/index.js.map +1 -1
- package/dist/src/plugins/builtin/linear/intelligence/snippets/linear-keys.md +6 -2
- package/dist/src/plugins/refs.d.ts +50 -1
- package/dist/src/plugins/refs.js +97 -1
- package/dist/src/plugins/refs.js.map +1 -1
- package/dist/src/plugins/registry.d.ts +6 -0
- package/dist/src/plugins/registry.js +11 -2
- package/dist/src/plugins/registry.js.map +1 -1
- package/dist/src/plugins/types.d.ts +13 -1
- package/dist/src/prompt/builder.d.ts +2 -1
- package/dist/src/prompt/builder.js +42 -1
- package/dist/src/prompt/builder.js.map +1 -1
- package/dist/src/runner/build-settings.js +16 -4
- package/dist/src/runner/build-settings.js.map +1 -1
- package/dist/src/state/polling-transport.d.ts +41 -12
- package/dist/src/state/polling-transport.js +95 -56
- package/dist/src/state/polling-transport.js.map +1 -1
- package/dist/src/state/sqlite-backend.js +19 -13
- package/dist/src/state/sqlite-backend.js.map +1 -1
- package/dist/src/tools/run-subagent.js +10 -5
- package/dist/src/tools/run-subagent.js.map +1 -1
- package/node_modules/@coro-ai/cloud-protocol/package.json +1 -1
- package/node_modules/@coro-ai/intelligence-base/layer/agents/coder.md +1 -1
- package/node_modules/@coro-ai/intelligence-base/layer/agents/planner.md +1 -1
- package/node_modules/@coro-ai/intelligence-base/package.json +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/credential-store.d.ts +58 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/credential-store.d.ts.map +1 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/credential-store.js +278 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/credential-store.js.map +1 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/executor.d.ts +12 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/executor.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/executor.js +85 -46
- package/node_modules/@coro-ai/llm-anthropic/dist/executor.js.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/http-routes.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/http-routes.js +4 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/http-routes.js.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/index.d.ts +2 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/index.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/index.js +6 -2
- package/node_modules/@coro-ai/llm-anthropic/dist/index.js.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/sandbox-probe.d.ts +11 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/sandbox-probe.d.ts.map +1 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/sandbox-probe.js +112 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/sandbox-probe.js.map +1 -0
- package/node_modules/@coro-ai/llm-anthropic/dist/test-connection.d.ts +0 -26
- package/node_modules/@coro-ai/llm-anthropic/dist/test-connection.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/dist/test-connection.js +40 -106
- package/node_modules/@coro-ai/llm-anthropic/dist/test-connection.js.map +1 -1
- package/node_modules/@coro-ai/llm-anthropic/package.json +1 -1
- package/node_modules/@coro-ai/llm-openai/README.md +3 -3
- package/node_modules/@coro-ai/llm-openai/dist/executor.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-openai/dist/executor.js +13 -10
- package/node_modules/@coro-ai/llm-openai/dist/executor.js.map +1 -1
- package/node_modules/@coro-ai/llm-openai/dist/models.d.ts.map +1 -1
- package/node_modules/@coro-ai/llm-openai/dist/models.js +27 -0
- package/node_modules/@coro-ai/llm-openai/dist/models.js.map +1 -1
- package/node_modules/@coro-ai/llm-openai/package.json +1 -1
- package/node_modules/@coro-ai/plugin-sdk/dist/chat-mcp.d.ts +10 -1
- package/node_modules/@coro-ai/plugin-sdk/dist/chat-mcp.d.ts.map +1 -1
- package/node_modules/@coro-ai/plugin-sdk/dist/chat-mcp.js +16 -2
- package/node_modules/@coro-ai/plugin-sdk/dist/chat-mcp.js.map +1 -1
- package/node_modules/@coro-ai/plugin-sdk/dist/helpers.d.ts +27 -1
- package/node_modules/@coro-ai/plugin-sdk/dist/helpers.d.ts.map +1 -1
- package/node_modules/@coro-ai/plugin-sdk/dist/helpers.js +47 -0
- package/node_modules/@coro-ai/plugin-sdk/dist/helpers.js.map +1 -1
- package/node_modules/@coro-ai/plugin-sdk/dist/types.d.ts +79 -4
- package/node_modules/@coro-ai/plugin-sdk/dist/types.d.ts.map +1 -1
- package/node_modules/@coro-ai/plugin-sdk/package.json +1 -1
- package/node_modules/@hono/node-server/README.md +104 -25
- package/node_modules/@hono/node-server/dist/conninfo.cjs +22 -0
- package/node_modules/@hono/node-server/dist/{conninfo.d.ts → conninfo.d.cts} +4 -3
- package/node_modules/@hono/node-server/dist/conninfo.d.mts +4 -3
- package/node_modules/@hono/node-server/dist/conninfo.mjs +19 -16
- package/node_modules/@hono/node-server/dist/constants-BLSFu_RU.mjs +5 -0
- package/node_modules/@hono/node-server/dist/constants-BXAKTxRC.cjs +11 -0
- package/node_modules/@hono/node-server/dist/early-hints.cjs +35 -0
- package/node_modules/@hono/node-server/dist/early-hints.d.cts +16 -0
- package/node_modules/@hono/node-server/dist/early-hints.d.mts +16 -0
- package/node_modules/@hono/node-server/dist/early-hints.mjs +33 -0
- package/node_modules/@hono/node-server/dist/index.cjs +1176 -0
- package/node_modules/@hono/node-server/dist/index.d.cts +101 -0
- package/node_modules/@hono/node-server/dist/index.d.mts +101 -8
- package/node_modules/@hono/node-server/dist/index.mjs +1146 -637
- package/node_modules/@hono/node-server/dist/serve-static.cjs +151 -0
- package/node_modules/@hono/node-server/dist/serve-static.d.cts +18 -0
- package/node_modules/@hono/node-server/dist/serve-static.d.mts +14 -13
- package/node_modules/@hono/node-server/dist/serve-static.mjs +143 -145
- package/node_modules/@hono/node-server/dist/utils/response.cjs +8 -0
- package/node_modules/@hono/node-server/dist/utils/response.d.cts +4 -0
- package/node_modules/@hono/node-server/dist/utils/response.d.mts +3 -2
- package/node_modules/@hono/node-server/dist/utils/response.mjs +6 -9
- package/node_modules/@hono/node-server/dist/utils/stream.cjs +65 -0
- package/node_modules/@hono/node-server/dist/utils/stream.d.cts +6 -0
- package/node_modules/@hono/node-server/dist/utils/stream.d.mts +6 -0
- package/node_modules/@hono/node-server/dist/utils/stream.mjs +64 -0
- package/node_modules/@hono/node-server/package.json +78 -54
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js +1 -12
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts +7 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js +9 -3
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js +5 -3
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js +1 -12
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.d.ts +5 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.js +17 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts +9 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js +10 -4
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts +21 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js +239 -41
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js +25 -6
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.d.ts +32 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.js +64 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts +5 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js +10 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +2 -13
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts +7 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js +9 -3
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +5 -3
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +2 -13
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.d.ts +5 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts +9 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js +10 -4
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts +21 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +239 -41
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +25 -6
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.d.ts +32 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js +57 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts +5 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js +9 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js.map +1 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/sbcs-data.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/utf32.js +10 -3
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/package.json +2 -2
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/types/encodings.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/README.md +15 -14
- package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/index.js +0 -8
- package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/package.json +16 -12
- package/node_modules/@modelcontextprotocol/sdk/package.json +4 -3
- package/node_modules/body-parser/HISTORY.md +7 -1
- package/node_modules/body-parser/lib/types/json.js +7 -3
- package/node_modules/body-parser/lib/types/raw.js +7 -3
- package/node_modules/body-parser/lib/types/text.js +7 -3
- package/node_modules/body-parser/lib/types/urlencoded.js +7 -3
- package/node_modules/body-parser/package.json +1 -1
- package/node_modules/express-rate-limit/dist/index.cjs +75 -6
- package/node_modules/express-rate-limit/dist/index.d.cts +16 -0
- package/node_modules/express-rate-limit/dist/index.d.mts +16 -0
- package/node_modules/express-rate-limit/dist/index.d.ts +16 -0
- package/node_modules/express-rate-limit/dist/index.mjs +61 -6
- package/node_modules/express-rate-limit/node_modules/debug/LICENSE +20 -0
- package/node_modules/express-rate-limit/node_modules/debug/README.md +481 -0
- package/node_modules/express-rate-limit/node_modules/debug/package.json +64 -0
- package/node_modules/express-rate-limit/node_modules/debug/src/browser.js +272 -0
- package/node_modules/express-rate-limit/node_modules/debug/src/common.js +292 -0
- package/node_modules/express-rate-limit/node_modules/debug/src/index.js +10 -0
- package/node_modules/express-rate-limit/node_modules/debug/src/node.js +263 -0
- package/node_modules/express-rate-limit/node_modules/ms/index.js +162 -0
- package/node_modules/express-rate-limit/node_modules/ms/license.md +21 -0
- package/node_modules/express-rate-limit/node_modules/ms/package.json +38 -0
- package/node_modules/express-rate-limit/node_modules/ms/readme.md +59 -0
- package/node_modules/express-rate-limit/package.json +12 -9
- package/node_modules/fast-copy/README.md +46 -46
- package/node_modules/fast-copy/dist/cjs/index.cjs +13 -19
- package/node_modules/fast-copy/dist/cjs/index.cjs.map +1 -1
- package/node_modules/fast-copy/dist/cjs/index.d.cts +40 -6
- package/node_modules/fast-copy/dist/es/index.d.mts +40 -6
- package/node_modules/fast-copy/dist/es/index.mjs +13 -19
- package/node_modules/fast-copy/dist/es/index.mjs.map +1 -1
- package/node_modules/fast-copy/dist/umd/index.d.ts +40 -6
- package/node_modules/fast-copy/dist/umd/index.js +13 -19
- package/node_modules/fast-copy/dist/umd/index.js.map +1 -1
- package/node_modules/fast-copy/index.d.ts +22 -22
- package/node_modules/fast-copy/package.json +30 -23
- package/node_modules/fast-uri/index.js +55 -2
- package/node_modules/fast-uri/package.json +1 -1
- package/node_modules/fast-uri/test/security.test.js +226 -0
- package/node_modules/hono/dist/adapter/aws-lambda/handler.js +2 -5
- package/node_modules/hono/dist/adapter/bun/websocket.js +3 -1
- package/node_modules/hono/dist/adapter/lambda-edge/handler.js +12 -2
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +2 -5
- package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +3 -1
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +12 -2
- package/node_modules/hono/dist/cjs/client/client.js +10 -1
- package/node_modules/hono/dist/cjs/client/utils.js +1 -1
- package/node_modules/hono/dist/cjs/context.js +28 -13
- package/node_modules/hono/dist/cjs/helper/proxy/index.js +4 -0
- package/node_modules/hono/dist/cjs/helper/streaming/sse.js +5 -4
- package/node_modules/hono/dist/cjs/hono-base.js +3 -2
- package/node_modules/hono/dist/cjs/jsx/base.js +27 -23
- package/node_modules/hono/dist/cjs/jsx/hooks/index.js +16 -13
- package/node_modules/hono/dist/cjs/middleware/cache/index.js +104 -9
- package/node_modules/hono/dist/cjs/middleware/compress/index.js +7 -1
- package/node_modules/hono/dist/cjs/middleware/cors/index.js +2 -2
- package/node_modules/hono/dist/cjs/middleware/etag/index.js +5 -1
- package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +9 -4
- package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +9 -4
- package/node_modules/hono/dist/cjs/middleware/language/language.js +10 -6
- package/node_modules/hono/dist/cjs/middleware/method-not-allowed/index.js +90 -0
- package/node_modules/hono/dist/cjs/middleware/method-override/index.js +5 -3
- package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +10 -4
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +1 -1
- package/node_modules/hono/dist/cjs/request.js +14 -11
- package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +55 -56
- package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +64 -85
- package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +13 -5
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +10 -1
- package/node_modules/hono/dist/cjs/router.js +1 -1
- package/node_modules/hono/dist/cjs/utils/accept.js +1 -1
- package/node_modules/hono/dist/cjs/utils/body.js +18 -4
- package/node_modules/hono/dist/cjs/utils/buffer.js +2 -1
- package/node_modules/hono/dist/cjs/utils/cookie.js +3 -2
- package/node_modules/hono/dist/cjs/utils/stream.js +5 -2
- package/node_modules/hono/dist/cjs/utils/url.js +8 -8
- package/node_modules/hono/dist/cjs/validator/validator.js +3 -3
- package/node_modules/hono/dist/client/client.js +10 -1
- package/node_modules/hono/dist/client/utils.js +1 -1
- package/node_modules/hono/dist/context.js +28 -13
- package/node_modules/hono/dist/helper/proxy/index.js +4 -0
- package/node_modules/hono/dist/helper/streaming/sse.js +5 -4
- package/node_modules/hono/dist/hono-base.js +3 -2
- package/node_modules/hono/dist/jsx/base.js +27 -23
- package/node_modules/hono/dist/jsx/hooks/index.js +16 -13
- package/node_modules/hono/dist/middleware/cache/index.js +104 -9
- package/node_modules/hono/dist/middleware/compress/index.js +7 -1
- package/node_modules/hono/dist/middleware/cors/index.js +2 -2
- package/node_modules/hono/dist/middleware/etag/index.js +5 -1
- package/node_modules/hono/dist/middleware/jwk/jwk.js +9 -4
- package/node_modules/hono/dist/middleware/jwt/jwt.js +9 -4
- package/node_modules/hono/dist/middleware/language/language.js +10 -6
- package/node_modules/hono/dist/middleware/method-not-allowed/index.js +68 -0
- package/node_modules/hono/dist/middleware/method-override/index.js +5 -3
- package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +10 -4
- package/node_modules/hono/dist/middleware/serve-static/index.js +1 -1
- package/node_modules/hono/dist/request.js +15 -12
- package/node_modules/hono/dist/router/reg-exp-router/node.js +55 -56
- package/node_modules/hono/dist/router/reg-exp-router/router.js +64 -85
- package/node_modules/hono/dist/router/reg-exp-router/trie.js +13 -5
- package/node_modules/hono/dist/router/trie-router/node.js +10 -1
- package/node_modules/hono/dist/router.js +1 -1
- package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +9 -0
- package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +1 -1
- package/node_modules/hono/dist/types/client/types.d.ts +1 -1
- package/node_modules/hono/dist/types/helper/websocket/index.d.ts +1 -1
- package/node_modules/hono/dist/types/hono-base.d.ts +4 -3
- package/node_modules/hono/dist/types/jsx/base.d.ts +4 -2
- package/node_modules/hono/dist/types/jsx/dom/index.d.ts +5 -5
- package/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/dom/server.d.ts +5 -5
- package/node_modules/hono/dist/types/jsx/hooks/index.d.ts +8 -6
- package/node_modules/hono/dist/types/jsx/index.d.ts +5 -5
- package/node_modules/hono/dist/types/middleware/cache/index.d.ts +6 -4
- package/node_modules/hono/dist/types/middleware/combine/index.d.ts +1 -1
- package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +2 -2
- package/node_modules/hono/dist/types/middleware/cors/index.d.ts +1 -1
- package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +2 -2
- package/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +2 -0
- package/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +2 -0
- package/node_modules/hono/dist/types/middleware/language/language.d.ts +18 -0
- package/node_modules/hono/dist/types/middleware/method-not-allowed/index.d.ts +49 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +1 -1
- package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +2 -1
- package/node_modules/hono/dist/types/router.d.ts +1 -1
- package/node_modules/hono/dist/types/utils/body.d.ts +1 -1
- package/node_modules/hono/dist/types/utils/headers.d.ts +2 -2
- package/node_modules/hono/dist/types/utils/types.d.ts +1 -1
- package/node_modules/hono/dist/types/utils/url.d.ts +1 -0
- package/node_modules/hono/dist/utils/accept.js +1 -1
- package/node_modules/hono/dist/utils/body.js +18 -4
- package/node_modules/hono/dist/utils/buffer.js +2 -1
- package/node_modules/hono/dist/utils/cookie.js +4 -3
- package/node_modules/hono/dist/utils/stream.js +5 -2
- package/node_modules/hono/dist/utils/url.js +6 -7
- package/node_modules/hono/dist/validator/validator.js +3 -3
- package/node_modules/hono/package.json +19 -11
- package/node_modules/ip-address/README.md +146 -126
- package/node_modules/ip-address/dist/common.d.ts +29 -0
- package/node_modules/ip-address/dist/common.js +44 -5
- package/node_modules/ip-address/dist/common.js.map +1 -1
- package/node_modules/ip-address/dist/ipv4.d.ts +8 -1
- package/node_modules/ip-address/dist/ipv4.js +24 -20
- package/node_modules/ip-address/dist/ipv4.js.map +1 -1
- package/node_modules/ip-address/dist/ipv6.d.ts +68 -3
- package/node_modules/ip-address/dist/ipv6.js +180 -53
- package/node_modules/ip-address/dist/ipv6.js.map +1 -1
- package/node_modules/ip-address/dist/v4/constants.js +5 -1
- package/node_modules/ip-address/dist/v4/constants.js.map +1 -1
- package/node_modules/ip-address/dist/v6/constants.js +3 -2
- package/node_modules/ip-address/dist/v6/constants.js.map +1 -1
- package/node_modules/ip-address/package.json +6 -4
- package/node_modules/jose/README.md +13 -16
- package/node_modules/jose/dist/types/index.d.ts +6 -5
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +17 -11
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +7 -19
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +17 -11
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +7 -19
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +18 -13
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +20 -21
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +8 -12
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +0 -15
- package/node_modules/jose/dist/types/jwks/local.d.ts +12 -21
- package/node_modules/jose/dist/types/jwks/remote.d.ts +34 -165
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +2 -13
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +17 -13
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +2 -13
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +17 -13
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +16 -17
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +18 -15
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +17 -11
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +10 -34
- package/node_modules/jose/dist/types/jwt/sign.d.ts +2 -13
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +4 -13
- package/node_modules/jose/dist/types/jwt/verify.d.ts +14 -13
- package/node_modules/jose/dist/types/key/export.d.ts +0 -14
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +7 -14
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +16 -14
- package/node_modules/jose/dist/types/key/import.d.ts +18 -28
- package/node_modules/jose/dist/types/types.d.ts +239 -222
- package/node_modules/jose/dist/types/util/base64url.d.ts +11 -4
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +1 -9
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +0 -8
- package/node_modules/jose/dist/types/util/errors.d.ts +128 -121
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +4 -22
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +5 -153
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +16 -111
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +23 -3
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +66 -82
- package/node_modules/jose/dist/webapi/jwk/embedded.js +5 -3
- package/node_modules/jose/dist/webapi/jwks/local.js +32 -73
- package/node_modules/jose/dist/webapi/jwks/remote.js +19 -28
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +5 -2
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +4 -16
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +7 -65
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +3 -89
- package/node_modules/jose/dist/webapi/jws/general/sign.js +19 -15
- package/node_modules/jose/dist/webapi/jws/general/verify.js +29 -9
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +5 -5
- package/node_modules/jose/dist/webapi/jwt/sign.js +2 -3
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +4 -3
- package/node_modules/jose/dist/webapi/jwt/verify.js +6 -6
- package/node_modules/jose/dist/webapi/key/export.js +37 -4
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +33 -82
- package/node_modules/jose/dist/webapi/key/generate_secret.js +2 -2
- package/node_modules/jose/dist/webapi/key/import.js +8 -8
- package/node_modules/jose/dist/webapi/lib/asn1.js +53 -122
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +1 -0
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +34 -109
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +18 -126
- package/node_modules/jose/dist/webapi/lib/helpers.js +23 -0
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -1
- package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +107 -0
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +186 -0
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +110 -0
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +8 -98
- package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +73 -0
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +74 -0
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +107 -0
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +68 -109
- package/node_modules/jose/dist/webapi/lib/key.js +132 -0
- package/node_modules/jose/dist/webapi/lib/key_algorithm.js +10 -0
- package/node_modules/jose/dist/webapi/lib/key_descriptor.js +7 -0
- package/node_modules/jose/dist/webapi/lib/key_management.js +162 -92
- package/node_modules/jose/dist/webapi/lib/options.js +48 -0
- package/node_modules/jose/dist/webapi/lib/signing.js +14 -56
- package/node_modules/jose/dist/webapi/lib/type_checks.js +13 -18
- package/node_modules/jose/dist/webapi/util/base64url.js +13 -4
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +2 -2
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +5 -15
- package/node_modules/jose/dist/webapi/util/errors.js +1 -1
- package/node_modules/jose/package.json +2 -4
- package/node_modules/js-yaml/README.md +5 -3
- package/node_modules/js-yaml/dist/js-yaml.js +3012 -2402
- package/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.min.js +2 -33
- package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.mjs +3073 -2381
- package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
- package/node_modules/js-yaml/lib/loader.js +7 -11
- package/node_modules/js-yaml/lib/type/float.js +1 -1
- package/node_modules/js-yaml/lib/type/int.js +4 -4
- package/node_modules/js-yaml/lib/type/omap.js +3 -3
- package/node_modules/js-yaml/package.json +10 -4
- package/node_modules/node-abi/abi_registry.json +8 -1
- package/node_modules/node-abi/package.json +1 -1
- package/node_modules/openai/CHANGELOG.md +101 -0
- package/node_modules/openai/README.md +9 -2
- package/node_modules/openai/azure.d.mts.map +1 -1
- package/node_modules/openai/azure.d.ts.map +1 -1
- package/node_modules/openai/azure.js +5 -1
- package/node_modules/openai/azure.js.map +1 -1
- package/node_modules/openai/azure.mjs +5 -1
- package/node_modules/openai/azure.mjs.map +1 -1
- package/node_modules/openai/client.d.mts +1 -0
- package/node_modules/openai/client.d.mts.map +1 -1
- package/node_modules/openai/client.d.ts +1 -0
- package/node_modules/openai/client.d.ts.map +1 -1
- package/node_modules/openai/client.js +11 -5
- package/node_modules/openai/client.js.map +1 -1
- package/node_modules/openai/client.mjs +11 -5
- package/node_modules/openai/client.mjs.map +1 -1
- package/node_modules/openai/core/streaming.d.mts.map +1 -1
- package/node_modules/openai/core/streaming.d.ts.map +1 -1
- package/node_modules/openai/core/streaming.js +38 -6
- package/node_modules/openai/core/streaming.js.map +1 -1
- package/node_modules/openai/core/streaming.mjs +38 -6
- package/node_modules/openai/core/streaming.mjs.map +1 -1
- package/node_modules/openai/core/uploads.d.mts +1 -1
- package/node_modules/openai/core/uploads.d.mts.map +1 -1
- package/node_modules/openai/core/uploads.d.ts +1 -1
- package/node_modules/openai/core/uploads.d.ts.map +1 -1
- package/node_modules/openai/core/uploads.js +3 -1
- package/node_modules/openai/core/uploads.js.map +1 -1
- package/node_modules/openai/core/uploads.mjs +1 -0
- package/node_modules/openai/core/uploads.mjs.map +1 -1
- package/node_modules/openai/helpers/audio.d.mts.map +1 -1
- package/node_modules/openai/helpers/audio.d.ts.map +1 -1
- package/node_modules/openai/helpers/audio.js +16 -3
- package/node_modules/openai/helpers/audio.js.map +1 -1
- package/node_modules/openai/helpers/audio.mjs +17 -4
- package/node_modules/openai/helpers/audio.mjs.map +1 -1
- package/node_modules/openai/helpers/standard-schema.d.mts +104 -0
- package/node_modules/openai/helpers/standard-schema.d.mts.map +1 -0
- package/node_modules/openai/helpers/standard-schema.d.ts +104 -0
- package/node_modules/openai/helpers/standard-schema.d.ts.map +1 -0
- package/node_modules/openai/helpers/standard-schema.js +320 -0
- package/node_modules/openai/helpers/standard-schema.js.map +1 -0
- package/node_modules/openai/helpers/standard-schema.mjs +314 -0
- package/node_modules/openai/helpers/standard-schema.mjs.map +1 -0
- package/node_modules/openai/helpers/zod.d.mts +45 -9
- package/node_modules/openai/helpers/zod.d.mts.map +1 -1
- package/node_modules/openai/helpers/zod.d.ts +45 -9
- package/node_modules/openai/helpers/zod.d.ts.map +1 -1
- package/node_modules/openai/helpers/zod.js +120 -18
- package/node_modules/openai/helpers/zod.js.map +1 -1
- package/node_modules/openai/helpers/zod.mjs +119 -18
- package/node_modules/openai/helpers/zod.mjs.map +1 -1
- package/node_modules/openai/index.d.mts +1 -1
- package/node_modules/openai/index.d.mts.map +1 -1
- package/node_modules/openai/index.d.ts +1 -1
- package/node_modules/openai/index.d.ts.map +1 -1
- package/node_modules/openai/index.js +2 -1
- package/node_modules/openai/index.js.map +1 -1
- package/node_modules/openai/index.mjs +1 -1
- package/node_modules/openai/index.mjs.map +1 -1
- package/node_modules/openai/internal/headers.d.mts.map +1 -1
- package/node_modules/openai/internal/headers.d.ts.map +1 -1
- package/node_modules/openai/internal/headers.js +7 -3
- package/node_modules/openai/internal/headers.js.map +1 -1
- package/node_modules/openai/internal/headers.mjs +7 -3
- package/node_modules/openai/internal/headers.mjs.map +1 -1
- package/node_modules/openai/internal/uploads.d.mts +26 -1
- package/node_modules/openai/internal/uploads.d.mts.map +1 -1
- package/node_modules/openai/internal/uploads.d.ts +26 -1
- package/node_modules/openai/internal/uploads.d.ts.map +1 -1
- package/node_modules/openai/internal/uploads.js +169 -1
- package/node_modules/openai/internal/uploads.js.map +1 -1
- package/node_modules/openai/internal/uploads.mjs +169 -2
- package/node_modules/openai/internal/uploads.mjs.map +1 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts +3 -3
- package/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts.map +1 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts +3 -3
- package/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.js +61 -4
- package/node_modules/openai/lib/AbstractChatCompletionRunner.js.map +1 -1
- package/node_modules/openai/lib/AbstractChatCompletionRunner.mjs +61 -4
- package/node_modules/openai/lib/AbstractChatCompletionRunner.mjs.map +1 -1
- package/node_modules/openai/lib/AssistantStream.d.mts.map +1 -1
- package/node_modules/openai/lib/AssistantStream.d.ts.map +1 -1
- package/node_modules/openai/lib/AssistantStream.js +4 -3
- package/node_modules/openai/lib/AssistantStream.js.map +1 -1
- package/node_modules/openai/lib/AssistantStream.mjs +4 -3
- package/node_modules/openai/lib/AssistantStream.mjs.map +1 -1
- package/node_modules/openai/lib/ChatCompletionRunner.d.mts +26 -2
- package/node_modules/openai/lib/ChatCompletionRunner.d.mts.map +1 -1
- package/node_modules/openai/lib/ChatCompletionRunner.d.ts +26 -2
- package/node_modules/openai/lib/ChatCompletionRunner.d.ts.map +1 -1
- package/node_modules/openai/lib/ChatCompletionRunner.js.map +1 -1
- package/node_modules/openai/lib/ChatCompletionRunner.mjs.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStream.d.mts +15 -1
- package/node_modules/openai/lib/ChatCompletionStream.d.mts.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStream.d.ts +15 -1
- package/node_modules/openai/lib/ChatCompletionStream.d.ts.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStream.js +128 -30
- package/node_modules/openai/lib/ChatCompletionStream.js.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStream.mjs +127 -30
- package/node_modules/openai/lib/ChatCompletionStream.mjs.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts +25 -2
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts +25 -2
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.js +77 -0
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.js.map +1 -1
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs +78 -1
- package/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs.map +1 -1
- package/node_modules/openai/lib/EventStream.d.mts +13 -0
- package/node_modules/openai/lib/EventStream.d.mts.map +1 -1
- package/node_modules/openai/lib/EventStream.d.ts +13 -0
- package/node_modules/openai/lib/EventStream.d.ts.map +1 -1
- package/node_modules/openai/lib/EventStream.js +107 -2
- package/node_modules/openai/lib/EventStream.js.map +1 -1
- package/node_modules/openai/lib/EventStream.mjs +107 -2
- package/node_modules/openai/lib/EventStream.mjs.map +1 -1
- package/node_modules/openai/lib/ResponsesParser.d.mts.map +1 -1
- package/node_modules/openai/lib/ResponsesParser.d.ts.map +1 -1
- package/node_modules/openai/lib/ResponsesParser.js +3 -5
- package/node_modules/openai/lib/ResponsesParser.js.map +1 -1
- package/node_modules/openai/lib/ResponsesParser.mjs +3 -5
- package/node_modules/openai/lib/ResponsesParser.mjs.map +1 -1
- package/node_modules/openai/lib/RunnableFunction.d.mts +38 -21
- package/node_modules/openai/lib/RunnableFunction.d.mts.map +1 -1
- package/node_modules/openai/lib/RunnableFunction.d.ts +38 -21
- package/node_modules/openai/lib/RunnableFunction.d.ts.map +1 -1
- package/node_modules/openai/lib/RunnableFunction.js.map +1 -1
- package/node_modules/openai/lib/RunnableFunction.mjs.map +1 -1
- package/node_modules/openai/lib/jsonschema.d.mts +3 -0
- package/node_modules/openai/lib/jsonschema.d.mts.map +1 -1
- package/node_modules/openai/lib/jsonschema.d.ts +3 -0
- package/node_modules/openai/lib/jsonschema.d.ts.map +1 -1
- package/node_modules/openai/lib/parser.d.mts +2 -2
- package/node_modules/openai/lib/parser.d.mts.map +1 -1
- package/node_modules/openai/lib/parser.d.ts +2 -2
- package/node_modules/openai/lib/parser.d.ts.map +1 -1
- package/node_modules/openai/lib/parser.js.map +1 -1
- package/node_modules/openai/lib/parser.mjs.map +1 -1
- package/node_modules/openai/lib/responses/ResponseAccumulator.d.mts +6 -1
- package/node_modules/openai/lib/responses/ResponseAccumulator.d.mts.map +1 -1
- package/node_modules/openai/lib/responses/ResponseAccumulator.d.ts +6 -1
- package/node_modules/openai/lib/responses/ResponseAccumulator.d.ts.map +1 -1
- package/node_modules/openai/lib/responses/ResponseAccumulator.js +1 -0
- package/node_modules/openai/lib/responses/ResponseAccumulator.js.map +1 -1
- package/node_modules/openai/lib/responses/ResponseAccumulator.mjs +1 -0
- package/node_modules/openai/lib/responses/ResponseAccumulator.mjs.map +1 -1
- package/node_modules/openai/lib/responses/ResponseInputItems.d.mts.map +1 -1
- package/node_modules/openai/lib/responses/ResponseInputItems.d.ts.map +1 -1
- package/node_modules/openai/lib/responses/ResponseInputItems.js +2 -0
- package/node_modules/openai/lib/responses/ResponseInputItems.js.map +1 -1
- package/node_modules/openai/lib/responses/ResponseInputItems.mjs +2 -0
- package/node_modules/openai/lib/responses/ResponseInputItems.mjs.map +1 -1
- package/node_modules/openai/lib/responses/ResponseStream.d.mts +6 -1
- package/node_modules/openai/lib/responses/ResponseStream.d.mts.map +1 -1
- package/node_modules/openai/lib/responses/ResponseStream.d.ts +6 -1
- package/node_modules/openai/lib/responses/ResponseStream.d.ts.map +1 -1
- package/node_modules/openai/lib/responses/ResponseStream.js +21 -0
- package/node_modules/openai/lib/responses/ResponseStream.js.map +1 -1
- package/node_modules/openai/lib/responses/ResponseStream.mjs +21 -0
- package/node_modules/openai/lib/responses/ResponseStream.mjs.map +1 -1
- package/node_modules/openai/lib/transform.d.mts +25 -1
- package/node_modules/openai/lib/transform.d.mts.map +1 -1
- package/node_modules/openai/lib/transform.d.ts +25 -1
- package/node_modules/openai/lib/transform.d.ts.map +1 -1
- package/node_modules/openai/lib/transform.js +1521 -82
- package/node_modules/openai/lib/transform.js.map +1 -1
- package/node_modules/openai/lib/transform.mjs +1515 -82
- package/node_modules/openai/lib/transform.mjs.map +1 -1
- package/node_modules/openai/package.json +1 -1
- package/node_modules/openai/resources/admin/organization/audit-logs.d.mts +2 -2
- package/node_modules/openai/resources/admin/organization/audit-logs.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/audit-logs.d.ts +2 -2
- package/node_modules/openai/resources/admin/organization/audit-logs.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/index.d.mts +1 -0
- package/node_modules/openai/resources/admin/organization/index.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/index.d.ts +1 -0
- package/node_modules/openai/resources/admin/organization/index.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/index.js +3 -1
- package/node_modules/openai/resources/admin/organization/index.js.map +1 -1
- package/node_modules/openai/resources/admin/organization/index.mjs +1 -0
- package/node_modules/openai/resources/admin/organization/index.mjs.map +1 -1
- package/node_modules/openai/resources/admin/organization/organization.d.mts +4 -0
- package/node_modules/openai/resources/admin/organization/organization.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/organization.d.ts +4 -0
- package/node_modules/openai/resources/admin/organization/organization.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/organization.js +4 -0
- package/node_modules/openai/resources/admin/organization/organization.js.map +1 -1
- package/node_modules/openai/resources/admin/organization/organization.mjs +4 -0
- package/node_modules/openai/resources/admin/organization/organization.mjs.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/api-keys.d.mts +12 -0
- package/node_modules/openai/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/api-keys.d.ts +12 -0
- package/node_modules/openai/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.d.mts +2 -1
- package/node_modules/openai/resources/admin/organization/projects/index.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.d.ts +2 -1
- package/node_modules/openai/resources/admin/organization/projects/index.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.js +7 -5
- package/node_modules/openai/resources/admin/organization/projects/index.js.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/index.mjs +2 -1
- package/node_modules/openai/resources/admin/organization/projects/index.mjs.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/projects.d.mts +6 -2
- package/node_modules/openai/resources/admin/organization/projects/projects.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/projects.d.ts +6 -2
- package/node_modules/openai/resources/admin/organization/projects/projects.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/projects.js +6 -2
- package/node_modules/openai/resources/admin/organization/projects/projects.js.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/projects.mjs +6 -2
- package/node_modules/openai/resources/admin/organization/projects/projects.mjs.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.mts +58 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.mts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.ts +58 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.ts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.js +26 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.js.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.mjs +22 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.mjs.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.mts +3 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.mts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.ts +3 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.ts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.js +9 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.js.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.mjs +4 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.mjs.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +177 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +177 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.js +109 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.mjs +104 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.mts +1 -167
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.ts +1 -167
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.ts.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.js +2 -97
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.js.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.mjs +1 -95
- package/node_modules/openai/resources/admin/organization/projects/service-accounts.mjs.map +1 -1
- package/node_modules/openai/resources/admin/organization/projects/spend-limit.d.mts +115 -0
- package/node_modules/openai/resources/admin/organization/projects/spend-limit.d.mts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/spend-limit.d.ts +115 -0
- package/node_modules/openai/resources/admin/organization/projects/spend-limit.d.ts.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/spend-limit.js +67 -0
- package/node_modules/openai/resources/admin/organization/projects/spend-limit.js.map +1 -0
- package/node_modules/openai/resources/admin/organization/projects/spend-limit.mjs +63 -0
- package/node_modules/openai/resources/admin/organization/projects/spend-limit.mjs.map +1 -0
- package/node_modules/openai/resources/admin/organization/spend-limit.d.mts +108 -0
- package/node_modules/openai/resources/admin/organization/spend-limit.d.mts.map +1 -0
- package/node_modules/openai/resources/admin/organization/spend-limit.d.ts +108 -0
- package/node_modules/openai/resources/admin/organization/spend-limit.d.ts.map +1 -0
- package/node_modules/openai/resources/admin/organization/spend-limit.js +59 -0
- package/node_modules/openai/resources/admin/organization/spend-limit.js.map +1 -0
- package/node_modules/openai/resources/admin/organization/spend-limit.mjs +55 -0
- package/node_modules/openai/resources/admin/organization/spend-limit.mjs.map +1 -0
- package/node_modules/openai/resources/admin/organization/usage.d.mts +517 -88
- package/node_modules/openai/resources/admin/organization/usage.d.mts.map +1 -1
- package/node_modules/openai/resources/admin/organization/usage.d.ts +517 -88
- package/node_modules/openai/resources/admin/organization/usage.d.ts.map +1 -1
- package/node_modules/openai/resources/beta/assistants.d.mts +12 -26
- package/node_modules/openai/resources/beta/assistants.d.mts.map +1 -1
- package/node_modules/openai/resources/beta/assistants.d.ts +12 -26
- package/node_modules/openai/resources/beta/assistants.d.ts.map +1 -1
- package/node_modules/openai/resources/beta/beta.d.mts +6 -1
- package/node_modules/openai/resources/beta/beta.d.mts.map +1 -1
- package/node_modules/openai/resources/beta/beta.d.ts +6 -1
- package/node_modules/openai/resources/beta/beta.d.ts.map +1 -1
- package/node_modules/openai/resources/beta/beta.js +4 -0
- package/node_modules/openai/resources/beta/beta.js.map +1 -1
- package/node_modules/openai/resources/beta/beta.mjs +4 -0
- package/node_modules/openai/resources/beta/beta.mjs.map +1 -1
- package/node_modules/openai/resources/beta/index.d.mts +1 -0
- package/node_modules/openai/resources/beta/index.d.mts.map +1 -1
- package/node_modules/openai/resources/beta/index.d.ts +1 -0
- package/node_modules/openai/resources/beta/index.d.ts.map +1 -1
- package/node_modules/openai/resources/beta/index.js +5 -3
- package/node_modules/openai/resources/beta/index.js.map +1 -1
- package/node_modules/openai/resources/beta/index.mjs +1 -0
- package/node_modules/openai/resources/beta/index.mjs.map +1 -1
- package/node_modules/openai/resources/beta/responses/index.d.mts +6 -0
- package/node_modules/openai/resources/beta/responses/index.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/index.d.ts +6 -0
- package/node_modules/openai/resources/beta/responses/index.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/index.js +11 -0
- package/node_modules/openai/resources/beta/responses/index.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/index.mjs +5 -0
- package/node_modules/openai/resources/beta/responses/index.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-items.d.mts +69 -0
- package/node_modules/openai/resources/beta/responses/input-items.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-items.d.ts +69 -0
- package/node_modules/openai/resources/beta/responses/input-items.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-items.js +37 -0
- package/node_modules/openai/resources/beta/responses/input-items.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-items.mjs +33 -0
- package/node_modules/openai/resources/beta/responses/input-items.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.d.mts +195 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.d.ts +195 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.js +34 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.mjs +30 -0
- package/node_modules/openai/resources/beta/responses/input-tokens.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses/internal-base.d.mts +71 -0
- package/node_modules/openai/resources/beta/responses/internal-base.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/internal-base.d.ts +71 -0
- package/node_modules/openai/resources/beta/responses/internal-base.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/internal-base.js +48 -0
- package/node_modules/openai/resources/beta/responses/internal-base.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/internal-base.mjs +42 -0
- package/node_modules/openai/resources/beta/responses/internal-base.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses/responses.d.mts +9996 -0
- package/node_modules/openai/resources/beta/responses/responses.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/responses.d.ts +9996 -0
- package/node_modules/openai/resources/beta/responses/responses.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/responses.js +121 -0
- package/node_modules/openai/resources/beta/responses/responses.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/responses.mjs +116 -0
- package/node_modules/openai/resources/beta/responses/responses.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws-base.d.mts +106 -0
- package/node_modules/openai/resources/beta/responses/ws-base.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws-base.d.ts +106 -0
- package/node_modules/openai/resources/beta/responses/ws-base.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws-base.js +476 -0
- package/node_modules/openai/resources/beta/responses/ws-base.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws-base.mjs +472 -0
- package/node_modules/openai/resources/beta/responses/ws-base.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws.d.mts +13 -0
- package/node_modules/openai/resources/beta/responses/ws.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws.d.ts +13 -0
- package/node_modules/openai/resources/beta/responses/ws.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws.js +31 -0
- package/node_modules/openai/resources/beta/responses/ws.js.map +1 -0
- package/node_modules/openai/resources/beta/responses/ws.mjs +26 -0
- package/node_modules/openai/resources/beta/responses/ws.mjs.map +1 -0
- package/node_modules/openai/resources/beta/responses.d.mts +2 -0
- package/node_modules/openai/resources/beta/responses.d.mts.map +1 -0
- package/node_modules/openai/resources/beta/responses.d.ts +2 -0
- package/node_modules/openai/resources/beta/responses.d.ts.map +1 -0
- package/node_modules/openai/resources/beta/responses.js +6 -0
- package/node_modules/openai/resources/beta/responses.js.map +1 -0
- package/node_modules/openai/resources/beta/responses.mjs +3 -0
- package/node_modules/openai/resources/beta/responses.mjs.map +1 -0
- package/node_modules/openai/resources/beta/threads/runs/runs.d.mts +6 -13
- package/node_modules/openai/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/node_modules/openai/resources/beta/threads/runs/runs.d.ts +6 -13
- package/node_modules/openai/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/node_modules/openai/resources/beta/threads/runs/runs.js.map +1 -1
- package/node_modules/openai/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/node_modules/openai/resources/chat/completions/completions.d.mts +174 -23
- package/node_modules/openai/resources/chat/completions/completions.d.mts.map +1 -1
- package/node_modules/openai/resources/chat/completions/completions.d.ts +174 -23
- package/node_modules/openai/resources/chat/completions/completions.d.ts.map +1 -1
- package/node_modules/openai/resources/chat/completions/completions.js.map +1 -1
- package/node_modules/openai/resources/chat/completions/completions.mjs.map +1 -1
- package/node_modules/openai/resources/completions.d.mts +4 -0
- package/node_modules/openai/resources/completions.d.mts.map +1 -1
- package/node_modules/openai/resources/completions.d.ts +4 -0
- package/node_modules/openai/resources/completions.d.ts.map +1 -1
- package/node_modules/openai/resources/conversations/conversations.d.mts +19 -0
- package/node_modules/openai/resources/conversations/conversations.d.mts.map +1 -1
- package/node_modules/openai/resources/conversations/conversations.d.ts +19 -0
- package/node_modules/openai/resources/conversations/conversations.d.ts.map +1 -1
- package/node_modules/openai/resources/conversations/conversations.js.map +1 -1
- package/node_modules/openai/resources/conversations/conversations.mjs.map +1 -1
- package/node_modules/openai/resources/conversations/items.d.mts +45 -1
- package/node_modules/openai/resources/conversations/items.d.mts.map +1 -1
- package/node_modules/openai/resources/conversations/items.d.ts +45 -1
- package/node_modules/openai/resources/conversations/items.d.ts.map +1 -1
- package/node_modules/openai/resources/evals/runs/runs.d.mts +66 -143
- package/node_modules/openai/resources/evals/runs/runs.d.mts.map +1 -1
- package/node_modules/openai/resources/evals/runs/runs.d.ts +66 -143
- package/node_modules/openai/resources/evals/runs/runs.d.ts.map +1 -1
- package/node_modules/openai/resources/evals/runs/runs.js.map +1 -1
- package/node_modules/openai/resources/evals/runs/runs.mjs.map +1 -1
- package/node_modules/openai/resources/graders/grader-models.d.mts +6 -13
- package/node_modules/openai/resources/graders/grader-models.d.mts.map +1 -1
- package/node_modules/openai/resources/graders/grader-models.d.ts +6 -13
- package/node_modules/openai/resources/graders/grader-models.d.ts.map +1 -1
- package/node_modules/openai/resources/realtime/calls.d.mts +1 -1
- package/node_modules/openai/resources/realtime/calls.d.mts.map +1 -1
- package/node_modules/openai/resources/realtime/calls.d.ts +1 -1
- package/node_modules/openai/resources/realtime/calls.d.ts.map +1 -1
- package/node_modules/openai/resources/realtime/client-secrets.d.mts +5 -1
- package/node_modules/openai/resources/realtime/client-secrets.d.mts.map +1 -1
- package/node_modules/openai/resources/realtime/client-secrets.d.ts +5 -1
- package/node_modules/openai/resources/realtime/client-secrets.d.ts.map +1 -1
- package/node_modules/openai/resources/realtime/realtime.d.mts +9 -1
- package/node_modules/openai/resources/realtime/realtime.d.mts.map +1 -1
- package/node_modules/openai/resources/realtime/realtime.d.ts +9 -1
- package/node_modules/openai/resources/realtime/realtime.d.ts.map +1 -1
- package/node_modules/openai/resources/realtime/realtime.js.map +1 -1
- package/node_modules/openai/resources/realtime/realtime.mjs.map +1 -1
- package/node_modules/openai/resources/responses/input-tokens.d.mts +9 -2
- package/node_modules/openai/resources/responses/input-tokens.d.mts.map +1 -1
- package/node_modules/openai/resources/responses/input-tokens.d.ts +9 -2
- package/node_modules/openai/resources/responses/input-tokens.d.ts.map +1 -1
- package/node_modules/openai/resources/responses/responses.d.mts +827 -33
- package/node_modules/openai/resources/responses/responses.d.mts.map +1 -1
- package/node_modules/openai/resources/responses/responses.d.ts +827 -33
- package/node_modules/openai/resources/responses/responses.d.ts.map +1 -1
- package/node_modules/openai/resources/responses/responses.js +1 -1
- package/node_modules/openai/resources/responses/responses.js.map +1 -1
- package/node_modules/openai/resources/responses/responses.mjs +1 -1
- package/node_modules/openai/resources/responses/responses.mjs.map +1 -1
- package/node_modules/openai/resources/shared.d.mts +24 -29
- package/node_modules/openai/resources/shared.d.mts.map +1 -1
- package/node_modules/openai/resources/shared.d.ts +24 -29
- package/node_modules/openai/resources/shared.d.ts.map +1 -1
- package/node_modules/openai/src/azure.ts +5 -1
- package/node_modules/openai/src/client.ts +13 -5
- package/node_modules/openai/src/core/streaming.ts +36 -8
- package/node_modules/openai/src/core/uploads.ts +6 -1
- package/node_modules/openai/src/helpers/audio.ts +18 -4
- package/node_modules/openai/src/helpers/standard-schema.ts +570 -0
- package/node_modules/openai/src/helpers/zod.ts +218 -50
- package/node_modules/openai/src/index.ts +1 -1
- package/node_modules/openai/src/internal/headers.ts +7 -3
- package/node_modules/openai/src/internal/uploads.ts +214 -4
- package/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts +75 -10
- package/node_modules/openai/src/lib/AssistantStream.ts +4 -3
- package/node_modules/openai/src/lib/ChatCompletionRunner.ts +46 -6
- package/node_modules/openai/src/lib/ChatCompletionStream.ts +171 -25
- package/node_modules/openai/src/lib/ChatCompletionStreamingRunner.ts +144 -7
- package/node_modules/openai/src/lib/EventStream.ts +114 -4
- package/node_modules/openai/src/lib/ResponsesParser.ts +7 -5
- package/node_modules/openai/src/lib/RunnableFunction.ts +60 -31
- package/node_modules/openai/src/lib/jsonschema.ts +3 -0
- package/node_modules/openai/src/lib/parser.ts +4 -0
- package/node_modules/openai/src/lib/responses/ResponseAccumulator.ts +10 -1
- package/node_modules/openai/src/lib/responses/ResponseInputItems.ts +2 -0
- package/node_modules/openai/src/lib/responses/ResponseStream.ts +29 -1
- package/node_modules/openai/src/lib/transform.ts +1930 -103
- package/node_modules/openai/src/resources/admin/organization/audit-logs.ts +169 -1
- package/node_modules/openai/src/resources/admin/organization/index.ts +6 -0
- package/node_modules/openai/src/resources/admin/organization/organization.ts +16 -0
- package/node_modules/openai/src/resources/admin/organization/projects/api-keys.ts +15 -1
- package/node_modules/openai/src/resources/admin/organization/projects/index.ts +7 -1
- package/node_modules/openai/src/resources/admin/organization/projects/projects.ts +29 -13
- package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/api-keys.ts +80 -0
- package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/index.ts +15 -0
- package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +284 -0
- package/node_modules/openai/src/resources/admin/organization/projects/service-accounts.ts +1 -264
- package/node_modules/openai/src/resources/admin/organization/projects/spend-limit.ts +156 -0
- package/node_modules/openai/src/resources/admin/organization/spend-limit.ts +144 -0
- package/node_modules/openai/src/resources/admin/organization/usage.ts +616 -88
- package/node_modules/openai/src/resources/beta/assistants.ts +12 -26
- package/node_modules/openai/src/resources/beta/beta.ts +330 -2
- package/node_modules/openai/src/resources/beta/index.ts +163 -0
- package/node_modules/openai/src/resources/beta/responses/index.ts +169 -0
- package/node_modules/openai/src/resources/beta/responses/input-items.ts +105 -0
- package/node_modules/openai/src/resources/beta/responses/input-tokens.ts +249 -0
- package/node_modules/openai/src/resources/beta/responses/internal-base.ts +117 -0
- package/node_modules/openai/src/resources/beta/responses/responses.ts +12644 -0
- package/node_modules/openai/src/resources/beta/responses/ws-base.ts +615 -0
- package/node_modules/openai/src/resources/beta/responses/ws.ts +38 -0
- package/node_modules/openai/src/resources/beta/responses.ts +3 -0
- package/node_modules/openai/src/resources/beta/threads/runs/runs.ts +6 -13
- package/node_modules/openai/src/resources/chat/completions/completions.ts +241 -26
- package/node_modules/openai/src/resources/completions.ts +5 -0
- package/node_modules/openai/src/resources/conversations/conversations.ts +21 -0
- package/node_modules/openai/src/resources/conversations/items.ts +56 -0
- package/node_modules/openai/src/resources/evals/runs/runs.ts +66 -143
- package/node_modules/openai/src/resources/graders/grader-models.ts +6 -13
- package/node_modules/openai/src/resources/realtime/calls.ts +2 -0
- package/node_modules/openai/src/resources/realtime/client-secrets.ts +7 -0
- package/node_modules/openai/src/resources/realtime/realtime.ts +12 -0
- package/node_modules/openai/src/resources/responses/input-tokens.ts +10 -1
- package/node_modules/openai/src/resources/responses/responses.ts +962 -24
- package/node_modules/openai/src/resources/shared.ts +27 -28
- package/node_modules/openai/src/version.ts +1 -1
- package/node_modules/openai/version.d.mts +1 -1
- package/node_modules/openai/version.d.ts +1 -1
- package/node_modules/openai/version.js +1 -1
- package/node_modules/openai/version.mjs +1 -1
- package/node_modules/process-warning/LICENSE +1 -1
- package/node_modules/process-warning/README.md +41 -2
- package/node_modules/process-warning/index.js +85 -17
- package/node_modules/process-warning/package.json +6 -7
- package/node_modules/process-warning/test/emit-once-only.test.js +3 -3
- package/node_modules/process-warning/test/emit-reset.test.js +4 -4
- package/node_modules/process-warning/test/emit-unlimited.test.js +2 -2
- package/node_modules/process-warning/test/spy-warning.test.js +143 -0
- package/node_modules/process-warning/types/index.d.ts +15 -1
- package/node_modules/process-warning/types/index.tst.ts +48 -0
- package/node_modules/tar-fs/index.js +39 -10
- package/node_modules/tar-fs/package.json +6 -1
- package/node_modules/tar-fs/test/index.js +111 -0
- package/node_modules/ws/lib/receiver.js +15 -32
- package/node_modules/ws/lib/websocket-server.js +4 -4
- package/node_modules/ws/lib/websocket.js +4 -4
- package/node_modules/ws/package.json +5 -1
- package/package.json +6 -6
- package/node_modules/@hono/node-server/dist/conninfo.js +0 -42
- package/node_modules/@hono/node-server/dist/globals.d.mts +0 -2
- package/node_modules/@hono/node-server/dist/globals.d.ts +0 -2
- package/node_modules/@hono/node-server/dist/globals.js +0 -29
- package/node_modules/@hono/node-server/dist/globals.mjs +0 -5
- package/node_modules/@hono/node-server/dist/index.d.ts +0 -8
- package/node_modules/@hono/node-server/dist/index.js +0 -702
- package/node_modules/@hono/node-server/dist/listener.d.mts +0 -13
- package/node_modules/@hono/node-server/dist/listener.d.ts +0 -13
- package/node_modules/@hono/node-server/dist/listener.js +0 -670
- package/node_modules/@hono/node-server/dist/listener.mjs +0 -635
- package/node_modules/@hono/node-server/dist/request.d.mts +0 -25
- package/node_modules/@hono/node-server/dist/request.d.ts +0 -25
- package/node_modules/@hono/node-server/dist/request.js +0 -238
- package/node_modules/@hono/node-server/dist/request.mjs +0 -206
- package/node_modules/@hono/node-server/dist/response.d.mts +0 -26
- package/node_modules/@hono/node-server/dist/response.d.ts +0 -26
- package/node_modules/@hono/node-server/dist/response.js +0 -112
- package/node_modules/@hono/node-server/dist/response.mjs +0 -85
- package/node_modules/@hono/node-server/dist/serve-static.d.ts +0 -17
- package/node_modules/@hono/node-server/dist/serve-static.js +0 -177
- package/node_modules/@hono/node-server/dist/server.d.mts +0 -10
- package/node_modules/@hono/node-server/dist/server.d.ts +0 -10
- package/node_modules/@hono/node-server/dist/server.js +0 -696
- package/node_modules/@hono/node-server/dist/server.mjs +0 -660
- package/node_modules/@hono/node-server/dist/types.d.mts +0 -44
- package/node_modules/@hono/node-server/dist/types.d.ts +0 -44
- package/node_modules/@hono/node-server/dist/types.js +0 -18
- package/node_modules/@hono/node-server/dist/types.mjs +0 -0
- package/node_modules/@hono/node-server/dist/utils/response/constants.d.mts +0 -3
- package/node_modules/@hono/node-server/dist/utils/response/constants.d.ts +0 -3
- package/node_modules/@hono/node-server/dist/utils/response/constants.js +0 -30
- package/node_modules/@hono/node-server/dist/utils/response/constants.mjs +0 -5
- package/node_modules/@hono/node-server/dist/utils/response.d.ts +0 -3
- package/node_modules/@hono/node-server/dist/utils/response.js +0 -37
- package/node_modules/@hono/node-server/dist/utils.d.mts +0 -9
- package/node_modules/@hono/node-server/dist/utils.d.ts +0 -9
- package/node_modules/@hono/node-server/dist/utils.js +0 -99
- package/node_modules/@hono/node-server/dist/utils.mjs +0 -71
- package/node_modules/@hono/node-server/dist/vercel.d.mts +0 -7
- package/node_modules/@hono/node-server/dist/vercel.d.ts +0 -7
- package/node_modules/@hono/node-server/dist/vercel.js +0 -677
- package/node_modules/@hono/node-server/dist/vercel.mjs +0 -640
- package/node_modules/fast-copy/CHANGELOG.md +0 -176
- package/node_modules/fast-copy/dist/cjs/copier.d.cts +0 -75
- package/node_modules/fast-copy/dist/cjs/options.d.cts +0 -69
- package/node_modules/fast-copy/dist/cjs/utils.d.cts +0 -13
- package/node_modules/fast-copy/dist/es/copier.d.mts +0 -75
- package/node_modules/fast-copy/dist/es/options.d.mts +0 -69
- package/node_modules/fast-copy/dist/es/utils.d.mts +0 -13
- package/node_modules/fast-copy/dist/umd/copier.d.ts +0 -72
- package/node_modules/fast-copy/dist/umd/options.d.ts +0 -65
- package/node_modules/fast-copy/dist/umd/utils.d.ts +0 -13
- package/node_modules/hono/dist/tsconfig.build.tsbuildinfo +0 -1
- package/node_modules/jose/dist/webapi/lib/aesgcmkw.js +0 -15
- package/node_modules/jose/dist/webapi/lib/aeskw.js +0 -25
- package/node_modules/jose/dist/webapi/lib/check_key_type.js +0 -122
- package/node_modules/jose/dist/webapi/lib/ecdhes.js +0 -52
- package/node_modules/jose/dist/webapi/lib/key_to_jwk.js +0 -31
- package/node_modules/jose/dist/webapi/lib/normalize_key.js +0 -166
- package/node_modules/jose/dist/webapi/lib/pbes2kw.js +0 -42
- package/node_modules/jose/dist/webapi/lib/rsaes.js +0 -24
- package/node_modules/jose/dist/webapi/lib/validate_algorithms.js +0 -10
- package/node_modules/jose/dist/webapi/lib/validate_crit.js +0 -33
- package/node_modules/process-warning/types/index.test-d.ts +0 -36
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ── Claude CLI credential store ─────────────────────────────────────────────
|
|
3
|
+
//
|
|
4
|
+
// Read (and renew) the OAuth session that the Claude CLI persists on this
|
|
5
|
+
// host. Used by the `claudeLogin` auth method, which deliberately stores no
|
|
6
|
+
// tokens in Coro's own config — the CLI's store is the single source of
|
|
7
|
+
// truth, shared with any interactive Claude Code on the same machine.
|
|
8
|
+
//
|
|
9
|
+
// Anthropic issues claude.ai access tokens with an **8-hour** lifetime
|
|
10
|
+
// alongside a long-lived refresh token. The lifetime is not negotiable: the
|
|
11
|
+
// CLI's own long-lived-token path asks for a year
|
|
12
|
+
// (`expires_in: 31536000`) and the server still returns 8 hours for
|
|
13
|
+
// full-scope tokens — only inference-only tokens (`claude setup-token`)
|
|
14
|
+
// get the long expiry, and those lack `user:mcp_servers`.
|
|
15
|
+
//
|
|
16
|
+
// So an 8-hour expiry is normal and must be renewed rather than reported as
|
|
17
|
+
// a dead end. {@link refreshClaudeLocalSession} does that by handing the
|
|
18
|
+
// stored refresh token back to the CLI's own non-interactive login path,
|
|
19
|
+
// which exchanges it and rewrites the store through the CLI's own writer.
|
|
20
|
+
// Going through the CLI (rather than calling the token endpoint ourselves)
|
|
21
|
+
// keeps Coro out of the business of knowing the credential format, the
|
|
22
|
+
// keychain ACLs, or the cross-process locking.
|
|
23
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
24
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.isSessionExpired = isSessionExpired;
|
|
28
|
+
exports.readClaudeLocalSession = readClaudeLocalSession;
|
|
29
|
+
exports.loadClaudeLocalSession = loadClaudeLocalSession;
|
|
30
|
+
exports.refreshClaudeLocalSession = refreshClaudeLocalSession;
|
|
31
|
+
exports.resetRefreshCooldown = resetRefreshCooldown;
|
|
32
|
+
const child_process_1 = require("child_process");
|
|
33
|
+
const fs_1 = require("fs");
|
|
34
|
+
const os_1 = require("os");
|
|
35
|
+
const path_1 = __importDefault(require("path"));
|
|
36
|
+
const cli_path_1 = require("./cli-path");
|
|
37
|
+
/**
|
|
38
|
+
* Treat a session as unusable slightly before its stated expiry so we don't
|
|
39
|
+
* hand out a token that dies mid-request.
|
|
40
|
+
*
|
|
41
|
+
* Deliberately much tighter than the CLI's own 5-minute refresh window: the
|
|
42
|
+
* CLI renews before every API call it makes, so in the normal case (jobs
|
|
43
|
+
* running regularly) it keeps the store fresh on its own and Coro never
|
|
44
|
+
* intervenes. We only step in for the case the CLI cannot cover — the runner
|
|
45
|
+
* idling past the 8-hour expiry with no Claude Code process to trigger a
|
|
46
|
+
* renewal. Refreshing rotates the refresh token, so a wider window here
|
|
47
|
+
* would mean Coro racing the many `claude` subprocesses it spawns for
|
|
48
|
+
* parallel job phases.
|
|
49
|
+
*/
|
|
50
|
+
const EXPIRY_BUFFER_MS = 60_000;
|
|
51
|
+
/** Give the refresh exchange a bounded window before declaring it failed. */
|
|
52
|
+
const REFRESH_TIMEOUT_MS = 60_000;
|
|
53
|
+
/**
|
|
54
|
+
* Scopes to request if the stored session somehow records none. Matches the
|
|
55
|
+
* CLI's default full-scope set for a claude.ai login.
|
|
56
|
+
*/
|
|
57
|
+
const DEFAULT_SCOPES = [
|
|
58
|
+
'user:profile',
|
|
59
|
+
'user:inference',
|
|
60
|
+
'user:sessions:claude_code',
|
|
61
|
+
'user:mcp_servers',
|
|
62
|
+
'user:file_upload',
|
|
63
|
+
];
|
|
64
|
+
/** True when `expiresAt` has passed (or is about to). */
|
|
65
|
+
function isSessionExpired(expiresAt) {
|
|
66
|
+
if (expiresAt === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
return Date.now() + EXPIRY_BUFFER_MS >= expiresAt;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Read the persisted Claude CLI OAuth session from the platform's
|
|
72
|
+
* credential store.
|
|
73
|
+
*
|
|
74
|
+
* - **macOS** — `security find-generic-password -s "Claude Code-credentials" -w`
|
|
75
|
+
* returns a JSON blob `{ claudeAiOauth: { accessToken, refreshToken,
|
|
76
|
+
* expiresAt, scopes, subscriptionType } }`.
|
|
77
|
+
* - **Linux** — the same JSON blob lives at `~/.claude/.credentials.json`.
|
|
78
|
+
* - **Windows** — Claude Code stores via DPAPI; we have no public path
|
|
79
|
+
* to read it without spawning the CLI itself, so we degrade to a
|
|
80
|
+
* "couldn't read" error and ask the user to use an API key.
|
|
81
|
+
*
|
|
82
|
+
* The accompanying account metadata (email / organization) lives in
|
|
83
|
+
* `~/.claude.json` — we read it best-effort so the success message can
|
|
84
|
+
* include the account name.
|
|
85
|
+
*/
|
|
86
|
+
function readClaudeLocalSession() {
|
|
87
|
+
const raw = readRawCredentialBlob();
|
|
88
|
+
const blob = parseCredentialBlob(raw);
|
|
89
|
+
const account = readClaudeAccountInfo();
|
|
90
|
+
return {
|
|
91
|
+
accessToken: blob.accessToken,
|
|
92
|
+
refreshToken: blob.refreshToken,
|
|
93
|
+
expiresAt: blob.expiresAt,
|
|
94
|
+
scopes: blob.scopes,
|
|
95
|
+
accountEmail: account.email,
|
|
96
|
+
organizationName: account.organizationName,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Read the stored session, renewing it first when the access token has
|
|
101
|
+
* expired (or is about to).
|
|
102
|
+
*
|
|
103
|
+
* This is what callers should use instead of {@link readClaudeLocalSession}
|
|
104
|
+
* whenever the token is about to be *used*. An expired access token is a
|
|
105
|
+
* routine, self-healing condition — reporting it as a failure is what used
|
|
106
|
+
* to force a manual "Reconnect" roughly every 8 hours.
|
|
107
|
+
*
|
|
108
|
+
* Never throws on refresh failure: the returned session is simply still
|
|
109
|
+
* expired, and the caller renders its own message.
|
|
110
|
+
*/
|
|
111
|
+
async function loadClaudeLocalSession(logger) {
|
|
112
|
+
// A missing store (never logged in, or an unsupported platform) has
|
|
113
|
+
// nothing to refresh, so the read error propagates to the caller.
|
|
114
|
+
const session = readClaudeLocalSession();
|
|
115
|
+
if (!session.accessToken || !isSessionExpired(session.expiresAt))
|
|
116
|
+
return session;
|
|
117
|
+
if (!(await refreshClaudeLocalSession(logger)))
|
|
118
|
+
return session;
|
|
119
|
+
try {
|
|
120
|
+
return readClaudeLocalSession();
|
|
121
|
+
}
|
|
122
|
+
catch {
|
|
123
|
+
return session;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/** Serialises concurrent refresh attempts inside this process. */
|
|
127
|
+
let inFlightRefresh = null;
|
|
128
|
+
/**
|
|
129
|
+
* When the last attempt failed. A revoked or expired refresh token fails
|
|
130
|
+
* every time, and `healthcheck()` runs on every dashboard poll — without a
|
|
131
|
+
* cooldown that would spawn a CLI process per poll for a session that can
|
|
132
|
+
* only be fixed by a human clicking Reconnect.
|
|
133
|
+
*/
|
|
134
|
+
let lastRefreshFailureAt = null;
|
|
135
|
+
/** How long to stop retrying after a failed exchange. */
|
|
136
|
+
const REFRESH_FAILURE_COOLDOWN_MS = 60_000;
|
|
137
|
+
/**
|
|
138
|
+
* Exchange the stored refresh token for a fresh access token and write it
|
|
139
|
+
* back to the credential store.
|
|
140
|
+
*
|
|
141
|
+
* Delegates to `claude auth login`, which reads
|
|
142
|
+
* `CLAUDE_CODE_OAUTH_REFRESH_TOKEN` / `CLAUDE_CODE_OAUTH_SCOPES` and runs
|
|
143
|
+
* the exchange non-interactively. The CLI validates the new token against
|
|
144
|
+
* the API before persisting it, and only writes on success — so a network
|
|
145
|
+
* failure here leaves the existing credentials untouched.
|
|
146
|
+
*
|
|
147
|
+
* Returns false (never throws) when there is nothing to refresh with or the
|
|
148
|
+
* exchange fails; the caller decides how to report that.
|
|
149
|
+
*/
|
|
150
|
+
async function refreshClaudeLocalSession(logger) {
|
|
151
|
+
if (inFlightRefresh)
|
|
152
|
+
return inFlightRefresh;
|
|
153
|
+
if (lastRefreshFailureAt !== null &&
|
|
154
|
+
Date.now() - lastRefreshFailureAt < REFRESH_FAILURE_COOLDOWN_MS) {
|
|
155
|
+
return false;
|
|
156
|
+
}
|
|
157
|
+
inFlightRefresh = performRefresh(logger)
|
|
158
|
+
.then(ok => {
|
|
159
|
+
lastRefreshFailureAt = ok ? null : Date.now();
|
|
160
|
+
return ok;
|
|
161
|
+
})
|
|
162
|
+
.finally(() => {
|
|
163
|
+
inFlightRefresh = null;
|
|
164
|
+
});
|
|
165
|
+
return inFlightRefresh;
|
|
166
|
+
}
|
|
167
|
+
/** Clear the failure cooldown so a fresh login is picked up immediately. */
|
|
168
|
+
function resetRefreshCooldown() {
|
|
169
|
+
lastRefreshFailureAt = null;
|
|
170
|
+
}
|
|
171
|
+
async function performRefresh(logger) {
|
|
172
|
+
let session;
|
|
173
|
+
try {
|
|
174
|
+
session = readClaudeLocalSession();
|
|
175
|
+
}
|
|
176
|
+
catch (err) {
|
|
177
|
+
logger?.debug({ err }, 'anthropic.refresh: no local credential store to refresh');
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
if (!session.refreshToken) {
|
|
181
|
+
// Inference-only tokens (`claude setup-token`) carry no refresh token,
|
|
182
|
+
// and neither does a store that was never populated by a real login.
|
|
183
|
+
logger?.debug('anthropic.refresh: stored session has no refresh token');
|
|
184
|
+
return false;
|
|
185
|
+
}
|
|
186
|
+
let cliPath;
|
|
187
|
+
try {
|
|
188
|
+
cliPath = (0, cli_path_1.resolveClaudeCodeCliPath)();
|
|
189
|
+
}
|
|
190
|
+
catch (err) {
|
|
191
|
+
logger?.warn({ err }, 'anthropic.refresh: could not locate the Claude CLI');
|
|
192
|
+
return false;
|
|
193
|
+
}
|
|
194
|
+
if (logger)
|
|
195
|
+
(0, cli_path_1.ensureClaudeCodeCliExecutable)(cliPath, logger);
|
|
196
|
+
const scopes = session.scopes?.length ? [...session.scopes] : [...DEFAULT_SCOPES];
|
|
197
|
+
const env = {};
|
|
198
|
+
for (const [key, value] of Object.entries(process.env)) {
|
|
199
|
+
if (value !== undefined)
|
|
200
|
+
env[key] = value;
|
|
201
|
+
}
|
|
202
|
+
// The CLI short-circuits to env-supplied credentials when either of these
|
|
203
|
+
// is set, which would bypass the stored session we are trying to renew.
|
|
204
|
+
delete env['ANTHROPIC_API_KEY'];
|
|
205
|
+
delete env['CLAUDE_CODE_OAUTH_TOKEN'];
|
|
206
|
+
env['CLAUDE_CODE_OAUTH_REFRESH_TOKEN'] = session.refreshToken;
|
|
207
|
+
env['CLAUDE_CODE_OAUTH_SCOPES'] = scopes.join(' ');
|
|
208
|
+
logger?.info({ scopes }, 'anthropic.refresh: renewing the Claude session from its refresh token');
|
|
209
|
+
return new Promise(resolve => {
|
|
210
|
+
(0, child_process_1.execFile)(cliPath, ['auth', 'login'], { env, timeout: REFRESH_TIMEOUT_MS, encoding: 'utf-8' }, (err, _stdout, stderr) => {
|
|
211
|
+
if (err) {
|
|
212
|
+
logger?.warn({ err, stderr: (stderr ?? '').slice(0, 500) }, 'anthropic.refresh: refresh-token exchange failed');
|
|
213
|
+
resolve(false);
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
logger?.info('anthropic.refresh: Claude session renewed');
|
|
217
|
+
resolve(true);
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
function readRawCredentialBlob() {
|
|
222
|
+
if (process.platform === 'darwin') {
|
|
223
|
+
try {
|
|
224
|
+
// `-w` prints the password value to stdout; service name matches
|
|
225
|
+
// what the Claude CLI uses for its persisted OAuth blob.
|
|
226
|
+
return (0, child_process_1.execFileSync)('security', ['find-generic-password', '-s', 'Claude Code-credentials', '-w'], { encoding: 'utf-8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();
|
|
227
|
+
}
|
|
228
|
+
catch {
|
|
229
|
+
throw new Error('No Claude Code keychain entry found.');
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
if (process.platform === 'linux') {
|
|
233
|
+
const filePath = path_1.default.join((0, os_1.homedir)(), '.claude', '.credentials.json');
|
|
234
|
+
try {
|
|
235
|
+
return (0, fs_1.readFileSync)(filePath, 'utf-8');
|
|
236
|
+
}
|
|
237
|
+
catch {
|
|
238
|
+
throw new Error(`No Claude credentials file at ${filePath}.`);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
throw new Error(`Reading the local Claude session is not supported on ${process.platform}. Use an Anthropic API key for now.`);
|
|
242
|
+
}
|
|
243
|
+
function parseCredentialBlob(text) {
|
|
244
|
+
let parsed;
|
|
245
|
+
try {
|
|
246
|
+
parsed = JSON.parse(text);
|
|
247
|
+
}
|
|
248
|
+
catch {
|
|
249
|
+
throw new Error('Local Claude credential store is not valid JSON.');
|
|
250
|
+
}
|
|
251
|
+
const oauth = parsed && typeof parsed === 'object' && 'claudeAiOauth' in parsed
|
|
252
|
+
? parsed.claudeAiOauth
|
|
253
|
+
: parsed;
|
|
254
|
+
return {
|
|
255
|
+
accessToken: typeof oauth['accessToken'] === 'string' ? oauth['accessToken'] : null,
|
|
256
|
+
refreshToken: typeof oauth['refreshToken'] === 'string' ? oauth['refreshToken'] : null,
|
|
257
|
+
expiresAt: typeof oauth['expiresAt'] === 'number' ? oauth['expiresAt'] : undefined,
|
|
258
|
+
scopes: Array.isArray(oauth['scopes']) ? oauth['scopes'] : undefined,
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
function readClaudeAccountInfo() {
|
|
262
|
+
try {
|
|
263
|
+
const filePath = path_1.default.join((0, os_1.homedir)(), '.claude.json');
|
|
264
|
+
const raw = (0, fs_1.readFileSync)(filePath, 'utf-8');
|
|
265
|
+
const parsed = JSON.parse(raw);
|
|
266
|
+
const account = parsed['oauthAccount'];
|
|
267
|
+
if (!account)
|
|
268
|
+
return {};
|
|
269
|
+
return {
|
|
270
|
+
email: typeof account['emailAddress'] === 'string' ? account['emailAddress'] : undefined,
|
|
271
|
+
organizationName: typeof account['organizationName'] === 'string' ? account['organizationName'] : undefined,
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
catch {
|
|
275
|
+
return {};
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
//# sourceMappingURL=credential-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-store.js","sourceRoot":"","sources":["../src/credential-store.ts"],"names":[],"mappings":";AAAA,+EAA+E;AAC/E,EAAE;AACF,0EAA0E;AAC1E,4EAA4E;AAC5E,wEAAwE;AACxE,sEAAsE;AACtE,EAAE;AACF,uEAAuE;AACvE,4EAA4E;AAC5E,kDAAkD;AAClD,oEAAoE;AACpE,wEAAwE;AACxE,0DAA0D;AAC1D,EAAE;AACF,4EAA4E;AAC5E,yEAAyE;AACzE,yEAAyE;AACzE,0EAA0E;AAC1E,2EAA2E;AAC3E,uEAAuE;AACvE,+CAA+C;;;;;AAiD/C,4CAGC;AAkBD,wDAYC;AAcD,wDAaC;AA6BD,8DAiBC;AAGD,oDAEC;AA9JD,iDAAsD;AACtD,2BAAiC;AACjC,2BAA4B;AAC5B,gDAAuB;AAEvB,yCAAoF;AAWpF;;;;;;;;;;;;GAYG;AACH,MAAM,gBAAgB,GAAG,MAAM,CAAA;AAE/B,6EAA6E;AAC7E,MAAM,kBAAkB,GAAG,MAAM,CAAA;AAEjC;;;GAGG;AACH,MAAM,cAAc,GAAG;IACrB,cAAc;IACd,gBAAgB;IAChB,2BAA2B;IAC3B,kBAAkB;IAClB,kBAAkB;CACV,CAAA;AAEV,yDAAyD;AACzD,SAAgB,gBAAgB,CAAC,SAA6B;IAC5D,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,KAAK,CAAA;IACzC,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,gBAAgB,IAAI,SAAS,CAAA;AACnD,CAA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AAE,OAAO,CAAC,cAAc,CAAY,CAAC,CAAC,CAAC,SAAS;YACpG,gBAAgB,EACd,OAAO,OAAO,CAAC,kBAAkB,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAE,OAAO,CAAC,kBAAkB,CAAY,CAAC,CAAC,CAAC,SAAS;SACxG,CAAA;IACH,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAA;IACX,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Logger } from 'pino';
|
|
2
2
|
import type { ChatRequest, ChatResult, ExecutorCapabilities, ExecutorModelDescriptor, PhaseExecutionRequest, PhaseExecutorEvent, PhaseExecutorRuntime, PluginDeps, PluginHealth, PluginHttpRoutesContext, PluginManifest, PluginMcpServerConfig, PluginTestResult } from '@coro-ai/plugin-sdk';
|
|
3
3
|
import type { AnthropicExecutorSettings, ClaudeAuthConfig } from './types';
|
|
4
|
+
import type { ExecutorSandboxReport } from '@coro-ai/plugin-sdk';
|
|
4
5
|
export declare const ANTHROPIC_MANIFEST: PluginManifest;
|
|
5
6
|
export interface AnthropicExecutorOptions {
|
|
6
7
|
/**
|
|
@@ -26,7 +27,10 @@ export declare class AnthropicExecutor implements PhaseExecutorRuntime {
|
|
|
26
27
|
private readonly settings;
|
|
27
28
|
private auth;
|
|
28
29
|
private readonly logger;
|
|
29
|
-
|
|
30
|
+
/** Timestamp of the last *successful* live auth probe; see {@link AUTH_PROBE_TTL_MS}. */
|
|
31
|
+
private authProbeOkAt;
|
|
32
|
+
/** `undefined` = not probed yet; `null` = probed, no host sandbox. */
|
|
33
|
+
private sandboxProbe;
|
|
30
34
|
constructor(opts: AnthropicExecutorOptions);
|
|
31
35
|
/**
|
|
32
36
|
* Adopts the auth fields from the persisted plugin config. The
|
|
@@ -113,6 +117,13 @@ export declare class AnthropicExecutor implements PhaseExecutorRuntime {
|
|
|
113
117
|
* runner every time Anthropic publishes a new snapshot.
|
|
114
118
|
*/
|
|
115
119
|
supports(model: string): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Report a host sandbox that overrides our `sandbox: { enabled: false }`
|
|
122
|
+
* request (see the note on that option in `executePhase`). Memoised: the
|
|
123
|
+
* policy is read by the CLI at process start, so it cannot change
|
|
124
|
+
* between phases of a running job, and this is called once per phase.
|
|
125
|
+
*/
|
|
126
|
+
describeSandbox(): ExecutorSandboxReport | null;
|
|
116
127
|
/**
|
|
117
128
|
* Run a single workflow phase against the Claude Agent SDK.
|
|
118
129
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../src/executor.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAQlC,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EAKV,oBAAoB,EACpB,uBAAuB,EAEvB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,YAAY,EACZ,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../src/executor.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAQlC,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EAKV,oBAAoB,EACpB,uBAAuB,EAEvB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,YAAY,EACZ,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,qBAAqB,CAAA;AAuB5B,OAAO,KAAK,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAyB,MAAM,qBAAqB,CAAA;AAqNvF,eAAO,MAAM,kBAAkB,EAAE,cAsBhC,CAAA;AAID,MAAM,WA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M,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAqBrE;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAIhC;;;;;OAKG;IACH,eAAe,IAAI,qBAAqB,GAAG,IAAI;IAmB/C;;;;;;;;;;;;;;;;;;;;OAoBG;IACI,YAAY,CAAC,GAAG,EAAE,qBAAqB,GAAG,aAAa,CAAC,kBAAkB,CAAC;IAwwBlF;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CAAC,yBAAyB;IAsBjC;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAe;IAE7C;;;OAGG;IACH,SAAS,IAAI,qBAAqB,GAAG,SAAS;CAG/C;AAID;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,wBAAwB,GAAG,iBAAiB,CAEzF"}
|
|
@@ -31,6 +31,7 @@ const plugin_sdk_1 = require("@coro-ai/plugin-sdk");
|
|
|
31
31
|
const auth_1 = require("./auth");
|
|
32
32
|
const http_routes_1 = require("./http-routes");
|
|
33
33
|
const test_connection_1 = require("./test-connection");
|
|
34
|
+
const credential_store_1 = require("./credential-store");
|
|
34
35
|
const hooks_1 = require("./hooks");
|
|
35
36
|
const pushable_1 = require("./pushable");
|
|
36
37
|
const abort_link_1 = require("./abort-link");
|
|
@@ -39,6 +40,7 @@ const mcp_heal_1 = require("./mcp-heal");
|
|
|
39
40
|
const mcp_reattach_1 = require("./mcp-reattach");
|
|
40
41
|
const steering_errors_1 = require("./steering-errors");
|
|
41
42
|
const chat_via_sdk_1 = require("./chat-via-sdk");
|
|
43
|
+
const sandbox_probe_1 = require("./sandbox-probe");
|
|
42
44
|
/** Translate a generic ConversationMessage into the SDK's user-message shape. */
|
|
43
45
|
function toSdkUserMessage(msg) {
|
|
44
46
|
return {
|
|
@@ -146,19 +148,29 @@ const ANTHROPIC_CLASSIFY_OPTIONS = {
|
|
|
146
148
|
const ANTHROPIC_MODELS = [
|
|
147
149
|
// Current generation — dateless IDs are pinned snapshots, not evergreen
|
|
148
150
|
// pointers. Source: platform.claude.com/docs models overview.
|
|
151
|
+
{
|
|
152
|
+
id: 'claude-fable-5',
|
|
153
|
+
displayName: 'Claude Fable 5',
|
|
154
|
+
contextTokens: 1_000_000,
|
|
155
|
+
tier: 'planning',
|
|
156
|
+
supportsThinking: true,
|
|
157
|
+
pricing: { inputPerMTokens: 10, outputPerMTokens: 50, cacheReadPerMTokens: 1 },
|
|
158
|
+
},
|
|
149
159
|
{
|
|
150
160
|
id: 'claude-opus-4-8',
|
|
151
161
|
displayName: 'Claude Opus 4.8',
|
|
152
162
|
contextTokens: 1_000_000,
|
|
153
163
|
tier: 'planning',
|
|
164
|
+
isDefault: true,
|
|
154
165
|
supportsThinking: true,
|
|
155
166
|
pricing: { inputPerMTokens: 5, outputPerMTokens: 25, cacheReadPerMTokens: 0.5 },
|
|
156
167
|
},
|
|
157
168
|
{
|
|
158
|
-
id: 'claude-sonnet-
|
|
159
|
-
displayName: 'Claude Sonnet
|
|
169
|
+
id: 'claude-sonnet-5',
|
|
170
|
+
displayName: 'Claude Sonnet 5',
|
|
160
171
|
contextTokens: 1_000_000,
|
|
161
172
|
tier: 'coding',
|
|
173
|
+
isDefault: true,
|
|
162
174
|
supportsThinking: true,
|
|
163
175
|
pricing: { inputPerMTokens: 3, outputPerMTokens: 15, cacheReadPerMTokens: 0.3 },
|
|
164
176
|
},
|
|
@@ -167,11 +179,20 @@ const ANTHROPIC_MODELS = [
|
|
|
167
179
|
displayName: 'Claude Haiku 4.5',
|
|
168
180
|
contextTokens: 200_000,
|
|
169
181
|
tier: 'mini',
|
|
182
|
+
isDefault: true,
|
|
170
183
|
supportsThinking: true,
|
|
171
184
|
pricing: { inputPerMTokens: 0.8, outputPerMTokens: 4, cacheReadPerMTokens: 0.08 },
|
|
172
185
|
},
|
|
173
186
|
// Previous generation — kept available for cost/latency tuning and
|
|
174
187
|
// for tenants that have pinned older IDs in their workflow front matter.
|
|
188
|
+
{
|
|
189
|
+
id: 'claude-sonnet-4-6',
|
|
190
|
+
displayName: 'Claude Sonnet 4.6',
|
|
191
|
+
contextTokens: 1_000_000,
|
|
192
|
+
tier: 'coding',
|
|
193
|
+
supportsThinking: true,
|
|
194
|
+
pricing: { inputPerMTokens: 3, outputPerMTokens: 15, cacheReadPerMTokens: 0.3 },
|
|
195
|
+
},
|
|
175
196
|
{
|
|
176
197
|
id: 'claude-sonnet-4-5',
|
|
177
198
|
displayName: 'Claude Sonnet 4.5',
|
|
@@ -248,7 +269,10 @@ class AnthropicExecutor {
|
|
|
248
269
|
settings;
|
|
249
270
|
auth;
|
|
250
271
|
logger;
|
|
251
|
-
|
|
272
|
+
/** Timestamp of the last *successful* live auth probe; see {@link AUTH_PROBE_TTL_MS}. */
|
|
273
|
+
authProbeOkAt = null;
|
|
274
|
+
/** `undefined` = not probed yet; `null` = probed, no host sandbox. */
|
|
275
|
+
sandboxProbe = undefined;
|
|
252
276
|
constructor(opts) {
|
|
253
277
|
this.settings = opts.settings;
|
|
254
278
|
this.auth = opts.auth ?? { method: 'apiKey', apiKey: '' };
|
|
@@ -276,7 +300,7 @@ class AnthropicExecutor {
|
|
|
276
300
|
...(cfg.oauthToken ? { oauthToken: cfg.oauthToken } : {}),
|
|
277
301
|
...(cfg.account ? { account: cfg.account } : {}),
|
|
278
302
|
};
|
|
279
|
-
this.
|
|
303
|
+
this.authProbeOkAt = null;
|
|
280
304
|
}
|
|
281
305
|
}
|
|
282
306
|
/**
|
|
@@ -295,17 +319,17 @@ class AnthropicExecutor {
|
|
|
295
319
|
}
|
|
296
320
|
if ((auth.method ?? 'claudeLogin') === 'claudeLogin') {
|
|
297
321
|
try {
|
|
298
|
-
const session = (0,
|
|
322
|
+
const session = await (0, credential_store_1.loadClaudeLocalSession)(this.logger);
|
|
299
323
|
if (!session.accessToken) {
|
|
300
324
|
return {
|
|
301
325
|
ok: false,
|
|
302
326
|
reason: 'Claude is not signed in on this machine.',
|
|
303
327
|
};
|
|
304
328
|
}
|
|
305
|
-
if (
|
|
329
|
+
if ((0, credential_store_1.isSessionExpired)(session.expiresAt)) {
|
|
306
330
|
return {
|
|
307
331
|
ok: false,
|
|
308
|
-
reason: 'Your Claude session has expired. Click Reconnect in Settings.',
|
|
332
|
+
reason: 'Your Claude session has expired and could not be renewed. Click Reconnect in Settings.',
|
|
309
333
|
};
|
|
310
334
|
}
|
|
311
335
|
}
|
|
@@ -537,12 +561,12 @@ class AnthropicExecutor {
|
|
|
537
561
|
headers['anthropic-beta'] = 'oauth-2025-04-20';
|
|
538
562
|
return headers;
|
|
539
563
|
}
|
|
540
|
-
const session = (0,
|
|
564
|
+
const session = await (0, credential_store_1.loadClaudeLocalSession)(this.logger);
|
|
541
565
|
if (!session.accessToken) {
|
|
542
566
|
throw new Error('Claude session is not signed in on this machine. Connect Claude in Settings or switch to API key auth.');
|
|
543
567
|
}
|
|
544
|
-
if (
|
|
545
|
-
throw new Error('Your Claude session has expired. Reconnect Claude in Settings.');
|
|
568
|
+
if ((0, credential_store_1.isSessionExpired)(session.expiresAt)) {
|
|
569
|
+
throw new Error('Your Claude session has expired and could not be renewed. Reconnect Claude in Settings.');
|
|
546
570
|
}
|
|
547
571
|
headers['Authorization'] = `Bearer ${session.accessToken}`;
|
|
548
572
|
headers['anthropic-beta'] = 'oauth-2025-04-20';
|
|
@@ -555,26 +579,18 @@ class AnthropicExecutor {
|
|
|
555
579
|
*/
|
|
556
580
|
async assertAuthReadyForSdk() {
|
|
557
581
|
const now = Date.now();
|
|
558
|
-
if (this.
|
|
559
|
-
if (!this.authProbeCache.ok) {
|
|
560
|
-
throw new Error((0, test_connection_1.formatAnthropicAuthFailure)({
|
|
561
|
-
ok: false,
|
|
562
|
-
message: this.authProbeCache.message ?? 'Anthropic authentication failed.',
|
|
563
|
-
hint: this.authProbeCache.hint,
|
|
564
|
-
}));
|
|
565
|
-
}
|
|
582
|
+
if (this.authProbeOkAt !== null && now - this.authProbeOkAt < AUTH_PROBE_TTL_MS)
|
|
566
583
|
return;
|
|
567
|
-
}
|
|
568
584
|
const result = await (0, test_connection_1.testAnthropicCredentials)(this.auth);
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
hint: result.hint,
|
|
574
|
-
};
|
|
585
|
+
// Only successes are cached. A failed probe may have been transient (a
|
|
586
|
+
// rotated token, a blip reaching Anthropic) and the probe itself renews
|
|
587
|
+
// an aged-out session, so caching the failure would keep every retry
|
|
588
|
+
// blocked for the whole TTL instead of letting the next one recover.
|
|
575
589
|
if (!result.ok) {
|
|
590
|
+
this.authProbeOkAt = null;
|
|
576
591
|
throw new Error((0, test_connection_1.formatAnthropicAuthFailure)(result));
|
|
577
592
|
}
|
|
593
|
+
this.authProbeOkAt = now;
|
|
578
594
|
}
|
|
579
595
|
/**
|
|
580
596
|
* Register the Anthropic-specific HTTP endpoints (Claude OAuth login
|
|
@@ -598,28 +614,23 @@ class AnthropicExecutor {
|
|
|
598
614
|
* is a no-op for tenants on the built-in Anthropic plugin.
|
|
599
615
|
*/
|
|
600
616
|
defaultAliases() {
|
|
601
|
-
//
|
|
602
|
-
//
|
|
603
|
-
//
|
|
604
|
-
//
|
|
605
|
-
//
|
|
617
|
+
// Derived straight from {@link ANTHROPIC_MODELS} — the catalogue is
|
|
618
|
+
// the single source of truth. Each tier default is the model tagged
|
|
619
|
+
// `isDefault` for that tier (falling back to the first model of the
|
|
620
|
+
// tier), so adding or retiring a catalogue entry updates these
|
|
621
|
+
// aliases automatically. Workflow phases declare which tier they
|
|
622
|
+
// want via `tier: planning|coding|mini`; tenants can rebind any tier
|
|
606
623
|
// (`tier:planning`, etc.) from the dashboard without touching
|
|
607
624
|
// workflow files.
|
|
608
|
-
|
|
609
|
-
//
|
|
610
|
-
//
|
|
611
|
-
|
|
612
|
-
const
|
|
613
|
-
const sonnet = { provider: ANTHROPIC_PLUGIN_ID, model: 'claude-sonnet-4-6' };
|
|
614
|
-
const haiku = { provider: ANTHROPIC_PLUGIN_ID, model: 'claude-haiku-4-5' };
|
|
625
|
+
const tiers = (0, plugin_sdk_1.tierDefaultAliases)(ANTHROPIC_MODELS, ANTHROPIC_PLUGIN_ID);
|
|
626
|
+
// Legacy two-tier shorthands (back-compat) so existing tenant
|
|
627
|
+
// configs and custom workflows using `model: planning` keep working.
|
|
628
|
+
const planning = tiers['tier:planning'];
|
|
629
|
+
const coding = tiers['tier:coding'];
|
|
615
630
|
return {
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
'tier:mini': haiku,
|
|
620
|
-
// Legacy two-tier shorthands (back-compat).
|
|
621
|
-
planning: opus,
|
|
622
|
-
coding: sonnet,
|
|
631
|
+
...tiers,
|
|
632
|
+
...(planning ? { planning } : {}),
|
|
633
|
+
...(coding ? { coding } : {}),
|
|
623
634
|
};
|
|
624
635
|
}
|
|
625
636
|
/**
|
|
@@ -632,6 +643,27 @@ class AnthropicExecutor {
|
|
|
632
643
|
supports(model) {
|
|
633
644
|
return typeof model === 'string' && model.startsWith('claude-');
|
|
634
645
|
}
|
|
646
|
+
/**
|
|
647
|
+
* Report a host sandbox that overrides our `sandbox: { enabled: false }`
|
|
648
|
+
* request (see the note on that option in `executePhase`). Memoised: the
|
|
649
|
+
* policy is read by the CLI at process start, so it cannot change
|
|
650
|
+
* between phases of a running job, and this is called once per phase.
|
|
651
|
+
*/
|
|
652
|
+
describeSandbox() {
|
|
653
|
+
if (this.sandboxProbe === undefined) {
|
|
654
|
+
this.sandboxProbe = (0, sandbox_probe_1.probeHostSandbox)();
|
|
655
|
+
if (this.sandboxProbe) {
|
|
656
|
+
this.logger.warn({
|
|
657
|
+
sources: this.sandboxProbe.sources,
|
|
658
|
+
allowedDomains: this.sandboxProbe.allowedDomains?.length ?? null,
|
|
659
|
+
excludedCommands: this.sandboxProbe.excludedCommands ?? [],
|
|
660
|
+
}, 'Host policy enforces the Claude Code sandbox — Coro cannot disable it. ' +
|
|
661
|
+
'Agent shell commands will be denied writes outside the job working directory. ' +
|
|
662
|
+
'Amend the managed settings to relax this.');
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
return this.sandboxProbe;
|
|
666
|
+
}
|
|
635
667
|
/**
|
|
636
668
|
* Run a single workflow phase against the Claude Agent SDK.
|
|
637
669
|
*
|
|
@@ -738,10 +770,17 @@ class AnthropicExecutor {
|
|
|
738
770
|
// NuGet/PyPI/npm registries like Nexus/Artifactory, self-hosted SCM,
|
|
739
771
|
// observability endpoints), so `dotnet restore` / `pip install` / clones
|
|
740
772
|
// fail with an opaque `blocked-by-allowlist` 403 that looks like a DNS or
|
|
741
|
-
// auth error. Coro
|
|
742
|
-
// (see base CLAUDE.md "Outbound network is unrestricted") and enforces
|
|
773
|
+
// auth error. Coro imposes no network allowlist of its own and enforces
|
|
743
774
|
// filesystem confinement via its own PreToolUse path guard, so the SDK
|
|
744
775
|
// sandbox is both redundant and actively harmful here.
|
|
776
|
+
//
|
|
777
|
+
// Caveat: the SDK forwards this as `--settings`, which lands in the
|
|
778
|
+
// user-controlled *flag* settings layer. Enterprise-managed settings
|
|
779
|
+
// (MDM, managed-settings.json, or org policy fetched from the server)
|
|
780
|
+
// sit in the higher-priority *policy* layer and cannot be widened from
|
|
781
|
+
// here, so on a managed host the sandbox may stay on regardless. Agents
|
|
782
|
+
// recover via the `sandbox-recovery` skill; see base CLAUDE.md
|
|
783
|
+
// "Two independent gates on Bash".
|
|
745
784
|
sandbox: { enabled: false },
|
|
746
785
|
maxTurns: req.maxTurns ?? 200,
|
|
747
786
|
thinking: { type: 'adaptive' },
|