@myrialabs/clopen 0.4.27 → 0.4.29

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 (47) hide show
  1. package/backend/auth/auth-service.ts +45 -25
  2. package/backend/auth/onboarding.test.ts +106 -0
  3. package/backend/auth/permissions.ts +1 -1
  4. package/backend/database/utils/connection.ts +7 -31
  5. package/backend/engine/README.md +8 -3
  6. package/backend/engine/adapters/claude/message-converter.ts +55 -23
  7. package/backend/engine/adapters/codex/message-converter.ts +8 -2
  8. package/backend/engine/adapters/codex/models.ts +85 -98
  9. package/backend/engine/adapters/codex/stream.ts +5 -7
  10. package/backend/engine/adapters/codex/usage-rollout.ts +7 -0
  11. package/backend/engine/adapters/copilot/stream.ts +24 -0
  12. package/backend/engine/docs/lessons-learned.md +78 -1
  13. package/backend/engine/docs/stack.md +8 -0
  14. package/backend/engine/install-recipes.ts +19 -2
  15. package/backend/files/file-size-limit.ts +5 -14
  16. package/backend/files/file-watcher.test.ts +160 -0
  17. package/backend/files/file-watcher.ts +276 -58
  18. package/backend/git/git-executor.ts +8 -0
  19. package/backend/git/git-service.test.ts +136 -0
  20. package/backend/git/git-service.ts +113 -17
  21. package/backend/index.ts +11 -4
  22. package/backend/mcp/internal/remote-server.test.ts +8 -3
  23. package/backend/mcp/internal/remote-server.ts +1 -1
  24. package/backend/settings/system-settings.ts +97 -0
  25. package/backend/tunnel/public-origin.ts +5 -13
  26. package/backend/utils/env.ts +29 -0
  27. package/backend/utils/paths.ts +9 -3
  28. package/backend/ws/auth/login.test.ts +8 -1
  29. package/backend/ws/auth/login.ts +22 -15
  30. package/backend/ws/auth/status.ts +24 -1
  31. package/backend/ws/chat/stream.ts +1 -0
  32. package/backend/ws/engine/claude/accounts.ts +4 -12
  33. package/backend/ws/engine/codex/accounts.ts +4 -13
  34. package/backend/ws/engine/pty-output.test.ts +37 -0
  35. package/backend/ws/engine/pty-output.ts +43 -0
  36. package/backend/ws/files/watch.ts +9 -0
  37. package/backend/ws/settings/crud.ts +14 -22
  38. package/dist/assets/{index-BTGcf_Vy.js → index-C7e5TWG3.js} +1 -1
  39. package/dist/assets/{index-BCv5HlPk.js → index-Derlqeyy.js} +1 -1
  40. package/dist/assets/{main-BrqMMMRX.css → main-CqzaPnux.css} +1 -1
  41. package/dist/assets/main-OGhsRKU1.js +1037 -0
  42. package/dist/index.html +2 -2
  43. package/package.json +14 -14
  44. package/shared/constants/engines.ts +1 -0
  45. package/shared/types/stores/settings.ts +11 -1
  46. package/shared/types/unified/stream.ts +10 -4
  47. package/dist/assets/main-CgmAFpU3.js +0 -1036
package/dist/index.html CHANGED
@@ -58,8 +58,8 @@
58
58
  }
59
59
  })();
60
60
  </script>
61
- <script type="module" crossorigin src="/assets/main-CgmAFpU3.js"></script>
62
- <link rel="stylesheet" crossorigin href="/assets/main-BrqMMMRX.css">
61
+ <script type="module" crossorigin src="/assets/main-OGhsRKU1.js"></script>
62
+ <link rel="stylesheet" crossorigin href="/assets/main-CqzaPnux.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.27",
3
+ "version": "0.4.29",
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",
@@ -77,20 +77,20 @@
77
77
  "prepublishOnly": "bun run build"
78
78
  },
79
79
  "devDependencies": {
80
- "@anthropic-ai/claude-agent-sdk": "0.3.158",
81
- "@anthropic-ai/sdk": "0.100.1",
82
- "@cline/agents": "0.0.65",
83
- "@cline/sdk": "0.0.65",
84
- "@cursor/sdk": "1.0.24",
85
- "@earendil-works/pi-agent-core": "0.80.10",
86
- "@earendil-works/pi-ai": "0.80.10",
87
- "@earendil-works/pi-coding-agent": "0.80.10",
80
+ "@anthropic-ai/claude-agent-sdk": "0.3.229",
81
+ "@anthropic-ai/sdk": "0.116.0",
82
+ "@cline/agents": "0.0.74",
83
+ "@cline/sdk": "0.0.74",
84
+ "@cursor/sdk": "1.0.27",
85
+ "@earendil-works/pi-agent-core": "0.84.1",
86
+ "@earendil-works/pi-ai": "0.84.1",
87
+ "@earendil-works/pi-coding-agent": "0.84.1",
88
88
  "@eslint/js": "^9.31.0",
89
- "@github/copilot": "1.0.55",
90
- "@github/copilot-sdk": "1.0.0-beta.9",
91
- "@openai/codex-sdk": "0.135.0",
92
- "@opencode-ai/sdk": "1.15.12",
93
- "@qwen-code/sdk": "0.1.7",
89
+ "@github/copilot": "1.0.79",
90
+ "@github/copilot-sdk": "1.0.9",
91
+ "@openai/codex-sdk": "0.147.0",
92
+ "@opencode-ai/sdk": "1.18.18",
93
+ "@qwen-code/sdk": "0.1.8",
94
94
  "@sveltejs/vite-plugin-svelte": "^6.0.0",
95
95
  "@tailwindcss/vite": "^4.1.11",
96
96
  "@types/bun": "^1.2.18",
@@ -130,6 +130,7 @@ const REASONING_LEVEL_LABELS: Record<string, string> = {
130
130
  high: 'High',
131
131
  xhigh: 'X-High',
132
132
  max: 'Max',
133
+ ultra: 'Ultra',
133
134
  };
134
135
 
135
136
  /** Human label for a reasoning level token (falls back to capitalizing the token). */
@@ -92,7 +92,17 @@ export type AuthMode = 'none' | 'required';
92
92
  export interface SystemSettings {
93
93
  /** Authentication mode: 'none' = single user no login, 'required' = multi-user with login. Default: 'required'. */
94
94
  authMode: AuthMode;
95
- /** Whether the initial setup wizard has been completed. Default: false. */
95
+ /**
96
+ * Setup wizard state — the authoritative marker.
97
+ * 'pending' is only written by a fresh install that entered the wizard; an
98
+ * install with users and no marker at all is treated (and recorded) as
99
+ * complete. Read server-side via `auth:status`, never decided by the client.
100
+ */
101
+ onboarding?: 'pending' | 'complete';
102
+ /**
103
+ * Legacy boolean mirror of `onboarding`, still written so an older build
104
+ * downgraded onto the same database keeps recognising a completed setup.
105
+ */
96
106
  onboardingComplete: boolean;
97
107
  /** Restrict folder browser to only these base paths. Empty = no restriction. */
98
108
  allowedBasePaths: string[];
@@ -90,7 +90,8 @@ export type RateLimitType =
90
90
  | 'seven_day'
91
91
  | 'seven_day_opus'
92
92
  | 'seven_day_sonnet'
93
- | 'overage';
93
+ | 'overage'
94
+ | 'seven_day_overage_included';
94
95
 
95
96
  export interface RateLimitEvent {
96
97
  type: 'rate_limit';
@@ -102,9 +103,14 @@ export interface RateLimitEvent {
102
103
  }
103
104
 
104
105
  /**
105
- * Transient, non-persisted notification surfaced as a toast. Currently emitted
106
- * for Claude background-task completion (SDKTaskNotificationMessage); the
107
- * stream-manager routes it to a `chat:notification`.
106
+ * Transient, non-persisted notification surfaced as a toast; the stream-manager
107
+ * routes it to a `chat:notification`.
108
+ *
109
+ * Reserved for things the transcript alone cannot explain: a turn that produced
110
+ * no output (Pi, Cline), an answer that came from a fallback model after a
111
+ * refusal (Claude), a request cancelled because the account's credit limit ran
112
+ * out (Copilot). Routine progress does NOT belong here — backgrounded task
113
+ * outcomes already land in the transcript, and toasting them was pure noise.
108
114
  */
109
115
  export interface NotificationEvent {
110
116
  type: 'notification';