@schoolai/shipyard 3.28.0 → 3.29.0-rc.20260908.0

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 (32) hide show
  1. package/dist/capability-detector-worker.js +4 -4
  2. package/dist/{chunk-HJXABEEV.js → chunk-4STNC5NO.js} +2 -2
  3. package/dist/{chunk-XUDNZERJ.js → chunk-55ZQ4RW6.js} +2 -2
  4. package/dist/{chunk-GBMR7R3J.js → chunk-73WBQO4T.js} +33 -2
  5. package/dist/{chunk-GBMR7R3J.js.map → chunk-73WBQO4T.js.map} +1 -1
  6. package/dist/{chunk-KKWHJ3BN.js → chunk-FNZ7OWSZ.js} +2 -2
  7. package/dist/{chunk-P56H5RCU.js → chunk-HBQHLK4G.js} +19 -4
  8. package/dist/chunk-HBQHLK4G.js.map +1 -0
  9. package/dist/{chunk-PS5MSEV6.js → chunk-NZKLLFRA.js} +3 -3
  10. package/dist/chunk-NZKLLFRA.js.map +1 -0
  11. package/dist/{chunk-JMXLEJCV.js → chunk-WO4YQPLB.js} +516 -14
  12. package/dist/chunk-WO4YQPLB.js.map +1 -0
  13. package/dist/{chunk-GUD5HUAM.js → chunk-Z42EKCC5.js} +3 -3
  14. package/dist/cursor-runner.js +3 -3
  15. package/dist/electron-utility.js +2 -2
  16. package/dist/index.js +4 -4
  17. package/dist/{login-5XG2GCJN.js → login-4SAAPONQ.js} +3 -3
  18. package/dist/{plan-backfill-RTYIZRZW.js → plan-backfill-QJUIVGRP.js} +4 -4
  19. package/dist/{serve-HNZN47KN.js → serve-UWXIY7F3.js} +3980 -685
  20. package/dist/{serve-HNZN47KN.js.map → serve-UWXIY7F3.js.map} +1 -1
  21. package/dist/{start-BCGXIN7G.js → start-PPBKTC73.js} +6 -6
  22. package/package.json +2 -1
  23. package/dist/chunk-JMXLEJCV.js.map +0 -1
  24. package/dist/chunk-P56H5RCU.js.map +0 -1
  25. package/dist/chunk-PS5MSEV6.js.map +0 -1
  26. /package/dist/{chunk-HJXABEEV.js.map → chunk-4STNC5NO.js.map} +0 -0
  27. /package/dist/{chunk-XUDNZERJ.js.map → chunk-55ZQ4RW6.js.map} +0 -0
  28. /package/dist/{chunk-KKWHJ3BN.js.map → chunk-FNZ7OWSZ.js.map} +0 -0
  29. /package/dist/{chunk-GUD5HUAM.js.map → chunk-Z42EKCC5.js.map} +0 -0
  30. /package/dist/{login-5XG2GCJN.js.map → login-4SAAPONQ.js.map} +0 -0
  31. /package/dist/{plan-backfill-RTYIZRZW.js.map → plan-backfill-QJUIVGRP.js.map} +0 -0
  32. /package/dist/{start-BCGXIN7G.js.map → start-PPBKTC73.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  getDaemonVersion
4
- } from "./chunk-GUD5HUAM.js";
4
+ } from "./chunk-Z42EKCC5.js";
5
5
  import {
6
6
  WorkerCommandCodec,
7
7
  WorkerReplyCodec
@@ -1116,4 +1116,4 @@ export {
1116
1116
  shutdownFileWatcherGuard,
1117
1117
  guardedSubscribe
1118
1118
  };
1119
- //# sourceMappingURL=chunk-KKWHJ3BN.js.map
1119
+ //# sourceMappingURL=chunk-FNZ7OWSZ.js.map
@@ -38,7 +38,7 @@ import {
38
38
  formatTaskFeedback,
39
39
  toRecord,
40
40
  toSdkContent
41
- } from "./chunk-XUDNZERJ.js";
41
+ } from "./chunk-55ZQ4RW6.js";
42
42
  import {
43
43
  AGENT_IDS,
44
44
  AGENT_SYSTEM_CLAUDE_CODE,
@@ -50,14 +50,14 @@ import {
50
50
  REASONING_EFFORTS,
51
51
  inflateToolResultContent,
52
52
  isImageMimeType
53
- } from "./chunk-JMXLEJCV.js";
53
+ } from "./chunk-WO4YQPLB.js";
54
54
  import {
55
55
  AnthropicAuthStatusSchema,
56
56
  CodexAuthStatusSchema,
57
57
  CursorAuthStatusSchema,
58
58
  PermissionModeSchema,
59
59
  TESTED_CODEX_VERSION
60
- } from "./chunk-PS5MSEV6.js";
60
+ } from "./chunk-NZKLLFRA.js";
61
61
  import {
62
62
  logger
63
63
  } from "./chunk-SIR6MDUU.js";
@@ -2612,6 +2612,9 @@ function translateFileChangePatchUpdated(delta) {
2612
2612
  }
2613
2613
  function classifyCodexErrorText(raw) {
2614
2614
  const msg = raw.toLowerCase();
2615
+ if (/unexpected status 404/.test(msg) && /backend-api\/codex\//.test(msg) && !/model not found/.test(msg)) {
2616
+ return "stale_credentials";
2617
+ }
2615
2618
  if (/missing\s+bearer/.test(msg)) return null;
2616
2619
  if (/rate.?limit|usage.?limit|quota/.test(msg)) return "usage_limit";
2617
2620
  if (/\bunauthor|\btoken[_.-]?revoked|\bsigned.?out|\bnot\s+(?:logged|signed)\s+in|\bauth(?:entication)?\s+(?:failed|required|expired|\berror)|\binvalid\s+(?:api.?key|token|credential)|\bsession\s+(?:expired|invalid)/.test(
@@ -2621,8 +2624,16 @@ function classifyCodexErrorText(raw) {
2621
2624
  if (/billing|credit|payment/.test(msg)) return "billing_error";
2622
2625
  return null;
2623
2626
  }
2627
+ function buildStaleCodexCredentialsMessage(raw) {
2628
+ return `${raw}
2629
+
2630
+ Codex\u2019s backend rejected this machine\u2019s stored credentials, so retrying will keep failing. The Codex login is likely stale \u2014 run \`codex logout && codex login\` in a terminal, then retry.`;
2631
+ }
2624
2632
  function translateWarningNotification(warn) {
2625
2633
  const classified = classifyCodexErrorText(warn.message);
2634
+ if (classified === "stale_credentials") {
2635
+ return { type: "sdk_error", error: buildStaleCodexCredentialsMessage(warn.message) };
2636
+ }
2626
2637
  if (classified === "usage_limit") {
2627
2638
  return {
2628
2639
  type: "rate_limit",
@@ -2674,6 +2685,9 @@ function translateErrorNotification(params) {
2674
2685
  }
2675
2686
  }
2676
2687
  const classified = classifyCodexErrorText(message);
2688
+ if (classified === "stale_credentials") {
2689
+ return { type: "sdk_error", error: buildStaleCodexCredentialsMessage(message) };
2690
+ }
2677
2691
  if (classified === "auth_required") {
2678
2692
  return { type: "auth_not_logged_in" };
2679
2693
  }
@@ -8337,6 +8351,7 @@ export {
8337
8351
  translateCommandExecutionOutputDelta,
8338
8352
  translateFileChangePatchUpdated,
8339
8353
  classifyCodexErrorText,
8354
+ buildStaleCodexCredentialsMessage,
8340
8355
  translateWarningNotification,
8341
8356
  translateAccountRateLimitsUpdated,
8342
8357
  translateErrorNotification,
@@ -8427,4 +8442,4 @@ export {
8427
8442
  refreshInstalledAgents,
8428
8443
  refreshCodexAuthSlice
8429
8444
  };
8430
- //# sourceMappingURL=chunk-P56H5RCU.js.map
8445
+ //# sourceMappingURL=chunk-HBQHLK4G.js.map