deepline 0.3.374 → 0.3.375

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 (98) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/auth-B7CLYD7R.js +35 -0
  3. package/dist/cli/{auth-YGCDA4WG.mjs → auth-U3Y7DTIG.mjs} +6 -4
  4. package/dist/cli/{billing-ZXRKPD5D.js → billing-P2DNRAND.js} +73 -73
  5. package/dist/cli/{billing-3ZLR3CJU.mjs → billing-TKARGBO3.mjs} +4 -4
  6. package/dist/cli/{chunk-VZSVYNZH.mjs → chunk-4GP56LRE.mjs} +12 -12
  7. package/dist/cli/{chunk-JSK6GUY6.js → chunk-4WINCNNH.js} +13 -9
  8. package/dist/cli/{chunk-NOSIMGZV.js → chunk-ADSZGPYZ.js} +1 -1
  9. package/dist/cli/{chunk-E6BZWURC.mjs → chunk-B2LFDTXZ.mjs} +15 -6
  10. package/dist/cli/{chunk-62IBVKWB.mjs → chunk-B3TQIJ6L.mjs} +1 -1
  11. package/dist/cli/{chunk-PCYCNZLR.js → chunk-CUIBDSSS.js} +8 -8
  12. package/dist/cli/{chunk-HC5L6KGE.js → chunk-DAG4ZBTJ.js} +1495 -1495
  13. package/dist/cli/{chunk-YPVTQRUM.js → chunk-DHTG5CCI.js} +15 -6
  14. package/dist/cli/{chunk-RXR7A2MX.js → chunk-F5CU5ALX.js} +26 -26
  15. package/dist/cli/{chunk-46JCJ7FT.mjs → chunk-FWF24ULX.mjs} +13 -9
  16. package/dist/cli/{chunk-3XKAOV74.js → chunk-GN5QM2BB.js} +6 -6
  17. package/dist/cli/{chunk-T35LCTC7.js → chunk-HEF6UDGA.js} +235 -235
  18. package/dist/cli/{chunk-TZTGK5JQ.js → chunk-HP4BE43N.js} +52 -51
  19. package/dist/cli/{chunk-GT6KGIWV.mjs → chunk-HSIVHAZA.mjs} +3 -3
  20. package/dist/cli/{chunk-IZVGMVNX.mjs → chunk-IG3GOO4T.mjs} +1 -1
  21. package/dist/cli/{chunk-JK547IDB.js → chunk-IQTHRG6E.js} +15 -15
  22. package/dist/cli/{chunk-53PZA4EP.js → chunk-KK4XPUVA.js} +8 -8
  23. package/dist/cli/{chunk-RT5ICJ5V.js → chunk-LZUWGLM4.js} +2 -2
  24. package/dist/cli/{chunk-MOBOAZMA.js → chunk-M2HVNJ47.js} +60 -60
  25. package/dist/cli/{chunk-NNYQ24O5.mjs → chunk-M5QDOHLG.mjs} +1 -1
  26. package/dist/cli/{chunk-YFFH6NDU.mjs → chunk-MKS7C3YR.mjs} +3 -2
  27. package/dist/cli/{chunk-MQ5UW5AZ.mjs → chunk-MPQSBHMA.mjs} +4 -4
  28. package/dist/cli/{chunk-O7KJYX7R.js → chunk-MTBQEND4.js} +15 -15
  29. package/dist/cli/{chunk-X5V2QTDR.js → chunk-NVXMPGM4.js} +65 -84
  30. package/dist/cli/{chunk-OYTPVM2R.mjs → chunk-QEEIEHGV.mjs} +2 -2
  31. package/dist/cli/{chunk-2DAWTVNN.mjs → chunk-SJVJZOPT.mjs} +2 -2
  32. package/dist/cli/{chunk-OS7GXARW.mjs → chunk-STYH5U6W.mjs} +7 -7
  33. package/dist/cli/{chunk-SBB27CIJ.mjs → chunk-Z4ARN4X3.mjs} +2 -2
  34. package/dist/cli/{chunk-FT6O2ZVJ.mjs → chunk-ZFWU5V2A.mjs} +13 -32
  35. package/dist/cli/{chunk-A62HBMHY.mjs → chunk-ZHXPNJQI.mjs} +1467 -1467
  36. package/dist/cli/command-docs.js +2 -2
  37. package/dist/cli/command-docs.mjs +1 -1
  38. package/dist/cli/{csv-VEHHRUG4.mjs → csv-3FTYTEJ3.mjs} +3 -3
  39. package/dist/cli/{csv-WSRTANXI.js → csv-WAEVGKHF.js} +12 -12
  40. package/dist/cli/{db-BH25DX2G.mjs → db-HUGGFIVS.mjs} +4 -4
  41. package/dist/cli/{db-JXZNMFCE.js → db-UDMDGNKO.js} +29 -29
  42. package/dist/cli/{describe-TMBECHTX.mjs → describe-EOBOGTB5.mjs} +130 -20
  43. package/dist/cli/{describe-N2OBGVJM.js → describe-SIAKZYRK.js} +144 -34
  44. package/dist/cli/{executions-TX5CQF66.js → executions-HYYP27MG.js} +6 -6
  45. package/dist/cli/{executions-Y4HQHYSO.mjs → executions-O6Z2HSLK.mjs} +4 -4
  46. package/dist/cli/{feedback-ASEJ5A7I.js → feedback-3DWSBHKS.js} +7 -7
  47. package/dist/cli/{feedback-W7SRXYSP.mjs → feedback-RRAMGMQV.mjs} +3 -3
  48. package/dist/cli/{git-2W7CZZRC.mjs → git-KVAK7VOL.mjs} +4 -4
  49. package/dist/cli/git-M36KWCCG.js +23 -0
  50. package/dist/cli/index.js +106 -91
  51. package/dist/cli/index.mjs +63 -48
  52. package/dist/cli/{legacy-noops-TXMPY3P7.mjs → legacy-noops-MQNCDMY7.mjs} +4 -4
  53. package/dist/cli/{legacy-noops-NJYAAGBY.js → legacy-noops-V5GQXXUR.js} +7 -7
  54. package/dist/cli/{monitors-G4L65QGQ.mjs → monitors-6FB63TDM.mjs} +4 -4
  55. package/dist/cli/{monitors-YLKTQ57D.js → monitors-RFGQILPW.js} +85 -85
  56. package/dist/cli/{org-ENXO2A33.js → org-L33EPH2E.js} +64 -64
  57. package/dist/cli/{org-BCHOWKIA.mjs → org-TZPQDDVX.mjs} +4 -4
  58. package/dist/cli/{play-JBY7HUYN.mjs → play-PU23OETO.mjs} +8 -8
  59. package/dist/cli/play-YR2XQARF.js +155 -0
  60. package/dist/cli/{providers-GWFX3E7C.js → providers-2RHIKO22.js} +7 -7
  61. package/dist/cli/{providers-JV2DZG43.mjs → providers-QGQR6ZZF.mjs} +4 -4
  62. package/dist/cli/{quickstart-AIXURXZQ.mjs → quickstart-24DQYBW7.mjs} +3 -3
  63. package/dist/cli/{quickstart-CASPK7F4.js → quickstart-BGQVPI7W.js} +5 -5
  64. package/dist/cli/{search-DYQB7LHK.mjs → search-EUN7YFMX.mjs} +5 -5
  65. package/dist/cli/search-OHELMK6E.js +26 -0
  66. package/dist/cli/{secrets-RQZPIPO5.mjs → secrets-OOHN6LNJ.mjs} +4 -4
  67. package/dist/cli/{secrets-AZQG2E4U.js → secrets-XL7GUTQA.js} +13 -13
  68. package/dist/cli/{sessions-ZY6RBYD4.js → sessions-FD5XB7M2.js} +5 -5
  69. package/dist/cli/{sessions-3FJJDMBB.mjs → sessions-SDN4C3YS.mjs} +4 -4
  70. package/dist/cli/{settings-UNZDQGSE.mjs → settings-3MXRXYXI.mjs} +7 -7
  71. package/dist/cli/{settings-GXKWNR5V.js → settings-6ZEKVAYL.js} +74 -74
  72. package/dist/cli/{setup-PIRXJ2KJ.mjs → setup-DWTR6HNT.mjs} +6 -6
  73. package/dist/cli/{setup-UURZD4YO.js → setup-VKQ5EJZR.js} +41 -41
  74. package/dist/cli/skills-6GFW4GCW.js +28 -0
  75. package/dist/cli/{skills-B4AQEIAF.mjs → skills-ISG5UUZW.mjs} +4 -4
  76. package/dist/cli/{tools-UMGQKUSW.mjs → tools-JTC3DR6M.mjs} +7 -7
  77. package/dist/cli/tools-LK4L6VCK.js +40 -0
  78. package/dist/cli/{update-SFUTMEKL.mjs → update-GMTVIHCG.mjs} +6 -6
  79. package/dist/cli/update-PSJLAW4Q.js +28 -0
  80. package/dist/cli/{workflow-CDAJCMT7.js → workflow-2765Y3Y5.js} +15 -15
  81. package/dist/cli/{workflow-ON6XVW36.mjs → workflow-3POT3VFY.mjs} +5 -5
  82. package/dist/index.js +8 -8
  83. package/dist/index.mjs +7 -7
  84. package/dist/install-integrity.json +76 -78
  85. package/dist/release.d.mts +1 -1
  86. package/dist/release.d.ts +1 -1
  87. package/dist/release.js +2 -2
  88. package/dist/release.mjs +1 -1
  89. package/package.json +1 -1
  90. package/dist/cli/auth-IFXXXZP6.js +0 -33
  91. package/dist/cli/client-O6IEMURJ.js +0 -20
  92. package/dist/cli/client-TV254HC4.mjs +0 -20
  93. package/dist/cli/git-SSSOIQ2L.js +0 -23
  94. package/dist/cli/play-SSJ3PO4D.js +0 -155
  95. package/dist/cli/search-N7K6A2YV.js +0 -26
  96. package/dist/cli/skills-4OUZLKTW.js +0 -28
  97. package/dist/cli/tools-MIZS5UN6.js +0 -40
  98. package/dist/cli/update-3CO7LA4M.js +0 -28
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-NXGCO4JB.mjs";
15
15
  import {
16
16
  SDK_RELEASE
17
- } from "./chunk-IZVGMVNX.mjs";
17
+ } from "./chunk-IG3GOO4T.mjs";
18
18
 
19
19
  // src/errors.ts
20
20
  var CustomerDbQueryOutcomeUnknownError = class extends DeeplineError {
@@ -944,17 +944,6 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
944
944
  return complete;
945
945
  }
946
946
 
947
- // ../play-runtime/coordinator-headers.ts
948
- var COORDINATOR_INTERNAL_TOKEN_HEADER = "x-deepline-internal-token";
949
- var COORDINATOR_URL_OVERRIDE_HEADER = "x-deepline-coordinator-url";
950
- var WORKER_CALLBACK_URL_OVERRIDE_HEADER = "x-deepline-worker-callback-url";
951
- var RUNTIME_SCHEDULER_SCHEMA_OVERRIDE_HEADER = "x-deepline-runtime-scheduler-schema";
952
- var RUNTIME_ENVIRONMENT_TOKEN_HEADER = "x-deepline-runtime-environment-token";
953
- var RETAINED_PIPELINE_RECEIVERS_HEADER = "x-deepline-retained-pipeline-receivers";
954
- var ABSURD_RELEASE_OVERRIDE_HEADER = "x-deepline-absurd-release";
955
- var PREFERRED_RECEIPT_GATEWAY_MACHINE_ID_HEADER = "x-deepline-preferred-receipt-gateway-machine-id";
956
- var SYNTHETIC_RUN_HEADER = "x-deepline-synthetic-run";
957
-
958
947
  // src/deployment-protection.ts
959
948
  function deploymentProtectionHeaders() {
960
949
  const token = typeof process !== "undefined" ? process.env?.VERCEL_PROTECTION_BYPASS_TOKEN : void 0;
@@ -971,6 +960,17 @@ var fetchWithDeploymentProtection = (input, init) => {
971
960
  return fetch(input, { ...init, headers });
972
961
  };
973
962
 
963
+ // ../play-runtime/coordinator-headers.ts
964
+ var COORDINATOR_INTERNAL_TOKEN_HEADER = "x-deepline-internal-token";
965
+ var COORDINATOR_URL_OVERRIDE_HEADER = "x-deepline-coordinator-url";
966
+ var WORKER_CALLBACK_URL_OVERRIDE_HEADER = "x-deepline-worker-callback-url";
967
+ var RUNTIME_SCHEDULER_SCHEMA_OVERRIDE_HEADER = "x-deepline-runtime-scheduler-schema";
968
+ var RUNTIME_ENVIRONMENT_TOKEN_HEADER = "x-deepline-runtime-environment-token";
969
+ var RETAINED_PIPELINE_RECEIVERS_HEADER = "x-deepline-retained-pipeline-receivers";
970
+ var ABSURD_RELEASE_OVERRIDE_HEADER = "x-deepline-absurd-release";
971
+ var PREFERRED_RECEIPT_GATEWAY_MACHINE_ID_HEADER = "x-deepline-preferred-receipt-gateway-machine-id";
972
+ var SYNTHETIC_RUN_HEADER = "x-deepline-synthetic-run";
973
+
974
974
  // ../play-runtime/runtime-incident-drills.ts
975
975
  var RUNTIME_TEST_FAULT_IDS = [
976
976
  "receipt_complete_write_fail",
@@ -114,15 +114,18 @@ Skills:
114
114
  health: {
115
115
  core: `
116
116
  Purpose:
117
- Read-only connectivity check that prints the server's raw health payload.
117
+ Read-only check that the configured Deepline host answers. Needs no API
118
+ key; --play-runner does.
118
119
  When:
119
- Only when a command cannot reach the server and you want the raw payload,
120
- or with --play-runner to prove the whole play execution plane works.
120
+ Only when a command cannot reach the server, or with --play-runner to prove
121
+ the whole play execution plane works.
121
122
  Input:
122
123
  No arguments. --play-runner runs a tiny no-provider play end to end.
123
- Output (JSON):
124
- The server health object (status, version). With --play-runner, a run
125
- summary for the smoke play.
124
+ Output:
125
+ Text: "<host>: <status>". --json: the server health object (status,
126
+ version). With --play-runner,
127
+ {status, playRunner: {status, check}}. A failure exits nonzero with
128
+ "Cannot reach Deepline API: <reason>".
126
129
  Cost:
127
130
  Free. --play-runner uses no providers.
128
131
  Avoid:
@@ -298,6 +301,8 @@ Input:
298
301
  every output in the examples; --cli-example and --play-example print one
299
302
  example; --schema-only prints only the schema; --full-schema unfolds a
300
303
  schema over 100 lines; --out <path> saves the output; --json prints JSON.
304
+ A tool lists its features, such as the model an AI tool runs;
305
+ --feature <name>[=<value>] describes one.
301
306
  A play your workspace created is shown instead of a Deepline tool or
302
307
  prebuilt play of the same name; --prebuilt shows the Deepline one.
303
308
  Output:
@@ -370,8 +375,7 @@ When:
370
375
  Input:
371
376
  The tool id. Prints readable text by default; read that
372
377
  form and pass --json only for a program. --pricing-only, --schema-only,
373
- --examples-only, --getters-only print one section. --byok prints only
374
- whether you can use your own provider credentials and how to connect them. --out <path> saves the
378
+ --examples-only, --getters-only print one section. --out <path> saves the
375
379
  output to a file. get is an alias of describe, and deepline describe <id>
376
380
  is the same read for a tool, a play, or a monitor type.
377
381
  Output (JSON):
@@ -410,7 +414,7 @@ Output fields:
410
414
  connected false means the provider needs a connected account or
411
415
  key in this workspace; execute will fail with 3.
412
416
  credentialStatus detail for connected false.
413
- byok only with --byok. supported: you can connect your
417
+ byok only when required. supported: you can connect your
414
418
  own provider credentials; required: the tool runs
415
419
  only on them. setup and setupUrl say where to
416
420
  connect them. With byok optional and nothing
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.374",
52
+ version: "0.3.375",
53
53
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
54
54
  packageCapabilities: {
55
55
  updatePreferences: 1
@@ -4,6 +4,16 @@ import {
4
4
 
5
5
  // src/cli/described.ts
6
6
  var SHAPE = "{}";
7
+ function featureLines(id, features) {
8
+ if (!features.length) return [];
9
+ const width = Math.max(...features.map(({ name }) => name.length));
10
+ return [
11
+ `Features (deepline describe ${id} --feature <name>[=<value>]):`,
12
+ ...features.map(
13
+ ({ name, summary, defaultValue }) => ` ${name.padEnd(width)} ${summary}${defaultValue ? ` Default: ${defaultValue}.` : ""}`
14
+ )
15
+ ];
16
+ }
7
17
  function byokLines(byok) {
8
18
  if (typeof byok.supported !== "boolean") {
9
19
  return ["BYOK: unknown (this server does not report it)"];
@@ -423,6 +433,7 @@ function describedLines(described, view) {
423
433
  ...described.guidance.map((line) => `Guidance: ${line}`),
424
434
  ...described.rateLimit ? [`Rate limit: ${described.rateLimit}`] : [],
425
435
  ...described.byok ? byokLines(described.byok) : [],
436
+ ...featureLines(described.id, described.features ?? []),
426
437
  ...schemaLines(described, {
427
438
  full: view.fullSchema,
428
439
  secondary: view.verbose,
@@ -528,6 +539,7 @@ function describedJson(described, view) {
528
539
  ...described.cost ? { cost: described.cost } : {},
529
540
  ...described.rateLimit ? { rateLimit: described.rateLimit } : {},
530
541
  ...described.byok ? { byok: described.byok } : {},
542
+ ...described.features?.length ? { features: described.features } : {},
531
543
  ...described.guidance.length ? { guidance: described.guidance } : {},
532
544
  ...blocks,
533
545
  ...used.size ? { types } : {},
@@ -595,6 +607,9 @@ function addDescribeOptions(command, options = {}) {
595
607
  ).option(
596
608
  "--fields <names>",
597
609
  "Show only these fields, comma-separated, plus every required input"
610
+ ).option(
611
+ "--feature <name[=value]>",
612
+ "Describe one feature of a tool, such as a model: --feature model=openai/gpt-5.6-luna. A tool lists its features."
598
613
  ).option(
599
614
  "-o, --out <path>",
600
615
  "Save the output to this file instead of printing it"
@@ -605,12 +620,6 @@ function addDescribeOptions(command, options = {}) {
605
620
  "Print only the schema, with every field, and nothing else"
606
621
  );
607
622
  }
608
- if (options.byok !== false) {
609
- command.option(
610
- "--byok",
611
- "For a tool, also show whether it can run on your own provider credentials, and how to connect them (always shown when it must)"
612
- );
613
- }
614
623
  if (options.json !== false) {
615
624
  command.option(
616
625
  "--json",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-OYTPVM2R.mjs";
3
+ } from "./chunk-QEEIEHGV.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -1,10 +1,10 @@
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 _chunk3XKAOV74js = require('./chunk-3XKAOV74.js');
4
+ var _chunkGN5QM2BBjs = require('./chunk-GN5QM2BB.js');
5
5
 
6
6
 
7
- var _chunkJK547IDBjs = require('./chunk-JK547IDB.js');
7
+ var _chunkIQTHRG6Ejs = require('./chunk-IQTHRG6E.js');
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
 
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
139
139
  const newestFirst = listSessionFiles(agent).sort(
140
140
  (a, b) => b.mtimeMs - a.mtimeMs
141
141
  );
142
- const sessionId = _chunkJK547IDBjs.agentSessionIdFromEnvironment.call(void 0, );
142
+ const sessionId = _chunkIQTHRG6Ejs.agentSessionIdFromEnvironment.call(void 0, );
143
143
  const cwd = process.cwd();
144
144
  return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
145
145
  (candidate) => sessionStartedInDirectory(candidate, cwd)
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
448
448
  return { encodedContent: encoded, needsChunking: true };
449
449
  }
450
450
  async function uploadPayload(path, payload) {
451
- const { http } = _chunk3XKAOV74js.getAuthedHttpClient.call(void 0, );
451
+ const { http } = _chunkGN5QM2BBjs.getAuthedHttpClient.call(void 0, );
452
452
  return await http.post(path, payload);
453
453
  }
454
454
  async function uploadChunkedSessions(sessions, options) {
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
481
481
  ...options.rating ? { rating: options.rating } : {}
482
482
  });
483
483
  const sessionIds = sessions.map((session) => session.sessionId);
484
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
484
+ _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
485
485
  {
486
486
  ...response,
487
487
  ok: true,
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
513
513
  filename: _path.basename.call(void 0, filePath),
514
514
  ...rating ? { rating } : {}
515
515
  });
516
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
516
+ _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
517
517
  {
518
518
  ...response2,
519
519
  ok: true,
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
563
563
  ...rating ? { rating } : {}
564
564
  });
565
565
  const sessionIds = built.map((session) => session.sessionId);
566
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
566
+ _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
567
567
  {
568
568
  ...response,
569
569
  ok: true,
@@ -671,7 +671,7 @@ ${refreshMeta}
671
671
  </body>
672
672
  </html>`;
673
673
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
674
- _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
674
+ _chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
675
675
  {
676
676
  ok: true,
677
677
  file: outputPath,