@google/gemini-cli-core 0.39.0-preview.2 → 0.40.0-preview.0
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/docs/changelogs/index.md +21 -0
- package/dist/docs/changelogs/latest.md +253 -407
- package/dist/docs/changelogs/preview.md +236 -247
- package/dist/docs/cli/auto-memory.md +143 -0
- package/dist/docs/cli/enterprise.md +1 -1
- package/dist/docs/cli/plan-mode.md +3 -1
- package/dist/docs/cli/settings.md +29 -25
- package/dist/docs/cli/system-prompt.md +6 -6
- package/dist/docs/cli/telemetry.md +18 -11
- package/dist/docs/cli/tutorials/memory-management.md +2 -0
- package/dist/docs/get-started/{authentication.md → authentication.mdx} +139 -93
- package/dist/docs/get-started/index.md +3 -2
- package/dist/docs/get-started/installation.mdx +201 -0
- package/dist/docs/index.md +2 -2
- package/dist/docs/reference/configuration.md +88 -12
- package/dist/docs/reference/policy-engine.md +18 -12
- package/dist/docs/reference/tools.md +22 -0
- package/dist/docs/sidebar.json +13 -1
- package/dist/docs/tools/mcp-resources.md +44 -0
- package/dist/docs/tools/mcp-server.md +2 -1
- package/dist/docs/tools/tracker.md +61 -0
- package/dist/src/agents/agent-tool.js +1 -0
- package/dist/src/agents/agent-tool.js.map +1 -1
- package/dist/src/agents/agentLoader.d.ts +4 -4
- package/dist/src/agents/generalist-agent.js +3 -2
- package/dist/src/agents/generalist-agent.js.map +1 -1
- package/dist/src/agents/local-executor.js +4 -1
- package/dist/src/agents/local-executor.js.map +1 -1
- package/dist/src/agents/registry.js +0 -8
- package/dist/src/agents/registry.js.map +1 -1
- package/dist/src/agents/skill-extraction-agent.d.ts +3 -2
- package/dist/src/agents/skill-extraction-agent.js +72 -67
- package/dist/src/agents/skill-extraction-agent.js.map +1 -1
- package/dist/src/agents/skill-extraction-agent.test.js +54 -0
- package/dist/src/agents/skill-extraction-agent.test.js.map +1 -0
- package/dist/src/config/config.d.ts +21 -6
- package/dist/src/config/config.js +103 -19
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/config.test.js +262 -6
- package/dist/src/config/config.test.js.map +1 -1
- package/dist/src/config/constants.d.ts +1 -0
- package/dist/src/config/constants.js +2 -0
- package/dist/src/config/constants.js.map +1 -1
- package/dist/src/config/memory.js +1 -1
- package/dist/src/config/memory.js.map +1 -1
- package/dist/src/config/path-validation.test.js +15 -6
- package/dist/src/config/path-validation.test.js.map +1 -1
- package/dist/src/config/projectRegistry.js +113 -32
- package/dist/src/config/projectRegistry.js.map +1 -1
- package/dist/src/config/projectRegistry.test.js +51 -0
- package/dist/src/config/projectRegistry.test.js.map +1 -1
- package/dist/src/config/storage.d.ts +3 -1
- package/dist/src/config/storage.js +6 -0
- package/dist/src/config/storage.js.map +1 -1
- package/dist/src/config/storage.test.js +12 -0
- package/dist/src/config/storage.test.js.map +1 -1
- package/dist/src/core/contentGenerator.d.ts +8 -1
- package/dist/src/core/contentGenerator.js +46 -4
- package/dist/src/core/contentGenerator.js.map +1 -1
- package/dist/src/core/contentGenerator.test.js +174 -8
- package/dist/src/core/contentGenerator.test.js.map +1 -1
- package/dist/src/core/geminiChat.test.js +1 -0
- package/dist/src/core/geminiChat.test.js.map +1 -1
- package/dist/src/core/geminiChat_network_retry.test.js +42 -0
- package/dist/src/core/geminiChat_network_retry.test.js.map +1 -1
- package/dist/src/core/localLiteRtLmClient.js +2 -0
- package/dist/src/core/localLiteRtLmClient.js.map +1 -1
- package/dist/src/core/localLiteRtLmClient.test.js +7 -0
- package/dist/src/core/localLiteRtLmClient.test.js.map +1 -1
- package/dist/src/core/loggingContentGenerator.js +3 -0
- package/dist/src/core/loggingContentGenerator.js.map +1 -1
- package/dist/src/core/loggingContentGenerator.test.js +1 -0
- package/dist/src/core/loggingContentGenerator.test.js.map +1 -1
- package/dist/src/core/prompts.d.ts +1 -1
- package/dist/src/core/prompts.js +2 -2
- package/dist/src/core/prompts.js.map +1 -1
- package/dist/src/core/prompts.test.js +2 -2
- package/dist/src/core/prompts.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 +3 -4
- package/dist/src/ide/ide-client.js.map +1 -1
- package/dist/src/policy/policies/read-only.toml +4 -1
- package/dist/src/policy/policy-engine.js +4 -0
- package/dist/src/policy/policy-engine.js.map +1 -1
- package/dist/src/policy/policy-engine.test.js +25 -0
- package/dist/src/policy/policy-engine.test.js.map +1 -1
- package/dist/src/policy/toml-loader.test.js +5 -0
- package/dist/src/policy/toml-loader.test.js.map +1 -1
- package/dist/src/prompts/promptProvider.d.ts +1 -1
- package/dist/src/prompts/promptProvider.js +15 -7
- package/dist/src/prompts/promptProvider.js.map +1 -1
- package/dist/src/prompts/promptProvider.test.js +31 -1
- package/dist/src/prompts/promptProvider.test.js.map +1 -1
- package/dist/src/prompts/snippets-memory-v2.test.js +94 -0
- package/dist/src/prompts/snippets-memory-v2.test.js.map +1 -0
- package/dist/src/prompts/snippets.d.ts +19 -1
- package/dist/src/prompts/snippets.js +24 -3
- package/dist/src/prompts/snippets.js.map +1 -1
- package/dist/src/prompts/snippets.legacy.d.ts +6 -1
- package/dist/src/prompts/snippets.legacy.js +10 -3
- package/dist/src/prompts/snippets.legacy.js.map +1 -1
- package/dist/src/sandbox/linux/LinuxSandboxManager.js +16 -2
- package/dist/src/sandbox/linux/LinuxSandboxManager.js.map +1 -1
- package/dist/src/sandbox/linux/bwrapArgsBuilder.js +64 -36
- package/dist/src/sandbox/linux/bwrapArgsBuilder.js.map +1 -1
- package/dist/src/sandbox/linux/bwrapArgsBuilder.test.js +3 -3
- package/dist/src/sandbox/linux/bwrapArgsBuilder.test.js.map +1 -1
- package/dist/src/sandbox/macos/MacOsSandboxManager.js +13 -1
- package/dist/src/sandbox/macos/MacOsSandboxManager.js.map +1 -1
- package/dist/src/sandbox/macos/seatbeltArgsBuilder.js +61 -42
- package/dist/src/sandbox/macos/seatbeltArgsBuilder.js.map +1 -1
- package/dist/src/sandbox/windows/WindowsSandboxManager.js +12 -1
- package/dist/src/sandbox/windows/WindowsSandboxManager.js.map +1 -1
- package/dist/src/scheduler/policy.js +1 -2
- package/dist/src/scheduler/policy.js.map +1 -1
- package/dist/src/scheduler/policy.test.js +35 -2
- package/dist/src/scheduler/policy.test.js.map +1 -1
- package/dist/src/scheduler/scheduler.js +1 -0
- package/dist/src/scheduler/scheduler.js.map +1 -1
- package/dist/src/scheduler/scheduler.test.js +2 -0
- package/dist/src/scheduler/scheduler.test.js.map +1 -1
- package/dist/src/scheduler/scheduler_hooks.test.js +1 -0
- package/dist/src/scheduler/scheduler_hooks.test.js.map +1 -1
- package/dist/src/scheduler/scheduler_parallel.test.js +1 -0
- package/dist/src/scheduler/scheduler_parallel.test.js.map +1 -1
- package/dist/src/scheduler/tool-executor.js +1 -0
- package/dist/src/scheduler/tool-executor.js.map +1 -1
- package/dist/src/services/chatRecordingService.d.ts +1 -0
- package/dist/src/services/chatRecordingService.js +48 -19
- package/dist/src/services/chatRecordingService.js.map +1 -1
- package/dist/src/services/memoryService.d.ts +15 -1
- package/dist/src/services/memoryService.js +276 -57
- package/dist/src/services/memoryService.js.map +1 -1
- package/dist/src/services/memoryService.test.js +296 -2
- package/dist/src/services/memoryService.test.js.map +1 -1
- package/dist/src/services/sandboxManager.integration.test.js +204 -0
- package/dist/src/services/sandboxManager.integration.test.js.map +1 -1
- package/dist/src/services/sandboxManager.js +16 -0
- package/dist/src/services/sandboxManager.js.map +1 -1
- package/dist/src/services/sessionSummaryUtils.d.ts +1 -1
- package/dist/src/services/sessionSummaryUtils.js +111 -38
- package/dist/src/services/sessionSummaryUtils.js.map +1 -1
- package/dist/src/services/sessionSummaryUtils.test.js +204 -51
- package/dist/src/services/sessionSummaryUtils.test.js.map +1 -1
- package/dist/src/services/shellExecutionService.js +7 -1
- package/dist/src/services/shellExecutionService.js.map +1 -1
- package/dist/src/telemetry/config.js +3 -0
- package/dist/src/telemetry/config.js.map +1 -1
- package/dist/src/telemetry/conseca-logger.test.js +1 -0
- package/dist/src/telemetry/conseca-logger.test.js.map +1 -1
- package/dist/src/telemetry/loggers.test.js +72 -4
- package/dist/src/telemetry/loggers.test.js.map +1 -1
- package/dist/src/telemetry/memory-monitor.d.ts +1 -0
- package/dist/src/telemetry/memory-monitor.js +8 -1
- package/dist/src/telemetry/memory-monitor.js.map +1 -1
- package/dist/src/telemetry/memory-monitor.test.js +6 -1
- package/dist/src/telemetry/memory-monitor.test.js.map +1 -1
- package/dist/src/telemetry/trace.d.ts +1 -0
- package/dist/src/telemetry/trace.js +33 -13
- package/dist/src/telemetry/trace.js.map +1 -1
- package/dist/src/telemetry/trace.test.js +50 -10
- package/dist/src/telemetry/trace.test.js.map +1 -1
- package/dist/src/telemetry/types.js +11 -4
- package/dist/src/telemetry/types.js.map +1 -1
- package/dist/src/tools/definitions/base-declarations.d.ts +2 -0
- package/dist/src/tools/definitions/base-declarations.js +3 -0
- package/dist/src/tools/definitions/base-declarations.js.map +1 -1
- package/dist/src/tools/definitions/coreTools.d.ts +3 -1
- package/dist/src/tools/definitions/coreTools.js +13 -1
- package/dist/src/tools/definitions/coreTools.js.map +1 -1
- package/dist/src/tools/definitions/model-family-sets/default-legacy.js +29 -1
- package/dist/src/tools/definitions/model-family-sets/default-legacy.js.map +1 -1
- package/dist/src/tools/definitions/model-family-sets/gemini-3.js +29 -1
- package/dist/src/tools/definitions/model-family-sets/gemini-3.js.map +1 -1
- package/dist/src/tools/definitions/types.d.ts +2 -0
- package/dist/src/tools/get-internal-docs.js +5 -2
- package/dist/src/tools/get-internal-docs.js.map +1 -1
- package/dist/src/tools/list-mcp-resources.d.ts +24 -0
- package/dist/src/tools/list-mcp-resources.js +74 -0
- package/dist/src/tools/list-mcp-resources.js.map +1 -0
- package/dist/src/tools/list-mcp-resources.test.d.ts +6 -0
- package/dist/src/tools/list-mcp-resources.test.js +79 -0
- package/dist/src/tools/list-mcp-resources.test.js.map +1 -0
- package/dist/src/tools/mcp-client-manager.d.ts +3 -1
- package/dist/src/tools/mcp-client-manager.js +24 -1
- package/dist/src/tools/mcp-client-manager.js.map +1 -1
- package/dist/src/tools/mcp-client-manager.test.js +43 -0
- package/dist/src/tools/mcp-client-manager.test.js.map +1 -1
- package/dist/src/tools/memoryTool.d.ts +2 -1
- package/dist/src/tools/memoryTool.js +42 -13
- package/dist/src/tools/memoryTool.js.map +1 -1
- package/dist/src/tools/memoryTool.test.js +23 -3
- package/dist/src/tools/memoryTool.test.js.map +1 -1
- package/dist/src/tools/read-mcp-resource.d.ts +25 -0
- package/dist/src/tools/read-mcp-resource.js +120 -0
- package/dist/src/tools/read-mcp-resource.js.map +1 -0
- package/dist/src/tools/read-mcp-resource.test.d.ts +6 -0
- package/dist/src/tools/read-mcp-resource.test.js +110 -0
- package/dist/src/tools/read-mcp-resource.test.js.map +1 -0
- package/dist/src/tools/ripGrep.d.ts +3 -2
- package/dist/src/tools/ripGrep.js +25 -54
- package/dist/src/tools/ripGrep.js.map +1 -1
- package/dist/src/tools/ripGrep.test.js +73 -131
- package/dist/src/tools/ripGrep.test.js.map +1 -1
- package/dist/src/tools/shell.js +38 -12
- package/dist/src/tools/shell.js.map +1 -1
- package/dist/src/tools/shell.test.js +410 -25
- package/dist/src/tools/shell.test.js.map +1 -1
- package/dist/src/tools/tool-error.d.ts +1 -0
- package/dist/src/tools/tool-error.js +1 -0
- package/dist/src/tools/tool-error.js.map +1 -1
- package/dist/src/tools/tool-names.d.ts +4 -4
- package/dist/src/tools/tool-names.js +6 -2
- package/dist/src/tools/tool-names.js.map +1 -1
- package/dist/src/tools/tool-registry.js +8 -1
- package/dist/src/tools/tool-registry.js.map +1 -1
- package/dist/src/utils/filesearch/fileSearch.d.ts +2 -0
- package/dist/src/utils/filesearch/fileSearch.js +97 -6
- package/dist/src/utils/filesearch/fileSearch.js.map +1 -1
- package/dist/src/utils/filesearch/fileSearch.test.js +54 -0
- package/dist/src/utils/filesearch/fileSearch.test.js.map +1 -1
- package/dist/src/utils/filesearch/fileWatcher.d.ts +25 -0
- package/dist/src/utils/filesearch/fileWatcher.js +86 -0
- package/dist/src/utils/filesearch/fileWatcher.js.map +1 -0
- package/dist/src/utils/filesearch/fileWatcher.test.d.ts +6 -0
- package/dist/src/utils/filesearch/fileWatcher.test.js +142 -0
- package/dist/src/utils/filesearch/fileWatcher.test.js.map +1 -0
- package/dist/src/utils/gitIgnoreParser.js +1 -1
- package/dist/src/utils/gitIgnoreParser.js.map +1 -1
- package/dist/src/utils/ignoreFileParser.js +1 -1
- package/dist/src/utils/ignoreFileParser.js.map +1 -1
- package/dist/src/utils/memoryDiscovery.js +15 -5
- package/dist/src/utils/memoryDiscovery.js.map +1 -1
- package/dist/src/utils/retry.js +18 -6
- package/dist/src/utils/retry.js.map +1 -1
- package/dist/src/utils/retry.test.js +30 -0
- package/dist/src/utils/retry.test.js.map +1 -1
- package/dist/src/utils/shell-utils.d.ts +1 -0
- package/dist/src/utils/shell-utils.js +106 -0
- package/dist/src/utils/shell-utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -3
- package/vendor/ripgrep/rg-darwin-arm64 +0 -0
- package/vendor/ripgrep/rg-darwin-x64 +0 -0
- package/vendor/ripgrep/rg-linux-arm64 +0 -0
- package/vendor/ripgrep/rg-linux-x64 +0 -0
- package/vendor/ripgrep/rg-win32-x64.exe +0 -0
- package/dist/docs/get-started/installation.md +0 -181
- package/dist/google-gemini-cli-core-0.39.0-preview.1.tgz +0 -0
- package/dist/src/agents/memory-manager-agent.d.ts +0 -25
- package/dist/src/agents/memory-manager-agent.js +0 -138
- package/dist/src/agents/memory-manager-agent.js.map +0 -1
- package/dist/src/agents/memory-manager-agent.test.js +0 -123
- package/dist/src/agents/memory-manager-agent.test.js.map +0 -1
- package/dist/src/prompts/snippets-memory-manager.test.js +0 -31
- package/dist/src/prompts/snippets-memory-manager.test.js.map +0 -1
- /package/dist/src/agents/{memory-manager-agent.test.d.ts → skill-extraction-agent.test.d.ts} +0 -0
- /package/dist/src/prompts/{snippets-memory-manager.test.d.ts → snippets-memory-v2.test.d.ts} +0 -0
|
@@ -134,10 +134,15 @@ their corresponding top-level category object in your `settings.json` file.
|
|
|
134
134
|
- **Default:** `true`
|
|
135
135
|
|
|
136
136
|
- **`general.enableNotifications`** (boolean):
|
|
137
|
-
- **Description:** Enable run-event notifications for action-required
|
|
138
|
-
and session completion.
|
|
137
|
+
- **Description:** Enable terminal run-event notifications for action-required
|
|
138
|
+
prompts and session completion.
|
|
139
139
|
- **Default:** `false`
|
|
140
140
|
|
|
141
|
+
- **`general.notificationMethod`** (enum):
|
|
142
|
+
- **Description:** How to send terminal notifications.
|
|
143
|
+
- **Default:** `"auto"`
|
|
144
|
+
- **Values:** `"auto"`, `"osc9"`, `"osc777"`, `"bell"`
|
|
145
|
+
|
|
141
146
|
- **`general.checkpointing.enabled`** (boolean):
|
|
142
147
|
- **Description:** Enable session checkpointing for recovery
|
|
143
148
|
- **Default:** `false`
|
|
@@ -193,6 +198,11 @@ their corresponding top-level category object in your `settings.json` file.
|
|
|
193
198
|
- **Description:** Minimum retention period (safety limit, defaults to "1d")
|
|
194
199
|
- **Default:** `"1d"`
|
|
195
200
|
|
|
201
|
+
- **`general.topicUpdateNarration`** (boolean):
|
|
202
|
+
- **Description:** Enable the Topic & Update communication model for reduced
|
|
203
|
+
chattiness and structured progress reporting.
|
|
204
|
+
- **Default:** `true`
|
|
205
|
+
|
|
196
206
|
#### `output`
|
|
197
207
|
|
|
198
208
|
- **`output.format`** (enum):
|
|
@@ -426,6 +436,20 @@ their corresponding top-level category object in your `settings.json` file.
|
|
|
426
436
|
- **Default:** `"ask"`
|
|
427
437
|
- **Values:** `"ask"`, `"always"`, `"never"`
|
|
428
438
|
|
|
439
|
+
- **`billing.vertexAi.requestType`** (enum):
|
|
440
|
+
- **Description:** Sets the X-Vertex-AI-LLM-Request-Type header for Vertex AI
|
|
441
|
+
requests.
|
|
442
|
+
- **Default:** `undefined`
|
|
443
|
+
- **Values:** `"dedicated"`, `"shared"`
|
|
444
|
+
- **Requires restart:** Yes
|
|
445
|
+
|
|
446
|
+
- **`billing.vertexAi.sharedRequestType`** (enum):
|
|
447
|
+
- **Description:** Sets the X-Vertex-AI-LLM-Shared-Request-Type header for
|
|
448
|
+
Vertex AI requests.
|
|
449
|
+
- **Default:** `undefined`
|
|
450
|
+
- **Values:** `"priority"`, `"flex"`
|
|
451
|
+
- **Requires restart:** Yes
|
|
452
|
+
|
|
429
453
|
#### `model`
|
|
430
454
|
|
|
431
455
|
- **`model.name`** (string):
|
|
@@ -1349,6 +1373,12 @@ their corresponding top-level category object in your `settings.json` file.
|
|
|
1349
1373
|
- **Default:** `true`
|
|
1350
1374
|
- **Requires restart:** Yes
|
|
1351
1375
|
|
|
1376
|
+
- **`context.fileFiltering.enableFileWatcher`** (boolean):
|
|
1377
|
+
- **Description:** Enable file watcher updates for @ file suggestions
|
|
1378
|
+
(experimental).
|
|
1379
|
+
- **Default:** `false`
|
|
1380
|
+
- **Requires restart:** Yes
|
|
1381
|
+
|
|
1352
1382
|
- **`context.fileFiltering.enableRecursiveFileSearch`** (boolean):
|
|
1353
1383
|
- **Description:** Enable recursive file search functionality when completing
|
|
1354
1384
|
@ references in the prompt.
|
|
@@ -1658,8 +1688,10 @@ their corresponding top-level category object in your `settings.json` file.
|
|
|
1658
1688
|
- **Requires restart:** Yes
|
|
1659
1689
|
|
|
1660
1690
|
- **`experimental.jitContext`** (boolean):
|
|
1661
|
-
- **Description:** Enable Just-In-Time (JIT) context loading.
|
|
1662
|
-
|
|
1691
|
+
- **Description:** Enable Just-In-Time (JIT) context loading. Defaults to
|
|
1692
|
+
true; set to false to opt out and load all GEMINI.md files into the system
|
|
1693
|
+
instruction up-front.
|
|
1694
|
+
- **Default:** `true`
|
|
1663
1695
|
- **Requires restart:** Yes
|
|
1664
1696
|
|
|
1665
1697
|
- **`experimental.useOSC52Paste`** (boolean):
|
|
@@ -1701,6 +1733,18 @@ their corresponding top-level category object in your `settings.json` file.
|
|
|
1701
1733
|
- **Default:** `false`
|
|
1702
1734
|
- **Requires restart:** Yes
|
|
1703
1735
|
|
|
1736
|
+
- **`experimental.gemmaModelRouter.autoStartServer`** (boolean):
|
|
1737
|
+
- **Description:** Automatically start the LiteRT-LM server when Gemini CLI
|
|
1738
|
+
starts and the Gemma router is enabled.
|
|
1739
|
+
- **Default:** `false`
|
|
1740
|
+
- **Requires restart:** Yes
|
|
1741
|
+
|
|
1742
|
+
- **`experimental.gemmaModelRouter.binaryPath`** (string):
|
|
1743
|
+
- **Description:** Custom path to the LiteRT-LM binary. Leave empty to use the
|
|
1744
|
+
default location (~/.gemini/bin/litert/).
|
|
1745
|
+
- **Default:** `""`
|
|
1746
|
+
- **Requires restart:** Yes
|
|
1747
|
+
|
|
1704
1748
|
- **`experimental.gemmaModelRouter.classifier.host`** (string):
|
|
1705
1749
|
- **Description:** The host of the classifier.
|
|
1706
1750
|
- **Default:** `"http://localhost:9379"`
|
|
@@ -1712,10 +1756,22 @@ their corresponding top-level category object in your `settings.json` file.
|
|
|
1712
1756
|
- **Default:** `"gemma3-1b-gpu-custom"`
|
|
1713
1757
|
- **Requires restart:** Yes
|
|
1714
1758
|
|
|
1715
|
-
- **`experimental.
|
|
1716
|
-
- **Description:**
|
|
1717
|
-
|
|
1718
|
-
|
|
1759
|
+
- **`experimental.memoryV2`** (boolean):
|
|
1760
|
+
- **Description:** Disable the built-in save_memory tool and let the main
|
|
1761
|
+
agent persist project context by editing markdown files directly with
|
|
1762
|
+
edit/write_file. Route facts across four tiers: team-shared conventions go
|
|
1763
|
+
to project GEMINI.md files, project-specific personal notes go to the
|
|
1764
|
+
per-project private memory folder (MEMORY.md as index + sibling .md files
|
|
1765
|
+
for detail), and cross-project personal preferences go to the global
|
|
1766
|
+
~/.gemini/GEMINI.md (the only file under ~/.gemini/ that the agent can edit
|
|
1767
|
+
— settings, credentials, etc. remain off-limits). Set to false to fall back
|
|
1768
|
+
to the legacy save_memory tool.
|
|
1769
|
+
- **Default:** `true`
|
|
1770
|
+
- **Requires restart:** Yes
|
|
1771
|
+
|
|
1772
|
+
- **`experimental.autoMemory`** (boolean):
|
|
1773
|
+
- **Description:** Automatically extract reusable skills from past sessions in
|
|
1774
|
+
the background. Review results with /memory inbox.
|
|
1719
1775
|
- **Default:** `false`
|
|
1720
1776
|
- **Requires restart:** Yes
|
|
1721
1777
|
|
|
@@ -1730,8 +1786,7 @@ their corresponding top-level category object in your `settings.json` file.
|
|
|
1730
1786
|
- **Requires restart:** Yes
|
|
1731
1787
|
|
|
1732
1788
|
- **`experimental.topicUpdateNarration`** (boolean):
|
|
1733
|
-
- **Description:**
|
|
1734
|
-
for reduced chattiness and structured progress reporting.
|
|
1789
|
+
- **Description:** Deprecated: Use general.topicUpdateNarration instead.
|
|
1735
1790
|
- **Default:** `false`
|
|
1736
1791
|
|
|
1737
1792
|
#### `skills`
|
|
@@ -1971,6 +2026,8 @@ see [Telemetry](../cli/telemetry.md).
|
|
|
1971
2026
|
|
|
1972
2027
|
- **Properties:**
|
|
1973
2028
|
- **`enabled`** (boolean): Whether or not telemetry is enabled.
|
|
2029
|
+
- **`traces`** (boolean): Whether detailed traces with large attributes (like
|
|
2030
|
+
tool outputs and file reads) are captured. Defaults to `false`.
|
|
1974
2031
|
- **`target`** (string): The destination for collected telemetry. Supported
|
|
1975
2032
|
values are `local` and `gcp`.
|
|
1976
2033
|
- **`otlpEndpoint`** (string): The endpoint for the OTLP Exporter.
|
|
@@ -2070,7 +2127,7 @@ within your user's home folder.
|
|
|
2070
2127
|
Environment variables are a common way to configure applications, especially for
|
|
2071
2128
|
sensitive information like API keys or for settings that might change between
|
|
2072
2129
|
environments. For authentication setup, see the
|
|
2073
|
-
[Authentication documentation](../get-started/authentication.
|
|
2130
|
+
[Authentication documentation](../get-started/authentication.mdx) which covers
|
|
2074
2131
|
all available authentication methods.
|
|
2075
2132
|
|
|
2076
2133
|
The CLI automatically loads environment variables from an `.env` file. The
|
|
@@ -2091,7 +2148,7 @@ the `advanced.excludedEnvVars` setting in your `settings.json` file.
|
|
|
2091
2148
|
- **`GEMINI_API_KEY`**:
|
|
2092
2149
|
- Your API key for the Gemini API.
|
|
2093
2150
|
- One of several available
|
|
2094
|
-
[authentication methods](../get-started/authentication.
|
|
2151
|
+
[authentication methods](../get-started/authentication.mdx).
|
|
2095
2152
|
- Set this in your shell profile (for example, `~/.bashrc`, `~/.zshrc`) or an
|
|
2096
2153
|
`.env` file.
|
|
2097
2154
|
- **`GEMINI_MODEL`**:
|
|
@@ -2148,6 +2205,21 @@ the `advanced.excludedEnvVars` setting in your `settings.json` file.
|
|
|
2148
2205
|
- When set, overrides the default API version used by the SDK.
|
|
2149
2206
|
- Example: `export GOOGLE_GENAI_API_VERSION="v1"` (Windows PowerShell:
|
|
2150
2207
|
`$env:GOOGLE_GENAI_API_VERSION="v1"`)
|
|
2208
|
+
- **`GOOGLE_GEMINI_BASE_URL`**:
|
|
2209
|
+
- Overrides the default base URL for Gemini API requests (when using
|
|
2210
|
+
`gemini-api-key` authentication).
|
|
2211
|
+
- Must be a valid URL. For security, it must use HTTPS unless pointing to
|
|
2212
|
+
`localhost` (or `127.0.0.1` / `[::1]`).
|
|
2213
|
+
- Example: `export GOOGLE_GEMINI_BASE_URL="https://my-proxy.com"` (Windows
|
|
2214
|
+
PowerShell: `$env:GOOGLE_GEMINI_BASE_URL="https://my-proxy.com"`)
|
|
2215
|
+
- **`GOOGLE_VERTEX_BASE_URL`**:
|
|
2216
|
+
- Overrides the default base URL for Vertex AI API requests (when using
|
|
2217
|
+
`vertex-ai` authentication).
|
|
2218
|
+
- Must be a valid URL. For security, it must use HTTPS unless pointing to
|
|
2219
|
+
`localhost` (or `127.0.0.1` / `[::1]`).
|
|
2220
|
+
- Example: `export GOOGLE_VERTEX_BASE_URL="https://my-vertex-proxy.com"`
|
|
2221
|
+
(Windows PowerShell:
|
|
2222
|
+
`$env:GOOGLE_VERTEX_BASE_URL="https://my-vertex-proxy.com"`)
|
|
2151
2223
|
- **`OTLP_GOOGLE_CLOUD_PROJECT`**:
|
|
2152
2224
|
- Your Google Cloud Project ID for Telemetry in Google Cloud
|
|
2153
2225
|
- Example: `export OTLP_GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"` (Windows
|
|
@@ -2156,6 +2228,10 @@ the `advanced.excludedEnvVars` setting in your `settings.json` file.
|
|
|
2156
2228
|
- Set to `true` or `1` to enable telemetry. Any other value is treated as
|
|
2157
2229
|
disabling it.
|
|
2158
2230
|
- Overrides the `telemetry.enabled` setting.
|
|
2231
|
+
- **`GEMINI_TELEMETRY_TRACES_ENABLED`**:
|
|
2232
|
+
- Set to `true` or `1` to enable detailed tracing with large attributes. Any
|
|
2233
|
+
other value is treated as disabling it.
|
|
2234
|
+
- Overrides the `telemetry.traces` setting.
|
|
2159
2235
|
- **`GEMINI_TELEMETRY_TARGET`**:
|
|
2160
2236
|
- Sets the telemetry target (`local` or `gcp`).
|
|
2161
2237
|
- Overrides the `telemetry.target` setting.
|
|
@@ -120,6 +120,12 @@ There are three possible decisions a rule can enforce:
|
|
|
120
120
|
|
|
121
121
|
### Priority system and tiers
|
|
122
122
|
|
|
123
|
+
> [!WARNING] The **Workspace** tier (project-level policies) is currently
|
|
124
|
+
> non-functional. Defining policies in a workspace's `.gemini/policies`
|
|
125
|
+
> directory will not have any effect. See
|
|
126
|
+
> [issue #18186](https://github.com/google-gemini/gemini-cli/issues/18186). Use
|
|
127
|
+
> User or Admin policies instead.
|
|
128
|
+
|
|
123
129
|
The policy engine uses a sophisticated priority system to resolve conflicts when
|
|
124
130
|
multiple rules match a single tool call. The core principle is simple: **the
|
|
125
131
|
rule with the highest priority wins**.
|
|
@@ -127,13 +133,13 @@ rule with the highest priority wins**.
|
|
|
127
133
|
To provide a clear hierarchy, policies are organized into three tiers. Each tier
|
|
128
134
|
has a designated number that forms the base of the final priority calculation.
|
|
129
135
|
|
|
130
|
-
| Tier | Base | Description
|
|
131
|
-
| :-------- | :--- |
|
|
132
|
-
| Default | 1 | Built-in policies that ship with Gemini CLI.
|
|
133
|
-
| Extension | 2 | Policies defined in extensions.
|
|
134
|
-
| Workspace | 3 | Policies defined in the current workspace's configuration directory.
|
|
135
|
-
| User | 4 | Custom policies defined by the user.
|
|
136
|
-
| Admin | 5 | Policies managed by an administrator (for example, in an enterprise environment).
|
|
136
|
+
| Tier | Base | Description |
|
|
137
|
+
| :-------- | :--- | :-------------------------------------------------------------------------------------------- |
|
|
138
|
+
| Default | 1 | Built-in policies that ship with Gemini CLI. |
|
|
139
|
+
| Extension | 2 | Policies defined in extensions. |
|
|
140
|
+
| Workspace | 3 | **(Currently disabled)** Policies defined in the current workspace's configuration directory. |
|
|
141
|
+
| User | 4 | Custom policies defined by the user. |
|
|
142
|
+
| Admin | 5 | Policies managed by an administrator (for example, in an enterprise environment). |
|
|
137
143
|
|
|
138
144
|
Within a TOML policy file, you assign a priority value from **0 to 999**. The
|
|
139
145
|
engine transforms this into a final priority using the following formula:
|
|
@@ -214,11 +220,11 @@ User, and (if configured) Admin directories.
|
|
|
214
220
|
|
|
215
221
|
### Policy locations
|
|
216
222
|
|
|
217
|
-
| Tier | Type | Location
|
|
218
|
-
| :------------ | :----- |
|
|
219
|
-
| **User** | Custom | `~/.gemini/policies/*.toml`
|
|
220
|
-
| **Workspace** | Custom | `$WORKSPACE_ROOT/.gemini/policies/*.toml` |
|
|
221
|
-
| **Admin** | System | _See below (OS specific)_
|
|
223
|
+
| Tier | Type | Location |
|
|
224
|
+
| :------------ | :----- | :------------------------------------------------------- |
|
|
225
|
+
| **User** | Custom | `~/.gemini/policies/*.toml` |
|
|
226
|
+
| **Workspace** | Custom | **(Disabled)** `$WORKSPACE_ROOT/.gemini/policies/*.toml` |
|
|
227
|
+
| **Admin** | System | _See below (OS specific)_ |
|
|
222
228
|
|
|
223
229
|
#### System-wide policies (Admin)
|
|
224
230
|
|
|
@@ -92,6 +92,28 @@ each tool.
|
|
|
92
92
|
| [`ask_user`](../tools/ask-user.md) | `Communicate` | Requests clarification or missing information via an interactive dialog. |
|
|
93
93
|
| [`write_todos`](../tools/todos.md) | `Other` | Maintains an internal list of subtasks. The model uses this to track its own progress. |
|
|
94
94
|
|
|
95
|
+
### Task Tracker (Experimental)
|
|
96
|
+
|
|
97
|
+
<!-- prettier-ignore -->
|
|
98
|
+
> [!NOTE]
|
|
99
|
+
> This is an experimental feature currently under active development. Enable via `experimental.taskTracker`.
|
|
100
|
+
|
|
101
|
+
| Tool | Kind | Description |
|
|
102
|
+
| :---------------------------------------------- | :------ | :-------------------------------------------------------------------------- |
|
|
103
|
+
| [`tracker_create_task`](../tools/tracker.md) | `Other` | Creates a new task in the experimental tracker. |
|
|
104
|
+
| [`tracker_update_task`](../tools/tracker.md) | `Other` | Updates an existing task's status, description, or dependencies. |
|
|
105
|
+
| [`tracker_get_task`](../tools/tracker.md) | `Other` | Retrieves the full details of a specific task. |
|
|
106
|
+
| [`tracker_list_tasks`](../tools/tracker.md) | `Other` | Lists tasks in the tracker, optionally filtered by status, type, or parent. |
|
|
107
|
+
| [`tracker_add_dependency`](../tools/tracker.md) | `Other` | Adds a dependency between two tasks, ensuring topological execution. |
|
|
108
|
+
| [`tracker_visualize`](../tools/tracker.md) | `Other` | Renders an ASCII tree visualization of the current task graph. |
|
|
109
|
+
|
|
110
|
+
### MCP
|
|
111
|
+
|
|
112
|
+
| Tool | Kind | Description |
|
|
113
|
+
| :------------------------------------------------ | :------- | :--------------------------------------------------------------------- |
|
|
114
|
+
| [`list_mcp_resources`](../tools/mcp-resources.md) | `Search` | Lists all available resources exposed by connected MCP servers. |
|
|
115
|
+
| [`read_mcp_resource`](../tools/mcp-resources.md) | `Read` | Reads the content of a specific Model Context Protocol (MCP) resource. |
|
|
116
|
+
|
|
95
117
|
### Memory
|
|
96
118
|
|
|
97
119
|
| Tool | Kind | Description |
|
package/dist/docs/sidebar.json
CHANGED
|
@@ -96,6 +96,11 @@
|
|
|
96
96
|
]
|
|
97
97
|
},
|
|
98
98
|
{ "label": "Agent Skills", "slug": "docs/cli/skills" },
|
|
99
|
+
{
|
|
100
|
+
"label": "Auto Memory",
|
|
101
|
+
"badge": "🔬",
|
|
102
|
+
"slug": "docs/cli/auto-memory"
|
|
103
|
+
},
|
|
99
104
|
{ "label": "Checkpointing", "slug": "docs/cli/checkpointing" },
|
|
100
105
|
{ "label": "Headless mode", "slug": "docs/cli/headless" },
|
|
101
106
|
{
|
|
@@ -122,7 +127,14 @@
|
|
|
122
127
|
}
|
|
123
128
|
]
|
|
124
129
|
},
|
|
125
|
-
{
|
|
130
|
+
{
|
|
131
|
+
"label": "MCP servers",
|
|
132
|
+
"collapsed": true,
|
|
133
|
+
"items": [
|
|
134
|
+
{ "label": "Overview", "slug": "docs/tools/mcp-server" },
|
|
135
|
+
{ "label": "Resource tools", "slug": "docs/tools/mcp-resources" }
|
|
136
|
+
]
|
|
137
|
+
},
|
|
126
138
|
{ "label": "Model routing", "slug": "docs/cli/model-routing" },
|
|
127
139
|
{ "label": "Model selection", "slug": "docs/cli/model" },
|
|
128
140
|
{
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# MCP resource tools
|
|
2
|
+
|
|
3
|
+
MCP resource tools let Gemini CLI discover and retrieve data from contextual
|
|
4
|
+
resources exposed by Model Context Protocol (MCP) servers.
|
|
5
|
+
|
|
6
|
+
## 1. `list_mcp_resources` (ListMcpResources)
|
|
7
|
+
|
|
8
|
+
`list_mcp_resources` retrieves a list of all available resources from connected
|
|
9
|
+
MCP servers. This is primarily a discovery tool that helps the model understand
|
|
10
|
+
what external data sources are available for reference.
|
|
11
|
+
|
|
12
|
+
- **Tool name:** `list_mcp_resources`
|
|
13
|
+
- **Display name:** List MCP Resources
|
|
14
|
+
- **Kind:** `Search`
|
|
15
|
+
- **File:** `list-mcp-resources.ts`
|
|
16
|
+
- **Parameters:**
|
|
17
|
+
- `serverName` (string, optional): An optional filter to list resources from a
|
|
18
|
+
specific server.
|
|
19
|
+
- **Behavior:**
|
|
20
|
+
- Iterates through all connected MCP servers.
|
|
21
|
+
- Fetches the list of resources each server exposes.
|
|
22
|
+
- Formats the results into a plain-text list of URIs and descriptions.
|
|
23
|
+
- **Output (`llmContent`):** A formatted list of available resources, including
|
|
24
|
+
their URI, server name, and optional description.
|
|
25
|
+
- **Confirmation:** No. This is a read-only discovery tool.
|
|
26
|
+
|
|
27
|
+
## 2. `read_mcp_resource` (ReadMcpResource)
|
|
28
|
+
|
|
29
|
+
`read_mcp_resource` retrieves the content of a specific resource identified by
|
|
30
|
+
its URI.
|
|
31
|
+
|
|
32
|
+
- **Tool name:** `read_mcp_resource`
|
|
33
|
+
- **Display name:** Read MCP Resource
|
|
34
|
+
- **Kind:** `Read`
|
|
35
|
+
- **File:** `read-mcp-resource.ts`
|
|
36
|
+
- **Parameters:**
|
|
37
|
+
- `uri` (string, required): The URI of the MCP resource to read.
|
|
38
|
+
- **Behavior:**
|
|
39
|
+
- Locates the resource and its associated server by URI.
|
|
40
|
+
- Calls the server's `resources/read` method.
|
|
41
|
+
- Processes the response, extracting text or binary data.
|
|
42
|
+
- **Output (`llmContent`):** The content of the resource. For binary data, it
|
|
43
|
+
returns a placeholder indicating the data type.
|
|
44
|
+
- **Confirmation:** No. This is a read-only retrieval tool.
|
|
@@ -64,7 +64,8 @@ Gemini CLI supports three MCP transport types:
|
|
|
64
64
|
|
|
65
65
|
Some MCP servers expose contextual “resources” in addition to the tools and
|
|
66
66
|
prompts. Gemini CLI discovers these automatically and gives you the possibility
|
|
67
|
-
to reference them in the chat.
|
|
67
|
+
to reference them in the chat. For more information on the tools used to
|
|
68
|
+
interact with these resources, see [MCP resource tools](mcp-resources.md).
|
|
68
69
|
|
|
69
70
|
### Discovery and listing
|
|
70
71
|
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Tracker tools (`tracker_*`)
|
|
2
|
+
|
|
3
|
+
<!-- prettier-ignore -->
|
|
4
|
+
> [!NOTE]
|
|
5
|
+
> This is an experimental feature currently under active development.
|
|
6
|
+
|
|
7
|
+
The `tracker_*` tools allow the Gemini agent to maintain an internal, persistent
|
|
8
|
+
graph of tasks and dependencies for multi-step requests. This suite of tools
|
|
9
|
+
provides a more robust and granular way to manage execution plans than the
|
|
10
|
+
legacy `write_todos` tool.
|
|
11
|
+
|
|
12
|
+
## Technical reference
|
|
13
|
+
|
|
14
|
+
The agent uses these tools to manage its execution plan, decompose complex goals
|
|
15
|
+
into actionable sub-tasks, and provide real-time progress updates to the CLI
|
|
16
|
+
interface. The task state is stored in the `.gemini/tmp/tracker/<session-id>`
|
|
17
|
+
directory, allowing the agent to manage its plan for the current session.
|
|
18
|
+
|
|
19
|
+
### Available Tools
|
|
20
|
+
|
|
21
|
+
- `tracker_create_task`: Creates a new task in the tracker. You can specify a
|
|
22
|
+
title, description, and task type (`epic`, `task`, `bug`).
|
|
23
|
+
- `tracker_update_task`: Updates an existing task's status (`open`,
|
|
24
|
+
`in_progress`, `blocked`, `closed`), description, or dependencies.
|
|
25
|
+
- `tracker_get_task`: Retrieves the full details of a specific task by its
|
|
26
|
+
6-character hex ID.
|
|
27
|
+
- `tracker_list_tasks`: Lists tasks in the tracker, optionally filtered by
|
|
28
|
+
status, type, or parent ID.
|
|
29
|
+
- `tracker_add_dependency`: Adds a dependency between two tasks, ensuring
|
|
30
|
+
topological execution.
|
|
31
|
+
- `tracker_visualize`: Renders an ASCII tree visualization of the current task
|
|
32
|
+
graph.
|
|
33
|
+
|
|
34
|
+
## Technical behavior
|
|
35
|
+
|
|
36
|
+
- **Interface:** Updates the progress indicator and task tree above the CLI
|
|
37
|
+
input prompt.
|
|
38
|
+
- **Persistence:** Task state is saved automatically to the
|
|
39
|
+
`.gemini/tmp/tracker/<session-id>` directory. Task states are session-specific
|
|
40
|
+
and do not persist across different sessions.
|
|
41
|
+
- **Dependencies:** Tasks can depend on other tasks, forming a directed acyclic
|
|
42
|
+
graph (DAG). The agent must resolve dependencies before starting blocked
|
|
43
|
+
tasks.
|
|
44
|
+
- **Interaction:** Users can view the current state of the tracker by asking the
|
|
45
|
+
agent to visualize it, or by running `gemini-cli` commands if implemented.
|
|
46
|
+
|
|
47
|
+
## Use cases
|
|
48
|
+
|
|
49
|
+
- Coordinating multi-file refactoring projects.
|
|
50
|
+
- Breaking down a mission into a hierarchy of epics and tasks for better
|
|
51
|
+
visibility.
|
|
52
|
+
- Tracking bugs and feature requests directly within the context of an active
|
|
53
|
+
codebase.
|
|
54
|
+
- Providing visibility into the agent's current focus and remaining work.
|
|
55
|
+
|
|
56
|
+
## Next steps
|
|
57
|
+
|
|
58
|
+
- Follow the [Task planning tutorial](../cli/tutorials/task-planning.md) for
|
|
59
|
+
usage details and migration from the legacy todo list.
|
|
60
|
+
- Learn about [Session management](../cli/session-management.md) for context on
|
|
61
|
+
persistent state.
|
|
@@ -106,6 +106,7 @@ class DelegateInvocation extends BaseToolInvocation {
|
|
|
106
106
|
return runInDevTraceSpan({
|
|
107
107
|
operation: GeminiCliOperation.AgentCall,
|
|
108
108
|
logPrompts: this.context.config.getTelemetryLogPromptsEnabled(),
|
|
109
|
+
tracesEnabled: this.context.config.getTelemetryTracesEnabled(),
|
|
109
110
|
sessionId: this.context.config.getSessionId(),
|
|
110
111
|
attributes: {
|
|
111
112
|
[GEN_AI_AGENT_NAME]: this.definition.name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-tool.js","sourceRoot":"","sources":["../../../src/agents/agent-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,mBAAmB,EACnB,IAAI,EAGJ,kBAAkB,GAGnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAyB,MAAM,iCAAiC,CAAC;AAGxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CA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C1C,MAAM,SAAS,GAAY,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC;QACnE,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YACzB,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,MAAM,UAAU,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;QAC3C,IAAI,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACrC,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;YAE1D,MAAM,KAAK,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;YACpC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC3D,OAAO,SAAS,CAAC;YACnB,CAAC;YAED,OAAO;gBACL,GAAG,SAAS;gBACZ,CAAC,UAAU,CAAC,EAAE,GAAG,cAAc,OAAO,KAAK,EAAE;aAC9C,CAAC;QACJ,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -87,11 +87,11 @@ declare const localAgentSchema: z.ZodObject<{
|
|
|
87
87
|
authorization_url?: string | undefined;
|
|
88
88
|
} | undefined;
|
|
89
89
|
headers?: Record<string, string> | undefined;
|
|
90
|
+
cwd?: string | undefined;
|
|
90
91
|
url?: string | undefined;
|
|
91
92
|
description?: string | undefined;
|
|
92
93
|
timeout?: number | undefined;
|
|
93
94
|
env?: Record<string, string> | undefined;
|
|
94
|
-
cwd?: string | undefined;
|
|
95
95
|
trust?: boolean | undefined;
|
|
96
96
|
http_url?: string | undefined;
|
|
97
97
|
tcp?: string | undefined;
|
|
@@ -113,11 +113,11 @@ declare const localAgentSchema: z.ZodObject<{
|
|
|
113
113
|
authorization_url?: string | undefined;
|
|
114
114
|
} | undefined;
|
|
115
115
|
headers?: Record<string, string> | undefined;
|
|
116
|
+
cwd?: string | undefined;
|
|
116
117
|
url?: string | undefined;
|
|
117
118
|
description?: string | undefined;
|
|
118
119
|
timeout?: number | undefined;
|
|
119
120
|
env?: Record<string, string> | undefined;
|
|
120
|
-
cwd?: string | undefined;
|
|
121
121
|
trust?: boolean | undefined;
|
|
122
122
|
http_url?: string | undefined;
|
|
123
123
|
tcp?: string | undefined;
|
|
@@ -151,11 +151,11 @@ declare const localAgentSchema: z.ZodObject<{
|
|
|
151
151
|
authorization_url?: string | undefined;
|
|
152
152
|
} | undefined;
|
|
153
153
|
headers?: Record<string, string> | undefined;
|
|
154
|
+
cwd?: string | undefined;
|
|
154
155
|
url?: string | undefined;
|
|
155
156
|
description?: string | undefined;
|
|
156
157
|
timeout?: number | undefined;
|
|
157
158
|
env?: Record<string, string> | undefined;
|
|
158
|
-
cwd?: string | undefined;
|
|
159
159
|
trust?: boolean | undefined;
|
|
160
160
|
http_url?: string | undefined;
|
|
161
161
|
tcp?: string | undefined;
|
|
@@ -188,11 +188,11 @@ declare const localAgentSchema: z.ZodObject<{
|
|
|
188
188
|
authorization_url?: string | undefined;
|
|
189
189
|
} | undefined;
|
|
190
190
|
headers?: Record<string, string> | undefined;
|
|
191
|
+
cwd?: string | undefined;
|
|
191
192
|
url?: string | undefined;
|
|
192
193
|
description?: string | undefined;
|
|
193
194
|
timeout?: number | undefined;
|
|
194
195
|
env?: Record<string, string> | undefined;
|
|
195
|
-
cwd?: string | undefined;
|
|
196
196
|
trust?: boolean | undefined;
|
|
197
197
|
http_url?: string | undefined;
|
|
198
198
|
tcp?: string | undefined;
|
|
@@ -46,8 +46,9 @@ export const GeneralistAgent = (context) => ({
|
|
|
46
46
|
get promptConfig() {
|
|
47
47
|
return {
|
|
48
48
|
systemPrompt: getCoreSystemPrompt(context.config,
|
|
49
|
-
/*
|
|
50
|
-
/*interactiveOverride=*/ false
|
|
49
|
+
/*userMemory=*/ undefined,
|
|
50
|
+
/*interactiveOverride=*/ false,
|
|
51
|
+
/*topicUpdateNarrationOverride=*/ false),
|
|
51
52
|
query: '${request}',
|
|
52
53
|
};
|
|
53
54
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generalist-agent.js","sourceRoot":"","sources":["../../../src/agents/generalist-agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAGzD,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;CACpE,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,OAAyB,EAC2B,EAAE,CAAC,CAAC;IACxD,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EACT,qWAAqW;IACvW,WAAW,EAAE;QACX,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,gDAAgD;iBAC9D;aACF;YACD,QAAQ,EAAE,CAAC,SAAS,CAAC;SACtB;KACF;IACD,YAAY,EAAE;QACZ,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,0CAA0C;QACvD,MAAM,EAAE,qBAAqB;KAC9B;IACD,WAAW,EAAE;QACX,KAAK,EAAE,SAAS;KACjB;IACD,IAAI,UAAU;QACZ,MAAM,KAAK,GAAG,OAAO,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC;QACrD,OAAO;YACL,KAAK;SACN,CAAC;IACJ,CAAC;IACD,IAAI,YAAY;QACd,OAAO;YACL,YAAY,EAAE,mBAAmB,CAC/B,OAAO,CAAC,MAAM;YACd,
|
|
1
|
+
{"version":3,"file":"generalist-agent.js","sourceRoot":"","sources":["../../../src/agents/generalist-agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAGzD,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;CACpE,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,OAAyB,EAC2B,EAAE,CAAC,CAAC;IACxD,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EACT,qWAAqW;IACvW,WAAW,EAAE;QACX,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,gDAAgD;iBAC9D;aACF;YACD,QAAQ,EAAE,CAAC,SAAS,CAAC;SACtB;KACF;IACD,YAAY,EAAE;QACZ,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,0CAA0C;QACvD,MAAM,EAAE,qBAAqB;KAC9B;IACD,WAAW,EAAE;QACX,KAAK,EAAE,SAAS;KACjB;IACD,IAAI,UAAU;QACZ,MAAM,KAAK,GAAG,OAAO,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC;QACrD,OAAO;YACL,KAAK;SACN,CAAC;IACJ,CAAC;IACD,IAAI,YAAY;QACd,OAAO;YACL,YAAY,EAAE,mBAAmB,CAC/B,OAAO,CAAC,MAAM;YACd,eAAe,CAAC,SAAS;YACzB,wBAAwB,CAAC,KAAK;YAC9B,iCAAiC,CAAC,KAAK,CACxC;YACD,KAAK,EAAE,YAAY;SACpB,CAAC;IACJ,CAAC;IACD,SAAS,EAAE;QACT,cAAc,EAAE,EAAE;QAClB,QAAQ,EAAE,EAAE;KACb;CACF,CAAC,CAAC"}
|
|
@@ -35,7 +35,7 @@ import { DeadlineTimer } from '../utils/deadlineTimer.js';
|
|
|
35
35
|
import { formatUserHintsForModel, formatBackgroundCompletionForModel, } from '../utils/fastAckHelper.js';
|
|
36
36
|
import { createScopedWorkspaceContext, runWithScopedWorkspaceContext, } from '../config/scoped-config.js';
|
|
37
37
|
import { CompleteTaskTool } from '../tools/complete-task.js';
|
|
38
|
-
import { COMPLETE_TASK_TOOL_NAME, ACTIVATE_SKILL_TOOL_NAME, } from '../tools/definitions/base-declarations.js';
|
|
38
|
+
import { COMPLETE_TASK_TOOL_NAME, ACTIVATE_SKILL_TOOL_NAME, UPDATE_TOPIC_TOOL_NAME, } from '../tools/definitions/base-declarations.js';
|
|
39
39
|
const GRACE_PERIOD_MS = 60 * 1000; // 1 min
|
|
40
40
|
export function createUnauthorizedToolError(toolName) {
|
|
41
41
|
return `Unauthorized tool call: '${toolName}' is not available to this agent.`;
|
|
@@ -108,6 +108,9 @@ export class LocalAgentExecutor {
|
|
|
108
108
|
if (tool.kind === Kind.Agent) {
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
|
+
if (tool.name === UPDATE_TOPIC_TOOL_NAME) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
111
114
|
// Clone the tool, so it gets its own state and subagent messageBus
|
|
112
115
|
const clonedTool = tool.clone(subagentMessageBus);
|
|
113
116
|
agentToolRegistry.registerTool(clonedTool);
|