@pellux/goodvibes-agent 0.1.116 → 0.1.117
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 +41 -663
- package/README.md +38 -52
- package/dist/package/main.js +37826 -35924
- package/docs/README.md +5 -4
- package/docs/{connected-services.md → connected-host.md} +18 -10
- package/docs/getting-started.md +41 -44
- package/docs/release-and-publishing.md +6 -4
- package/package.json +3 -3
- package/src/agent/behavior-discovery-summary.ts +1 -3
- package/src/agent/persona-discovery.ts +1 -3
- package/src/agent/persona-registry.ts +5 -3
- package/src/agent/reminder-schedule-format.ts +6 -6
- package/src/agent/reminder-schedule.ts +1 -1
- package/src/agent/routine-registry.ts +43 -4
- package/src/agent/routine-schedule-format.ts +6 -6
- package/src/agent/routine-schedule-promotion.ts +1 -1
- package/src/agent/routine-schedule-receipts.ts +1 -1
- package/src/agent/runtime-profile-starters.ts +3 -3
- package/src/agent/runtime-profile.ts +78 -0
- package/src/agent/skill-registry.ts +190 -13
- package/src/cli/agent-knowledge-command.ts +2 -2
- package/src/cli/agent-knowledge-format.ts +2 -2
- package/src/cli/agent-knowledge-runtime.ts +1 -1
- package/src/cli/bundle-command.ts +1 -1
- package/src/cli/entrypoint.ts +16 -7
- package/src/cli/help.ts +26 -19
- package/src/cli/local-library-command.ts +75 -21
- package/src/cli/management-commands.ts +7 -6
- package/src/cli/management.ts +6 -51
- package/src/cli/parser.ts +23 -2
- package/src/cli/profiles-command.ts +119 -1
- package/src/cli/routines-command.ts +139 -11
- package/src/cli/service-posture.ts +11 -11
- package/src/cli/status.ts +21 -25
- package/src/input/agent-workspace-access-command-editor-submission.ts +149 -0
- package/src/input/agent-workspace-access-command-editors.ts +170 -0
- package/src/input/agent-workspace-activation.ts +2 -1
- package/src/input/agent-workspace-basic-command-editor-submission.ts +345 -92
- package/src/input/agent-workspace-basic-command-editors.ts +480 -7
- package/src/input/agent-workspace-categories.ts +175 -15
- package/src/input/agent-workspace-channel-command-editor-submission.ts +49 -0
- package/src/input/agent-workspace-channel-command-editors.ts +47 -0
- package/src/input/agent-workspace-command-editor.ts +23 -1
- package/src/input/agent-workspace-delegation-editor-submission.ts +55 -0
- package/src/input/agent-workspace-editors.ts +27 -0
- package/src/input/agent-workspace-knowledge-command-editor-submission.ts +132 -0
- package/src/input/agent-workspace-knowledge-command-editors.ts +110 -0
- package/src/input/agent-workspace-learned-behavior.ts +67 -0
- package/src/input/agent-workspace-library-command-editor-submission.ts +50 -0
- package/src/input/agent-workspace-library-command-editors.ts +35 -0
- package/src/input/agent-workspace-mcp-command-editor-submission.ts +95 -0
- package/src/input/agent-workspace-memory-command-editor-submission.ts +232 -0
- package/src/input/agent-workspace-memory-command-editors.ts +180 -0
- package/src/input/agent-workspace-navigation.ts +45 -0
- package/src/input/agent-workspace-notify-editor-submission.ts +107 -0
- package/src/input/agent-workspace-operations-command-editor-submission.ts +146 -0
- package/src/input/agent-workspace-operations-command-editors.ts +119 -0
- package/src/input/agent-workspace-provider-command-editor-submission.ts +155 -0
- package/src/input/agent-workspace-provider-command-editors.ts +93 -0
- package/src/input/agent-workspace-requirements.ts +11 -0
- package/src/input/agent-workspace-secret-editor-submission.ts +153 -0
- package/src/input/agent-workspace-session-command-editor-submission.ts +199 -0
- package/src/input/agent-workspace-session-command-editors.ts +249 -0
- package/src/input/agent-workspace-setup.ts +24 -14
- package/src/input/agent-workspace-skill-bundle-command-editor-submission.ts +101 -0
- package/src/input/agent-workspace-skill-bundle-command-editors.ts +110 -0
- package/src/input/agent-workspace-snapshot.ts +50 -8
- package/src/input/agent-workspace-task-command-editor-submission.ts +61 -0
- package/src/input/agent-workspace-task-command-editors.ts +47 -0
- package/src/input/agent-workspace-types.ts +120 -0
- package/src/input/agent-workspace-voice-media.ts +1 -1
- package/src/input/agent-workspace-workplan-editor-submission.ts +153 -0
- package/src/input/agent-workspace.ts +47 -37
- package/src/input/command-registry.ts +1 -1
- package/src/input/commands/agent-runtime-profile-runtime.ts +89 -4
- package/src/input/commands/agent-skills-runtime.ts +76 -12
- package/src/input/commands/agent-workspace-runtime.ts +4 -3
- package/src/input/commands/brief-runtime.ts +38 -9
- package/src/input/commands/channels-runtime.ts +3 -3
- package/src/input/commands/compat-runtime.ts +32 -0
- package/src/input/commands/health-runtime.ts +22 -24
- package/src/input/commands/knowledge.ts +26 -5
- package/src/input/commands/local-provider-runtime.ts +7 -3
- package/src/input/commands/local-setup-review.ts +4 -14
- package/src/input/commands/mcp-runtime.ts +8 -12
- package/src/input/commands/operator-runtime.ts +8 -67
- package/src/input/commands/personas-runtime.ts +1 -1
- package/src/input/commands/platform-access-runtime.ts +7 -70
- package/src/input/commands/policy-dispatch.ts +1 -1
- package/src/input/commands/policy.ts +1 -5
- package/src/input/commands/product-runtime.ts +2 -2
- package/src/input/commands/qrcode-runtime.ts +6 -4
- package/src/input/commands/routines-runtime.ts +44 -6
- package/src/input/commands/runtime-services.ts +1 -14
- package/src/input/commands/security-runtime.ts +3 -8
- package/src/input/commands/session-content.ts +1 -1
- package/src/input/commands/session-workflow.ts +5 -14
- package/src/input/commands/shell-core.ts +8 -2
- package/src/input/commands/subscription-runtime.ts +1 -6
- package/src/input/commands/support-bundle-runtime.ts +53 -0
- package/src/input/commands/tasks-runtime.ts +2 -2
- package/src/input/commands.ts +4 -0
- package/src/input/feed-context-factory.ts +0 -1
- package/src/input/handler-content-actions.ts +0 -25
- package/src/input/handler-feed.ts +0 -2
- package/src/input/handler-interactions.ts +2 -31
- package/src/input/handler-onboarding.ts +29 -12
- package/src/input/handler-shortcuts.ts +1 -3
- package/src/input/handler.ts +4 -7
- package/src/input/keybindings.ts +9 -9
- package/src/input/mcp-workspace.ts +90 -26
- package/src/input/onboarding/handler-onboarding-routes.ts +3 -1
- package/src/input/onboarding/onboarding-wizard-apply.ts +49 -0
- package/src/input/onboarding/onboarding-wizard-helpers.ts +1 -1
- package/src/input/onboarding/onboarding-wizard-operator-steps.ts +81 -3
- package/src/input/onboarding/onboarding-wizard-steps.ts +14 -7
- package/src/input/onboarding/onboarding-wizard-types.ts +1 -0
- package/src/input/onboarding/onboarding-wizard.ts +19 -2
- package/src/input/profile-picker-modal.ts +2 -2
- package/src/input/settings-modal-agent-policy.ts +6 -6
- package/src/input/settings-modal-subscriptions.ts +3 -3
- package/src/input/settings-modal.ts +14 -14
- package/src/main.ts +0 -2
- package/src/panels/automation-control-panel.ts +3 -3
- package/src/panels/builtin/agent.ts +1 -1
- package/src/panels/builtin/operations.ts +2 -2
- package/src/panels/builtin/session.ts +26 -18
- package/src/panels/builtin/shared.ts +6 -6
- package/src/panels/project-planning-panel.ts +1 -1
- package/src/panels/provider-health-domains.ts +3 -3
- package/src/panels/qr-panel.ts +44 -20
- package/src/panels/subscription-panel.ts +3 -3
- package/src/panels/system-messages-panel.ts +2 -2
- package/src/panels/tasks-panel.ts +4 -4
- package/src/planning/project-planning-coordinator.ts +2 -2
- package/src/renderer/agent-workspace.ts +26 -5
- package/src/renderer/block-actions.ts +1 -3
- package/src/renderer/help-overlay.ts +13 -8
- package/src/renderer/mcp-workspace.ts +32 -13
- package/src/renderer/model-picker-overlay.ts +0 -1
- package/src/renderer/model-workspace.ts +0 -2
- package/src/renderer/onboarding/onboarding-wizard.ts +20 -4
- package/src/renderer/panel-picker-overlay.ts +1 -1
- package/src/renderer/profile-picker-modal.ts +2 -2
- package/src/renderer/settings-modal-helpers.ts +23 -23
- package/src/renderer/settings-modal.ts +18 -18
- package/src/renderer/system-message.ts +1 -1
- package/src/runtime/agent-runtime-events.ts +129 -0
- package/src/runtime/bootstrap-command-parts.ts +3 -2
- package/src/runtime/bootstrap-core.ts +4 -64
- package/src/runtime/bootstrap-shell.ts +42 -4
- package/src/runtime/bootstrap.ts +8 -27
- package/src/runtime/connected-host-auth.ts +42 -0
- package/src/runtime/diagnostics/panels/panel-resources.ts +1 -1
- package/src/runtime/index.ts +1 -5
- package/src/runtime/onboarding/apply.ts +213 -0
- package/src/runtime/onboarding/derivation.ts +5 -5
- package/src/runtime/onboarding/snapshot.ts +2 -2
- package/src/runtime/onboarding/types.ts +26 -1
- package/src/runtime/onboarding/verify.ts +81 -2
- package/src/runtime/operator-token-cleanup.ts +2 -2
- package/src/runtime/services.ts +27 -12
- package/src/shell/service-settings-sync.ts +7 -7
- package/src/shell/ui-openers.ts +27 -38
- package/src/tools/agent-local-registry-tool.ts +10 -4
- package/src/tools/agent-tool-policy-guard.ts +5 -7
- package/src/version.ts +1 -1
- package/src/cli/package-verification.ts +0 -274
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import type { AgentWorkspaceActionResult, AgentWorkspaceLocalEditor } from './agent-workspace-types.ts';
|
|
2
|
-
import {
|
|
2
|
+
import { buildAgentWorkspaceAccessCommandEditorSubmission, isAgentWorkspaceAccessCommandSubmissionKind } from './agent-workspace-access-command-editor-submission.ts';
|
|
3
|
+
import { buildAgentWorkspaceChannelCommandEditorSubmission, isAgentWorkspaceChannelCommandSubmissionKind } from './agent-workspace-channel-command-editor-submission.ts';
|
|
4
|
+
import { buildAgentWorkspaceDelegationEditorSubmission, isAgentWorkspaceDelegationEditorKind } from './agent-workspace-delegation-editor-submission.ts';
|
|
5
|
+
import { buildAgentWorkspaceKnowledgeCommandEditorSubmission, isAgentWorkspaceKnowledgeCommandSubmissionKind } from './agent-workspace-knowledge-command-editor-submission.ts';
|
|
6
|
+
import { buildAgentWorkspaceLibraryCommandEditorSubmission, isAgentWorkspaceLibraryCommandSubmissionKind } from './agent-workspace-library-command-editor-submission.ts';
|
|
7
|
+
import { buildAgentWorkspaceMemoryCommandEditorSubmission, isAgentWorkspaceMemoryCommandSubmissionKind } from './agent-workspace-memory-command-editor-submission.ts';
|
|
8
|
+
import { buildAgentWorkspaceMcpCommandEditorSubmission, isAgentWorkspaceMcpCommandSubmissionKind } from './agent-workspace-mcp-command-editor-submission.ts';
|
|
9
|
+
import { buildAgentWorkspaceNotifyEditorSubmission, isAgentWorkspaceNotifyEditorKind } from './agent-workspace-notify-editor-submission.ts';
|
|
10
|
+
import { buildAgentWorkspaceOperationsCommandEditorSubmission, isAgentWorkspaceOperationsCommandSubmissionKind } from './agent-workspace-operations-command-editor-submission.ts';
|
|
11
|
+
import { buildAgentWorkspaceProviderCommandEditorSubmission, isAgentWorkspaceProviderCommandSubmissionKind } from './agent-workspace-provider-command-editor-submission.ts';
|
|
12
|
+
import { buildAgentWorkspaceSecretEditorSubmission, isAgentWorkspaceSecretEditorKind } from './agent-workspace-secret-editor-submission.ts';
|
|
13
|
+
import { buildAgentWorkspaceSessionCommandEditorSubmission, isAgentWorkspaceSessionCommandSubmissionKind } from './agent-workspace-session-command-editor-submission.ts';
|
|
14
|
+
import { buildAgentWorkspaceSkillBundleCommandEditorSubmission, isAgentWorkspaceSkillBundleCommandSubmissionKind } from './agent-workspace-skill-bundle-command-editor-submission.ts';
|
|
15
|
+
import { buildAgentWorkspaceTaskCommandEditorSubmission, isAgentWorkspaceTaskCommandSubmissionKind } from './agent-workspace-task-command-editor-submission.ts';
|
|
16
|
+
import { buildAgentWorkspaceWorkPlanEditorSubmission, isAgentWorkspaceWorkPlanEditorKind } from './agent-workspace-workplan-editor-submission.ts';
|
|
17
|
+
import { quoteSlashCommandArg } from './slash-command-parser.ts';
|
|
3
18
|
|
|
4
19
|
type AgentWorkspaceFieldReader = (fieldId: string) => string;
|
|
5
20
|
|
|
@@ -21,10 +36,6 @@ function isAffirmative(value: string): boolean {
|
|
|
21
36
|
return /^(y|yes|true)$/i.test(value.trim());
|
|
22
37
|
}
|
|
23
38
|
|
|
24
|
-
function splitCommaList(value: string): readonly string[] {
|
|
25
|
-
return value.split(',').map((entry) => entry.trim()).filter(Boolean);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
39
|
export function buildAgentWorkspaceBasicCommandEditorSubmission(
|
|
29
40
|
editor: AgentWorkspaceLocalEditor,
|
|
30
41
|
readField: AgentWorkspaceFieldReader,
|
|
@@ -94,6 +105,31 @@ export function buildAgentWorkspaceBasicCommandEditorSubmission(
|
|
|
94
105
|
},
|
|
95
106
|
};
|
|
96
107
|
}
|
|
108
|
+
if (editor.kind === 'knowledge-urls') {
|
|
109
|
+
if (!isAffirmative(readField('confirm'))) {
|
|
110
|
+
return {
|
|
111
|
+
kind: 'editor',
|
|
112
|
+
editor: { ...editor, message: 'URL list import not confirmed. Type yes, then press Enter.' },
|
|
113
|
+
status: 'Agent Knowledge URL list import not confirmed.',
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
const parts = ['/knowledge', 'import-urls', quoteSlashCommandArg(readField('path'))];
|
|
117
|
+
if (isAffirmative(readField('allowPrivateHosts'))) parts.push('--allow-private-hosts');
|
|
118
|
+
parts.push('--yes');
|
|
119
|
+
const command = parts.join(' ');
|
|
120
|
+
return {
|
|
121
|
+
kind: 'dispatch',
|
|
122
|
+
command,
|
|
123
|
+
status: 'Opening Agent Knowledge URL list import.',
|
|
124
|
+
actionResult: {
|
|
125
|
+
kind: 'dispatched',
|
|
126
|
+
title: 'Opening Agent Knowledge URL list import',
|
|
127
|
+
detail: 'The workspace handed a confirmed URL list import command to the shell-owned command router.',
|
|
128
|
+
command,
|
|
129
|
+
safety: 'safe',
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
}
|
|
97
133
|
if (editor.kind === 'knowledge-browser-history') {
|
|
98
134
|
if (!isAffirmative(readField('confirm'))) {
|
|
99
135
|
return {
|
|
@@ -158,110 +194,64 @@ export function buildAgentWorkspaceBasicCommandEditorSubmission(
|
|
|
158
194
|
},
|
|
159
195
|
};
|
|
160
196
|
}
|
|
161
|
-
if (editor.kind === '
|
|
197
|
+
if (editor.kind === 'knowledge-reindex') {
|
|
162
198
|
if (!isAffirmative(readField('confirm'))) {
|
|
163
199
|
return {
|
|
164
200
|
kind: 'editor',
|
|
165
|
-
editor: { ...editor, message: '
|
|
166
|
-
status: '
|
|
201
|
+
editor: { ...editor, message: 'Agent Knowledge reindex not confirmed. Type yes, then press Enter.' },
|
|
202
|
+
status: 'Agent Knowledge reindex not confirmed.',
|
|
167
203
|
};
|
|
168
204
|
}
|
|
169
|
-
const
|
|
170
|
-
'/mcp',
|
|
171
|
-
'add',
|
|
172
|
-
quoteSlashCommandArg(readField('name')),
|
|
173
|
-
quoteSlashCommandArg(readField('command')),
|
|
174
|
-
...tokenizeSlashCommand(readField('args')).map(quoteSlashCommandArg),
|
|
175
|
-
];
|
|
176
|
-
const scope = readField('scope');
|
|
177
|
-
const role = readField('role');
|
|
178
|
-
const trust = readField('trust');
|
|
179
|
-
if (scope.length > 0) parts.push('--scope', quoteSlashCommandArg(scope));
|
|
180
|
-
if (role.length > 0) parts.push('--role', quoteSlashCommandArg(role));
|
|
181
|
-
if (trust.length > 0) parts.push('--trust', quoteSlashCommandArg(trust));
|
|
182
|
-
for (const env of splitCommaList(readField('env'))) parts.push('--env', quoteSlashCommandArg(env));
|
|
183
|
-
for (const path of splitCommaList(readField('paths'))) parts.push('--path', quoteSlashCommandArg(path));
|
|
184
|
-
for (const host of splitCommaList(readField('hosts'))) parts.push('--host', quoteSlashCommandArg(host));
|
|
185
|
-
parts.push('--yes');
|
|
186
|
-
const command = parts.join(' ');
|
|
205
|
+
const command = '/knowledge reindex --yes';
|
|
187
206
|
return {
|
|
188
207
|
kind: 'dispatch',
|
|
189
208
|
command,
|
|
190
|
-
status: 'Opening
|
|
209
|
+
status: 'Opening Agent Knowledge reindex.',
|
|
191
210
|
actionResult: {
|
|
192
211
|
kind: 'dispatched',
|
|
193
|
-
title: 'Opening
|
|
194
|
-
detail: 'The workspace handed a confirmed
|
|
212
|
+
title: 'Opening Agent Knowledge reindex',
|
|
213
|
+
detail: 'The workspace handed a confirmed reindex command to the shell-owned command router.',
|
|
195
214
|
command,
|
|
196
215
|
safety: 'safe',
|
|
197
216
|
},
|
|
198
217
|
};
|
|
199
218
|
}
|
|
200
|
-
if (editor.kind
|
|
201
|
-
|
|
202
|
-
return {
|
|
203
|
-
kind: 'editor',
|
|
204
|
-
editor: { ...editor, message: 'Notification webhook add not confirmed. Type yes, then press Enter.' },
|
|
205
|
-
status: 'Notification webhook add not confirmed.',
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
const command = `/notify add ${quoteSlashCommandArg(readField('url'))} --yes`;
|
|
209
|
-
return {
|
|
210
|
-
kind: 'dispatch',
|
|
211
|
-
command,
|
|
212
|
-
status: 'Opening notification webhook add.',
|
|
213
|
-
actionResult: {
|
|
214
|
-
kind: 'dispatched',
|
|
215
|
-
title: 'Opening notification webhook add',
|
|
216
|
-
detail: 'The workspace handed a confirmed notification target command to the shell-owned command router.',
|
|
217
|
-
command,
|
|
218
|
-
safety: 'safe',
|
|
219
|
-
},
|
|
220
|
-
};
|
|
219
|
+
if (isAgentWorkspaceAccessCommandSubmissionKind(editor.kind)) {
|
|
220
|
+
return buildAgentWorkspaceAccessCommandEditorSubmission(editor, readField);
|
|
221
221
|
}
|
|
222
|
-
if (editor.kind
|
|
223
|
-
|
|
224
|
-
return {
|
|
225
|
-
kind: 'editor',
|
|
226
|
-
editor: { ...editor, message: 'Notification webhook remove not confirmed. Type yes, then press Enter.' },
|
|
227
|
-
status: 'Notification webhook remove not confirmed.',
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
const command = `/notify remove ${quoteSlashCommandArg(readField('url'))} --yes`;
|
|
231
|
-
return {
|
|
232
|
-
kind: 'dispatch',
|
|
233
|
-
command,
|
|
234
|
-
status: 'Opening notification webhook remove.',
|
|
235
|
-
actionResult: {
|
|
236
|
-
kind: 'dispatched',
|
|
237
|
-
title: 'Opening notification webhook remove',
|
|
238
|
-
detail: 'The workspace handed a confirmed notification target remove command to the shell-owned command router.',
|
|
239
|
-
command,
|
|
240
|
-
safety: 'safe',
|
|
241
|
-
},
|
|
242
|
-
};
|
|
222
|
+
if (isAgentWorkspaceChannelCommandSubmissionKind(editor.kind)) {
|
|
223
|
+
return buildAgentWorkspaceChannelCommandEditorSubmission(editor, readField);
|
|
243
224
|
}
|
|
244
|
-
if (editor.kind
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
225
|
+
if (isAgentWorkspaceKnowledgeCommandSubmissionKind(editor.kind)) {
|
|
226
|
+
return buildAgentWorkspaceKnowledgeCommandEditorSubmission(editor, readField);
|
|
227
|
+
}
|
|
228
|
+
if (isAgentWorkspaceLibraryCommandSubmissionKind(editor.kind)) {
|
|
229
|
+
return buildAgentWorkspaceLibraryCommandEditorSubmission(editor, readField);
|
|
230
|
+
}
|
|
231
|
+
if (isAgentWorkspaceMemoryCommandSubmissionKind(editor.kind)) {
|
|
232
|
+
return buildAgentWorkspaceMemoryCommandEditorSubmission(editor, readField);
|
|
233
|
+
}
|
|
234
|
+
if (isAgentWorkspaceProviderCommandSubmissionKind(editor.kind)) {
|
|
235
|
+
return buildAgentWorkspaceProviderCommandEditorSubmission(editor, readField);
|
|
236
|
+
}
|
|
237
|
+
if (isAgentWorkspaceSessionCommandSubmissionKind(editor.kind)) {
|
|
238
|
+
return buildAgentWorkspaceSessionCommandEditorSubmission(editor, readField);
|
|
239
|
+
}
|
|
240
|
+
if (isAgentWorkspaceSkillBundleCommandSubmissionKind(editor.kind)) {
|
|
241
|
+
return buildAgentWorkspaceSkillBundleCommandEditorSubmission(editor, readField);
|
|
242
|
+
}
|
|
243
|
+
if (isAgentWorkspaceTaskCommandSubmissionKind(editor.kind)) {
|
|
244
|
+
return buildAgentWorkspaceTaskCommandEditorSubmission(editor, readField);
|
|
245
|
+
}
|
|
246
|
+
if (isAgentWorkspaceMcpCommandSubmissionKind(editor.kind)) {
|
|
247
|
+
return buildAgentWorkspaceMcpCommandEditorSubmission(editor, readField);
|
|
248
|
+
}
|
|
249
|
+
if (isAgentWorkspaceOperationsCommandSubmissionKind(editor.kind)) {
|
|
250
|
+
return buildAgentWorkspaceOperationsCommandEditorSubmission(editor, readField);
|
|
251
|
+
}
|
|
252
|
+
if (isAgentWorkspaceNotifyEditorKind(editor.kind)) return buildAgentWorkspaceNotifyEditorSubmission(editor, readField);
|
|
253
|
+
if (isAgentWorkspaceSecretEditorKind(editor.kind)) {
|
|
254
|
+
return buildAgentWorkspaceSecretEditorSubmission(editor, readField);
|
|
265
255
|
}
|
|
266
256
|
if (editor.kind === 'tts-prompt') {
|
|
267
257
|
const command = `/tts ${quoteSlashCommandArg(readField('prompt'))}`;
|
|
@@ -296,6 +286,22 @@ export function buildAgentWorkspaceBasicCommandEditorSubmission(
|
|
|
296
286
|
},
|
|
297
287
|
};
|
|
298
288
|
}
|
|
289
|
+
if (editor.kind === 'model-pin' || editor.kind === 'model-unpin') {
|
|
290
|
+
const pinning = editor.kind === 'model-pin';
|
|
291
|
+
const command = `/${pinning ? 'pin' : 'unpin'} ${quoteSlashCommandArg(readField('model'))}`;
|
|
292
|
+
return {
|
|
293
|
+
kind: 'dispatch',
|
|
294
|
+
command,
|
|
295
|
+
status: pinning ? 'Opening model pin action.' : 'Opening model unpin action.',
|
|
296
|
+
actionResult: {
|
|
297
|
+
kind: 'dispatched',
|
|
298
|
+
title: pinning ? 'Opening model pin action' : 'Opening model unpin action',
|
|
299
|
+
detail: 'The workspace handed model favorites maintenance to the shell-owned command router.',
|
|
300
|
+
command,
|
|
301
|
+
safety: 'safe',
|
|
302
|
+
},
|
|
303
|
+
};
|
|
304
|
+
}
|
|
299
305
|
if (editor.kind === 'profile-template-export') {
|
|
300
306
|
if (!isAffirmative(readField('confirm'))) {
|
|
301
307
|
return {
|
|
@@ -340,6 +346,36 @@ export function buildAgentWorkspaceBasicCommandEditorSubmission(
|
|
|
340
346
|
},
|
|
341
347
|
};
|
|
342
348
|
}
|
|
349
|
+
if (editor.kind === 'profile-template-show') {
|
|
350
|
+
const command = `/agent-profile template show ${quoteSlashCommandArg(readField('id'))}`;
|
|
351
|
+
return {
|
|
352
|
+
kind: 'dispatch',
|
|
353
|
+
command,
|
|
354
|
+
status: 'Opening Agent starter template preview.',
|
|
355
|
+
actionResult: {
|
|
356
|
+
kind: 'dispatched',
|
|
357
|
+
title: 'Opening Agent starter template preview',
|
|
358
|
+
detail: 'The workspace handed a read-only starter template preview command to the shell-owned command router.',
|
|
359
|
+
command,
|
|
360
|
+
safety: 'read-only',
|
|
361
|
+
},
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
if (editor.kind === 'profile-show') {
|
|
365
|
+
const command = `/agent-profile show ${quoteSlashCommandArg(readField('profile'))}`;
|
|
366
|
+
return {
|
|
367
|
+
kind: 'dispatch',
|
|
368
|
+
command,
|
|
369
|
+
status: 'Opening Agent profile detail.',
|
|
370
|
+
actionResult: {
|
|
371
|
+
kind: 'dispatched',
|
|
372
|
+
title: 'Opening Agent profile detail',
|
|
373
|
+
detail: 'The workspace handed a read-only Agent profile inspection command to the shell-owned command router.',
|
|
374
|
+
command,
|
|
375
|
+
safety: 'read-only',
|
|
376
|
+
},
|
|
377
|
+
};
|
|
378
|
+
}
|
|
343
379
|
if (editor.kind === 'profile-template-from-discovered') {
|
|
344
380
|
if (!isAffirmative(readField('confirm'))) {
|
|
345
381
|
return {
|
|
@@ -421,6 +457,223 @@ export function buildAgentWorkspaceBasicCommandEditorSubmission(
|
|
|
421
457
|
},
|
|
422
458
|
};
|
|
423
459
|
}
|
|
460
|
+
if (editor.kind === 'profile-default') {
|
|
461
|
+
if (!isAffirmative(readField('confirm'))) {
|
|
462
|
+
return {
|
|
463
|
+
kind: 'editor',
|
|
464
|
+
editor: { ...editor, message: 'Default Agent profile selection not confirmed. Type yes, then press Enter.' },
|
|
465
|
+
status: 'Default Agent profile selection not confirmed.',
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
const command = `/agent-profile use ${quoteSlashCommandArg(readField('profile'))} --yes`;
|
|
469
|
+
return {
|
|
470
|
+
kind: 'dispatch',
|
|
471
|
+
command,
|
|
472
|
+
status: 'Opening default Agent profile selection.',
|
|
473
|
+
actionResult: {
|
|
474
|
+
kind: 'dispatched',
|
|
475
|
+
title: 'Opening default Agent profile selection',
|
|
476
|
+
detail: 'The workspace handed a confirmed default profile selection command to the shell-owned command router.',
|
|
477
|
+
command,
|
|
478
|
+
safety: 'safe',
|
|
479
|
+
},
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
if (editor.kind === 'profile-default-clear') {
|
|
483
|
+
if (!isAffirmative(readField('confirm'))) {
|
|
484
|
+
return {
|
|
485
|
+
kind: 'editor',
|
|
486
|
+
editor: { ...editor, message: 'Default Agent profile clear not confirmed. Type yes, then press Enter.' },
|
|
487
|
+
status: 'Default Agent profile clear not confirmed.',
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
const command = '/agent-profile default clear --yes';
|
|
491
|
+
return {
|
|
492
|
+
kind: 'dispatch',
|
|
493
|
+
command,
|
|
494
|
+
status: 'Opening default Agent profile clear.',
|
|
495
|
+
actionResult: {
|
|
496
|
+
kind: 'dispatched',
|
|
497
|
+
title: 'Opening default Agent profile clear',
|
|
498
|
+
detail: 'The workspace handed a confirmed default profile clear command to the shell-owned command router.',
|
|
499
|
+
command,
|
|
500
|
+
safety: 'safe',
|
|
501
|
+
},
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
if (editor.kind === 'profile-delete') {
|
|
505
|
+
if (!isAffirmative(readField('confirm'))) {
|
|
506
|
+
return {
|
|
507
|
+
kind: 'editor',
|
|
508
|
+
editor: { ...editor, message: 'Agent profile delete not confirmed. Type yes, then press Enter.' },
|
|
509
|
+
status: 'Agent profile delete not confirmed.',
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
const command = `/agent-profile delete ${quoteSlashCommandArg(readField('profile'))} --yes`;
|
|
513
|
+
return {
|
|
514
|
+
kind: 'dispatch',
|
|
515
|
+
command,
|
|
516
|
+
status: 'Opening Agent profile deletion.',
|
|
517
|
+
actionResult: {
|
|
518
|
+
kind: 'dispatched',
|
|
519
|
+
title: 'Opening Agent profile deletion',
|
|
520
|
+
detail: 'The workspace handed a confirmed profile deletion command to the shell-owned command router.',
|
|
521
|
+
command,
|
|
522
|
+
safety: 'safe',
|
|
523
|
+
},
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
if (editor.kind === 'support-bundle-export') {
|
|
527
|
+
if (!isAffirmative(readField('confirm'))) {
|
|
528
|
+
return {
|
|
529
|
+
kind: 'editor',
|
|
530
|
+
editor: { ...editor, message: 'Agent support bundle export not confirmed. Type yes, then press Enter.' },
|
|
531
|
+
status: 'Agent support bundle export not confirmed.',
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
const command = `/bundle export ${quoteSlashCommandArg(readField('path'))} --yes`;
|
|
535
|
+
return {
|
|
536
|
+
kind: 'dispatch',
|
|
537
|
+
command,
|
|
538
|
+
status: 'Opening Agent support bundle export.',
|
|
539
|
+
actionResult: {
|
|
540
|
+
kind: 'dispatched',
|
|
541
|
+
title: 'Opening Agent support bundle export',
|
|
542
|
+
detail: 'The workspace handed a confirmed support bundle export command to the shell-owned command router.',
|
|
543
|
+
command,
|
|
544
|
+
safety: 'safe',
|
|
545
|
+
},
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
if (editor.kind === 'support-bundle-inspect') {
|
|
549
|
+
const command = `/bundle inspect ${quoteSlashCommandArg(readField('path'))}`;
|
|
550
|
+
return {
|
|
551
|
+
kind: 'dispatch',
|
|
552
|
+
command,
|
|
553
|
+
status: 'Opening Agent support bundle inspection.',
|
|
554
|
+
actionResult: {
|
|
555
|
+
kind: 'dispatched',
|
|
556
|
+
title: 'Opening Agent support bundle inspection',
|
|
557
|
+
detail: 'The workspace handed a support bundle inspect command to the shell-owned command router.',
|
|
558
|
+
command,
|
|
559
|
+
safety: 'read-only',
|
|
560
|
+
},
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
if (editor.kind === 'support-bundle-import') {
|
|
564
|
+
if (!isAffirmative(readField('confirm'))) {
|
|
565
|
+
return {
|
|
566
|
+
kind: 'editor',
|
|
567
|
+
editor: { ...editor, message: 'Agent support bundle import not confirmed. Type yes, then press Enter.' },
|
|
568
|
+
status: 'Agent support bundle import not confirmed.',
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
const command = `/bundle import ${quoteSlashCommandArg(readField('path'))} --yes`;
|
|
572
|
+
return {
|
|
573
|
+
kind: 'dispatch',
|
|
574
|
+
command,
|
|
575
|
+
status: 'Opening Agent support bundle import.',
|
|
576
|
+
actionResult: {
|
|
577
|
+
kind: 'dispatched',
|
|
578
|
+
title: 'Opening Agent support bundle import',
|
|
579
|
+
detail: 'The workspace handed a confirmed support bundle import command to the shell-owned command router.',
|
|
580
|
+
command,
|
|
581
|
+
safety: 'safe',
|
|
582
|
+
},
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
if (editor.kind === 'subscription-inspect') {
|
|
586
|
+
const command = `/subscription inspect ${quoteSlashCommandArg(readField('provider'))}`;
|
|
587
|
+
return {
|
|
588
|
+
kind: 'dispatch',
|
|
589
|
+
command,
|
|
590
|
+
status: 'Opening provider subscription inspection.',
|
|
591
|
+
actionResult: {
|
|
592
|
+
kind: 'dispatched',
|
|
593
|
+
title: 'Opening provider subscription inspection',
|
|
594
|
+
detail: 'The workspace handed a read-only provider subscription inspection command to the shell-owned command router.',
|
|
595
|
+
command,
|
|
596
|
+
safety: 'read-only',
|
|
597
|
+
},
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
if (editor.kind === 'subscription-login-start') {
|
|
601
|
+
if (!isAffirmative(readField('confirm'))) {
|
|
602
|
+
return {
|
|
603
|
+
kind: 'editor',
|
|
604
|
+
editor: { ...editor, message: 'Provider subscription login start not confirmed. Type yes, then press Enter.' },
|
|
605
|
+
status: 'Provider subscription login start not confirmed.',
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
const parts = [
|
|
609
|
+
'/subscription',
|
|
610
|
+
'login',
|
|
611
|
+
quoteSlashCommandArg(readField('provider')),
|
|
612
|
+
'start',
|
|
613
|
+
];
|
|
614
|
+
if (!isAffirmative(readField('openBrowser'))) parts.push('--no-browser');
|
|
615
|
+
if (isAffirmative(readField('manual'))) parts.push('--manual');
|
|
616
|
+
parts.push('--yes');
|
|
617
|
+
const command = parts.join(' ');
|
|
618
|
+
return {
|
|
619
|
+
kind: 'dispatch',
|
|
620
|
+
command,
|
|
621
|
+
status: 'Opening provider subscription login start.',
|
|
622
|
+
actionResult: {
|
|
623
|
+
kind: 'dispatched',
|
|
624
|
+
title: 'Opening provider subscription login start',
|
|
625
|
+
detail: 'The workspace handed a confirmed subscription-login start command to the shell-owned command router.',
|
|
626
|
+
command,
|
|
627
|
+
safety: 'safe',
|
|
628
|
+
},
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
if (editor.kind === 'subscription-login-finish') {
|
|
632
|
+
if (!isAffirmative(readField('confirm'))) {
|
|
633
|
+
return {
|
|
634
|
+
kind: 'editor',
|
|
635
|
+
editor: { ...editor, message: 'Provider subscription login finish not confirmed. Type yes, then press Enter.' },
|
|
636
|
+
status: 'Provider subscription login finish not confirmed.',
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
const command = `/subscription login ${quoteSlashCommandArg(readField('provider'))} finish ${quoteSlashCommandArg(readField('code'))} --yes`;
|
|
640
|
+
return {
|
|
641
|
+
kind: 'dispatch',
|
|
642
|
+
command,
|
|
643
|
+
status: 'Opening provider subscription login finish.',
|
|
644
|
+
actionResult: {
|
|
645
|
+
kind: 'dispatched',
|
|
646
|
+
title: 'Opening provider subscription login finish',
|
|
647
|
+
detail: 'The workspace handed a confirmed subscription-login finish command to the shell-owned command router.',
|
|
648
|
+
command,
|
|
649
|
+
safety: 'safe',
|
|
650
|
+
},
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
if (editor.kind === 'subscription-logout') {
|
|
654
|
+
if (!isAffirmative(readField('confirm'))) {
|
|
655
|
+
return {
|
|
656
|
+
kind: 'editor',
|
|
657
|
+
editor: { ...editor, message: 'Provider subscription logout not confirmed. Type yes, then press Enter.' },
|
|
658
|
+
status: 'Provider subscription logout not confirmed.',
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
const command = `/subscription logout ${quoteSlashCommandArg(readField('provider'))} --yes`;
|
|
662
|
+
return {
|
|
663
|
+
kind: 'dispatch',
|
|
664
|
+
command,
|
|
665
|
+
status: 'Opening provider subscription logout.',
|
|
666
|
+
actionResult: {
|
|
667
|
+
kind: 'dispatched',
|
|
668
|
+
title: 'Opening provider subscription logout',
|
|
669
|
+
detail: 'The workspace handed a confirmed provider subscription logout command to the shell-owned command router.',
|
|
670
|
+
command,
|
|
671
|
+
safety: 'safe',
|
|
672
|
+
},
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
if (isAgentWorkspaceDelegationEditorKind(editor.kind)) return buildAgentWorkspaceDelegationEditorSubmission(editor, readField);
|
|
676
|
+
if (isAgentWorkspaceWorkPlanEditorKind(editor.kind)) return buildAgentWorkspaceWorkPlanEditorSubmission(editor, readField);
|
|
424
677
|
if (editor.kind === 'skill-discovery-import') {
|
|
425
678
|
if (!isAffirmative(readField('confirm'))) {
|
|
426
679
|
return {
|