@machina.ai/cell-cli-core 1.47.0-rc1 → 1.49.0-rc2
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/dist/bundled/chrome-devtools-mcp.mjs +269 -17
- package/dist/docs/AFTER_MERGE_PROMPT.md +1 -1
- package/dist/docs/CHANGES.md +2 -0
- package/dist/docs/changelogs/index.md +3 -0
- package/dist/docs/changelogs/preview.md +52 -28
- package/dist/docs/cli/enterprise.md +1 -1
- package/dist/docs/cli/gemini-md.md +2 -0
- package/dist/docs/cli/plan-mode.md +1 -0
- package/dist/docs/cli/session-management.md +1 -0
- package/dist/docs/cli/system-prompt.md +2 -0
- package/dist/docs/cli/telemetry.md +5 -0
- package/dist/docs/ide-integration/ide-companion-spec.md +2 -0
- package/dist/docs/ide-integration/index.md +4 -0
- package/dist/docs/local-development.md +2 -0
- package/dist/docs/mcp_integration.md +1 -0
- package/dist/docs/reference/commands.md +4 -0
- package/dist/docs/reference/configuration.md +195 -0
- package/dist/docs/release-confidence.md +6 -0
- package/dist/docs/releases.md +2 -0
- package/dist/docs/resources/quota-and-pricing.md +1 -0
- package/dist/docs/resources/troubleshooting.md +13 -0
- package/dist/docs/tools/ask-user.md +2 -0
- package/dist/docs/tools/mcp-server.md +1 -0
- package/dist/package.json +69 -69
- package/dist/src/agents/agentLoader.d.ts +20 -20
- package/dist/src/agents/auth-provider/api-key-provider.d.ts +1 -1
- package/dist/src/agents/auth-provider/api-key-provider.js.map +1 -1
- package/dist/src/agents/auth-provider/google-credentials-provider.d.ts +1 -1
- package/dist/src/agents/auth-provider/google-credentials-provider.js.map +1 -1
- package/dist/src/agents/auth-provider/http-provider.d.ts +1 -1
- package/dist/src/agents/auth-provider/http-provider.js.map +1 -1
- package/dist/src/agents/auth-provider/oauth2-provider.d.ts +1 -1
- package/dist/src/agents/auth-provider/oauth2-provider.js.map +1 -1
- package/dist/src/agents/local-executor.js +5 -4
- package/dist/src/agents/local-executor.js.map +1 -1
- package/dist/src/code_assist/types.d.ts +20 -20
- package/dist/src/core/contentGenerator.js +10 -2
- package/dist/src/core/contentGenerator.js.map +1 -1
- package/dist/src/core/contentGenerator.test.js +47 -24
- package/dist/src/core/contentGenerator.test.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +2 -2
- package/dist/src/generated/git-commit.js +2 -2
- package/dist/src/ide/ide-client.js +4 -1
- package/dist/src/ide/ide-client.js.map +1 -1
- package/dist/src/mcp/oauth-provider.d.ts +1 -1
- package/dist/src/mcp/oauth-provider.js.map +1 -1
- package/dist/src/policy/policies/sandbox-default.toml +7 -0
- package/dist/src/policy/toml-loader.js +1 -1
- package/dist/src/policy/toml-loader.js.map +1 -1
- package/dist/src/prompts/promptProvider.test.js +7 -0
- package/dist/src/prompts/promptProvider.test.js.map +1 -1
- package/dist/src/prompts/snippets.js +1 -0
- package/dist/src/prompts/snippets.js.map +1 -1
- package/dist/src/prompts/snippets.legacy.js +1 -0
- package/dist/src/prompts/snippets.legacy.js.map +1 -1
- package/dist/src/scheduler/scheduler.js +4 -3
- package/dist/src/scheduler/scheduler.js.map +1 -1
- package/dist/src/scheduler/scheduler_parallel.test.js +47 -1
- package/dist/src/scheduler/scheduler_parallel.test.js.map +1 -1
- package/dist/src/services/executionLifecycleService.js +4 -1
- package/dist/src/services/executionLifecycleService.js.map +1 -1
- package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.d.ts +1 -1
- package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js +1 -1
- package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js.map +1 -1
- package/dist/src/tools/mcp-client-manager.test.js +6 -6
- package/dist/src/tools/mcp-client-manager.test.js.map +1 -1
- package/dist/src/tools/mcp-client.js +5 -1
- package/dist/src/tools/mcp-client.js.map +1 -1
- package/dist/src/tools/mcp-tool.js +3 -2
- package/dist/src/tools/mcp-tool.js.map +1 -1
- package/dist/src/tools/mcp-tool.test.js +49 -12
- package/dist/src/tools/mcp-tool.test.js.map +1 -1
- package/dist/src/tools/shell.js +3 -2
- package/dist/src/tools/shell.js.map +1 -1
- package/dist/src/tools/shell.test.js +2 -2
- package/dist/src/tools/shell.test.js.map +1 -1
- package/dist/src/tools/tool-registry.js +1 -1
- package/dist/src/tools/tool-registry.js.map +1 -1
- package/dist/src/tools/web-fetch.js +6 -6
- package/dist/src/tools/web-fetch.js.map +1 -1
- package/dist/src/tools/web-fetch.test.js +4 -4
- package/dist/src/tools/web-fetch.test.js.map +1 -1
- package/dist/src/utils/editor.js +2 -1
- package/dist/src/utils/editor.js.map +1 -1
- package/dist/src/utils/filesearch/ignore.js +4 -1
- package/dist/src/utils/filesearch/ignore.js.map +1 -1
- package/dist/src/utils/gitIgnoreParser.js +4 -1
- package/dist/src/utils/gitIgnoreParser.js.map +1 -1
- package/dist/src/utils/googleQuotaErrors.js +26 -7
- package/dist/src/utils/googleQuotaErrors.js.map +1 -1
- package/dist/src/utils/googleQuotaErrors.test.js +89 -0
- package/dist/src/utils/googleQuotaErrors.test.js.map +1 -1
- package/dist/src/utils/ignoreFileParser.js +4 -1
- package/dist/src/utils/ignoreFileParser.js.map +1 -1
- package/dist/src/utils/llm-edit-fixer.js +2 -0
- package/dist/src/utils/llm-edit-fixer.js.map +1 -1
- package/dist/src/utils/schemaValidator.js +3 -2
- package/dist/src/utils/schemaValidator.js.map +1 -1
- package/dist/src/utils/shell-utils.js +23 -4
- package/dist/src/utils/shell-utils.js.map +1 -1
- package/dist/src/utils/shell-utils.test.js +12 -3
- package/dist/src/utils/shell-utils.test.js.map +1 -1
- package/dist/src/utils/textUtils.d.ts +4 -0
- package/dist/src/utils/textUtils.js +7 -0
- package/dist/src/utils/textUtils.js.map +1 -1
- package/dist/src/utils/textUtils.test.js +12 -1
- package/dist/src/utils/textUtils.test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +77 -77
|
@@ -70,6 +70,7 @@ Before promoting a `preview` release to `stable`, a release manager must
|
|
|
70
70
|
manually run through this checklist.
|
|
71
71
|
|
|
72
72
|
- **Setup:**
|
|
73
|
+
|
|
73
74
|
- [ ] Uninstall any existing global version:
|
|
74
75
|
`npm uninstall -g @google/gemini-cli`
|
|
75
76
|
- [ ] Clear npx cache (optional but recommended): `npm cache clean --force`
|
|
@@ -77,24 +78,29 @@ manually run through this checklist.
|
|
|
77
78
|
- [ ] Verify version: `cell-cli --version`
|
|
78
79
|
|
|
79
80
|
- **Authentication:**
|
|
81
|
+
|
|
80
82
|
- [ ] In interactive mode run `/auth` and verify all sign in flows work:
|
|
81
83
|
- [ ] Sign in with Google
|
|
82
84
|
- [ ] API Key
|
|
83
85
|
- [ ] Vertex AI
|
|
84
86
|
|
|
85
87
|
- **Basic prompting:**
|
|
88
|
+
|
|
86
89
|
- [ ] Run `gemini "Tell me a joke"` and verify a sensible response.
|
|
87
90
|
- [ ] Run in interactive mode: `gemini`. Ask a follow-up question to test
|
|
88
91
|
context.
|
|
89
92
|
|
|
90
93
|
- **Piped input:**
|
|
94
|
+
|
|
91
95
|
- [ ] Run `echo "Summarize this" | gemini` and verify it processes stdin.
|
|
92
96
|
|
|
93
97
|
- **Context management:**
|
|
98
|
+
|
|
94
99
|
- [ ] In interactive mode, use `@file` to add a local file to context. Ask a
|
|
95
100
|
question about it.
|
|
96
101
|
|
|
97
102
|
- **Settings:**
|
|
103
|
+
|
|
98
104
|
- [ ] In interactive mode run `/settings` and make modifications
|
|
99
105
|
- [ ] Validate that setting is changed
|
|
100
106
|
|
package/dist/docs/releases.md
CHANGED
|
@@ -475,6 +475,7 @@ This stage happens _after_ the NPM publish and creates the single-file
|
|
|
475
475
|
executable that enables `npx` usage directly from the GitHub repository.
|
|
476
476
|
|
|
477
477
|
1. **The JavaScript bundle is created:**
|
|
478
|
+
|
|
478
479
|
- **What happens:** The built JavaScript from both `packages/core/dist` and
|
|
479
480
|
`packages/cli/dist`, along with all third-party JavaScript dependencies,
|
|
480
481
|
are bundled by `esbuild` into a single, executable JavaScript file (for
|
|
@@ -486,6 +487,7 @@ executable that enables `npx` usage directly from the GitHub repository.
|
|
|
486
487
|
the `core` package) are included directly.
|
|
487
488
|
|
|
488
489
|
2. **The `bundle` directory is assembled:**
|
|
490
|
+
|
|
489
491
|
- **What happens:** A temporary `bundle` folder is created at the project
|
|
490
492
|
root. The single `gemini.js` executable is placed inside it, along with
|
|
491
493
|
other essential files.
|
|
@@ -127,6 +127,7 @@ Standard/Plus and AI Expanded, are not supported._
|
|
|
127
127
|
license seats. For predictable costs, you can sign in with Google.
|
|
128
128
|
|
|
129
129
|
This includes the following request limits:
|
|
130
|
+
|
|
130
131
|
- Gemini Code Assist Standard edition:
|
|
131
132
|
- 1500 maximum model requests / user / day
|
|
132
133
|
- Gemini Code Assist Enterprise edition:
|
|
@@ -12,6 +12,7 @@ topics on:
|
|
|
12
12
|
|
|
13
13
|
- **Error:
|
|
14
14
|
`You must be a named user on your organization's Gemini Code Assist Standard edition subscription to use this service. Please contact your administrator to request an entitlement to Gemini Code Assist Standard edition.`**
|
|
15
|
+
|
|
15
16
|
- **Cause:** This error might occur if Cell CLI detects the
|
|
16
17
|
`GOOGLE_CLOUD_PROJECT` or `GOOGLE_CLOUD_PROJECT_ID` environment variable is
|
|
17
18
|
defined. Setting these variables forces an organization subscription check.
|
|
@@ -19,6 +20,7 @@ topics on:
|
|
|
19
20
|
linked to an organizational subscription.
|
|
20
21
|
|
|
21
22
|
- **Solution:**
|
|
23
|
+
|
|
22
24
|
- **Individual Users:** Unset the `GOOGLE_CLOUD_PROJECT` and
|
|
23
25
|
`GOOGLE_CLOUD_PROJECT_ID` environment variables. Check and remove these
|
|
24
26
|
variables from your shell configuration files (for example, `.bashrc`,
|
|
@@ -30,12 +32,14 @@ topics on:
|
|
|
30
32
|
|
|
31
33
|
- **Error:
|
|
32
34
|
`Failed to sign in. Message: Your current account is not eligible... because it is not currently available in your location.`**
|
|
35
|
+
|
|
33
36
|
- **Cause:** Cell CLI does not currently support your location. For a full
|
|
34
37
|
list of supported locations, see the following pages:
|
|
35
38
|
- Gemini Code Assist for individuals:
|
|
36
39
|
[Available locations](https://developers.google.com/gemini-code-assist/resources/available-locations#americas)
|
|
37
40
|
|
|
38
41
|
- **Error: `Failed to sign in. Message: Request contains an invalid argument`**
|
|
42
|
+
|
|
39
43
|
- **Cause:** Users with Google Workspace accounts or Google Cloud accounts
|
|
40
44
|
associated with their Gmail accounts may not be able to activate the free
|
|
41
45
|
tier of the Google Code Assist plan.
|
|
@@ -66,12 +70,14 @@ topics on:
|
|
|
66
70
|
## Common error messages and solutions
|
|
67
71
|
|
|
68
72
|
- **Error: `EADDRINUSE` (Address already in use) when starting an MCP server.**
|
|
73
|
+
|
|
69
74
|
- **Cause:** Another process is already using the port that the MCP server is
|
|
70
75
|
trying to bind to.
|
|
71
76
|
- **Solution:** Either stop the other process that is using the port or
|
|
72
77
|
configure the MCP server to use a different port.
|
|
73
78
|
|
|
74
79
|
- **Error: Command not found (when attempting to run Cell CLI with `gemini`).**
|
|
80
|
+
|
|
75
81
|
- **Cause:** Cell CLI is not correctly installed or it is not in your system's
|
|
76
82
|
`PATH`.
|
|
77
83
|
- **Solution:** The update depends on how you installed Cell CLI:
|
|
@@ -84,6 +90,7 @@ topics on:
|
|
|
84
90
|
rebuild using the command `npm run build`.
|
|
85
91
|
|
|
86
92
|
- **Error: `MODULE_NOT_FOUND` or import errors.**
|
|
93
|
+
|
|
87
94
|
- **Cause:** Dependencies are not installed correctly, or the project hasn't
|
|
88
95
|
been built.
|
|
89
96
|
- **Solution:**
|
|
@@ -92,6 +99,7 @@ topics on:
|
|
|
92
99
|
3. Verify that the build completed successfully with `npm run start`.
|
|
93
100
|
|
|
94
101
|
- **Error: "Operation not permitted", "Permission denied", or similar.**
|
|
102
|
+
|
|
95
103
|
- **Cause:** When sandboxing is enabled, Cell CLI may attempt operations that
|
|
96
104
|
are restricted by your sandbox configuration, such as writing outside the
|
|
97
105
|
project directory or system temp directory.
|
|
@@ -100,6 +108,7 @@ topics on:
|
|
|
100
108
|
configuration.
|
|
101
109
|
|
|
102
110
|
- **Cell CLI is not running in interactive mode in "CI" environments**
|
|
111
|
+
|
|
103
112
|
- **Issue:** Cell CLI does not enter interactive mode (no prompt appears) if
|
|
104
113
|
an environment variable starting with `CI_` (for example, `CI_TOKEN`) is
|
|
105
114
|
set. This is because the `is-in-ci` package, used by the underlying UI
|
|
@@ -115,6 +124,7 @@ topics on:
|
|
|
115
124
|
`env -u CI_TOKEN gemini`
|
|
116
125
|
|
|
117
126
|
- **DEBUG mode not working from project .env file**
|
|
127
|
+
|
|
118
128
|
- **Issue:** Setting `DEBUG=true` in a project's `.env` file doesn't enable
|
|
119
129
|
debug mode for cell-cli.
|
|
120
130
|
- **Cause:** The `DEBUG` and `DEBUG_MODE` variables are automatically excluded
|
|
@@ -154,12 +164,14 @@ is especially useful for scripting and automation.
|
|
|
154
164
|
## Debugging tips
|
|
155
165
|
|
|
156
166
|
- **CLI debugging:**
|
|
167
|
+
|
|
157
168
|
- Use the `--debug` flag for more detailed output. In interactive mode, press
|
|
158
169
|
F12 to view the debug console.
|
|
159
170
|
- Check the CLI logs, often found in a user-specific configuration or cache
|
|
160
171
|
directory.
|
|
161
172
|
|
|
162
173
|
- **Core debugging:**
|
|
174
|
+
|
|
163
175
|
- Check the server console output for error messages or stack traces.
|
|
164
176
|
- Increase log verbosity if configurable. For example, set the `DEBUG_MODE`
|
|
165
177
|
environment variable to `true` or `1`.
|
|
@@ -167,6 +179,7 @@ is especially useful for scripting and automation.
|
|
|
167
179
|
step through server-side code.
|
|
168
180
|
|
|
169
181
|
- **Tool issues:**
|
|
182
|
+
|
|
170
183
|
- If a specific tool is failing, try to isolate the issue by running the
|
|
171
184
|
simplest possible version of the command or operation the tool performs.
|
|
172
185
|
- For `run_shell_command`, check that the command works directly in your shell
|
|
@@ -11,6 +11,7 @@ confirmation.
|
|
|
11
11
|
- **Display name:** Ask User
|
|
12
12
|
- **File:** `ask-user.ts`
|
|
13
13
|
- **Parameters:**
|
|
14
|
+
|
|
14
15
|
- `questions` (array of objects, required): A list of 1 to 4 questions to ask.
|
|
15
16
|
Each question object has the following properties:
|
|
16
17
|
- `question` (string, required): The complete question text.
|
|
@@ -30,6 +31,7 @@ confirmation.
|
|
|
30
31
|
- `placeholder` (string, optional): Hint text for input fields.
|
|
31
32
|
|
|
32
33
|
- **Behavior:**
|
|
34
|
+
|
|
33
35
|
- Presents an interactive dialog to the user with the specified questions.
|
|
34
36
|
- Pauses execution until the user provides answers or dismisses the dialog.
|
|
35
37
|
- Returns the user's answers to the model.
|
|
@@ -768,6 +768,7 @@ defaults:
|
|
|
768
768
|
|
|
769
769
|
- **Tool lists:** Tool lists are merged securely to ensure the most restrictive
|
|
770
770
|
policy wins:
|
|
771
|
+
|
|
771
772
|
- **Exclusions (`excludeTools`):** Arrays are combined (unioned). If either
|
|
772
773
|
source blocks a tool, it remains disabled.
|
|
773
774
|
- **Inclusions (`includeTools`):** Arrays are intersected. If both sources
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@machina.ai/cell-cli-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.49.0-rc2",
|
|
4
4
|
"description": "Cell CLI Core",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,87 +14,87 @@
|
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@a2a-js/sdk": "0.3.11",
|
|
17
|
-
"@bufbuild/protobuf": "
|
|
18
|
-
"@google-cloud/logging": "
|
|
19
|
-
"@google-cloud/opentelemetry-cloud-monitoring-exporter": "
|
|
20
|
-
"@google-cloud/opentelemetry-cloud-trace-exporter": "
|
|
17
|
+
"@bufbuild/protobuf": "2.11.0",
|
|
18
|
+
"@google-cloud/logging": "11.2.1",
|
|
19
|
+
"@google-cloud/opentelemetry-cloud-monitoring-exporter": "0.21.0",
|
|
20
|
+
"@google-cloud/opentelemetry-cloud-trace-exporter": "3.0.0",
|
|
21
21
|
"@google/genai": "1.30.0",
|
|
22
|
-
"@grpc/grpc-js": "
|
|
23
|
-
"@iarna/toml": "
|
|
22
|
+
"@grpc/grpc-js": "1.14.3",
|
|
23
|
+
"@iarna/toml": "2.2.5",
|
|
24
24
|
"@machina.ai/auth-keycloak": "1.19.4-rc0",
|
|
25
25
|
"@machina.ai/config-yaml": "1.11.1",
|
|
26
|
-
"@modelcontextprotocol/sdk": "
|
|
27
|
-
"@opentelemetry/api": "
|
|
28
|
-
"@opentelemetry/api-logs": "
|
|
29
|
-
"@opentelemetry/core": "
|
|
30
|
-
"@opentelemetry/exporter-logs-otlp-grpc": "
|
|
31
|
-
"@opentelemetry/exporter-logs-otlp-http": "
|
|
32
|
-
"@opentelemetry/exporter-metrics-otlp-grpc": "
|
|
33
|
-
"@opentelemetry/exporter-metrics-otlp-http": "
|
|
34
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "
|
|
35
|
-
"@opentelemetry/exporter-trace-otlp-http": "
|
|
36
|
-
"@opentelemetry/instrumentation-http": "
|
|
37
|
-
"@opentelemetry/otlp-exporter-base": "
|
|
38
|
-
"@opentelemetry/resources": "
|
|
39
|
-
"@opentelemetry/sdk-logs": "
|
|
40
|
-
"@opentelemetry/sdk-metrics": "
|
|
41
|
-
"@opentelemetry/sdk-node": "
|
|
42
|
-
"@opentelemetry/sdk-trace-base": "
|
|
43
|
-
"@opentelemetry/sdk-trace-node": "
|
|
44
|
-
"@opentelemetry/semantic-conventions": "
|
|
45
|
-
"@types/html-to-text": "
|
|
26
|
+
"@modelcontextprotocol/sdk": "1.23.0",
|
|
27
|
+
"@opentelemetry/api": "1.9.0",
|
|
28
|
+
"@opentelemetry/api-logs": "0.218.0",
|
|
29
|
+
"@opentelemetry/core": "2.7.1",
|
|
30
|
+
"@opentelemetry/exporter-logs-otlp-grpc": "0.218.0",
|
|
31
|
+
"@opentelemetry/exporter-logs-otlp-http": "0.218.0",
|
|
32
|
+
"@opentelemetry/exporter-metrics-otlp-grpc": "0.218.0",
|
|
33
|
+
"@opentelemetry/exporter-metrics-otlp-http": "0.218.0",
|
|
34
|
+
"@opentelemetry/exporter-trace-otlp-grpc": "0.218.0",
|
|
35
|
+
"@opentelemetry/exporter-trace-otlp-http": "0.218.0",
|
|
36
|
+
"@opentelemetry/instrumentation-http": "0.218.0",
|
|
37
|
+
"@opentelemetry/otlp-exporter-base": "0.218.0",
|
|
38
|
+
"@opentelemetry/resources": "2.7.1",
|
|
39
|
+
"@opentelemetry/sdk-logs": "0.218.0",
|
|
40
|
+
"@opentelemetry/sdk-metrics": "2.7.1",
|
|
41
|
+
"@opentelemetry/sdk-node": "0.218.0",
|
|
42
|
+
"@opentelemetry/sdk-trace-base": "2.7.1",
|
|
43
|
+
"@opentelemetry/sdk-trace-node": "2.7.1",
|
|
44
|
+
"@opentelemetry/semantic-conventions": "1.39.0",
|
|
45
|
+
"@types/html-to-text": "9.0.4",
|
|
46
46
|
"@xterm/headless": "5.5.0",
|
|
47
|
-
"ajv": "
|
|
48
|
-
"ajv-formats": "
|
|
49
|
-
"chokidar": "
|
|
50
|
-
"command-exists": "
|
|
51
|
-
"diff": "
|
|
52
|
-
"dotenv": "
|
|
53
|
-
"dotenv-expand": "
|
|
54
|
-
"execa": "
|
|
55
|
-
"fast-levenshtein": "
|
|
56
|
-
"fdir": "
|
|
57
|
-
"fzf": "
|
|
58
|
-
"glob": "
|
|
59
|
-
"google-auth-library": "
|
|
60
|
-
"html-to-text": "
|
|
61
|
-
"http-proxy-agent": "
|
|
62
|
-
"https-proxy-agent": "
|
|
63
|
-
"ignore": "
|
|
64
|
-
"ipaddr.js": "
|
|
65
|
-
"isbinaryfile": "
|
|
66
|
-
"js-yaml": "
|
|
67
|
-
"json-stable-stringify": "
|
|
68
|
-
"marked": "
|
|
47
|
+
"ajv": "8.17.1",
|
|
48
|
+
"ajv-formats": "3.0.1",
|
|
49
|
+
"chokidar": "5.0.0",
|
|
50
|
+
"command-exists": "1.2.9",
|
|
51
|
+
"diff": "8.0.3",
|
|
52
|
+
"dotenv": "17.2.4",
|
|
53
|
+
"dotenv-expand": "12.0.3",
|
|
54
|
+
"execa": "9.6.1",
|
|
55
|
+
"fast-levenshtein": "2.0.6",
|
|
56
|
+
"fdir": "6.4.6",
|
|
57
|
+
"fzf": "0.5.2",
|
|
58
|
+
"glob": "12.0.0",
|
|
59
|
+
"google-auth-library": "9.11.0",
|
|
60
|
+
"html-to-text": "9.0.5",
|
|
61
|
+
"http-proxy-agent": "7.0.2",
|
|
62
|
+
"https-proxy-agent": "7.0.6",
|
|
63
|
+
"ignore": "7.0.0",
|
|
64
|
+
"ipaddr.js": "1.9.1",
|
|
65
|
+
"isbinaryfile": "5.0.7",
|
|
66
|
+
"js-yaml": "4.1.1",
|
|
67
|
+
"json-stable-stringify": "1.3.0",
|
|
68
|
+
"marked": "15.0.12",
|
|
69
69
|
"mime": "4.0.7",
|
|
70
|
-
"mnemonist": "
|
|
71
|
-
"open": "
|
|
72
|
-
"picomatch": "
|
|
73
|
-
"proper-lockfile": "
|
|
74
|
-
"puppeteer-core": "
|
|
75
|
-
"read-package-up": "
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"strip-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"tree-sitter-bash": "
|
|
83
|
-
"undici": "
|
|
84
|
-
"uuid": "
|
|
85
|
-
"web-tree-sitter": "
|
|
86
|
-
"zod": "
|
|
87
|
-
"zod-to-json-schema": "
|
|
70
|
+
"mnemonist": "0.40.3",
|
|
71
|
+
"open": "10.1.2",
|
|
72
|
+
"picomatch": "4.0.1",
|
|
73
|
+
"proper-lockfile": "4.1.2",
|
|
74
|
+
"puppeteer-core": "24.0.0",
|
|
75
|
+
"read-package-up": "11.0.0",
|
|
76
|
+
"shell-quote": "1.8.3",
|
|
77
|
+
"simple-git": "3.28.0",
|
|
78
|
+
"strip-ansi": "7.1.0",
|
|
79
|
+
"strip-json-comments": "3.1.1",
|
|
80
|
+
"systeminformation": "5.25.11",
|
|
81
|
+
"tar": "7.5.13",
|
|
82
|
+
"tree-sitter-bash": "0.25.0",
|
|
83
|
+
"undici": "7.10.0",
|
|
84
|
+
"uuid": "13.0.0",
|
|
85
|
+
"web-tree-sitter": "0.25.10",
|
|
86
|
+
"zod": "3.25.76",
|
|
87
|
+
"zod-to-json-schema": "3.25.1"
|
|
88
88
|
},
|
|
89
89
|
"optionalDependencies": {
|
|
90
|
-
"@github/keytar": "
|
|
90
|
+
"@github/keytar": "7.10.6",
|
|
91
91
|
"@lydell/node-pty": "1.1.0",
|
|
92
92
|
"@lydell/node-pty-darwin-arm64": "1.1.0",
|
|
93
93
|
"@lydell/node-pty-darwin-x64": "1.1.0",
|
|
94
94
|
"@lydell/node-pty-linux-x64": "1.1.0",
|
|
95
95
|
"@lydell/node-pty-win32-arm64": "1.1.0",
|
|
96
96
|
"@lydell/node-pty-win32-x64": "1.1.0",
|
|
97
|
-
"node-pty": "
|
|
97
|
+
"node-pty": "1.0.0"
|
|
98
98
|
},
|
|
99
99
|
"engines": {
|
|
100
100
|
"node": ">=20"
|
|
@@ -95,6 +95,10 @@ declare const localAgentSchema: z.ZodObject<{
|
|
|
95
95
|
env?: Record<string, string> | undefined;
|
|
96
96
|
cwd?: string | undefined;
|
|
97
97
|
stdio?: boolean | undefined;
|
|
98
|
+
description?: string | undefined;
|
|
99
|
+
timeout?: number | undefined;
|
|
100
|
+
trust?: boolean | undefined;
|
|
101
|
+
headers?: Record<string, string> | undefined;
|
|
98
102
|
auth?: {
|
|
99
103
|
type: "google-credentials";
|
|
100
104
|
scopes?: string[] | undefined;
|
|
@@ -111,10 +115,6 @@ declare const localAgentSchema: z.ZodObject<{
|
|
|
111
115
|
token_param_name?: string | undefined;
|
|
112
116
|
registration_url?: string | undefined;
|
|
113
117
|
} | undefined;
|
|
114
|
-
headers?: Record<string, string> | undefined;
|
|
115
|
-
description?: string | undefined;
|
|
116
|
-
timeout?: number | undefined;
|
|
117
|
-
trust?: boolean | undefined;
|
|
118
118
|
http_url?: string | undefined;
|
|
119
119
|
tcp?: string | undefined;
|
|
120
120
|
include_tools?: string[] | undefined;
|
|
@@ -127,6 +127,10 @@ declare const localAgentSchema: z.ZodObject<{
|
|
|
127
127
|
env?: Record<string, string> | undefined;
|
|
128
128
|
cwd?: string | undefined;
|
|
129
129
|
stdio?: boolean | undefined;
|
|
130
|
+
description?: string | undefined;
|
|
131
|
+
timeout?: number | undefined;
|
|
132
|
+
trust?: boolean | undefined;
|
|
133
|
+
headers?: Record<string, string> | undefined;
|
|
130
134
|
auth?: {
|
|
131
135
|
type: "google-credentials";
|
|
132
136
|
scopes?: string[] | undefined;
|
|
@@ -143,10 +147,6 @@ declare const localAgentSchema: z.ZodObject<{
|
|
|
143
147
|
token_param_name?: string | undefined;
|
|
144
148
|
registration_url?: string | undefined;
|
|
145
149
|
} | undefined;
|
|
146
|
-
headers?: Record<string, string> | undefined;
|
|
147
|
-
description?: string | undefined;
|
|
148
|
-
timeout?: number | undefined;
|
|
149
|
-
trust?: boolean | undefined;
|
|
150
150
|
http_url?: string | undefined;
|
|
151
151
|
tcp?: string | undefined;
|
|
152
152
|
include_tools?: string[] | undefined;
|
|
@@ -172,6 +172,10 @@ declare const localAgentSchema: z.ZodObject<{
|
|
|
172
172
|
env?: Record<string, string> | undefined;
|
|
173
173
|
cwd?: string | undefined;
|
|
174
174
|
stdio?: boolean | undefined;
|
|
175
|
+
description?: string | undefined;
|
|
176
|
+
timeout?: number | undefined;
|
|
177
|
+
trust?: boolean | undefined;
|
|
178
|
+
headers?: Record<string, string> | undefined;
|
|
175
179
|
auth?: {
|
|
176
180
|
type: "google-credentials";
|
|
177
181
|
scopes?: string[] | undefined;
|
|
@@ -188,10 +192,6 @@ declare const localAgentSchema: z.ZodObject<{
|
|
|
188
192
|
token_param_name?: string | undefined;
|
|
189
193
|
registration_url?: string | undefined;
|
|
190
194
|
} | undefined;
|
|
191
|
-
headers?: Record<string, string> | undefined;
|
|
192
|
-
description?: string | undefined;
|
|
193
|
-
timeout?: number | undefined;
|
|
194
|
-
trust?: boolean | undefined;
|
|
195
195
|
http_url?: string | undefined;
|
|
196
196
|
tcp?: string | undefined;
|
|
197
197
|
include_tools?: string[] | undefined;
|
|
@@ -215,6 +215,10 @@ declare const localAgentSchema: z.ZodObject<{
|
|
|
215
215
|
env?: Record<string, string> | undefined;
|
|
216
216
|
cwd?: string | undefined;
|
|
217
217
|
stdio?: boolean | undefined;
|
|
218
|
+
description?: string | undefined;
|
|
219
|
+
timeout?: number | undefined;
|
|
220
|
+
trust?: boolean | undefined;
|
|
221
|
+
headers?: Record<string, string> | undefined;
|
|
218
222
|
auth?: {
|
|
219
223
|
type: "google-credentials";
|
|
220
224
|
scopes?: string[] | undefined;
|
|
@@ -231,10 +235,6 @@ declare const localAgentSchema: z.ZodObject<{
|
|
|
231
235
|
token_param_name?: string | undefined;
|
|
232
236
|
registration_url?: string | undefined;
|
|
233
237
|
} | undefined;
|
|
234
|
-
headers?: Record<string, string> | undefined;
|
|
235
|
-
description?: string | undefined;
|
|
236
|
-
timeout?: number | undefined;
|
|
237
|
-
trust?: boolean | undefined;
|
|
238
238
|
http_url?: string | undefined;
|
|
239
239
|
tcp?: string | undefined;
|
|
240
240
|
include_tools?: string[] | undefined;
|
|
@@ -389,6 +389,7 @@ declare const remoteAgentSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
389
389
|
name: string;
|
|
390
390
|
kind: "remote";
|
|
391
391
|
agent_card_url: string;
|
|
392
|
+
description?: string | undefined;
|
|
392
393
|
auth?: {
|
|
393
394
|
type: "apiKey";
|
|
394
395
|
key: string;
|
|
@@ -416,13 +417,13 @@ declare const remoteAgentSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
416
417
|
token_param_name?: string | undefined;
|
|
417
418
|
registration_url?: string | undefined;
|
|
418
419
|
} | undefined;
|
|
419
|
-
description?: string | undefined;
|
|
420
420
|
display_name?: string | undefined;
|
|
421
421
|
agent_card_json?: undefined;
|
|
422
422
|
}, {
|
|
423
423
|
name: string;
|
|
424
424
|
agent_card_url: string;
|
|
425
425
|
kind?: "remote" | undefined;
|
|
426
|
+
description?: string | undefined;
|
|
426
427
|
auth?: {
|
|
427
428
|
type: "apiKey";
|
|
428
429
|
key: string;
|
|
@@ -450,7 +451,6 @@ declare const remoteAgentSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
450
451
|
token_param_name?: string | undefined;
|
|
451
452
|
registration_url?: string | undefined;
|
|
452
453
|
} | undefined;
|
|
453
|
-
description?: string | undefined;
|
|
454
454
|
display_name?: string | undefined;
|
|
455
455
|
agent_card_json?: undefined;
|
|
456
456
|
}>, z.ZodObject<{
|
|
@@ -596,6 +596,7 @@ declare const remoteAgentSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
596
596
|
name: string;
|
|
597
597
|
kind: "remote";
|
|
598
598
|
agent_card_json: string;
|
|
599
|
+
description?: string | undefined;
|
|
599
600
|
auth?: {
|
|
600
601
|
type: "apiKey";
|
|
601
602
|
key: string;
|
|
@@ -623,13 +624,13 @@ declare const remoteAgentSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
623
624
|
token_param_name?: string | undefined;
|
|
624
625
|
registration_url?: string | undefined;
|
|
625
626
|
} | undefined;
|
|
626
|
-
description?: string | undefined;
|
|
627
627
|
display_name?: string | undefined;
|
|
628
628
|
agent_card_url?: undefined;
|
|
629
629
|
}, {
|
|
630
630
|
name: string;
|
|
631
631
|
agent_card_json: string;
|
|
632
632
|
kind?: "remote" | undefined;
|
|
633
|
+
description?: string | undefined;
|
|
633
634
|
auth?: {
|
|
634
635
|
type: "apiKey";
|
|
635
636
|
key: string;
|
|
@@ -657,7 +658,6 @@ declare const remoteAgentSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
657
658
|
token_param_name?: string | undefined;
|
|
658
659
|
registration_url?: string | undefined;
|
|
659
660
|
} | undefined;
|
|
660
|
-
description?: string | undefined;
|
|
661
661
|
display_name?: string | undefined;
|
|
662
662
|
agent_card_url?: undefined;
|
|
663
663
|
}>]>;
|
|
@@ -17,7 +17,7 @@ import type { ApiKeyAuthConfig } from './types.js';
|
|
|
17
17
|
*/
|
|
18
18
|
export declare class ApiKeyAuthProvider extends BaseA2AAuthProvider {
|
|
19
19
|
private readonly config;
|
|
20
|
-
readonly type
|
|
20
|
+
readonly type = "apiKey";
|
|
21
21
|
private resolvedKey;
|
|
22
22
|
private readonly headerName;
|
|
23
23
|
constructor(config: ApiKeyAuthConfig);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key-provider.js","sourceRoot":"","sources":["../../../../src/agents/auth-provider/api-key-provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAExC;;;;;;;;GAQG;AACH,MAAM,OAAO,kBAAmB,SAAQ,mBAAmB;IAM5B;IALpB,IAAI,GAAG,
|
|
1
|
+
{"version":3,"file":"api-key-provider.js","sourceRoot":"","sources":["../../../../src/agents/auth-provider/api-key-provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAExC;;;;;;;;GAQG;AACH,MAAM,OAAO,kBAAmB,SAAQ,mBAAmB;IAM5B;IALpB,IAAI,GAAG,QAAQ,CAAC;IAEjB,WAAW,CAAqB;IACvB,UAAU,CAAS;IAEpC,YAA6B,MAAwB;QACnD,KA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,CAAC;YACzE,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAI,IAAI,CAAC,cAAc,IAAI,mBAAmB,CAAC,gBAAgB,EAAE,CAAC;YAChE,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,IAAI,CAAC,cAAc,EAAE,CAAC;QAEtB,WAAW,CAAC,KAAK,CACf,8DAA8D,CAC/D,CAAC;QACF,IAAI,CAAC,WAAW,GAAG,MAAM,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAE3D,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -13,7 +13,7 @@ import type { GoogleCredentialsAuthConfig } from './types.js';
|
|
|
13
13
|
*/
|
|
14
14
|
export declare class GoogleCredentialsAuthProvider extends BaseA2AAuthProvider {
|
|
15
15
|
private readonly config;
|
|
16
|
-
readonly type
|
|
16
|
+
readonly type = "google-credentials";
|
|
17
17
|
private readonly auth;
|
|
18
18
|
private readonly useIdToken;
|
|
19
19
|
private readonly audience?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-credentials-provider.js","sourceRoot":"","sources":["../../../../src/agents/auth-provider/google-credentials-provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE1E,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AACjD,MAAM,aAAa,GAAG,CAAC,uBAAuB,EAAE,oBAAoB,CAAC,CAAC;AAEtE;;;;GAIG;AACH,MAAM,OAAO,6BAA8B,SAAQ,mBAAmB;IAUjD;IATV,IAAI,GAAG,
|
|
1
|
+
{"version":3,"file":"google-credentials-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,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAEQ,KAAK,CAAC,sBAAsB,CACnC,IAAiB,EACjB,GAAa;QAEb,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YAC7C,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC;YACxB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAI,IAAI,CAAC,cAAc,IAAI,mBAAmB,CAAC,gBAAgB,EAAE,CAAC;YAChE,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,IAAI,CAAC,cAAc,EAAE,CAAC;QAEtB,WAAW,CAAC,KAAK,CACf,sEAAsE,CACvE,CAAC;QAEF,kCAAkC;QAClC,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;QAC7B,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;QAEjC,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -12,7 +12,7 @@ import type { HttpAuthConfig } from './types.js';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class HttpAuthProvider extends BaseA2AAuthProvider {
|
|
14
14
|
private readonly config;
|
|
15
|
-
readonly type
|
|
15
|
+
readonly type = "http";
|
|
16
16
|
private resolvedToken?;
|
|
17
17
|
private resolvedUsername?;
|
|
18
18
|
private resolvedPassword?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-provider.js","sourceRoot":"","sources":["../../../../src/agents/auth-provider/http-provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD;;;GAGG;AACH,MAAM,OAAO,gBAAiB,SAAQ,mBAAmB;IAQ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;QAC1B,CAAC;QACD,OAAO,KAAK,CAAC,sBAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAChD,CAAC;CACF"}
|
|
@@ -18,7 +18,7 @@ export declare class OAuth2AuthProvider extends BaseA2AAuthProvider {
|
|
|
18
18
|
private readonly config;
|
|
19
19
|
private readonly agentName;
|
|
20
20
|
private readonly agentCardUrl?;
|
|
21
|
-
readonly type
|
|
21
|
+
readonly type = "oauth2";
|
|
22
22
|
private readonly tokenStorage;
|
|
23
23
|
private cachedToken;
|
|
24
24
|
/** Resolved OAuth URLs — may come from config or agent card. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2-provider.js","sourceRoot":"","sources":["../../../../src/agents/auth-provider/oauth2-provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAoB,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,GAEnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,OAAO,kBAAmB,SAAQ,mBAAmB;IAYtC;IACA;IAEA;IAdV,IAAI,GAAG,
|
|
1
|
+
{"version":3,"file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AC,UAAU,IAAI,QAAQ;YAC1C,YAAY,EAAE,QAAQ,CAAC,aAAa,IAAI,oBAAoB;YAC5D,KAAK,EAAE,QAAQ,CAAC,KAAK;SACtB,CAAC;QAEF,IAAI,QAAQ,CAAC,UAAU,EAAE,CAAC;YACxB,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC;QAC5D,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,YAAY;QACxB,IAAI,CAAC,IAAI,CAAC,WAAW;YAAE,OAAO;QAC9B,MAAM,IAAI,CAAC,YAAY,CAAC,SAAS,CAC/B,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,MAAM,CAAC,SAAS,EACrB,IAAI,CAAC,QAAQ,CACd,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -300,10 +300,9 @@ export class LocalAgentExecutor {
|
|
|
300
300
|
parts: [{ text: this.getFinalWarningMessage(reason) }],
|
|
301
301
|
};
|
|
302
302
|
// We monitor both the external signal and our new grace period timeout
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
]);
|
|
303
|
+
/* eslint-disable @typescript-eslint/no-unsafe-type-assertion */
|
|
304
|
+
const combinedSignal = AbortSignal.any([externalSignal, graceTimeoutController.signal]);
|
|
305
|
+
/* eslint-enable @typescript-eslint/no-unsafe-type-assertion */
|
|
307
306
|
const turnResult = await this.executeTurn(chat, recoveryMessage, turnCounter, // This will be the "last" turn number
|
|
308
307
|
combinedSignal, graceTimeoutController.signal, // Pass grace signal to identify a *grace* timeout
|
|
309
308
|
onWaitingForConfirmation);
|
|
@@ -384,7 +383,9 @@ export class LocalAgentExecutor {
|
|
|
384
383
|
}
|
|
385
384
|
};
|
|
386
385
|
// Combine the external signal with the internal timeout signal.
|
|
386
|
+
/* eslint-disable @typescript-eslint/no-unsafe-type-assertion */
|
|
387
387
|
const combinedSignal = AbortSignal.any([signal, deadlineTimer.signal]);
|
|
388
|
+
/* eslint-enable @typescript-eslint/no-unsafe-type-assertion */
|
|
388
389
|
logAgentStart(this.context.config, new AgentStartEvent(this.agentId, this.definition.name));
|
|
389
390
|
let chat;
|
|
390
391
|
let tools;
|