@schoolai/shipyard 3.5.0-rc.20260504.0 → 3.5.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 (52) hide show
  1. package/dist/{auth-LS3NBD42.js → auth-SS7LV5XK.js} +4 -3
  2. package/dist/{chunk-GLH3V7NG.js → chunk-2J3WSIAF.js} +5 -3
  3. package/dist/{chunk-GLH3V7NG.js.map → chunk-2J3WSIAF.js.map} +1 -1
  4. package/dist/{chunk-YUG27SAR.js → chunk-2UN5AR7V.js} +2 -2
  5. package/dist/{chunk-ODCN6W33.js → chunk-3CAEALVL.js} +7 -5
  6. package/dist/{chunk-ODCN6W33.js.map → chunk-3CAEALVL.js.map} +1 -1
  7. package/dist/chunk-3MNPDCO5.js +1011 -0
  8. package/dist/chunk-3MNPDCO5.js.map +1 -0
  9. package/dist/{chunk-JQ7HCEFS.js → chunk-BNEE7ZPW.js} +8 -6
  10. package/dist/{chunk-JQ7HCEFS.js.map → chunk-BNEE7ZPW.js.map} +1 -1
  11. package/dist/{chunk-5LIPEC7P.js → chunk-GIFN3IPT.js} +4 -4
  12. package/dist/{chunk-3TB4VNFG.js → chunk-IISLTKYY.js} +2 -2
  13. package/dist/chunk-PI77CUEP.js +49 -0
  14. package/dist/chunk-PI77CUEP.js.map +1 -0
  15. package/dist/chunk-SNYEQHUK.js +64 -0
  16. package/dist/chunk-SNYEQHUK.js.map +1 -0
  17. package/dist/{chunk-XXTIKBCU.js → chunk-VBPHGPBR.js} +2 -2
  18. package/dist/{chunk-M5M6VC5F.js → chunk-VPMN47TL.js} +31 -72
  19. package/dist/chunk-VPMN47TL.js.map +1 -0
  20. package/dist/{git-repo-CNIKBYPB.js → git-repo-364VANDM.js} +5 -4
  21. package/dist/index.js +9 -8
  22. package/dist/index.js.map +1 -1
  23. package/dist/{logger-7XW3I4XN.js → logger-GQCSLSZH.js} +4 -3
  24. package/dist/{login-RHZDNC74.js → login-D6USDG5M.js} +7 -6
  25. package/dist/{logout-CUAAF5IK.js → logout-VUNCW5B2.js} +6 -5
  26. package/dist/{logout-CUAAF5IK.js.map → logout-VUNCW5B2.js.map} +1 -1
  27. package/dist/mcp-servers-FZV2P2ZO.js +16 -0
  28. package/dist/{roi-LN7MMRH7.js → roi-Y3MX5UW4.js} +4 -3
  29. package/dist/{roi-LN7MMRH7.js.map → roi-Y3MX5UW4.js.map} +1 -1
  30. package/dist/{serve-E7CHPJD4.js → serve-IVUGCBEE.js} +73 -462
  31. package/dist/{serve-E7CHPJD4.js.map → serve-IVUGCBEE.js.map} +1 -1
  32. package/dist/services/watcher-worker/worker.d.ts +49 -0
  33. package/dist/services/watcher-worker/worker.js +157 -0
  34. package/dist/services/watcher-worker/worker.js.map +1 -0
  35. package/dist/{skills-OMDIMU7D.js → skills-GPGRNV4R.js} +2 -2
  36. package/dist/start-I7ZONWK7.js +285 -0
  37. package/dist/start-I7ZONWK7.js.map +1 -0
  38. package/package.json +1 -1
  39. package/dist/chunk-M5M6VC5F.js.map +0 -1
  40. package/dist/mcp-servers-3SHS2PEJ.js +0 -15
  41. package/dist/start-HQ42GOYF.js +0 -36
  42. package/dist/start-HQ42GOYF.js.map +0 -1
  43. /package/dist/{auth-LS3NBD42.js.map → auth-SS7LV5XK.js.map} +0 -0
  44. /package/dist/{chunk-YUG27SAR.js.map → chunk-2UN5AR7V.js.map} +0 -0
  45. /package/dist/{chunk-5LIPEC7P.js.map → chunk-GIFN3IPT.js.map} +0 -0
  46. /package/dist/{chunk-3TB4VNFG.js.map → chunk-IISLTKYY.js.map} +0 -0
  47. /package/dist/{chunk-XXTIKBCU.js.map → chunk-VBPHGPBR.js.map} +0 -0
  48. /package/dist/{git-repo-CNIKBYPB.js.map → git-repo-364VANDM.js.map} +0 -0
  49. /package/dist/{logger-7XW3I4XN.js.map → logger-GQCSLSZH.js.map} +0 -0
  50. /package/dist/{login-RHZDNC74.js.map → login-D6USDG5M.js.map} +0 -0
  51. /package/dist/{mcp-servers-3SHS2PEJ.js.map → mcp-servers-FZV2P2ZO.js.map} +0 -0
  52. /package/dist/{skills-OMDIMU7D.js.map → skills-GPGRNV4R.js.map} +0 -0
@@ -506,7 +506,7 @@ __export(core_exports2, {
506
506
  parse: () => parse,
507
507
  parseAsync: () => parseAsync,
508
508
  prettifyError: () => prettifyError,
509
- process: () => process2,
509
+ process: () => process,
510
510
  regexes: () => regexes_exports,
511
511
  registry: () => registry,
512
512
  safeDecode: () => safeDecode,
@@ -10907,7 +10907,7 @@ function initializeContext(params) {
10907
10907
  external: params?.external ?? void 0
10908
10908
  };
10909
10909
  }
10910
- function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
10910
+ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
10911
10911
  var _a2;
10912
10912
  const def = schema._zod.def;
10913
10913
  const seen = ctx.seen.get(schema);
@@ -10944,7 +10944,7 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
10944
10944
  if (parent) {
10945
10945
  if (!result.ref)
10946
10946
  result.ref = parent;
10947
- process2(parent, ctx, params);
10947
+ process(parent, ctx, params);
10948
10948
  ctx.seen.get(parent).isParent = true;
10949
10949
  }
10950
10950
  }
@@ -11225,14 +11225,14 @@ function isTransforming(_schema, _ctx) {
11225
11225
  }
11226
11226
  var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
11227
11227
  const ctx = initializeContext({ ...params, processors });
11228
- process2(schema, ctx);
11228
+ process(schema, ctx);
11229
11229
  extractDefs(ctx, schema);
11230
11230
  return finalize(ctx, schema);
11231
11231
  };
11232
11232
  var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
11233
11233
  const { libraryOptions, target } = params ?? {};
11234
11234
  const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
11235
- process2(schema, ctx);
11235
+ process(schema, ctx);
11236
11236
  extractDefs(ctx, schema);
11237
11237
  return finalize(ctx, schema);
11238
11238
  };
@@ -11489,7 +11489,7 @@ var arrayProcessor = (schema, ctx, _json, params) => {
11489
11489
  if (typeof maximum === "number")
11490
11490
  json2.maxItems = maximum;
11491
11491
  json2.type = "array";
11492
- json2.items = process2(def.element, ctx, { ...params, path: [...params.path, "items"] });
11492
+ json2.items = process(def.element, ctx, { ...params, path: [...params.path, "items"] });
11493
11493
  };
11494
11494
  var objectProcessor = (schema, ctx, _json, params) => {
11495
11495
  const json2 = _json;
@@ -11498,7 +11498,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
11498
11498
  json2.properties = {};
11499
11499
  const shape = def.shape;
11500
11500
  for (const key in shape) {
11501
- json2.properties[key] = process2(shape[key], ctx, {
11501
+ json2.properties[key] = process(shape[key], ctx, {
11502
11502
  ...params,
11503
11503
  path: [...params.path, "properties", key]
11504
11504
  });
@@ -11521,7 +11521,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
11521
11521
  if (ctx.io === "output")
11522
11522
  json2.additionalProperties = false;
11523
11523
  } else if (def.catchall) {
11524
- json2.additionalProperties = process2(def.catchall, ctx, {
11524
+ json2.additionalProperties = process(def.catchall, ctx, {
11525
11525
  ...params,
11526
11526
  path: [...params.path, "additionalProperties"]
11527
11527
  });
@@ -11530,7 +11530,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
11530
11530
  var unionProcessor = (schema, ctx, json2, params) => {
11531
11531
  const def = schema._zod.def;
11532
11532
  const isExclusive = def.inclusive === false;
11533
- const options = def.options.map((x, i) => process2(x, ctx, {
11533
+ const options = def.options.map((x, i) => process(x, ctx, {
11534
11534
  ...params,
11535
11535
  path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
11536
11536
  }));
@@ -11542,11 +11542,11 @@ var unionProcessor = (schema, ctx, json2, params) => {
11542
11542
  };
11543
11543
  var intersectionProcessor = (schema, ctx, json2, params) => {
11544
11544
  const def = schema._zod.def;
11545
- const a = process2(def.left, ctx, {
11545
+ const a = process(def.left, ctx, {
11546
11546
  ...params,
11547
11547
  path: [...params.path, "allOf", 0]
11548
11548
  });
11549
- const b = process2(def.right, ctx, {
11549
+ const b = process(def.right, ctx, {
11550
11550
  ...params,
11551
11551
  path: [...params.path, "allOf", 1]
11552
11552
  });
@@ -11563,11 +11563,11 @@ var tupleProcessor = (schema, ctx, _json, params) => {
11563
11563
  json2.type = "array";
11564
11564
  const prefixPath = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
11565
11565
  const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
11566
- const prefixItems = def.items.map((x, i) => process2(x, ctx, {
11566
+ const prefixItems = def.items.map((x, i) => process(x, ctx, {
11567
11567
  ...params,
11568
11568
  path: [...params.path, prefixPath, i]
11569
11569
  }));
11570
- const rest = def.rest ? process2(def.rest, ctx, {
11570
+ const rest = def.rest ? process(def.rest, ctx, {
11571
11571
  ...params,
11572
11572
  path: [...params.path, restPath, ...ctx.target === "openapi-3.0" ? [def.items.length] : []]
11573
11573
  }) : null;
@@ -11607,7 +11607,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
11607
11607
  const keyBag = keyType._zod.bag;
11608
11608
  const patterns = keyBag?.patterns;
11609
11609
  if (def.mode === "loose" && patterns && patterns.size > 0) {
11610
- const valueSchema = process2(def.valueType, ctx, {
11610
+ const valueSchema = process(def.valueType, ctx, {
11611
11611
  ...params,
11612
11612
  path: [...params.path, "patternProperties", "*"]
11613
11613
  });
@@ -11617,12 +11617,12 @@ var recordProcessor = (schema, ctx, _json, params) => {
11617
11617
  }
11618
11618
  } else {
11619
11619
  if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
11620
- json2.propertyNames = process2(def.keyType, ctx, {
11620
+ json2.propertyNames = process(def.keyType, ctx, {
11621
11621
  ...params,
11622
11622
  path: [...params.path, "propertyNames"]
11623
11623
  });
11624
11624
  }
11625
- json2.additionalProperties = process2(def.valueType, ctx, {
11625
+ json2.additionalProperties = process(def.valueType, ctx, {
11626
11626
  ...params,
11627
11627
  path: [...params.path, "additionalProperties"]
11628
11628
  });
@@ -11637,7 +11637,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
11637
11637
  };
11638
11638
  var nullableProcessor = (schema, ctx, json2, params) => {
11639
11639
  const def = schema._zod.def;
11640
- const inner = process2(def.innerType, ctx, params);
11640
+ const inner = process(def.innerType, ctx, params);
11641
11641
  const seen = ctx.seen.get(schema);
11642
11642
  if (ctx.target === "openapi-3.0") {
11643
11643
  seen.ref = def.innerType;
@@ -11648,20 +11648,20 @@ var nullableProcessor = (schema, ctx, json2, params) => {
11648
11648
  };
11649
11649
  var nonoptionalProcessor = (schema, ctx, _json, params) => {
11650
11650
  const def = schema._zod.def;
11651
- process2(def.innerType, ctx, params);
11651
+ process(def.innerType, ctx, params);
11652
11652
  const seen = ctx.seen.get(schema);
11653
11653
  seen.ref = def.innerType;
11654
11654
  };
11655
11655
  var defaultProcessor = (schema, ctx, json2, params) => {
11656
11656
  const def = schema._zod.def;
11657
- process2(def.innerType, ctx, params);
11657
+ process(def.innerType, ctx, params);
11658
11658
  const seen = ctx.seen.get(schema);
11659
11659
  seen.ref = def.innerType;
11660
11660
  json2.default = JSON.parse(JSON.stringify(def.defaultValue));
11661
11661
  };
11662
11662
  var prefaultProcessor = (schema, ctx, json2, params) => {
11663
11663
  const def = schema._zod.def;
11664
- process2(def.innerType, ctx, params);
11664
+ process(def.innerType, ctx, params);
11665
11665
  const seen = ctx.seen.get(schema);
11666
11666
  seen.ref = def.innerType;
11667
11667
  if (ctx.io === "input")
@@ -11669,7 +11669,7 @@ var prefaultProcessor = (schema, ctx, json2, params) => {
11669
11669
  };
11670
11670
  var catchProcessor = (schema, ctx, json2, params) => {
11671
11671
  const def = schema._zod.def;
11672
- process2(def.innerType, ctx, params);
11672
+ process(def.innerType, ctx, params);
11673
11673
  const seen = ctx.seen.get(schema);
11674
11674
  seen.ref = def.innerType;
11675
11675
  let catchValue;
@@ -11683,32 +11683,32 @@ var catchProcessor = (schema, ctx, json2, params) => {
11683
11683
  var pipeProcessor = (schema, ctx, _json, params) => {
11684
11684
  const def = schema._zod.def;
11685
11685
  const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
11686
- process2(innerType, ctx, params);
11686
+ process(innerType, ctx, params);
11687
11687
  const seen = ctx.seen.get(schema);
11688
11688
  seen.ref = innerType;
11689
11689
  };
11690
11690
  var readonlyProcessor = (schema, ctx, json2, params) => {
11691
11691
  const def = schema._zod.def;
11692
- process2(def.innerType, ctx, params);
11692
+ process(def.innerType, ctx, params);
11693
11693
  const seen = ctx.seen.get(schema);
11694
11694
  seen.ref = def.innerType;
11695
11695
  json2.readOnly = true;
11696
11696
  };
11697
11697
  var promiseProcessor = (schema, ctx, _json, params) => {
11698
11698
  const def = schema._zod.def;
11699
- process2(def.innerType, ctx, params);
11699
+ process(def.innerType, ctx, params);
11700
11700
  const seen = ctx.seen.get(schema);
11701
11701
  seen.ref = def.innerType;
11702
11702
  };
11703
11703
  var optionalProcessor = (schema, ctx, _json, params) => {
11704
11704
  const def = schema._zod.def;
11705
- process2(def.innerType, ctx, params);
11705
+ process(def.innerType, ctx, params);
11706
11706
  const seen = ctx.seen.get(schema);
11707
11707
  seen.ref = def.innerType;
11708
11708
  };
11709
11709
  var lazyProcessor = (schema, ctx, _json, params) => {
11710
11710
  const innerType = schema._zod.innerType;
11711
- process2(innerType, ctx, params);
11711
+ process(innerType, ctx, params);
11712
11712
  const seen = ctx.seen.get(schema);
11713
11713
  seen.ref = innerType;
11714
11714
  };
@@ -11760,7 +11760,7 @@ function toJSONSchema(input, params) {
11760
11760
  const defs = {};
11761
11761
  for (const entry of registry2._idmap.entries()) {
11762
11762
  const [_, schema] = entry;
11763
- process2(schema, ctx2);
11763
+ process(schema, ctx2);
11764
11764
  }
11765
11765
  const schemas = {};
11766
11766
  const external = {
@@ -11783,7 +11783,7 @@ function toJSONSchema(input, params) {
11783
11783
  return { schemas };
11784
11784
  }
11785
11785
  const ctx = initializeContext({ ...params, processors: allProcessors });
11786
- process2(input, ctx);
11786
+ process(input, ctx);
11787
11787
  extractDefs(ctx, input);
11788
11788
  return finalize(ctx, input);
11789
11789
  }
@@ -11841,7 +11841,7 @@ var JSONSchemaGenerator = class {
11841
11841
  * This must be called before emit().
11842
11842
  */
11843
11843
  process(schema, _params = { path: [], schemaPath: [] }) {
11844
- return process2(schema, this.ctx, _params);
11844
+ return process(schema, this.ctx, _params);
11845
11845
  }
11846
11846
  /**
11847
11847
  * Emit the final JSON Schema after processing.
@@ -13771,49 +13771,8 @@ function date4(params) {
13771
13771
  // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
13772
13772
  config(en_default());
13773
13773
 
13774
- // src/shared/env.ts
13775
- import { homedir } from "os";
13776
- import { join } from "path";
13777
- process.env.CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING = "1";
13778
- process.env.CLAUDE_CODE_ENABLE_TASKS = "1";
13779
- function isDevMode() {
13780
- return process.env.SHIPYARD_DEV === "1" || process.env.SHIPYARD_DEV === "true";
13781
- }
13782
- function isVanillaAgentMode() {
13783
- return process.env.SHIPYARD_VANILLA_AGENT === "1" || process.env.SHIPYARD_VANILLA_AGENT === "true";
13784
- }
13785
- function shipyardDirName() {
13786
- return isDevMode() ? ".shipyard-dev" : ".shipyard";
13787
- }
13788
- function getShipyardHome() {
13789
- if (process.env.SHIPYARD_HOME) return process.env.SHIPYARD_HOME;
13790
- return join(homedir(), shipyardDirName());
13791
- }
13792
- var EnvSchema = external_exports.object({
13793
- ANTHROPIC_API_KEY: external_exports.string().min(1).optional(),
13794
- SHIPYARD_DEV: external_exports.enum(["1", "true", "0", "false", ""]).optional().transform((v) => v === "1" || v === "true"),
13795
- SHIPYARD_DATA_DIR: external_exports.string().optional().transform((v) => v ?? `~/${shipyardDirName()}/data`),
13796
- LOG_LEVEL: external_exports.enum(["debug", "info", "warn", "error"]).default("warn"),
13797
- SHIPYARD_SIGNALING_URL: external_exports.string().url().optional(),
13798
- SHIPYARD_USER_TOKEN: external_exports.string().optional(),
13799
- SHIPYARD_USER_ID: external_exports.string().optional(),
13800
- SHIPYARD_MACHINE_ID: external_exports.string().optional(),
13801
- SHIPYARD_MACHINE_NAME: external_exports.string().optional(),
13802
- SHIPYARD_USER_DISPLAY_NAME: external_exports.string().optional(),
13803
- SHIPYARD_HOME: external_exports.string().optional(),
13804
- SHIPYARD_WORKTREE_NAME: external_exports.string().optional(),
13805
- SHIPYARD_VANILLA_AGENT: external_exports.enum(["1", "true", "0", "false", ""]).optional().transform((v) => v === "1" || v === "true")
13806
- });
13807
- function validateEnv() {
13808
- return EnvSchema.parse(process.env);
13809
- }
13810
-
13811
13774
  export {
13812
13775
  toJSONSchema,
13813
- external_exports,
13814
- isDevMode,
13815
- isVanillaAgentMode,
13816
- getShipyardHome,
13817
- validateEnv
13776
+ external_exports
13818
13777
  };
13819
- //# sourceMappingURL=chunk-M5M6VC5F.js.map
13778
+ //# sourceMappingURL=chunk-VPMN47TL.js.map