@surething/cockpit 1.0.241 → 1.0.242

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/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +5 -5
  3. package/.next-prod/build-manifest.json +2 -2
  4. package/.next-prod/prerender-manifest.json +3 -3
  5. package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
  6. package/.next-prod/server/app/_global-error.html +1 -1
  7. package/.next-prod/server/app/_global-error.rsc +1 -1
  8. package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  10. package/.next-prod/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  11. package/.next-prod/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next-prod/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/.next-prod/server/app/_not-found.html +2 -2
  16. package/.next-prod/server/app/_not-found.rsc +2 -2
  17. package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +2 -2
  18. package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +1 -1
  19. package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +2 -2
  20. package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  21. package/.next-prod/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  22. package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  23. package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
  24. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  25. package/.next-prod/server/app/project/page.js +1 -1
  26. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  27. package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
  28. package/.next-prod/server/app-paths-manifest.json +5 -5
  29. package/.next-prod/server/chunks/304.js +3 -3
  30. package/.next-prod/server/chunks/9658.js +3 -3
  31. package/.next-prod/server/middleware-build-manifest.js +1 -1
  32. package/.next-prod/server/pages/404.html +2 -2
  33. package/.next-prod/server/pages/500.html +1 -1
  34. package/.next-prod/server/server-reference-manifest.json +1 -1
  35. package/.next-prod/static/chunks/{5408-e785cb62df051a22.js → 5408-f9fd9ece18d916dc.js} +1 -1
  36. package/.next-prod/trace +13 -13
  37. package/.next-prod/trace-build +1 -1
  38. package/dist/{chunk-TRQ4S2LT.mjs → chunk-53DHIXIY.mjs} +1 -1
  39. package/dist/{chunk-44DBCDDK.mjs → chunk-PTHQK26K.mjs} +46 -14
  40. package/dist/{chunk-JDX7Z54G.mjs → chunk-RBT65EBM.mjs} +1 -1
  41. package/dist/httpApi.mjs +2 -2
  42. package/dist/scheduledTasks.mjs +2 -2
  43. package/dist/{server-UDKNFSZE.mjs → server-XWLYHEMD.mjs} +2 -2
  44. package/dist/wsServer.mjs +4 -4
  45. package/package.json +1 -1
  46. /package/.next-prod/static/{x_Nlb9WAVX__4ygoUBUWt → YsWseNHOrhvA60UWaNkzK}/_buildManifest.js +0 -0
  47. /package/.next-prod/static/{x_Nlb9WAVX__4ygoUBUWt → YsWseNHOrhvA60UWaNkzK}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- [{"name":"run-webpack","duration":20941601,"timestamp":153035611,"id":14,"parentId":1,"tags":{},"startTime":1783860627367,"traceId":"ab55847427515199"},{"name":"run-typescript","duration":19490937,"timestamp":173981362,"id":1630,"parentId":1,"tags":{},"startTime":1783860648312,"traceId":"ab55847427515199"},{"name":"static-check","duration":1228750,"timestamp":193519852,"id":1633,"parentId":1,"tags":{},"startTime":1783860667851,"traceId":"ab55847427515199"},{"name":"static-generation","duration":7033939,"timestamp":194897471,"id":1911,"parentId":1,"tags":{},"startTime":1783860669228,"traceId":"ab55847427515199"},{"name":"collect-build-traces","duration":21350217,"timestamp":194749213,"id":1908,"parentId":1,"tags":{},"startTime":1783860669080,"traceId":"ab55847427515199"},{"name":"telemetry-flush","duration":60,"timestamp":216103438,"id":1920,"parentId":1,"tags":{},"startTime":1783860690434,"traceId":"ab55847427515199"},{"name":"next-build","duration":63248768,"timestamp":152854744,"id":1,"tags":{"buildMode":"default","version":"16.2.6","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1783860627186,"traceId":"ab55847427515199"}]
1
+ [{"name":"run-webpack","duration":17818959,"timestamp":187786547,"id":14,"parentId":1,"tags":{},"startTime":1783948879287,"traceId":"9619af7c73190300"},{"name":"run-typescript","duration":15136342,"timestamp":205614781,"id":1630,"parentId":1,"tags":{},"startTime":1783948897115,"traceId":"9619af7c73190300"},{"name":"static-check","duration":962008,"timestamp":220782608,"id":1633,"parentId":1,"tags":{},"startTime":1783948912283,"traceId":"9619af7c73190300"},{"name":"static-generation","duration":5185281,"timestamp":221846117,"id":1911,"parentId":1,"tags":{},"startTime":1783948913346,"traceId":"9619af7c73190300"},{"name":"collect-build-traces","duration":15774094,"timestamp":221745204,"id":1908,"parentId":1,"tags":{},"startTime":1783948913245,"traceId":"9619af7c73190300"},{"name":"telemetry-flush","duration":48,"timestamp":237522629,"id":1920,"parentId":1,"tags":{},"startTime":1783948929023,"traceId":"9619af7c73190300"},{"name":"next-build","duration":49847788,"timestamp":187674899,"id":1,"tags":{"buildMode":"default","version":"16.2.6","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1783948879175,"traceId":"9619af7c73190300"}]
@@ -13,7 +13,7 @@ import {
13
13
  getTerminalOutputPath,
14
14
  readJsonFile,
15
15
  writeJsonFile
16
- } from "./chunk-44DBCDDK.mjs";
16
+ } from "./chunk-PTHQK26K.mjs";
17
17
 
18
18
  // packages/feature/console/src/server/plugins/browser/BrowserBridge.ts
19
19
  import { WebSocket } from "ws";
@@ -30009,6 +30009,27 @@ var runGitOk = (repoDir, workTree, args2, input) => runGit(repoDir, workTree, ar
30009
30009
  })
30010
30010
  )
30011
30011
  );
30012
+ var SYMLINK_PATHSPEC_RE = /beyond a symbolic link/;
30013
+ var stageAdds = (repoDir, cwd, paths) => Effect_exports.gen(function* () {
30014
+ const addArgs = ["add", "-A", "--pathspec-from-file=-", "--pathspec-file-nul"];
30015
+ const batch = yield* runGit(repoDir, cwd, addArgs, paths.map((p) => `:(literal)${p}`).join("\0"));
30016
+ if (batch.code === 0) return;
30017
+ if (!SYMLINK_PATHSPEC_RE.test(batch.stderr)) {
30018
+ return yield* Effect_exports.fail(
30019
+ new AppError({ message: `git add exited ${batch.code}: ${batch.stderr.slice(0, 400)}` })
30020
+ );
30021
+ }
30022
+ for (const p of paths) {
30023
+ const one = yield* runGit(repoDir, cwd, addArgs, `:(literal)${p}`);
30024
+ if (one.code === 0) continue;
30025
+ if (!SYMLINK_PATHSPEC_RE.test(one.stderr)) {
30026
+ return yield* Effect_exports.fail(
30027
+ new AppError({ message: `git add ${p} exited ${one.code}: ${one.stderr.slice(0, 400)}` })
30028
+ );
30029
+ }
30030
+ yield* runGitOk(repoDir, cwd, ["rm", "--cached", "--quiet", "--ignore-unmatch", "--", `:(literal)${p}`]);
30031
+ }
30032
+ });
30012
30033
  var gSem = globalThis;
30013
30034
  var semaphores = gSem.__cockpitSnapshotSemaphores ?? (gSem.__cockpitSnapshotSemaphores = /* @__PURE__ */ new Map());
30014
30035
  var withRepoLock = (repoDir, effect4) => {
@@ -30164,35 +30185,46 @@ var snapshotOnce = (snapshotsRoot, maxFileBytes, trigger, kind) => Effect_export
30164
30185
  yield* tripGuard(`${entries2.length} changed files exceeds ${MAX_CHANGED_FILES}`);
30165
30186
  return { staged: false };
30166
30187
  }
30167
- const changedPaths = entries2.map((e) => e.slice(3)).filter(Boolean);
30188
+ const addPaths = [];
30189
+ const rmPaths = [];
30190
+ for (const e of entries2) {
30191
+ const path = e.slice(3);
30192
+ if (!path) continue;
30193
+ if (e[1] === "D") rmPaths.push(path);
30194
+ else addPaths.push(path);
30195
+ }
30168
30196
  const sizes = yield* Effect_exports.all(
30169
- changedPaths.map(
30197
+ addPaths.map(
30170
30198
  (p) => fsTry("stat", () => stat(join5(cwd, p)).then((s) => s.isFile() ? s.size : 0)).pipe(
30171
- // Deleted files fail the stat → size 0 (they must stay included).
30199
+ // Untracked path vanishing between status and stat → size 0.
30172
30200
  Effect_exports.orElseSucceed(() => 0)
30173
30201
  )
30174
30202
  ),
30175
30203
  { concurrency: 16 }
30176
30204
  );
30177
- const included = [];
30205
+ const includedAdds = [];
30178
30206
  let totalBytes = 0;
30179
- for (let i = 0; i < changedPaths.length; i++) {
30207
+ for (let i = 0; i < addPaths.length; i++) {
30180
30208
  if (sizes[i] > maxFileBytes) continue;
30181
- included.push(changedPaths[i]);
30209
+ includedAdds.push(addPaths[i]);
30182
30210
  totalBytes += sizes[i];
30183
30211
  }
30184
30212
  if (totalBytes > MAX_TOTAL_BYTES) {
30185
30213
  yield* tripGuard(`${Math.round(totalBytes / 1048576)}MB of changes exceeds ${Math.round(MAX_TOTAL_BYTES / 1048576)}MB`);
30186
30214
  return { staged: false };
30187
30215
  }
30188
- if (included.length === 0) return { staged: false };
30189
- const pathspec = included.map((p) => `:(literal)${p}`).join("\0");
30190
- yield* runGitOk(
30191
- repoDir,
30192
- cwd,
30193
- ["add", "-A", "--pathspec-from-file=-", "--pathspec-file-nul"],
30194
- pathspec
30195
- );
30216
+ if (includedAdds.length === 0 && rmPaths.length === 0) return { staged: false };
30217
+ if (rmPaths.length > 0) {
30218
+ yield* runGitOk(
30219
+ repoDir,
30220
+ cwd,
30221
+ ["rm", "--cached", "--quiet", "--ignore-unmatch", "--pathspec-from-file=-", "--pathspec-file-nul"],
30222
+ rmPaths.map((p) => `:(literal)${p}`).join("\0")
30223
+ );
30224
+ }
30225
+ if (includedAdds.length > 0) {
30226
+ yield* stageAdds(repoDir, cwd, includedAdds);
30227
+ }
30196
30228
  return { staged: true };
30197
30229
  });
30198
30230
  return yield* withRepoLock(
@@ -10,7 +10,7 @@ import {
10
10
  readJsonFile,
11
11
  withFileLock,
12
12
  writeJsonFile
13
- } from "./chunk-44DBCDDK.mjs";
13
+ } from "./chunk-PTHQK26K.mjs";
14
14
 
15
15
  // packages/feature/agent/src/server/state/globalState.ts
16
16
  import { createReadStream, existsSync } from "fs";
package/dist/httpApi.mjs CHANGED
@@ -22,10 +22,10 @@ import {
22
22
  unregisterBrowser,
23
23
  unregisterTerminal,
24
24
  writeStdinToCommand
25
- } from "./chunk-TRQ4S2LT.mjs";
25
+ } from "./chunk-53DHIXIY.mjs";
26
26
  import {
27
27
  getTerminalHistoryPath
28
- } from "./chunk-44DBCDDK.mjs";
28
+ } from "./chunk-PTHQK26K.mjs";
29
29
  import "./chunk-7P6ASYW6.mjs";
30
30
 
31
31
  // src/lib/httpApi.ts
@@ -10,7 +10,7 @@ import {
10
10
  setRunAbort,
11
11
  startRun,
12
12
  updateGlobalState
13
- } from "./chunk-JDX7Z54G.mjs";
13
+ } from "./chunk-RBT65EBM.mjs";
14
14
  import {
15
15
  AgentError,
16
16
  AppRuntime,
@@ -36,7 +36,7 @@ import {
36
36
  settlePendingRecord,
37
37
  withFileLock,
38
38
  writeJsonFile
39
- } from "./chunk-44DBCDDK.mjs";
39
+ } from "./chunk-PTHQK26K.mjs";
40
40
  import {
41
41
  __export
42
42
  } from "./chunk-7P6ASYW6.mjs";
@@ -45,12 +45,12 @@ import {
45
45
  unregisterTerminal,
46
46
  updateBrowserWs,
47
47
  writeStdinToCommand
48
- } from "./chunk-TRQ4S2LT.mjs";
48
+ } from "./chunk-53DHIXIY.mjs";
49
49
  import {
50
50
  createNeo4jDriver,
51
51
  runCypherWithDriver,
52
52
  serializeValue
53
- } from "./chunk-44DBCDDK.mjs";
53
+ } from "./chunk-PTHQK26K.mjs";
54
54
  import "./chunk-7P6ASYW6.mjs";
55
55
  export {
56
56
  INTERRUPTED_EXIT_CODE,
package/dist/wsServer.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  addRunListener,
3
3
  getGlobalSessionsSnapshot,
4
4
  getRunSnapshot
5
- } from "./chunk-JDX7Z54G.mjs";
5
+ } from "./chunk-RBT65EBM.mjs";
6
6
  import {
7
7
  addExitListener,
8
8
  addOutputListener,
@@ -18,7 +18,7 @@ import {
18
18
  resolvePendingRequest,
19
19
  unregisterBrowser,
20
20
  writeStdinToCommand
21
- } from "./chunk-TRQ4S2LT.mjs";
21
+ } from "./chunk-53DHIXIY.mjs";
22
22
  import {
23
23
  AppError,
24
24
  Effect_exports,
@@ -33,7 +33,7 @@ import {
33
33
  Stream_exports,
34
34
  ValidationError,
35
35
  WSError
36
- } from "./chunk-44DBCDDK.mjs";
36
+ } from "./chunk-PTHQK26K.mjs";
37
37
  import "./chunk-7P6ASYW6.mjs";
38
38
 
39
39
  // src/lib/wsServer.ts
@@ -665,7 +665,7 @@ var handleJupyter = (conn, bubbleId, cwd) => Effect_exports.gen(function* () {
665
665
  Effect_exports.annotateLogs("cwd", cwd)
666
666
  );
667
667
  const { kernelManager } = yield* Effect_exports.tryPromise({
668
- try: () => import("./server-UDKNFSZE.mjs"),
668
+ try: () => import("./server-XWLYHEMD.mjs"),
669
669
  catch: (cause) => new AppError({
670
670
  message: "failed to import kernel manager",
671
671
  cause
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surething/cockpit",
3
- "version": "1.0.241",
3
+ "version": "1.0.242",
4
4
  "description": "The open-source Claude Code GUI — an IDE-like workbench for parallel AI coding. Drive Claude (default), Codex, DeepSeek, Kimi, or local Ollama in tabs. Terminal, browser & DB bubbles, code review. Self-host on a shared dev box — a seat for every teammate. Local-first, MIT.",
5
5
  "author": "Robert",
6
6
  "license": "MIT",