@pellux/goodvibes-agent 1.1.7 → 1.2.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/CHANGELOG.md +170 -0
- package/README.md +46 -30
- package/dist/package/{ast-grep-napi.linux-x64-gnu-mkk8xwww.node → ast-grep-napi.linux-x64-gnu-swtppvy9.node} +0 -0
- package/dist/package/{ast-grep-napi.linux-x64-musl-ryqtgdv6.node → ast-grep-napi.linux-x64-musl-ttfcdtap.node} +0 -0
- package/dist/package/main.js +132577 -91483
- package/docs/README.md +14 -7
- package/docs/channels-remote-and-api.md +8 -5
- package/docs/connected-host.md +14 -12
- package/docs/getting-started.md +56 -30
- package/docs/knowledge-artifacts-and-multimodal.md +7 -5
- package/docs/project-planning.md +2 -2
- package/docs/providers-and-routing.md +11 -3
- package/docs/tools-and-commands.md +114 -45
- package/docs/voice-and-live-tts.md +3 -1
- package/package.json +3 -2
- package/release/release-notes.md +130 -5
- package/release/release-readiness.json +120 -90
- package/src/agent/assistant-cockpit.ts +247 -0
- package/src/agent/autonomy-schedule-format.ts +96 -0
- package/src/agent/autonomy-schedule.ts +514 -0
- package/src/agent/channel-delivery-receipts.ts +292 -0
- package/src/agent/competitive-feature-inventory.ts +296 -0
- package/src/agent/document-registry-types.ts +106 -0
- package/src/agent/document-registry.ts +734 -0
- package/src/agent/harness-control.ts +2 -2
- package/src/agent/memory-prompt.ts +2 -2
- package/src/agent/operator-actions.ts +50 -6
- package/src/agent/persona-registry.ts +8 -0
- package/src/agent/project-context-files.ts +273 -0
- package/src/agent/prompt-context-receipts.ts +502 -0
- package/src/agent/reminder-schedule-format.ts +16 -2
- package/src/agent/research-run-registry.ts +582 -0
- package/src/agent/research-source-registry.ts +441 -0
- package/src/agent/routine-registry.ts +19 -3
- package/src/agent/routine-schedule-format.ts +27 -2
- package/src/agent/runtime-profile-starters.ts +7 -0
- package/src/agent/runtime-profile.ts +106 -4
- package/src/agent/schedule-edit-format.ts +129 -0
- package/src/agent/schedule-edit.ts +496 -0
- package/src/agent/schedule-next-routes.ts +42 -0
- package/src/agent/setup-wizard-checkpoint.ts +140 -0
- package/src/agent/setup-wizard.ts +447 -0
- package/src/agent/skill-registry-types.ts +102 -0
- package/src/agent/skill-registry.ts +81 -107
- package/src/agent/vibe-confirmation-routes.ts +62 -0
- package/src/agent/vibe-file.ts +285 -0
- package/src/cli/agent-knowledge-command.ts +45 -2
- package/src/cli/help.ts +3 -0
- package/src/cli/profiles-command.ts +25 -11
- package/src/config/agent-settings-policy.ts +1 -18
- package/src/input/agent-workspace-activation.ts +53 -0
- package/src/input/agent-workspace-artifact-browser-editor.ts +494 -0
- package/src/input/agent-workspace-artifact-metadata.ts +17 -0
- package/src/input/agent-workspace-basic-command-editors.ts +5 -1
- package/src/input/agent-workspace-categories.ts +153 -155
- package/src/input/agent-workspace-channel-triage.ts +481 -0
- package/src/input/agent-workspace-channels.ts +263 -0
- package/src/input/agent-workspace-command-editor.ts +152 -0
- package/src/input/agent-workspace-context-snapshot.ts +349 -0
- package/src/input/agent-workspace-delegation-editor-submission.ts +8 -0
- package/src/input/agent-workspace-document-editor.ts +502 -0
- package/src/input/agent-workspace-document-ops-editor.ts +523 -0
- package/src/input/agent-workspace-host-category.ts +1 -1
- package/src/input/agent-workspace-local-library-snapshot.ts +167 -0
- package/src/input/agent-workspace-model-compare-editor.ts +376 -0
- package/src/input/agent-workspace-model-compare-prompt-submission.ts +552 -0
- package/src/input/agent-workspace-model-compare-types.ts +82 -0
- package/src/input/agent-workspace-model-compare-utils.ts +35 -0
- package/src/input/agent-workspace-onboarding-categories.ts +141 -0
- package/src/input/agent-workspace-operations-command-editor-submission.ts +53 -0
- package/src/input/agent-workspace-operations-command-editors.ts +22 -0
- package/src/input/agent-workspace-research-report-editor.ts +212 -0
- package/src/input/agent-workspace-research-run-editor.ts +144 -0
- package/src/input/agent-workspace-research-source-editor.ts +167 -0
- package/src/input/agent-workspace-review-packet-snapshot.ts +593 -0
- package/src/input/agent-workspace-review-packet-utils.ts +265 -0
- package/src/input/agent-workspace-settings.ts +262 -30
- package/src/input/agent-workspace-setup-checkpoint-action.ts +127 -0
- package/src/input/agent-workspace-setup-snapshot.ts +198 -0
- package/src/input/agent-workspace-setup.ts +34 -1
- package/src/input/agent-workspace-snapshot.ts +162 -147
- package/src/input/agent-workspace-types.ts +287 -2
- package/src/input/agent-workspace.ts +18 -0
- package/src/input/command-registry.ts +9 -2
- package/src/input/commands/agent-runtime-profile-runtime.ts +28 -13
- package/src/input/commands/channels-runtime.ts +102 -114
- package/src/input/commands/delegation-runtime.ts +87 -24
- package/src/input/commands/knowledge-browser-flags.ts +12 -0
- package/src/input/commands/knowledge.ts +28 -14
- package/src/input/commands/operator-actions-runtime.ts +6 -3
- package/src/input/commands/schedule-runtime.ts +71 -14
- package/src/input/commands/session-content.ts +2 -2
- package/src/input/commands/shell-core.ts +2 -0
- package/src/input/commands/vibe-runtime.ts +140 -0
- package/src/input/commands.ts +2 -0
- package/src/input/connected-host-routes.ts +123 -0
- package/src/input/settings-modal-types.ts +14 -0
- package/src/main.ts +15 -15
- package/src/panels/qr-panel.ts +2 -2
- package/src/renderer/agent-workspace-context-lines.ts +686 -0
- package/src/renderer/agent-workspace.ts +30 -419
- package/src/renderer/settings-modal-helpers.ts +12 -0
- package/src/renderer/settings-modal.ts +12 -0
- package/src/runtime/bootstrap-command-context.ts +11 -1
- package/src/runtime/bootstrap-command-parts.ts +14 -3
- package/src/runtime/bootstrap-core.ts +39 -1
- package/src/runtime/bootstrap-shell.ts +6 -0
- package/src/runtime/bootstrap.ts +113 -30
- package/src/runtime/connected-host-auth.ts +3 -2
- package/src/runtime/execution-ledger.ts +231 -0
- package/src/runtime/services.ts +88 -10
- package/src/runtime/tool-permission-safety.ts +199 -5
- package/src/shell/session-continuity-hints.ts +39 -0
- package/src/tools/agent-artifacts-tool.ts +606 -0
- package/src/tools/agent-audit-tool.ts +155 -0
- package/src/tools/agent-autonomy-schedule-tool.ts +238 -0
- package/src/tools/agent-autonomy-tool.ts +140 -0
- package/src/tools/agent-channel-send-tool.ts +24 -2
- package/src/tools/agent-channels-tool.ts +140 -0
- package/src/tools/agent-computer-tool.ts +168 -0
- package/src/tools/agent-context-policy.ts +137 -7
- package/src/tools/agent-context-tool.ts +143 -0
- package/src/tools/agent-delegation-tool.ts +128 -0
- package/src/tools/agent-device-tool.ts +240 -0
- package/src/tools/agent-documents-tool.ts +684 -0
- package/src/tools/agent-execution-tool.ts +230 -0
- package/src/tools/agent-harness-agent-orchestration.ts +703 -0
- package/src/tools/agent-harness-autonomy-intake.ts +785 -0
- package/src/tools/agent-harness-autonomy-live-records.ts +588 -0
- package/src/tools/agent-harness-autonomy-queue-types.ts +88 -0
- package/src/tools/agent-harness-autonomy-queue.ts +560 -0
- package/src/tools/agent-harness-background-processes-types.ts +35 -0
- package/src/tools/agent-harness-background-processes.ts +794 -0
- package/src/tools/agent-harness-browser-cockpit-route.ts +219 -0
- package/src/tools/agent-harness-browser-control.ts +338 -0
- package/src/tools/agent-harness-channel-metadata.ts +168 -10
- package/src/tools/agent-harness-cli-command-policy.ts +110 -0
- package/src/tools/agent-harness-command-catalog.ts +4 -2
- package/src/tools/agent-harness-command-runner.ts +42 -0
- package/src/tools/agent-harness-connected-host-status.ts +7 -4
- package/src/tools/agent-harness-delegation-posture.ts +234 -19
- package/src/tools/agent-harness-document-ops-reviewer-readiness.ts +234 -0
- package/src/tools/agent-harness-document-ops-types.ts +72 -0
- package/src/tools/agent-harness-document-ops.ts +671 -0
- package/src/tools/agent-harness-execution-history.ts +489 -0
- package/src/tools/agent-harness-execution-posture.ts +382 -0
- package/src/tools/agent-harness-file-recovery.ts +135 -0
- package/src/tools/agent-harness-keybinding-metadata.ts +16 -12
- package/src/tools/agent-harness-learning-curator-common.ts +102 -0
- package/src/tools/agent-harness-learning-curator-consolidation.ts +295 -0
- package/src/tools/agent-harness-learning-curator-proposals.ts +606 -0
- package/src/tools/agent-harness-learning-curator-types.ts +151 -0
- package/src/tools/agent-harness-learning-curator.ts +417 -0
- package/src/tools/agent-harness-local-model-benchmarks.ts +199 -0
- package/src/tools/agent-harness-local-model-cookbook.ts +238 -0
- package/src/tools/agent-harness-local-model-endpoints.ts +673 -0
- package/src/tools/agent-harness-media-posture.ts +208 -2
- package/src/tools/agent-harness-memory-posture.ts +556 -0
- package/src/tools/agent-harness-metadata.ts +100 -168
- package/src/tools/agent-harness-mode-catalog.ts +84 -33
- package/src/tools/agent-harness-model-catalog.ts +162 -0
- package/src/tools/agent-harness-model-provider-health.ts +186 -0
- package/src/tools/agent-harness-model-readiness.ts +406 -0
- package/src/tools/agent-harness-model-routing-types.ts +266 -0
- package/src/tools/agent-harness-model-routing-utils.ts +30 -0
- package/src/tools/agent-harness-model-routing.ts +137 -190
- package/src/tools/agent-harness-operator-methods.ts +115 -133
- package/src/tools/agent-harness-pairing-posture.ts +431 -18
- package/src/tools/agent-harness-personal-ops-discovery.ts +533 -0
- package/src/tools/agent-harness-personal-ops-intake.ts +385 -0
- package/src/tools/agent-harness-personal-ops-lanes.ts +204 -0
- package/src/tools/agent-harness-personal-ops-records.ts +732 -0
- package/src/tools/agent-harness-personal-ops-runner.ts +637 -0
- package/src/tools/agent-harness-personal-ops-types.ts +222 -0
- package/src/tools/agent-harness-personal-ops.ts +606 -0
- package/src/tools/agent-harness-project-context.ts +144 -0
- package/src/tools/agent-harness-prompt-context.ts +589 -0
- package/src/tools/agent-harness-provider-account-metadata.ts +2 -2
- package/src/tools/agent-harness-release-evidence.ts +9 -7
- package/src/tools/agent-harness-release-readiness.ts +9 -7
- package/src/tools/agent-harness-research-briefing.ts +427 -0
- package/src/tools/agent-harness-research-queue.ts +250 -0
- package/src/tools/agent-harness-research-runs.ts +295 -0
- package/src/tools/agent-harness-research-workflow.ts +322 -0
- package/src/tools/agent-harness-security-posture.ts +2 -2
- package/src/tools/agent-harness-service-posture.ts +9 -9
- package/src/tools/agent-harness-session-metadata.ts +3 -3
- package/src/tools/agent-harness-setup-connected-host.ts +501 -0
- package/src/tools/agent-harness-setup-describe.ts +557 -0
- package/src/tools/agent-harness-setup-handoffs.ts +502 -0
- package/src/tools/agent-harness-setup-model-helpers.ts +101 -0
- package/src/tools/agent-harness-setup-plan.ts +253 -0
- package/src/tools/agent-harness-setup-posture-types.ts +218 -0
- package/src/tools/agent-harness-setup-posture-utils.ts +173 -0
- package/src/tools/agent-harness-setup-posture.ts +449 -221
- package/src/tools/agent-harness-setup-smoke.ts +508 -0
- package/src/tools/agent-harness-sudo-posture.ts +114 -0
- package/src/tools/agent-harness-tool-schema.ts +120 -7
- package/src/tools/agent-harness-tool-types.ts +78 -0
- package/src/tools/agent-harness-tool-utils.ts +43 -0
- package/src/tools/agent-harness-tool.ts +311 -370
- package/src/tools/agent-harness-ui-surface-metadata.ts +76 -69
- package/src/tools/agent-harness-ui-surface-types.ts +46 -0
- package/src/tools/agent-harness-vibe-health.ts +105 -0
- package/src/tools/agent-harness-workspace-action-runner.ts +149 -0
- package/src/tools/agent-harness-workspace-actions.ts +114 -8
- package/src/tools/agent-harness-workspace-editor-execution.ts +214 -0
- package/src/tools/agent-harness-workspace-editor-runner.ts +755 -0
- package/src/tools/agent-host-tool.ts +159 -0
- package/src/tools/agent-knowledge-ingest-tool.ts +34 -1
- package/src/tools/agent-learning-consolidation-core.ts +327 -0
- package/src/tools/agent-learning-consolidation-tool.ts +758 -0
- package/src/tools/agent-memory-tool.ts +214 -0
- package/src/tools/agent-model-compare-export.ts +315 -0
- package/src/tools/agent-model-compare-handoff.ts +592 -0
- package/src/tools/agent-model-compare-judgment.ts +633 -0
- package/src/tools/agent-model-compare-run.ts +722 -0
- package/src/tools/agent-model-compare-tool.ts +698 -0
- package/src/tools/agent-model-compare-types.ts +191 -0
- package/src/tools/agent-model-compare-utils.ts +93 -0
- package/src/tools/agent-models-tool.ts +208 -0
- package/src/tools/agent-operator-action-tool.ts +1 -1
- package/src/tools/agent-operator-method-tool.ts +643 -0
- package/src/tools/agent-personal-ops-tool.ts +197 -0
- package/src/tools/agent-policy-explanation.ts +415 -0
- package/src/tools/agent-research-report-tool.ts +608 -0
- package/src/tools/agent-research-runs-tool.ts +434 -0
- package/src/tools/agent-research-sources-tool.ts +443 -0
- package/src/tools/agent-research-tool.ts +687 -0
- package/src/tools/agent-review-packet-presets-core.ts +757 -0
- package/src/tools/agent-review-packet-presets-tool.ts +466 -0
- package/src/tools/agent-review-packet-share-tool.ts +305 -0
- package/src/tools/agent-route-planner-candidates-setup.ts +411 -0
- package/src/tools/agent-route-planner-candidates-surfaces.ts +432 -0
- package/src/tools/agent-route-planner-candidates-work.ts +251 -0
- package/src/tools/agent-route-planner-helpers.ts +667 -0
- package/src/tools/agent-route-planner.ts +185 -0
- package/src/tools/agent-route-tool.ts +105 -0
- package/src/tools/agent-schedule-edit-tool.ts +210 -0
- package/src/tools/agent-schedule-tool.ts +282 -0
- package/src/tools/agent-security-tool.ts +145 -0
- package/src/tools/agent-sessions-tool.ts +122 -0
- package/src/tools/agent-settings-import-tool.ts +104 -0
- package/src/tools/agent-settings-tool.ts +176 -0
- package/src/tools/agent-setup-tool.ts +226 -0
- package/src/tools/agent-support-tool.ts +122 -0
- package/src/tools/agent-terminal-process-tools.ts +167 -0
- package/src/tools/agent-tool-policy-guard-types.ts +77 -0
- package/src/tools/agent-tool-policy-guard.ts +106 -85
- package/src/tools/agent-vibe-tool.ts +297 -0
- package/src/tools/agent-work-plan-tool.ts +265 -6
- package/src/tools/agent-workspace-tool.ts +305 -0
- package/src/tools/artifact-archive.ts +169 -0
- package/src/tools/tool-definition-compaction.ts +36 -0
- package/src/version.ts +1 -1
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
export const AGENT_HARNESS_MODES = [
|
|
2
|
-
'summary', 'modes', 'mode', 'cli_commands', 'cli_command', 'panels', 'panel', 'open_panel',
|
|
2
|
+
'summary', 'modes', 'mode', 'route_decision', 'cli_commands', 'cli_command', 'panels', 'panel', 'open_panel',
|
|
3
3
|
'ui_surfaces', 'ui_surface', 'open_ui_surface',
|
|
4
4
|
'shortcuts', 'keybindings', 'keybinding', 'run_keybinding', 'set_keybinding', 'reset_keybinding',
|
|
5
|
-
'commands', 'command', 'run_command', 'channels', 'channel', 'notifications', 'notification_target',
|
|
5
|
+
'commands', 'command', 'run_command', 'channels', 'channel', 'channel_setup_guide', 'channel_triage', 'channel_deliveries', 'notifications', 'notification_target',
|
|
6
6
|
'provider_accounts', 'provider_account', 'mcp_servers', 'mcp_server',
|
|
7
|
-
'setup_posture', 'setup_item',
|
|
8
|
-
'
|
|
7
|
+
'setup_posture', 'setup_item', 'setup_repair', 'setup_checkpoint', 'mark_setup_checkpoint', 'clear_setup_checkpoint', 'provision_connected_host_token', 'run_setup_smoke',
|
|
8
|
+
'project_context', 'project_context_file', 'prompt_context',
|
|
9
|
+
'agent_orchestration', 'agent_orchestration_agent',
|
|
10
|
+
'model_routing', 'model_route', 'run_local_model_smoke',
|
|
11
|
+
'execution_posture', 'execution_route', 'browser_control_route',
|
|
12
|
+
'background_processes', 'background_process', 'run_background_process',
|
|
13
|
+
'execution_history', 'execution_history_item',
|
|
14
|
+
'file_recovery', 'run_file_recovery',
|
|
15
|
+
'personal_ops_briefing', 'personal_ops', 'personal_ops_queue', 'personal_ops_intake', 'personal_ops_lane', 'run_personal_ops_read',
|
|
16
|
+
'memory_posture', 'memory_provider',
|
|
17
|
+
'autonomy_intake', 'autonomy_queue', 'autonomy_queue_item',
|
|
18
|
+
'learning_curator', 'learning_candidate',
|
|
19
|
+
'research_briefing', 'research_workflow', 'research_runs', 'research_run',
|
|
20
|
+
'research_queue', 'research_source',
|
|
21
|
+
'document_ops', 'document_ops_lane',
|
|
9
22
|
'pairing_posture', 'pairing_route',
|
|
10
23
|
'delegation_posture', 'delegation_route',
|
|
11
|
-
'security_posture', 'security_finding', 'support_bundles', 'support_bundle',
|
|
24
|
+
'security_posture', 'security_finding', 'policy_explain', 'support_bundles', 'support_bundle',
|
|
12
25
|
'media_posture', 'media_provider',
|
|
13
26
|
'sessions', 'session',
|
|
14
27
|
'settings', 'get_setting', 'set_setting',
|
|
@@ -75,9 +88,97 @@ export const AGENT_HARNESS_PARAMETER_PROPERTIES = {
|
|
|
75
88
|
type: 'string',
|
|
76
89
|
description: 'Setup item id for setup_item mode.',
|
|
77
90
|
},
|
|
91
|
+
contextFileId: {
|
|
92
|
+
type: 'string',
|
|
93
|
+
description: 'Project context file id for project_context_file mode.',
|
|
94
|
+
},
|
|
95
|
+
receiptId: {
|
|
96
|
+
type: 'string',
|
|
97
|
+
description: 'Prompt-context receipt id for prompt_context drill-in.',
|
|
98
|
+
},
|
|
99
|
+
turnId: {
|
|
100
|
+
type: 'string',
|
|
101
|
+
description: 'Prompt-context turn id for prompt_context receipt filtering.',
|
|
102
|
+
},
|
|
103
|
+
outcomeStatus: {
|
|
104
|
+
type: 'string',
|
|
105
|
+
enum: ['completed', 'error', 'cancelled', 'pending'],
|
|
106
|
+
description: 'Prompt-context receipt outcome filter.',
|
|
107
|
+
},
|
|
108
|
+
agentId: {
|
|
109
|
+
type: 'string',
|
|
110
|
+
description: 'Visible Agent id for agent_orchestration_agent mode.',
|
|
111
|
+
},
|
|
78
112
|
modelRouteId: {
|
|
79
113
|
type: 'string',
|
|
80
|
-
description: 'Model route
|
|
114
|
+
description: 'Model route, model key, or local endpoint id.',
|
|
115
|
+
},
|
|
116
|
+
executionRouteId: {
|
|
117
|
+
type: 'string',
|
|
118
|
+
description: 'Execution route id for execution_route mode.',
|
|
119
|
+
},
|
|
120
|
+
executionRecordId: {
|
|
121
|
+
type: 'string',
|
|
122
|
+
description: 'Execution history record id for execution_history_item mode.',
|
|
123
|
+
},
|
|
124
|
+
processId: {
|
|
125
|
+
type: 'string',
|
|
126
|
+
description: 'Background process id for process inspect or lifecycle modes.',
|
|
127
|
+
},
|
|
128
|
+
processSessionId: {
|
|
129
|
+
type: 'string',
|
|
130
|
+
description: 'Process session id alias for background process modes.',
|
|
131
|
+
},
|
|
132
|
+
processAction: {
|
|
133
|
+
type: 'string',
|
|
134
|
+
enum: ['start', 'spawn', 'run', 'stop', 'kill', 'cancel', 'wait', 'list', 'status', 'poll', 'log', 'output', 'write', 'capabilities', 'doctor', 'parity'],
|
|
135
|
+
description: 'Background process lifecycle action or process-style alias.',
|
|
136
|
+
},
|
|
137
|
+
action: {
|
|
138
|
+
type: 'string',
|
|
139
|
+
enum: ['start', 'spawn', 'run', 'stop', 'kill', 'cancel', 'wait', 'list', 'status', 'poll', 'log', 'output', 'write', 'capabilities', 'doctor', 'parity'],
|
|
140
|
+
description: 'Process-style action alias for run_background_process.',
|
|
141
|
+
},
|
|
142
|
+
cwd: {
|
|
143
|
+
type: 'string',
|
|
144
|
+
description: 'Workspace-relative cwd for a background process start.',
|
|
145
|
+
},
|
|
146
|
+
timeoutMs: {
|
|
147
|
+
type: 'number',
|
|
148
|
+
description: 'Timeout for process waits or local model smoke probes.',
|
|
149
|
+
},
|
|
150
|
+
pty: {
|
|
151
|
+
type: 'boolean',
|
|
152
|
+
description: 'Request PTY mode; currently reports unsupported.',
|
|
153
|
+
},
|
|
154
|
+
data: {
|
|
155
|
+
type: 'string',
|
|
156
|
+
description: 'Input data for process write; currently reports unsupported.',
|
|
157
|
+
},
|
|
158
|
+
recoveryAction: {
|
|
159
|
+
type: 'string',
|
|
160
|
+
enum: ['undo', 'redo'],
|
|
161
|
+
description: 'File recovery action for run_file_recovery mode.',
|
|
162
|
+
},
|
|
163
|
+
laneId: {
|
|
164
|
+
type: 'string',
|
|
165
|
+
description: 'Lane id for personal_ops_lane or document_ops_lane mode.',
|
|
166
|
+
},
|
|
167
|
+
queueItemId: {
|
|
168
|
+
type: 'string',
|
|
169
|
+
description: 'Queue item id for autonomy_queue_item mode.',
|
|
170
|
+
},
|
|
171
|
+
candidateId: {
|
|
172
|
+
type: 'string',
|
|
173
|
+
description: 'Candidate id for learning_candidate mode.',
|
|
174
|
+
},
|
|
175
|
+
sourceId: {
|
|
176
|
+
type: 'string',
|
|
177
|
+
description: 'Research source id for research_source mode.',
|
|
178
|
+
},
|
|
179
|
+
runId: {
|
|
180
|
+
type: 'string',
|
|
181
|
+
description: 'Research run id for research_run mode.',
|
|
81
182
|
},
|
|
82
183
|
pairingRouteId: {
|
|
83
184
|
type: 'string',
|
|
@@ -101,7 +202,11 @@ export const AGENT_HARNESS_PARAMETER_PROPERTIES = {
|
|
|
101
202
|
},
|
|
102
203
|
sessionId: {
|
|
103
204
|
type: 'string',
|
|
104
|
-
description: 'Saved session id
|
|
205
|
+
description: 'Saved session id, or process session id in process modes.',
|
|
206
|
+
},
|
|
207
|
+
session_id: {
|
|
208
|
+
type: 'string',
|
|
209
|
+
description: 'Snake-case process session id alias.',
|
|
105
210
|
},
|
|
106
211
|
categoryId: {
|
|
107
212
|
type: 'string',
|
|
@@ -177,6 +282,14 @@ export const AGENT_HARNESS_PARAMETER_PROPERTIES = {
|
|
|
177
282
|
type: 'string',
|
|
178
283
|
description: 'First-class model tool name.',
|
|
179
284
|
},
|
|
285
|
+
tool: {
|
|
286
|
+
type: 'string',
|
|
287
|
+
description: 'Alias for toolName in policy_explain mode.',
|
|
288
|
+
},
|
|
289
|
+
toolArgs: {
|
|
290
|
+
type: 'object',
|
|
291
|
+
description: 'Model tool arguments for policy_explain mode.',
|
|
292
|
+
},
|
|
180
293
|
category: {
|
|
181
294
|
type: 'string',
|
|
182
295
|
description: 'Setting category filter.',
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { ToolRegistry } from '@pellux/goodvibes-sdk/platform/tools';
|
|
2
|
+
import type { CommandContext, CommandRegistry } from '../input/command-registry.ts';
|
|
3
|
+
|
|
4
|
+
export interface AgentHarnessToolArgs {
|
|
5
|
+
readonly mode?: unknown;
|
|
6
|
+
readonly query?: unknown;
|
|
7
|
+
readonly command?: unknown;
|
|
8
|
+
readonly cliCommand?: unknown;
|
|
9
|
+
readonly commandName?: unknown;
|
|
10
|
+
readonly args?: unknown;
|
|
11
|
+
readonly channelId?: unknown;
|
|
12
|
+
readonly notificationTargetId?: unknown;
|
|
13
|
+
readonly providerId?: unknown;
|
|
14
|
+
readonly mcpServerId?: unknown;
|
|
15
|
+
readonly setupItemId?: unknown;
|
|
16
|
+
readonly contextFileId?: unknown;
|
|
17
|
+
readonly receiptId?: unknown;
|
|
18
|
+
readonly turnId?: unknown;
|
|
19
|
+
readonly outcomeStatus?: unknown;
|
|
20
|
+
readonly modelRouteId?: unknown;
|
|
21
|
+
readonly executionRouteId?: unknown;
|
|
22
|
+
readonly executionRecordId?: unknown;
|
|
23
|
+
readonly processId?: unknown;
|
|
24
|
+
readonly processSessionId?: unknown;
|
|
25
|
+
readonly processAction?: unknown;
|
|
26
|
+
readonly action?: unknown;
|
|
27
|
+
readonly recoveryAction?: unknown;
|
|
28
|
+
readonly laneId?: unknown;
|
|
29
|
+
readonly queueItemId?: unknown;
|
|
30
|
+
readonly candidateId?: unknown;
|
|
31
|
+
readonly sourceId?: unknown;
|
|
32
|
+
readonly runId?: unknown;
|
|
33
|
+
readonly pairingRouteId?: unknown;
|
|
34
|
+
readonly delegationRouteId?: unknown;
|
|
35
|
+
readonly findingId?: unknown;
|
|
36
|
+
readonly bundlePath?: unknown;
|
|
37
|
+
readonly mediaProviderId?: unknown;
|
|
38
|
+
readonly sessionId?: unknown;
|
|
39
|
+
readonly session_id?: unknown;
|
|
40
|
+
readonly categoryId?: unknown;
|
|
41
|
+
readonly panelId?: unknown;
|
|
42
|
+
readonly actionId?: unknown;
|
|
43
|
+
readonly recordId?: unknown;
|
|
44
|
+
readonly fields?: unknown;
|
|
45
|
+
readonly combo?: unknown;
|
|
46
|
+
readonly combos?: unknown;
|
|
47
|
+
readonly surfaceId?: unknown;
|
|
48
|
+
readonly key?: unknown;
|
|
49
|
+
readonly value?: unknown;
|
|
50
|
+
readonly cwd?: unknown;
|
|
51
|
+
readonly timeoutMs?: unknown;
|
|
52
|
+
readonly pty?: unknown;
|
|
53
|
+
readonly data?: unknown;
|
|
54
|
+
readonly target?: unknown;
|
|
55
|
+
readonly artifactId?: unknown;
|
|
56
|
+
readonly itemId?: unknown;
|
|
57
|
+
readonly methodId?: unknown;
|
|
58
|
+
readonly endpointId?: unknown;
|
|
59
|
+
readonly capabilityId?: unknown;
|
|
60
|
+
readonly toolName?: unknown;
|
|
61
|
+
readonly tool?: unknown;
|
|
62
|
+
readonly toolArgs?: unknown;
|
|
63
|
+
readonly agentId?: unknown;
|
|
64
|
+
readonly category?: unknown;
|
|
65
|
+
readonly prefix?: unknown;
|
|
66
|
+
readonly includeHidden?: unknown;
|
|
67
|
+
readonly includeParameters?: unknown;
|
|
68
|
+
readonly limit?: unknown;
|
|
69
|
+
readonly pane?: unknown;
|
|
70
|
+
readonly confirm?: unknown;
|
|
71
|
+
readonly explicitUserRequest?: unknown;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface AgentHarnessToolDeps {
|
|
75
|
+
readonly commandRegistry: CommandRegistry;
|
|
76
|
+
readonly commandContext: CommandContext;
|
|
77
|
+
readonly toolRegistry: ToolRegistry;
|
|
78
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { AgentHarnessToolArgs } from './agent-harness-tool-types.ts';
|
|
2
|
+
|
|
3
|
+
export function readString(value: unknown): string {
|
|
4
|
+
return typeof value === 'string' ? value.trim() : '';
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function settingLookupArgs(args: AgentHarnessToolArgs) {
|
|
8
|
+
return {
|
|
9
|
+
key: readString(args.key) || undefined,
|
|
10
|
+
target: readString(args.target) || undefined,
|
|
11
|
+
query: readString(args.query) || undefined,
|
|
12
|
+
category: readString(args.category) || undefined,
|
|
13
|
+
prefix: readString(args.prefix) || undefined,
|
|
14
|
+
includeHidden: args.includeHidden === true,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function readLimit(value: unknown, fallback: number): number {
|
|
19
|
+
const parsed = typeof value === 'string' && value.trim() ? Number(value) : value;
|
|
20
|
+
if (typeof parsed !== 'number' || !Number.isFinite(parsed)) return fallback;
|
|
21
|
+
return Math.max(1, Math.min(500, Math.trunc(parsed)));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function readFieldMap(value: unknown): Readonly<Record<string, string>> {
|
|
25
|
+
if (typeof value !== 'object' || value === null || Array.isArray(value)) return {};
|
|
26
|
+
return Object.fromEntries(Object.entries(value).map(([key, entry]) => [key, typeof entry === 'string' ? entry : String(entry)]));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function output(value: unknown): { readonly success: true; readonly output: string } {
|
|
30
|
+
return {
|
|
31
|
+
success: true,
|
|
32
|
+
output: typeof value === 'string' ? value : JSON.stringify(value, null, 2),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function error(message: string): { readonly success: false; readonly error: string } { return { success: false, error: message }; }
|
|
37
|
+
|
|
38
|
+
export function requireConfirmedAction(args: AgentHarnessToolArgs, action: string): string | null {
|
|
39
|
+
const explicitUserRequest = readString(args.explicitUserRequest);
|
|
40
|
+
if (!explicitUserRequest) return `${action} requires explicitUserRequest with the user's exact request or a short faithful summary.`;
|
|
41
|
+
if (args.confirm !== true) return `${action} requires confirm:true after an explicit user request.`;
|
|
42
|
+
return null;
|
|
43
|
+
}
|