@myrialabs/clopen 0.4.24 → 0.4.26

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 (38) hide show
  1. package/backend/engine/README.md +18 -0
  2. package/backend/engine/adapters/claude/message-converter.test.ts +36 -0
  3. package/backend/engine/adapters/claude/message-converter.ts +40 -4
  4. package/backend/engine/adapters/claude/stream.ts +68 -3
  5. package/backend/engine/adapters/claude/workflow-transcript.test.ts +65 -0
  6. package/backend/engine/adapters/claude/workflow-transcript.ts +248 -0
  7. package/backend/engine/adapters/coordination-tool-mapping.test.ts +17 -0
  8. package/backend/engine/adapters/copilot/message-converter.ts +20 -1
  9. package/backend/engine/adapters/opencode/message-converter.test.ts +80 -0
  10. package/backend/engine/adapters/opencode/message-converter.ts +32 -0
  11. package/backend/engine/adapters/opencode/stream.ts +29 -23
  12. package/backend/engine/adapters/qwen/message-converter.ts +5 -8
  13. package/backend/engine/docs/adapter-contract.md +29 -1
  14. package/backend/engine/docs/adding-an-engine.md +8 -1
  15. package/backend/engine/docs/frontend-and-chat.md +32 -1
  16. package/backend/engine/docs/lessons-learned.md +49 -2
  17. package/backend/engine/docs/quick-reference.md +2 -0
  18. package/backend/preview/browser/browser-interaction-handler.ts +25 -38
  19. package/backend/preview/browser/browser-mcp-control.ts +130 -54
  20. package/backend/preview/browser/browser-preview-service.ts +43 -62
  21. package/backend/preview/browser/browser-tab-manager.ts +25 -1
  22. package/backend/ws/preview/browser/console.ts +12 -10
  23. package/backend/ws/preview/browser/interact.ts +24 -8
  24. package/backend/ws/preview/browser/native-ui.ts +13 -9
  25. package/backend/ws/preview/browser/tab-info.ts +31 -10
  26. package/backend/ws/preview/index.ts +7 -9
  27. package/backend/ws/snapshot/content.ts +85 -0
  28. package/backend/ws/snapshot/index.ts +4 -1
  29. package/dist/assets/{index-NF77n8kP.js → index-B6QGUN03.js} +1 -1
  30. package/dist/assets/{index-CNDHpafl.js → index-DYa-GDsb.js} +1 -1
  31. package/dist/assets/main-Dh-MTGNR.css +1 -0
  32. package/dist/assets/main-Dznkfxsd.js +627 -0
  33. package/dist/index.html +2 -2
  34. package/package.json +1 -1
  35. package/shared/types/unified/index.ts +7 -0
  36. package/shared/types/unified/tool.ts +57 -2
  37. package/dist/assets/main-BJ0PUVTW.js +0 -621
  38. package/dist/assets/main-DSirC670.css +0 -1
package/dist/index.html CHANGED
@@ -58,8 +58,8 @@
58
58
  }
59
59
  })();
60
60
  </script>
61
- <script type="module" crossorigin src="/assets/main-BJ0PUVTW.js"></script>
62
- <link rel="stylesheet" crossorigin href="/assets/main-DSirC670.css">
61
+ <script type="module" crossorigin src="/assets/main-Dznkfxsd.js"></script>
62
+ <link rel="stylesheet" crossorigin href="/assets/main-Dh-MTGNR.css">
63
63
  </head>
64
64
  <body
65
65
  class="min-h-dvh bg-white text-slate-900 dark:bg-slate-950 dark:text-slate-100 transition-colors duration-200"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrialabs/clopen",
3
- "version": "0.4.24",
3
+ "version": "0.4.26",
4
4
  "description": "All-in-one web workspace for AI coding agents — Claude Code, OpenCode, Codex, Copilot, Qwen Code, Pi, Cline, and Cursor — with chat, terminal, git, browser preview, database client, checkpoints, and real-time collaboration",
5
5
  "author": "Myria Labs",
6
6
  "license": "MIT",
@@ -54,6 +54,13 @@ export type {
54
54
  TaskUpdateInput,
55
55
  TaskListInput,
56
56
  AgentInput,
57
+ WorkflowInput,
58
+ ReplInput,
59
+ SendMessageInput,
60
+ ListAgentsInput,
61
+ ReadAgentInput,
62
+ SendInboxInput,
63
+ ContextBoardInput,
57
64
  TaskOutputInput,
58
65
  TaskStopInput,
59
66
  NotebookEditInput,
@@ -141,6 +141,53 @@ export interface AgentInput {
141
141
  mode?: 'acceptEdits' | 'auto' | 'bypassPermissions' | 'default' | 'dontAsk' | 'plan' | 'bubble';
142
142
  }
143
143
 
144
+ export interface WorkflowInput {
145
+ script?: string;
146
+ name?: string;
147
+ description?: string;
148
+ title?: string;
149
+ args?: Record<string, unknown>;
150
+ scriptPath?: string;
151
+ resumeFromRunId?: string;
152
+ }
153
+
154
+ export interface ReplInput {
155
+ code: string;
156
+ description?: string;
157
+ timeout?: number;
158
+ }
159
+
160
+ export interface SendMessageInput {
161
+ taskId?: string;
162
+ agentId?: string;
163
+ recipient?: string;
164
+ message: string;
165
+ }
166
+
167
+ export interface ListAgentsInput {
168
+ includeCompleted?: boolean;
169
+ }
170
+
171
+ export interface ReadAgentInput {
172
+ agentId: string;
173
+ wait?: boolean;
174
+ timeout?: number;
175
+ sinceTurn?: number;
176
+ }
177
+
178
+ export interface SendInboxInput {
179
+ summary: string;
180
+ content: string;
181
+ }
182
+
183
+ export interface ContextBoardInput {
184
+ command: 'get' | 'add' | 'prune' | 'get_board';
185
+ src?: string;
186
+ name?: string;
187
+ description?: string;
188
+ context?: string;
189
+ }
190
+
144
191
  export interface TaskOutputInput {
145
192
  taskId: string;
146
193
  block?: boolean;
@@ -294,6 +341,7 @@ export interface ToolInputMap {
294
341
  ExitPlanMode: ExitPlanModeInput;
295
342
  // Sub-agents & tasks
296
343
  Agent: AgentInput;
344
+ Workflow: WorkflowInput;
297
345
  TaskOutput: TaskOutputInput;
298
346
  TaskStop: TaskStopInput;
299
347
  TaskCreate: TaskCreateInput;
@@ -310,6 +358,12 @@ export interface ToolInputMap {
310
358
  Skill: SkillInput;
311
359
  ToolSearch: ToolSearchInput;
312
360
  Lsp: LspInput;
361
+ REPL: ReplInput;
362
+ SendMessage: SendMessageInput;
363
+ ListAgents: ListAgentsInput;
364
+ ReadAgent: ReadAgentInput;
365
+ SendInbox: SendInboxInput;
366
+ ContextBoard: ContextBoardInput;
313
367
  // Automation & notifications
314
368
  ScheduleWakeup: ScheduleWakeupInput;
315
369
  Monitor: MonitorInput;
@@ -340,9 +394,10 @@ export const CANONICAL_TOOL_NAMES = new Set<KnownToolName>([
340
394
  'Glob', 'Grep', 'List',
341
395
  'WebFetch', 'WebSearch',
342
396
  'TodoWrite', 'AskUserQuestion', 'EnterPlanMode', 'ExitPlanMode',
343
- 'Agent', 'TaskOutput', 'TaskStop', 'TaskCreate', 'TaskGet', 'TaskUpdate', 'TaskList',
397
+ 'Agent', 'Workflow', 'TaskOutput', 'TaskStop', 'TaskCreate', 'TaskGet', 'TaskUpdate', 'TaskList',
344
398
  'ListMcpResources', 'ReadMcpResource',
345
- 'Config', 'EnterWorktree', 'ExitWorktree', 'Skill', 'ToolSearch', 'Lsp',
399
+ 'Config', 'EnterWorktree', 'ExitWorktree', 'Skill', 'ToolSearch', 'Lsp', 'REPL',
400
+ 'SendMessage', 'ListAgents', 'ReadAgent', 'SendInbox', 'ContextBoard',
346
401
  'ScheduleWakeup', 'Monitor', 'PushNotification', 'RemoteTrigger',
347
402
  'CronCreate', 'CronDelete', 'CronList',
348
403
  ]);