@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.
Files changed (168) hide show
  1. package/CHANGELOG.md +41 -663
  2. package/README.md +38 -52
  3. package/dist/package/main.js +37826 -35924
  4. package/docs/README.md +5 -4
  5. package/docs/{connected-services.md → connected-host.md} +18 -10
  6. package/docs/getting-started.md +41 -44
  7. package/docs/release-and-publishing.md +6 -4
  8. package/package.json +3 -3
  9. package/src/agent/behavior-discovery-summary.ts +1 -3
  10. package/src/agent/persona-discovery.ts +1 -3
  11. package/src/agent/persona-registry.ts +5 -3
  12. package/src/agent/reminder-schedule-format.ts +6 -6
  13. package/src/agent/reminder-schedule.ts +1 -1
  14. package/src/agent/routine-registry.ts +43 -4
  15. package/src/agent/routine-schedule-format.ts +6 -6
  16. package/src/agent/routine-schedule-promotion.ts +1 -1
  17. package/src/agent/routine-schedule-receipts.ts +1 -1
  18. package/src/agent/runtime-profile-starters.ts +3 -3
  19. package/src/agent/runtime-profile.ts +78 -0
  20. package/src/agent/skill-registry.ts +190 -13
  21. package/src/cli/agent-knowledge-command.ts +2 -2
  22. package/src/cli/agent-knowledge-format.ts +2 -2
  23. package/src/cli/agent-knowledge-runtime.ts +1 -1
  24. package/src/cli/bundle-command.ts +1 -1
  25. package/src/cli/entrypoint.ts +16 -7
  26. package/src/cli/help.ts +26 -19
  27. package/src/cli/local-library-command.ts +75 -21
  28. package/src/cli/management-commands.ts +7 -6
  29. package/src/cli/management.ts +6 -51
  30. package/src/cli/parser.ts +23 -2
  31. package/src/cli/profiles-command.ts +119 -1
  32. package/src/cli/routines-command.ts +139 -11
  33. package/src/cli/service-posture.ts +11 -11
  34. package/src/cli/status.ts +21 -25
  35. package/src/input/agent-workspace-access-command-editor-submission.ts +149 -0
  36. package/src/input/agent-workspace-access-command-editors.ts +170 -0
  37. package/src/input/agent-workspace-activation.ts +2 -1
  38. package/src/input/agent-workspace-basic-command-editor-submission.ts +345 -92
  39. package/src/input/agent-workspace-basic-command-editors.ts +480 -7
  40. package/src/input/agent-workspace-categories.ts +175 -15
  41. package/src/input/agent-workspace-channel-command-editor-submission.ts +49 -0
  42. package/src/input/agent-workspace-channel-command-editors.ts +47 -0
  43. package/src/input/agent-workspace-command-editor.ts +23 -1
  44. package/src/input/agent-workspace-delegation-editor-submission.ts +55 -0
  45. package/src/input/agent-workspace-editors.ts +27 -0
  46. package/src/input/agent-workspace-knowledge-command-editor-submission.ts +132 -0
  47. package/src/input/agent-workspace-knowledge-command-editors.ts +110 -0
  48. package/src/input/agent-workspace-learned-behavior.ts +67 -0
  49. package/src/input/agent-workspace-library-command-editor-submission.ts +50 -0
  50. package/src/input/agent-workspace-library-command-editors.ts +35 -0
  51. package/src/input/agent-workspace-mcp-command-editor-submission.ts +95 -0
  52. package/src/input/agent-workspace-memory-command-editor-submission.ts +232 -0
  53. package/src/input/agent-workspace-memory-command-editors.ts +180 -0
  54. package/src/input/agent-workspace-navigation.ts +45 -0
  55. package/src/input/agent-workspace-notify-editor-submission.ts +107 -0
  56. package/src/input/agent-workspace-operations-command-editor-submission.ts +146 -0
  57. package/src/input/agent-workspace-operations-command-editors.ts +119 -0
  58. package/src/input/agent-workspace-provider-command-editor-submission.ts +155 -0
  59. package/src/input/agent-workspace-provider-command-editors.ts +93 -0
  60. package/src/input/agent-workspace-requirements.ts +11 -0
  61. package/src/input/agent-workspace-secret-editor-submission.ts +153 -0
  62. package/src/input/agent-workspace-session-command-editor-submission.ts +199 -0
  63. package/src/input/agent-workspace-session-command-editors.ts +249 -0
  64. package/src/input/agent-workspace-setup.ts +24 -14
  65. package/src/input/agent-workspace-skill-bundle-command-editor-submission.ts +101 -0
  66. package/src/input/agent-workspace-skill-bundle-command-editors.ts +110 -0
  67. package/src/input/agent-workspace-snapshot.ts +50 -8
  68. package/src/input/agent-workspace-task-command-editor-submission.ts +61 -0
  69. package/src/input/agent-workspace-task-command-editors.ts +47 -0
  70. package/src/input/agent-workspace-types.ts +120 -0
  71. package/src/input/agent-workspace-voice-media.ts +1 -1
  72. package/src/input/agent-workspace-workplan-editor-submission.ts +153 -0
  73. package/src/input/agent-workspace.ts +47 -37
  74. package/src/input/command-registry.ts +1 -1
  75. package/src/input/commands/agent-runtime-profile-runtime.ts +89 -4
  76. package/src/input/commands/agent-skills-runtime.ts +76 -12
  77. package/src/input/commands/agent-workspace-runtime.ts +4 -3
  78. package/src/input/commands/brief-runtime.ts +38 -9
  79. package/src/input/commands/channels-runtime.ts +3 -3
  80. package/src/input/commands/compat-runtime.ts +32 -0
  81. package/src/input/commands/health-runtime.ts +22 -24
  82. package/src/input/commands/knowledge.ts +26 -5
  83. package/src/input/commands/local-provider-runtime.ts +7 -3
  84. package/src/input/commands/local-setup-review.ts +4 -14
  85. package/src/input/commands/mcp-runtime.ts +8 -12
  86. package/src/input/commands/operator-runtime.ts +8 -67
  87. package/src/input/commands/personas-runtime.ts +1 -1
  88. package/src/input/commands/platform-access-runtime.ts +7 -70
  89. package/src/input/commands/policy-dispatch.ts +1 -1
  90. package/src/input/commands/policy.ts +1 -5
  91. package/src/input/commands/product-runtime.ts +2 -2
  92. package/src/input/commands/qrcode-runtime.ts +6 -4
  93. package/src/input/commands/routines-runtime.ts +44 -6
  94. package/src/input/commands/runtime-services.ts +1 -14
  95. package/src/input/commands/security-runtime.ts +3 -8
  96. package/src/input/commands/session-content.ts +1 -1
  97. package/src/input/commands/session-workflow.ts +5 -14
  98. package/src/input/commands/shell-core.ts +8 -2
  99. package/src/input/commands/subscription-runtime.ts +1 -6
  100. package/src/input/commands/support-bundle-runtime.ts +53 -0
  101. package/src/input/commands/tasks-runtime.ts +2 -2
  102. package/src/input/commands.ts +4 -0
  103. package/src/input/feed-context-factory.ts +0 -1
  104. package/src/input/handler-content-actions.ts +0 -25
  105. package/src/input/handler-feed.ts +0 -2
  106. package/src/input/handler-interactions.ts +2 -31
  107. package/src/input/handler-onboarding.ts +29 -12
  108. package/src/input/handler-shortcuts.ts +1 -3
  109. package/src/input/handler.ts +4 -7
  110. package/src/input/keybindings.ts +9 -9
  111. package/src/input/mcp-workspace.ts +90 -26
  112. package/src/input/onboarding/handler-onboarding-routes.ts +3 -1
  113. package/src/input/onboarding/onboarding-wizard-apply.ts +49 -0
  114. package/src/input/onboarding/onboarding-wizard-helpers.ts +1 -1
  115. package/src/input/onboarding/onboarding-wizard-operator-steps.ts +81 -3
  116. package/src/input/onboarding/onboarding-wizard-steps.ts +14 -7
  117. package/src/input/onboarding/onboarding-wizard-types.ts +1 -0
  118. package/src/input/onboarding/onboarding-wizard.ts +19 -2
  119. package/src/input/profile-picker-modal.ts +2 -2
  120. package/src/input/settings-modal-agent-policy.ts +6 -6
  121. package/src/input/settings-modal-subscriptions.ts +3 -3
  122. package/src/input/settings-modal.ts +14 -14
  123. package/src/main.ts +0 -2
  124. package/src/panels/automation-control-panel.ts +3 -3
  125. package/src/panels/builtin/agent.ts +1 -1
  126. package/src/panels/builtin/operations.ts +2 -2
  127. package/src/panels/builtin/session.ts +26 -18
  128. package/src/panels/builtin/shared.ts +6 -6
  129. package/src/panels/project-planning-panel.ts +1 -1
  130. package/src/panels/provider-health-domains.ts +3 -3
  131. package/src/panels/qr-panel.ts +44 -20
  132. package/src/panels/subscription-panel.ts +3 -3
  133. package/src/panels/system-messages-panel.ts +2 -2
  134. package/src/panels/tasks-panel.ts +4 -4
  135. package/src/planning/project-planning-coordinator.ts +2 -2
  136. package/src/renderer/agent-workspace.ts +26 -5
  137. package/src/renderer/block-actions.ts +1 -3
  138. package/src/renderer/help-overlay.ts +13 -8
  139. package/src/renderer/mcp-workspace.ts +32 -13
  140. package/src/renderer/model-picker-overlay.ts +0 -1
  141. package/src/renderer/model-workspace.ts +0 -2
  142. package/src/renderer/onboarding/onboarding-wizard.ts +20 -4
  143. package/src/renderer/panel-picker-overlay.ts +1 -1
  144. package/src/renderer/profile-picker-modal.ts +2 -2
  145. package/src/renderer/settings-modal-helpers.ts +23 -23
  146. package/src/renderer/settings-modal.ts +18 -18
  147. package/src/renderer/system-message.ts +1 -1
  148. package/src/runtime/agent-runtime-events.ts +129 -0
  149. package/src/runtime/bootstrap-command-parts.ts +3 -2
  150. package/src/runtime/bootstrap-core.ts +4 -64
  151. package/src/runtime/bootstrap-shell.ts +42 -4
  152. package/src/runtime/bootstrap.ts +8 -27
  153. package/src/runtime/connected-host-auth.ts +42 -0
  154. package/src/runtime/diagnostics/panels/panel-resources.ts +1 -1
  155. package/src/runtime/index.ts +1 -5
  156. package/src/runtime/onboarding/apply.ts +213 -0
  157. package/src/runtime/onboarding/derivation.ts +5 -5
  158. package/src/runtime/onboarding/snapshot.ts +2 -2
  159. package/src/runtime/onboarding/types.ts +26 -1
  160. package/src/runtime/onboarding/verify.ts +81 -2
  161. package/src/runtime/operator-token-cleanup.ts +2 -2
  162. package/src/runtime/services.ts +27 -12
  163. package/src/shell/service-settings-sync.ts +7 -7
  164. package/src/shell/ui-openers.ts +27 -38
  165. package/src/tools/agent-local-registry-tool.ts +10 -4
  166. package/src/tools/agent-tool-policy-guard.ts +5 -7
  167. package/src/version.ts +1 -1
  168. 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 { quoteSlashCommandArg, tokenizeSlashCommand } from './slash-command-parser.ts';
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 === 'mcp-server') {
197
+ if (editor.kind === 'knowledge-reindex') {
162
198
  if (!isAffirmative(readField('confirm'))) {
163
199
  return {
164
200
  kind: 'editor',
165
- editor: { ...editor, message: 'MCP server add/update not confirmed. Type yes, then press Enter.' },
166
- status: 'MCP server add/update not confirmed.',
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 parts = [
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 MCP server add/update.',
209
+ status: 'Opening Agent Knowledge reindex.',
191
210
  actionResult: {
192
211
  kind: 'dispatched',
193
- title: 'Opening MCP server add/update',
194
- detail: 'The workspace handed a confirmed MCP server add/update command to the shell-owned command router.',
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 === 'notify-webhook') {
201
- if (!isAffirmative(readField('confirm'))) {
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 === 'notify-webhook-remove') {
223
- if (!isAffirmative(readField('confirm'))) {
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 === 'notify-webhook-test') {
245
- if (!isAffirmative(readField('confirm'))) {
246
- return {
247
- kind: 'editor',
248
- editor: { ...editor, message: 'Notification webhook test not confirmed. Type yes, then press Enter.' },
249
- status: 'Notification webhook test not confirmed.',
250
- };
251
- }
252
- const command = '/notify test --yes';
253
- return {
254
- kind: 'dispatch',
255
- command,
256
- status: 'Opening notification webhook test.',
257
- actionResult: {
258
- kind: 'dispatched',
259
- title: 'Opening notification webhook test',
260
- detail: 'The workspace handed a confirmed notification test command to the shell-owned command router.',
261
- command,
262
- safety: 'safe',
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 {