deepline 0.3.344 → 0.3.346

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 (95) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +240 -66
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +40 -18
  4. package/dist/cli/auth-5YTC2XH2.js +31 -0
  5. package/dist/cli/{auth-KHHPB2DO.mjs → auth-HTWHQNMY.mjs} +4 -4
  6. package/dist/cli/{billing-HAR4AJZT.js → billing-4DCHVGO5.js} +71 -71
  7. package/dist/cli/{billing-RLK734WE.mjs → billing-X56CVZWC.mjs} +4 -4
  8. package/dist/cli/{chunk-SJIF45BK.js → chunk-22GXXUTB.js} +4 -4
  9. package/dist/cli/{chunk-DRHVFFMJ.mjs → chunk-2GRMXCLZ.mjs} +1 -1
  10. package/dist/cli/{chunk-FHCBNR7M.js → chunk-2RJ7RMRM.js} +8 -8
  11. package/dist/cli/{chunk-2MSG6WCC.mjs → chunk-3GLIYDIF.mjs} +2 -2
  12. package/dist/cli/{chunk-VL5IYXS3.js → chunk-4Q572AVS.js} +6 -6
  13. package/dist/cli/{chunk-TYPYDSNY.js → chunk-5NNSJTJ3.js} +9 -9
  14. package/dist/cli/{chunk-475OQE7H.js → chunk-5QG2UAYH.js} +2 -2
  15. package/dist/cli/{chunk-QZMF7VDU.mjs → chunk-62TKYGY6.mjs} +3 -3
  16. package/dist/cli/{chunk-JXCEXXKW.js → chunk-EJ2NVO5K.js} +48 -48
  17. package/dist/cli/{chunk-BQYPKV4P.mjs → chunk-GCBLVWDQ.mjs} +6 -6
  18. package/dist/cli/{chunk-Y6PJVWDY.js → chunk-GGSLHWTB.js} +1 -1
  19. package/dist/cli/{chunk-23D4YCM6.mjs → chunk-KQCTQGUU.mjs} +1 -1
  20. package/dist/cli/{chunk-MQIHCQ5Z.js → chunk-L2R72RQJ.js} +8 -8
  21. package/dist/cli/{chunk-RN7NIZIL.mjs → chunk-MOVEHSNM.mjs} +1 -1
  22. package/dist/cli/{chunk-4DIFNYJZ.mjs → chunk-NVNHV73C.mjs} +2 -2
  23. package/dist/cli/{chunk-M5FYGL42.mjs → chunk-O4SXVVNQ.mjs} +1 -1
  24. package/dist/cli/{chunk-CIV43IXR.mjs → chunk-P4IKGWYF.mjs} +4 -4
  25. package/dist/cli/{chunk-ZUHK5OX3.js → chunk-SGBSQHXS.js} +45 -45
  26. package/dist/cli/{chunk-QO6T7ETF.js → chunk-T7EVEXHS.js} +15 -15
  27. package/dist/cli/{chunk-J5NN6XCF.mjs → chunk-VC7M2QR7.mjs} +1 -1
  28. package/dist/cli/{chunk-CMK6UNJA.mjs → chunk-WKZTHHJI.mjs} +5 -5
  29. package/dist/cli/{chunk-XRZUDK6O.mjs → chunk-XAM3XOUA.mjs} +2 -2
  30. package/dist/cli/{chunk-J5P35NOT.js → chunk-YEKAGC52.js} +60 -60
  31. package/dist/cli/{chunk-LELCMU5K.js → chunk-YUKZHAFW.js} +26 -26
  32. package/dist/cli/{chunk-UWV3BA43.js → chunk-ZEUFYRUR.js} +225 -225
  33. package/dist/cli/{chunk-GJYCHN2L.mjs → chunk-ZR4EHO62.mjs} +2 -2
  34. package/dist/cli/client-4RKYHB7Z.js +20 -0
  35. package/dist/cli/{client-JWDU663V.mjs → client-C2KUT452.mjs} +3 -3
  36. package/dist/cli/{csv-7AW5GZ4K.js → csv-3TAA2MTR.js} +12 -12
  37. package/dist/cli/{csv-CIAWYPZO.mjs → csv-SLACAH4F.mjs} +3 -3
  38. package/dist/cli/{db-UENUIWQN.js → db-BT6Q3FE6.js} +29 -29
  39. package/dist/cli/{db-SX73JJBH.mjs → db-IN4I6KJ5.mjs} +4 -4
  40. package/dist/cli/{describe-4SC5G2FG.mjs → describe-EDXTYMOF.mjs} +8 -8
  41. package/dist/cli/{describe-7OGZQAGF.js → describe-FJZXYKFH.js} +15 -15
  42. package/dist/cli/{executions-YB4IAUTW.mjs → executions-X36QA5NY.mjs} +4 -4
  43. package/dist/cli/{executions-UDXQNB34.js → executions-YYQC2TVR.js} +6 -6
  44. package/dist/cli/{feedback-5SGAGRAW.js → feedback-BS3S46O3.js} +7 -7
  45. package/dist/cli/{feedback-76QWZSW3.mjs → feedback-KTEPHZ4S.mjs} +3 -3
  46. package/dist/cli/{git-ESESPEVB.mjs → git-3ZVYB63W.mjs} +4 -4
  47. package/dist/cli/git-ZHAD5TJN.js +23 -0
  48. package/dist/cli/index.js +79 -79
  49. package/dist/cli/index.mjs +31 -31
  50. package/dist/cli/{legacy-noops-E74OIJCW.js → legacy-noops-V5R7ITER.js} +7 -7
  51. package/dist/cli/{legacy-noops-6F6QSRDB.mjs → legacy-noops-VVBJXM2K.mjs} +4 -4
  52. package/dist/cli/{monitors-4MIXICCR.js → monitors-J6XDE76B.js} +85 -85
  53. package/dist/cli/{monitors-USOHPXUY.mjs → monitors-KYTMBNUQ.mjs} +4 -4
  54. package/dist/cli/{org-DO3Q6L7S.js → org-MHF2NGDV.js} +60 -60
  55. package/dist/cli/{org-2RRIFNXJ.mjs → org-RGABGQKP.mjs} +4 -4
  56. package/dist/cli/{play-KAXYPLCQ.mjs → play-UII4SSA7.mjs} +7 -7
  57. package/dist/cli/play-ZWAH3U44.js +153 -0
  58. package/dist/cli/{providers-RCUITFFY.js → providers-3GDMD7T6.js} +7 -7
  59. package/dist/cli/{providers-FKHLPGQO.mjs → providers-LQOSKPUH.mjs} +4 -4
  60. package/dist/cli/{quickstart-CDBWA6IK.mjs → quickstart-GAMYLCLJ.mjs} +3 -3
  61. package/dist/cli/{quickstart-XGU4M4Z5.js → quickstart-R34Z7EMU.js} +5 -5
  62. package/dist/cli/{search-QA4DAJPS.mjs → search-AOOMDVF5.mjs} +5 -5
  63. package/dist/cli/search-FVB7ZNCO.js +26 -0
  64. package/dist/cli/{secrets-KYKXEHNR.js → secrets-T4XXIASK.js} +13 -13
  65. package/dist/cli/{secrets-6S2CDL2M.mjs → secrets-U7YGLUSX.mjs} +4 -4
  66. package/dist/cli/{sessions-PWAIUF7I.js → sessions-JQGKWKJS.js} +5 -5
  67. package/dist/cli/{sessions-WGLVMQYC.mjs → sessions-VPXR4DSZ.mjs} +4 -4
  68. package/dist/cli/{settings-FQ5CWYNQ.mjs → settings-LP55G43L.mjs} +7 -7
  69. package/dist/cli/{settings-CNWO5VFJ.js → settings-LXF45R7X.js} +74 -74
  70. package/dist/cli/{setup-RRT66ENS.mjs → setup-36QA4JI3.mjs} +6 -6
  71. package/dist/cli/{setup-ABIO2LJD.js → setup-MA2GLU4N.js} +41 -41
  72. package/dist/cli/skills-GUWC4FV7.js +28 -0
  73. package/dist/cli/{skills-3LY2RQE3.mjs → skills-HB6PARLZ.mjs} +4 -4
  74. package/dist/cli/{tools-TQMHPW3U.mjs → tools-E7K7R4AO.mjs} +6 -6
  75. package/dist/cli/tools-T5WIAD5Z.js +40 -0
  76. package/dist/cli/{update-6U4ASVZX.mjs → update-IT63P3NV.mjs} +6 -6
  77. package/dist/cli/update-QY6RY3A6.js +28 -0
  78. package/dist/cli/{workflow-GVXAFVXF.js → workflow-SJHASZ5C.js} +15 -15
  79. package/dist/cli/{workflow-XLE4N3W3.mjs → workflow-UO3PMX7R.mjs} +5 -5
  80. package/dist/index.js +6 -6
  81. package/dist/index.mjs +3 -3
  82. package/dist/install-integrity.json +74 -74
  83. package/dist/release.d.mts +1 -1
  84. package/dist/release.d.ts +1 -1
  85. package/dist/release.js +2 -2
  86. package/dist/release.mjs +1 -1
  87. package/package.json +1 -1
  88. package/dist/cli/auth-6ABMIWQQ.js +0 -31
  89. package/dist/cli/client-KETSZR46.js +0 -20
  90. package/dist/cli/git-4PRJV7B3.js +0 -23
  91. package/dist/cli/play-SHRBJAO4.js +0 -153
  92. package/dist/cli/search-ZHYH2BA3.js +0 -26
  93. package/dist/cli/skills-OBTT3OF7.js +0 -28
  94. package/dist/cli/tools-DMXHSMU2.js +0 -40
  95. package/dist/cli/update-4CK752WQ.js +0 -28
@@ -10,7 +10,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
10
10
 
11
11
 
12
12
 
13
- var _chunkFHCBNR7Mjs = require('./chunk-FHCBNR7M.js');
13
+ var _chunk2RJ7RMRMjs = require('./chunk-2RJ7RMRM.js');
14
14
 
15
15
 
16
16
 
@@ -22,7 +22,7 @@ var _chunkNXDRDJ4Kjs = require('./chunk-NXDRDJ4K.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkTYPYDSNYjs = require('./chunk-TYPYDSNY.js');
25
+ var _chunk5NNSJTJ3js = require('./chunk-5NNSJTJ3.js');
26
26
 
27
27
 
28
28
 
@@ -36,11 +36,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
36
36
 
37
37
 
38
38
 
39
- var _chunkVL5IYXS3js = require('./chunk-VL5IYXS3.js');
39
+ var _chunk4Q572AVSjs = require('./chunk-4Q572AVS.js');
40
40
 
41
41
 
42
42
 
43
- var _chunkSJIF45BKjs = require('./chunk-SJIF45BK.js');
43
+ var _chunk22GXXUTBjs = require('./chunk-22GXXUTB.js');
44
44
 
45
45
 
46
46
  var _chunkFKKNYKDYjs = require('./chunk-FKKNYKDY.js');
@@ -88,10 +88,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
88
88
  }
89
89
  };
90
90
  function pendingToolExecutionPath(input) {
91
- const config = _chunkSJIF45BKjs.resolveConfig.call(void 0, );
91
+ const config = _chunk22GXXUTBjs.resolveConfig.call(void 0, );
92
92
  const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkNXDRDJ4Kjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
93
93
  return _path.join.call(void 0,
94
- _chunkSJIF45BKjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
94
+ _chunk22GXXUTBjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
95
95
  `pending-tool-execution-${fingerprint}.json`
96
96
  );
97
97
  }
@@ -535,12 +535,12 @@ function categoryEnumerationRender(summaries) {
535
535
  };
536
536
  }
537
537
  async function listToolCategories(emitJson, compact) {
538
- const client = new (0, _chunkTYPYDSNYjs.DeeplineClient)();
538
+ const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
539
539
  const rawTools = await client.listTools({ compact });
540
540
  const items = rawTools.map(toListedTool);
541
541
  const summaries = aggregateCategorySummaries(rawTools);
542
542
  const outputItems = compact ? items.map(compactTool) : items;
543
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0,
543
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
544
544
  {
545
545
  tools: outputItems,
546
546
  count: outputItems.length,
@@ -559,7 +559,7 @@ function unknownCategoryError(category, summaries, emitJson) {
559
559
  const known = summaries.map((item) => item.name);
560
560
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
561
561
  if (emitJson) {
562
- _chunkVL5IYXS3js.printJson.call(void 0, {
562
+ _chunk4Q572AVSjs.printJson.call(void 0, {
563
563
  ok: false,
564
564
  exitCode: 4,
565
565
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -573,13 +573,13 @@ function unknownCategoryError(category, summaries, emitJson) {
573
573
  const render = categoryEnumerationRender(summaries);
574
574
  console.error(message);
575
575
  console.error("");
576
- console.error(_chunkVL5IYXS3js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
576
+ console.error(_chunk4Q572AVSjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
577
577
  console.error("");
578
578
  console.error(`Valid categories: ${known.join(", ")}`);
579
579
  return 4;
580
580
  }
581
581
  async function listToolsInCategory(category, emitJson) {
582
- const client = new (0, _chunkTYPYDSNYjs.DeeplineClient)();
582
+ const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
583
583
  const rawTools = await client.listTools({
584
584
  categories: category,
585
585
  compact: false
@@ -616,7 +616,7 @@ async function listToolsInCategory(category, emitJson) {
616
616
  }
617
617
  ]
618
618
  };
619
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0,
619
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
620
620
  {
621
621
  category,
622
622
  total: rows.length,
@@ -629,7 +629,7 @@ async function listToolsInCategory(category, emitJson) {
629
629
  return 0;
630
630
  }
631
631
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
632
- const client = new (0, _chunkTYPYDSNYjs.DeeplineClient)();
632
+ const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
633
633
  const items = (await client.listTools({
634
634
  categories: requestedCategories.join(","),
635
635
  compact
@@ -658,7 +658,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
658
658
  ]
659
659
  };
660
660
  const outputItems = compact ? items.map(compactTool) : items;
661
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0,
661
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
662
662
  {
663
663
  tools: outputItems,
664
664
  count: outputItems.length,
@@ -677,13 +677,13 @@ async function listTools(category, options = {}) {
677
677
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]), () => ( ""));
678
678
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
679
679
  const compact = options.compact !== false;
680
- const emitJson = options.json === true || _chunkVL5IYXS3js.shouldEmitJson.call(void 0, );
680
+ const emitJson = options.json === true || _chunk4Q572AVSjs.shouldEmitJson.call(void 0, );
681
681
  if (positional && flagCategories.length > 0) {
682
682
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
683
683
  if (!flagIsSameSingle) {
684
684
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
685
685
  if (emitJson) {
686
- _chunkVL5IYXS3js.printJson.call(void 0, {
686
+ _chunk4Q572AVSjs.printJson.call(void 0, {
687
687
  ok: false,
688
688
  exitCode: 2,
689
689
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -710,7 +710,7 @@ async function grepTools(queryInput, options = {}) {
710
710
  console.error("Usage: deepline tools grep <query> [--json]");
711
711
  return 1;
712
712
  }
713
- const client = new (0, _chunkTYPYDSNYjs.DeeplineClient)();
713
+ const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
714
714
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
715
715
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
716
716
  const jsonOutput = options.json === true;
@@ -753,7 +753,7 @@ async function grepTools(queryInput, options = {}) {
753
753
  query,
754
754
  mode
755
755
  }) : null;
756
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0,
756
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
757
757
  {
758
758
  tools: outputTools,
759
759
  count: outputTools.length,
@@ -771,7 +771,7 @@ async function grepTools(queryInput, options = {}) {
771
771
  } : {},
772
772
  commandTemplates: TOOL_COMMAND_TEMPLATES
773
773
  },
774
- { json: options.json || _chunkVL5IYXS3js.shouldEmitJson.call(void 0, ) }
774
+ { json: options.json || _chunk4Q572AVSjs.shouldEmitJson.call(void 0, ) }
775
775
  );
776
776
  return 0;
777
777
  }
@@ -927,7 +927,7 @@ Examples:
927
927
  json: Boolean(options.json)
928
928
  });
929
929
  });
930
- _chunkFHCBNR7Mjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
930
+ _chunk2RJ7RMRMjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
931
931
  tools.command("grep <query>").description(
932
932
  "Literal grep over tool ids, descriptions, categories, and input fields."
933
933
  ).addHelpText(
@@ -1029,7 +1029,7 @@ Examples:
1029
1029
  process.exitCode = await narrowView();
1030
1030
  return;
1031
1031
  }
1032
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-7OGZQAGF.js")));
1032
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-FJZXYKFH.js")));
1033
1033
  process.exitCode = await describeAnything(
1034
1034
  toolId,
1035
1035
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -1111,7 +1111,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1111
1111
  console.error("Usage: deepline tools describe <toolId> [--json]");
1112
1112
  return 1;
1113
1113
  }
1114
- const client = new (0, _chunkTYPYDSNYjs.DeeplineClient)();
1114
+ const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
1115
1115
  let tool;
1116
1116
  try {
1117
1117
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1165,7 +1165,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1165
1165
  const lines = toolPricingOnlyLines(tool, toolId);
1166
1166
  if (inferenceQuote)
1167
1167
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1168
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0,
1168
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
1169
1169
  {
1170
1170
  toolId: String(tool.toolId || toolId),
1171
1171
  cost: Capability.fromCatalogEntry(tool).describe().customerCost(),
@@ -1183,7 +1183,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1183
1183
  }
1184
1184
  if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
1185
1185
  const contract = toolContractJsonForDescribe(tool, toolId);
1186
- _chunkVL5IYXS3js.printCompactJson.call(void 0, {
1186
+ _chunk4Q572AVSjs.printCompactJson.call(void 0, {
1187
1187
  toolId: contract.toolId,
1188
1188
  ...options.schemaOnly ? {
1189
1189
  inputSchema: contract.inputSchema,
@@ -1206,7 +1206,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1206
1206
  return 0;
1207
1207
  }
1208
1208
  if (options.contractJson) {
1209
- _chunkVL5IYXS3js.printCompactJson.call(void 0, {
1209
+ _chunk4Q572AVSjs.printCompactJson.call(void 0, {
1210
1210
  ...toolContractJsonForDescribe(tool, toolId),
1211
1211
  ...modelDescription ? { modelOptions: modelDescription } : {},
1212
1212
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1215,7 +1215,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1215
1215
  }
1216
1216
  const emitJson = options.json === true;
1217
1217
  if (emitJson) {
1218
- _chunkVL5IYXS3js.printCompactJson.call(void 0, {
1218
+ _chunk4Q572AVSjs.printCompactJson.call(void 0, {
1219
1219
  ...toolMetadataJsonForDescribe(tool, toolId),
1220
1220
  ...modelDescription ? { modelOptions: modelDescription } : {},
1221
1221
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -2626,7 +2626,7 @@ function parseExecuteOptions(toolId, options, output) {
2626
2626
  outputFormat = normalizeOutputFormat(options.outputFormat);
2627
2627
  }
2628
2628
  if (options.idempotencyKey !== void 0) {
2629
- _chunkTYPYDSNYjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2629
+ _chunk5NNSJTJ3js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2630
2630
  }
2631
2631
  if (options.recoveryTimeoutMs !== void 0) {
2632
2632
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2937,20 +2937,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2937
2937
  }
2938
2938
  async function executeTool(toolId, options) {
2939
2939
  const output = toolExecuteJsonOption(options.json);
2940
- const wantsJson = _chunkVL5IYXS3js.shouldEmitJson.call(void 0, output.requested);
2940
+ const wantsJson = _chunk4Q572AVSjs.shouldEmitJson.call(void 0, output.requested);
2941
2941
  let parsed;
2942
2942
  try {
2943
2943
  parsed = parseExecuteOptions(toolId, options, output);
2944
2944
  } catch (error) {
2945
2945
  if (wantsJson) {
2946
- _chunkVL5IYXS3js.printJsonError.call(void 0, error);
2946
+ _chunk4Q572AVSjs.printJsonError.call(void 0, error);
2947
2947
  } else {
2948
2948
  console.error(error instanceof Error ? error.message : String(error));
2949
2949
  }
2950
2950
  return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2951
2951
  }
2952
2952
  const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
2953
- const client = new (0, _chunkTYPYDSNYjs.DeeplineClient)();
2953
+ const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
2954
2954
  let metadata;
2955
2955
  try {
2956
2956
  metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
@@ -2965,7 +2965,7 @@ async function executeTool(toolId, options) {
2965
2965
  );
2966
2966
  if (play) {
2967
2967
  if (wantsJson) {
2968
- _chunkVL5IYXS3js.printJsonError.call(void 0,
2968
+ _chunk4Q572AVSjs.printJsonError.call(void 0,
2969
2969
  new Error(playAliasToolErrorMessage(parsed.toolId, play))
2970
2970
  );
2971
2971
  } else {
@@ -2978,7 +2978,7 @@ async function executeTool(toolId, options) {
2978
2978
  }
2979
2979
  if (isPlayLikeTool(metadata)) {
2980
2980
  if (wantsJson) {
2981
- _chunkVL5IYXS3js.printJsonError.call(void 0,
2981
+ _chunk4Q572AVSjs.printJsonError.call(void 0,
2982
2982
  new Error(
2983
2983
  playLikeToolExecuteErrorMessage(
2984
2984
  parsed.toolId,
@@ -3014,7 +3014,7 @@ async function executeTool(toolId, options) {
3014
3014
  responseIntent,
3015
3015
  ...idempotencyKey ? { idempotencyKey } : {},
3016
3016
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
3017
- searchRef: _chunkFHCBNR7Mjs.recentSearchRef.call(void 0, ),
3017
+ searchRef: _chunk2RJ7RMRMjs.recentSearchRef.call(void 0, ),
3018
3018
  cliInvocationId
3019
3019
  }).catch((error) => {
3020
3020
  const guidanceLines = toolGuidanceLines(metadata.guidance);
@@ -3053,8 +3053,8 @@ async function executeTool(toolId, options) {
3053
3053
  );
3054
3054
  const executeExitCode = toolExecuteExitCode(baseEnvelope);
3055
3055
  const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
3056
- if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && _chunkVL5IYXS3js.shouldEmitJson.call(void 0, ))) {
3057
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3056
+ if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && _chunk4Q572AVSjs.shouldEmitJson.call(void 0, ))) {
3057
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3058
3058
  return true;
3059
3059
  }
3060
3060
  if (parsed.outputFormat === "json_file") {
@@ -3062,7 +3062,7 @@ async function executeTool(toolId, options) {
3062
3062
  rawResponse,
3063
3063
  `payload_${parsed.toolId}`
3064
3064
  );
3065
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0,
3065
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
3066
3066
  {
3067
3067
  ...baseEnvelope,
3068
3068
  local: {
@@ -3084,7 +3084,7 @@ async function executeTool(toolId, options) {
3084
3084
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3085
3085
  );
3086
3086
  if (wantsJson) {
3087
- _chunkVL5IYXS3js.printJsonError.call(void 0, error);
3087
+ _chunk4Q572AVSjs.printJsonError.call(void 0, error);
3088
3088
  } else {
3089
3089
  console.error(error.message);
3090
3090
  }
@@ -3095,18 +3095,18 @@ async function executeTool(toolId, options) {
3095
3095
  rawResponse,
3096
3096
  `payload_${parsed.toolId}`
3097
3097
  );
3098
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0,
3098
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
3099
3099
  {
3100
3100
  ...baseEnvelope,
3101
3101
  local: {
3102
3102
  payload_file: jsonPath
3103
3103
  }
3104
3104
  },
3105
- { json: parsed.outputFormat === "csv_file" || _chunkVL5IYXS3js.shouldEmitJson.call(void 0, ) }
3105
+ { json: parsed.outputFormat === "csv_file" || _chunk4Q572AVSjs.shouldEmitJson.call(void 0, ) }
3106
3106
  );
3107
3107
  return true;
3108
3108
  }
3109
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3109
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3110
3110
  return true;
3111
3111
  }
3112
3112
  const rowOutput = _chunkNXDRDJ4Kjs.projectRowOutput.call(void 0, listConversion);
@@ -3130,7 +3130,7 @@ async function executeTool(toolId, options) {
3130
3130
  seededScript
3131
3131
  });
3132
3132
  if (parsed.outputFormat === "csv_file") {
3133
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3133
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3134
3134
  return true;
3135
3135
  }
3136
3136
  if (parsed.outPath) {
@@ -3138,7 +3138,7 @@ async function executeTool(toolId, options) {
3138
3138
  toolId: parsed.toolId,
3139
3139
  idempotencyKey
3140
3140
  });
3141
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0, materializedEnvelope, {
3141
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3142
3142
  json: wantsJson,
3143
3143
  text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
3144
3144
  inspect: ${inspection.inspect}
@@ -3147,7 +3147,7 @@ inspect: ${inspection.inspect}
3147
3147
  return true;
3148
3148
  }
3149
3149
  if (parsed.noPreview) {
3150
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0,
3150
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
3151
3151
  {
3152
3152
  ...materializedEnvelope,
3153
3153
  local: {
@@ -3155,12 +3155,12 @@ inspect: ${inspection.inspect}
3155
3155
  output_path: csv.path
3156
3156
  }
3157
3157
  },
3158
- { json: _chunkVL5IYXS3js.shouldEmitJson.call(void 0, ), text: `${csv.path}
3158
+ { json: _chunk4Q572AVSjs.shouldEmitJson.call(void 0, ), text: `${csv.path}
3159
3159
  ` }
3160
3160
  );
3161
3161
  return true;
3162
3162
  }
3163
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0, materializedEnvelope, { json: false });
3163
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: false });
3164
3164
  return true;
3165
3165
  });
3166
3166
  if (delivered) {
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunk475OQE7Hjs = require('./chunk-475OQE7H.js');
4
+ var _chunk5QG2UAYHjs = require('./chunk-5QG2UAYH.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkJ5P35NOTjs = require('./chunk-J5P35NOT.js');
8
+ var _chunkYEKAGC52js = require('./chunk-YEKAGC52.js');
9
9
 
10
10
 
11
- var _chunkVL5IYXS3js = require('./chunk-VL5IYXS3.js');
11
+ var _chunk4Q572AVSjs = require('./chunk-4Q572AVS.js');
12
12
 
13
13
 
14
- var _chunkSJIF45BKjs = require('./chunk-SJIF45BK.js');
14
+ var _chunk22GXXUTBjs = require('./chunk-22GXXUTB.js');
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  var _child_process = require('child_process');
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
489
489
  }
490
490
  function resolveNpmGlobalPrefix(env) {
491
491
  try {
492
- const plan = _chunkJ5P35NOTjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
492
+ const plan = _chunkYEKAGC52js.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
493
493
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
494
494
  encoding: "utf8",
495
495
  env,
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
545
545
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
546
546
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
547
547
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
548
- const npmVersion = options.npmVersion === void 0 ? _chunk475OQE7Hjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
- const npmGlobalInstallFlags = _chunk475OQE7Hjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
548
+ const npmVersion = options.npmVersion === void 0 ? _chunk5QG2UAYHjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
+ const npmGlobalInstallFlags = _chunk5QG2UAYHjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
550
550
  const args = installPrefix ? [
551
551
  "install",
552
552
  "-g",
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
556
556
  packageSpec
557
557
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
558
558
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
559
- _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkSJIF45BKjs.autoDetectBaseUrl.call(void 0, )
559
+ _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunk22GXXUTBjs.autoDetectBaseUrl.call(void 0, )
560
560
  );
561
561
  return {
562
562
  kind: "npm-global",
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
703
703
  function runCommand(command, args, env = process.env) {
704
704
  return new Promise((resolveResult) => {
705
705
  let output = "";
706
- const plan = _chunkJ5P35NOTjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
706
+ const plan = _chunkYEKAGC52js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
707
707
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
708
708
  stdio: ["inherit", "pipe", "pipe"],
709
709
  shell: plan.shell,
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1079
1079
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1080
1080
  }
1081
1081
  async function runUpdateCommand(options, dependencies = {}) {
1082
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkSJIF45BKjs.autoDetectBaseUrl));
1082
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk22GXXUTBjs.autoDetectBaseUrl));
1083
1083
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1084
1084
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1085
1085
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1086
1086
  const originalWrite = process.stdout.write.bind(process.stdout);
1087
1087
  process.stdout.write = (() => true);
1088
1088
  try {
1089
- const exitCode = await _chunkJ5P35NOTjs.runSkillsCommand.call(void 0, { json: true });
1089
+ const exitCode = await _chunkYEKAGC52js.runSkillsCommand.call(void 0, { json: true });
1090
1090
  if (exitCode !== 0) {
1091
1091
  throw new Error(
1092
1092
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1157
1157
  ]
1158
1158
  };
1159
1159
  if (options.json && !options.executeWithJson) {
1160
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1160
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1161
1161
  return 0;
1162
1162
  }
1163
1163
  if (options.printCommand) {
1164
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0,
1164
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
1165
1165
  {
1166
1166
  ...plan,
1167
1167
  render: {
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1174
1174
  return 0;
1175
1175
  }
1176
1176
  if (plan.kind === "source" || plan.kind === "homebrew") {
1177
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1177
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1178
1178
  return 0;
1179
1179
  }
1180
1180
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
1204
1204
  );
1205
1205
  }
1206
1206
  if (options.executeWithJson && options.json) {
1207
- _chunkVL5IYXS3js.printCommandEnvelope.call(void 0,
1207
+ _chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
1208
1208
  {
1209
1209
  ok: true,
1210
1210
  pinnedVersion
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-DLIRSHV6.mjs";
5
5
  import {
6
6
  SDK_RELEASE
7
- } from "./chunk-RN7NIZIL.mjs";
7
+ } from "./chunk-MOVEHSNM.mjs";
8
8
  import {
9
9
  DeeplineError,
10
10
  TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  recentSearchRef,
12
12
  registerDeprecatedSearchCommand
13
- } from "./chunk-QZMF7VDU.mjs";
13
+ } from "./chunk-62TKYGY6.mjs";
14
14
  import {
15
15
  extractSummaryFields,
16
16
  projectRowOutput,
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  DeeplineClient,
24
24
  validateExecutionIdempotencyKey
25
- } from "./chunk-23D4YCM6.mjs";
25
+ } from "./chunk-KQCTQGUU.mjs";
26
26
  import {
27
27
  beginToolExecuteCommand,
28
28
  getToolExecuteInvocationId,
@@ -36,11 +36,11 @@ import {
36
36
  printJsonError,
37
37
  renderCommandEnvelopeText,
38
38
  shouldEmitJson
39
- } from "./chunk-DRHVFFMJ.mjs";
39
+ } from "./chunk-2GRMXCLZ.mjs";
40
40
  import {
41
41
  resolveConfig,
42
42
  sdkCliStateDirPath
43
- } from "./chunk-J5NN6XCF.mjs";
43
+ } from "./chunk-VC7M2QR7.mjs";
44
44
  import {
45
45
  playToolListGetterMode
46
46
  } from "./chunk-NTVTZAVZ.mjs";
@@ -1029,7 +1029,7 @@ Examples:
1029
1029
  process.exitCode = await narrowView();
1030
1030
  return;
1031
1031
  }
1032
- const { describeAnything } = await import("./describe-4SC5G2FG.mjs");
1032
+ const { describeAnything } = await import("./describe-EDXTYMOF.mjs");
1033
1033
  process.exitCode = await describeAnything(
1034
1034
  toolId,
1035
1035
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-DRHVFFMJ.mjs";
5
+ } from "./chunk-2GRMXCLZ.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -25,7 +25,7 @@ import {
25
25
  saveHostEnvValues,
26
26
  saveProjectDeeplineEnvValues,
27
27
  storedHostApiKey
28
- } from "./chunk-J5NN6XCF.mjs";
28
+ } from "./chunk-VC7M2QR7.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {