deepline 0.3.583 → 0.4.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.
- package/dist/bundling-sources/sdk/src/client-core.ts +79 -36
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/release.ts +7 -3
- package/dist/bundling-sources/sdk/src/types.ts +37 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +22 -3
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +94 -5
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +66 -12
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-tuple-recovery.ts +9 -3
- package/dist/bundling-sources/shared_libs/play-runtime/docflow-node-io.ts +86 -20
- package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +17 -6
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +22 -6
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +54 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/postgres-adapter.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/row-failure-summary.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +4 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +12 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +197 -19
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +25 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +73 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-wake-policy.ts +419 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +20 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +24 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +36 -19
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +380 -51
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +21 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +32 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +3 -1
- package/dist/bundling-sources/shared_libs/plays/deploy/run-deployment.ts +34 -4
- package/dist/bundling-sources/shared_libs/plays/docflow-recording-lint.ts +512 -0
- package/dist/bundling-sources/shared_libs/plays/docflow-requirement.ts +346 -0
- package/dist/bundling-sources/shared_libs/plays/docflow-rule-codes.ts +38 -0
- package/dist/bundling-sources/shared_libs/plays/docflow-unreached-reason.ts +42 -2
- package/dist/bundling-sources/shared_libs/plays/docflow.ts +223 -32
- package/dist/bundling-sources/shared_libs/plays/play-check-compact.ts +14 -1
- package/dist/bundling-sources/shared_libs/plays/run-result.ts +35 -0
- package/dist/cli/{agents-G344SPW2.mjs → agents-AHXB7N7Y.mjs} +4 -4
- package/dist/cli/{agents-ZPDXVPEE.js → agents-KBZ7OUZS.js} +33 -33
- package/dist/cli/{auth-V66RP2A6.mjs → auth-3CACO52T.mjs} +5 -5
- package/dist/cli/auth-UOHCO5K6.js +44 -0
- package/dist/cli/{billing-ROYUQF67.js → billing-5KXPGKMO.js} +105 -105
- package/dist/cli/{billing-BTMGZJCR.mjs → billing-TSTK63NB.mjs} +9 -9
- package/dist/cli/{chunk-ROWROMXD.mjs → chunk-2GWKBQJZ.mjs} +1 -1
- package/dist/cli/{chunk-VXEZKZU4.mjs → chunk-3DJMPID5.mjs} +11 -11
- package/dist/cli/{chunk-VH45GV3T.js → chunk-3ET6NRXP.js} +7 -3
- package/dist/cli/{chunk-43MKV6E4.mjs → chunk-3MWTAM3F.mjs} +3 -3
- package/dist/cli/{chunk-U6BTY4WS.mjs → chunk-4ANDW2OT.mjs} +1 -1
- package/dist/cli/{chunk-H4BYWEV5.js → chunk-4BSCSQ6I.js} +4 -4
- package/dist/cli/{chunk-ACS6BYE5.mjs → chunk-4UEXAMDU.mjs} +2 -2
- package/dist/cli/{chunk-QPN662ZP.js → chunk-5XGLDVSD.js} +100 -100
- package/dist/cli/{chunk-MFPHCUHK.js → chunk-7XXJJVSI.js} +5 -5
- package/dist/cli/{chunk-QGOHEJVJ.js → chunk-7ZCD7OPO.js} +5 -5
- package/dist/cli/{chunk-AXKFZIXC.mjs → chunk-AJJSKKH4.mjs} +2 -2
- package/dist/cli/{chunk-KSXBLXLV.mjs → chunk-BHF5UW34.mjs} +1 -1
- package/dist/cli/{chunk-AHQDUMDM.js → chunk-BO2TXH5Y.js} +20 -20
- package/dist/cli/{chunk-W5WLWRKL.mjs → chunk-BUC2TNF2.mjs} +2 -2
- package/dist/cli/{chunk-6GYGMWQV.js → chunk-BUUAFSSN.js} +68 -50
- package/dist/cli/{chunk-WUVDJSZE.js → chunk-C45E47KC.js} +23 -23
- package/dist/cli/{chunk-BUMCOVBP.js → chunk-D4R3AL4F.js} +5 -5
- package/dist/cli/{chunk-PVDP3AZY.mjs → chunk-DAZRIAXW.mjs} +4 -4
- package/dist/cli/{chunk-W3ECB7GC.js → chunk-DNOZQGJF.js} +3 -3
- package/dist/cli/{chunk-HYT5B2NL.js → chunk-DUL6UQ2T.js} +2 -2
- package/dist/cli/{chunk-P2YNTAGL.mjs → chunk-ES3S6UXR.mjs} +2 -2
- package/dist/cli/{chunk-K6GDSCFL.mjs → chunk-FDAYUP3M.mjs} +3 -3
- package/dist/cli/{chunk-23LYXVI4.js → chunk-FEVUIT2U.js} +6 -6
- package/dist/cli/{chunk-6S3OAJCJ.mjs → chunk-FSPEUU3V.mjs} +49 -6
- package/dist/cli/{chunk-2QIVGZKS.mjs → chunk-FZZMCVOS.mjs} +5 -5
- package/dist/cli/{chunk-73IZARR5.js → chunk-GHOB72U6.js} +13 -13
- package/dist/cli/{chunk-LVJAHM2I.mjs → chunk-GLYWRTEL.mjs} +3 -3
- package/dist/cli/{chunk-AXOQ2FMS.mjs → chunk-HNTIGYRT.mjs} +1 -1
- package/dist/cli/{chunk-C7UCDL2K.js → chunk-IGPHYKEJ.js} +41 -41
- package/dist/cli/{chunk-PULU5YGX.js → chunk-ISSYN3DJ.js} +20 -20
- package/dist/cli/{chunk-ZHIJA4MW.mjs → chunk-JKQPITEE.mjs} +54 -36
- package/dist/cli/{chunk-EHV52KUV.mjs → chunk-KMLACXI2.mjs} +7 -3
- package/dist/cli/{chunk-WAZR72D5.js → chunk-KQXACHYA.js} +26 -26
- package/dist/cli/{chunk-PGUK5VPC.js → chunk-LW2GKYZW.js} +2 -2
- package/dist/cli/{chunk-J54DMFV5.mjs → chunk-O2KSPI2M.mjs} +2 -2
- package/dist/cli/{chunk-CCC3NIYB.js → chunk-O6GT6JD7.js} +9 -9
- package/dist/cli/{chunk-DNYFNOWG.mjs → chunk-OCXWUWUI.mjs} +5 -5
- package/dist/cli/{chunk-MEAWK5G7.js → chunk-QKRDAJ3T.js} +53 -53
- package/dist/cli/{chunk-N5XRUZRS.js → chunk-QQESWF6D.js} +16 -16
- package/dist/cli/{chunk-2D5YISAL.js → chunk-REX5SUYU.js} +2 -2
- package/dist/cli/{chunk-RO2LTLJA.js → chunk-RXIQWG2N.js} +48 -48
- package/dist/cli/{chunk-VXDKL434.js → chunk-S33BN7GZ.js} +3 -3
- package/dist/cli/{chunk-72MEXMSH.mjs → chunk-SGRJJLNV.mjs} +1 -1
- package/dist/cli/{chunk-HOGRT5X6.mjs → chunk-TCNYSNVU.mjs} +1 -1
- package/dist/cli/{chunk-H7F3ROT3.mjs → chunk-TFPMVSGK.mjs} +2 -2
- package/dist/cli/{chunk-GFX6CDAB.mjs → chunk-V73WDQEA.mjs} +5 -5
- package/dist/cli/{chunk-LHD3HOYN.js → chunk-VYERVFGB.js} +49 -6
- package/dist/cli/{chunk-C233ZRNX.mjs → chunk-WBRSVML3.mjs} +4 -4
- package/dist/cli/{chunk-7AFTLM74.mjs → chunk-WW52ANX4.mjs} +2 -2
- package/dist/cli/{chunk-ZFJNIZHI.js → chunk-XZS35M3Y.js} +10 -10
- package/dist/cli/{chunk-YRNWA2IL.js → chunk-YNYHYL5C.js} +15 -15
- package/dist/cli/{chunk-JQT3SHXL.mjs → chunk-ZHE5E2WJ.mjs} +1 -1
- package/dist/cli/{chunk-N5RCXI3M.mjs → chunk-ZJ2H77VV.mjs} +5 -5
- package/dist/cli/{chunk-GQHZV7EQ.js → chunk-ZX6UVPGZ.js} +7 -7
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-H5SZUA5J.js +22 -0
- package/dist/cli/{concurrent-runs-help-A2Y33OQ5.mjs → concurrent-runs-help-IYELSCHB.mjs} +6 -6
- package/dist/cli/{csv-PS74WVXE.mjs → csv-ENEC3APZ.mjs} +4 -4
- package/dist/cli/{csv-TKSR2LFV.js → csv-X6CP57R4.js} +13 -13
- package/dist/cli/{db-R6GOM4VC.js → db-6HLRSE2M.js} +27 -27
- package/dist/cli/{db-EXLBRZ7K.mjs → db-YGKRFK4T.mjs} +6 -6
- package/dist/cli/{describe-JJBXFPVQ.mjs → describe-4SGQEX7K.mjs} +18 -18
- package/dist/cli/describe-Q2OYHDVZ.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-474U7R3Y.js → executions-IC55YJ67.js} +8 -8
- package/dist/cli/{executions-5PEODJQG.mjs → executions-PO2IOSZ7.mjs} +6 -6
- package/dist/cli/{feedback-QUQVRDBD.mjs → feedback-6BUD5F4I.mjs} +6 -6
- package/dist/cli/{feedback-URTCAOXP.js → feedback-BCGQLZ5T.js} +14 -14
- package/dist/cli/git-5X3MLBIP.js +26 -0
- package/dist/cli/{git-AQF23KKU.mjs → git-IN4IBL2K.mjs} +5 -5
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-NMFOOSS4.js → integrations-R2Z2MDO3.js} +29 -29
- package/dist/cli/{integrations-5POBI72U.mjs → integrations-ZMGB6NQA.mjs} +7 -7
- package/dist/cli/{legacy-noops-6YVCOSFO.mjs → legacy-noops-GIC5OZKP.mjs} +6 -6
- package/dist/cli/{legacy-noops-V75T5LHV.js → legacy-noops-X4JPRPTJ.js} +9 -9
- package/dist/cli/{mcp-7WEYQ5V7.mjs → mcp-G4IRJIKK.mjs} +4 -4
- package/dist/cli/{mcp-N6GYXCUQ.js → mcp-USZKTVL2.js} +24 -24
- package/dist/cli/{monitors-TAK4M5Y4.mjs → monitors-SNFZPSCY.mjs} +7 -7
- package/dist/cli/{monitors-HW4H4PE5.js → monitors-T7LRP7OB.js} +100 -100
- package/dist/cli/{org-FULXOXNE.js → org-2L2ZZL2P.js} +121 -121
- package/dist/cli/{org-3C2RN36N.mjs → org-YTXLKW52.mjs} +6 -6
- package/dist/cli/{outcomes-4KRZL6OL.mjs → outcomes-CJWBIFTA.mjs} +6 -6
- package/dist/cli/{outcomes-O3HDQWGN.js → outcomes-O63F57JF.js} +14 -14
- package/dist/cli/{play-ZTRWUODW.mjs → play-6UWPUHC6.mjs} +331 -70
- package/dist/cli/{play-HA4RGX7T.js → play-T353SULJ.js} +930 -669
- package/dist/cli/{providers-FAKWWJE2.mjs → providers-LZABK2UW.mjs} +6 -6
- package/dist/cli/{providers-DXMKWBZN.js → providers-XORJH2VW.js} +9 -9
- package/dist/cli/{quickstart-YWGBTW77.mjs → quickstart-O4RF7J55.mjs} +4 -4
- package/dist/cli/{quickstart-MA74UPNI.js → quickstart-QBNUNPZR.js} +6 -6
- package/dist/cli/{run-4DXSGXRB.js → run-2CPMFC6W.js} +44 -44
- package/dist/cli/{run-QHCYMSBP.mjs → run-GBRPFC6P.mjs} +23 -23
- package/dist/cli/{search-N4ZOK5XX.mjs → search-G7TS7OFB.mjs} +7 -7
- package/dist/cli/search-M3AHFCKQ.js +32 -0
- package/dist/cli/{search-output-F2OYLVK2.mjs → search-output-BIIJRUCP.mjs} +4 -4
- package/dist/cli/{search-output-D5VAC52B.js → search-output-NRKLNWSD.js} +6 -6
- package/dist/cli/{secrets-LD4FVAQI.mjs → secrets-DN3XEZNH.mjs} +6 -6
- package/dist/cli/{secrets-3KETOTDS.js → secrets-FUXYSEL5.js} +15 -15
- package/dist/cli/{sessions-LPLI4Z4O.mjs → sessions-PMUTPCTT.mjs} +6 -6
- package/dist/cli/sessions-VMBMBGVJ.js +23 -0
- package/dist/cli/{settings-NCGPJG3Z.mjs → settings-N6GNS2KA.mjs} +12 -12
- package/dist/cli/{settings-NFBTCOMB.js → settings-ZDTWCQ6B.js} +85 -85
- package/dist/cli/{setup-NH6MRYXZ.mjs → setup-LJ3KWPSA.mjs} +9 -9
- package/dist/cli/{setup-ATBSUSH4.js → setup-PN5TSSJE.js} +49 -49
- package/dist/cli/{skills-ITPBPIXD.mjs → skills-7J42K6VC.mjs} +7 -7
- package/dist/cli/skills-CXDENBLF.js +37 -0
- package/dist/cli/{tools-2XZPR65V.mjs → tools-M3S6D6DA.mjs} +17 -17
- package/dist/cli/tools-WY2GMOC7.js +57 -0
- package/dist/cli/{update-VFB22FWO.mjs → update-XTVFG74E.mjs} +9 -9
- package/dist/cli/update-ZB2IBGXG.js +37 -0
- package/dist/cli/{views-WJUZOQM2.js → views-B4X2FWTF.js} +21 -21
- package/dist/cli/{views-MRN3HWTG.mjs → views-UFYRDO4X.mjs} +6 -6
- package/dist/cli/{workflow-Q4JFBTVH.js → workflow-I2RM2J2J.js} +17 -17
- package/dist/cli/{workflow-A6P7YV5W.mjs → workflow-ZLMS3PDE.mjs} +7 -7
- package/dist/{client-QznpkWrk.d.ts → client-2QWMJInp.d.ts} +1 -1
- package/dist/{client-CmG8MT0x.d.mts → client-7H8TXmLa.d.mts} +1 -1
- package/dist/{client-core-CY0jNW0e.d.mts → client-core-BraEuxbg.d.mts} +67 -4
- package/dist/{client-core-CXDqfeiB.d.ts → client-core-DRglY5xa.d.ts} +67 -4
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +125 -120
- package/dist/plays/bundle-play-file.mjs +5 -0
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +3 -3
- package/dist/release.d.ts +3 -3
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-VU6VIPVY.js +0 -44
- package/dist/cli/concurrent-runs-help-6WUNDV77.js +0 -22
- package/dist/cli/describe-CA2FL2OS.js +0 -50
- package/dist/cli/git-WJ4V2B4T.js +0 -26
- package/dist/cli/search-V765JH2H.js +0 -32
- package/dist/cli/sessions-XC65OMDS.js +0 -23
- package/dist/cli/skills-4NQBTGOL.js +0 -37
- package/dist/cli/tools-ZVOFATX2.js +0 -57
- package/dist/cli/update-QME3KPOP.js +0 -37
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5XGLDVSDjs = require('./chunk-5XGLDVSD.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZX6UVPGZjs = require('./chunk-ZX6UVPGZ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,17 +14,17 @@ var _chunkS2YKIWCDjs = require('./chunk-S2YKIWCD.js');
|
|
|
14
14
|
var _chunkMOZDEYQCjs = require('./chunk-MOZDEYQC.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk7XXJJVSIjs = require('./chunk-7XXJJVSI.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkISSYN3DJjs = require('./chunk-ISSYN3DJ.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkS33BN7GZjs = require('./chunk-S33BN7GZ.js');
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/describe.ts
|
|
30
30
|
var _fs = require('fs');
|
|
@@ -33,14 +33,14 @@ var _path = require('path');
|
|
|
33
33
|
// src/cli/doc-read-reporting.ts
|
|
34
34
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
35
35
|
async function reportDocRead(docId) {
|
|
36
|
-
if (
|
|
36
|
+
if (_chunkISSYN3DJjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
37
37
|
try {
|
|
38
|
-
const baseUrl =
|
|
39
|
-
const apiKey =
|
|
38
|
+
const baseUrl = _chunkS33BN7GZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
39
|
+
const apiKey = _chunkS33BN7GZjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
40
40
|
if (!apiKey) return;
|
|
41
41
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
42
42
|
method: "POST",
|
|
43
|
-
headers:
|
|
43
|
+
headers: _chunkISSYN3DJjs.failureReportHeaders.call(void 0, apiKey),
|
|
44
44
|
body: JSON.stringify({ doc_id: docId }),
|
|
45
45
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
46
46
|
});
|
|
@@ -53,22 +53,22 @@ function nothingNamed(name) {
|
|
|
53
53
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
54
54
|
}
|
|
55
55
|
function findNamed2(name, options) {
|
|
56
|
-
return _chunkS2YKIWCDjs.findNamed.call(void 0, name, options, cliDescribeLookups(new (0,
|
|
56
|
+
return _chunkS2YKIWCDjs.findNamed.call(void 0, name, options, cliDescribeLookups(new (0, _chunk7XXJJVSIjs.DeeplineClient)()));
|
|
57
57
|
}
|
|
58
58
|
function cliDescribeLookups(client) {
|
|
59
59
|
return {
|
|
60
60
|
..._chunkS2YKIWCDjs.describeLookupsFor.call(void 0, client),
|
|
61
|
-
dashboardOrgId:
|
|
61
|
+
dashboardOrgId: _chunkS33BN7GZjs.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
async function describeAnything(name, options, onMissing) {
|
|
65
|
-
const client = new (0,
|
|
65
|
+
const client = new (0, _chunk7XXJJVSIjs.DeeplineClient)();
|
|
66
66
|
const lookups = cliDescribeLookups(client);
|
|
67
67
|
const outcome = await _chunkS2YKIWCDjs.describeName.call(void 0, name, options, {
|
|
68
68
|
...lookups,
|
|
69
69
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
70
70
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
71
|
-
seedStarterScript:
|
|
71
|
+
seedStarterScript: _chunk5XGLDVSDjs.seedToolListScript
|
|
72
72
|
});
|
|
73
73
|
if (outcome.status === "missing") {
|
|
74
74
|
if (onMissing) return onMissing();
|
|
@@ -97,18 +97,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
97
97
|
` : text;
|
|
98
98
|
_fs.writeFileSync.call(void 0, path, content);
|
|
99
99
|
const bytes = Buffer.byteLength(content);
|
|
100
|
-
|
|
100
|
+
_chunkISSYN3DJjs.printCommandEnvelope.call(void 0,
|
|
101
101
|
{ path, bytes },
|
|
102
102
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
103
103
|
` }
|
|
104
104
|
);
|
|
105
105
|
return 0;
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
_chunkISSYN3DJjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
108
108
|
return 0;
|
|
109
109
|
}
|
|
110
110
|
function registerDescribeCommand(program) {
|
|
111
|
-
|
|
111
|
+
_chunkZX6UVPGZjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
112
112
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
113
113
|
).addHelpText(
|
|
114
114
|
"after",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
|
-
var
|
|
3
|
+
var _chunkISSYN3DJjs = require('./chunk-ISSYN3DJ.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunkISSYN3DJjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkDNOZQGJFjs = require('./chunk-DNOZQGJF.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkISSYN3DJjs = require('./chunk-ISSYN3DJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -18,20 +18,20 @@ var _chunkPULU5YGXjs = require('./chunk-PULU5YGX.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkS33BN7GZjs = require('./chunk-S33BN7GZ.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk4BSCSQ6Ijs = require('./chunk-4BSCSQ6I.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunk3ET6NRXPjs = require('./chunk-3ET6NRXP.js');
|
|
35
35
|
|
|
36
36
|
// src/compat.ts
|
|
37
37
|
var _crypto = require('crypto');
|
|
@@ -66,7 +66,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
66
66
|
return value === "1" || value === "true" || value === "yes";
|
|
67
67
|
}
|
|
68
68
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
|
|
69
|
-
return _path.join.call(void 0,
|
|
69
|
+
return _path.join.call(void 0, _chunkS33BN7GZjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
70
70
|
}
|
|
71
71
|
function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
|
|
72
72
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -74,9 +74,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
74
74
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
75
75
|
return JSON.stringify({
|
|
76
76
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
77
|
-
version:
|
|
78
|
-
apiContract:
|
|
79
|
-
apiMajor:
|
|
77
|
+
version: _chunk4BSCSQ6Ijs.SDK_VERSION,
|
|
78
|
+
apiContract: _chunk4BSCSQ6Ijs.SDK_API_CONTRACT,
|
|
79
|
+
apiMajor: _chunk4BSCSQ6Ijs.SDK_API_MAJOR,
|
|
80
80
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
81
81
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
82
82
|
});
|
|
@@ -84,8 +84,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
84
84
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
85
85
|
return JSON.stringify({
|
|
86
86
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
87
|
-
version:
|
|
88
|
-
apiContract:
|
|
87
|
+
version: _chunk4BSCSQ6Ijs.SDK_VERSION,
|
|
88
|
+
apiContract: _chunk4BSCSQ6Ijs.SDK_API_CONTRACT,
|
|
89
89
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
90
90
|
});
|
|
91
91
|
}
|
|
@@ -110,7 +110,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
110
110
|
}
|
|
111
111
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
112
112
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
113
|
-
const path = _path.join.call(void 0,
|
|
113
|
+
const path = _path.join.call(void 0, _chunkS33BN7GZjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
114
114
|
try {
|
|
115
115
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
116
116
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -195,7 +195,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
195
195
|
const timeout = setTimeout(() => controller.abort(), timeoutMs);
|
|
196
196
|
try {
|
|
197
197
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
198
|
-
url.searchParams.set("version",
|
|
198
|
+
url.searchParams.set("version", _chunk4BSCSQ6Ijs.SDK_VERSION);
|
|
199
199
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
200
200
|
url.searchParams.set("command", options.command.trim());
|
|
201
201
|
}
|
|
@@ -203,7 +203,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
203
203
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
204
204
|
url.searchParams.set(
|
|
205
205
|
"skills_cli_capability",
|
|
206
|
-
String(
|
|
206
|
+
String(_chunk3ET6NRXPjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
209
|
if (options.catalog) {
|
|
@@ -215,14 +215,14 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
215
215
|
const response = await fetch(url, {
|
|
216
216
|
method: "GET",
|
|
217
217
|
headers: {
|
|
218
|
-
...
|
|
219
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
220
|
-
"X-Deepline-SDK-Version":
|
|
221
|
-
"X-Deepline-API-Major": String(
|
|
222
|
-
"X-Deepline-API-Contract":
|
|
218
|
+
..._chunk4BSCSQ6Ijs.deploymentProtectionHeaders.call(void 0, ),
|
|
219
|
+
"User-Agent": `deepline-ts-sdk/${_chunk4BSCSQ6Ijs.SDK_VERSION}`,
|
|
220
|
+
"X-Deepline-SDK-Version": _chunk4BSCSQ6Ijs.SDK_VERSION,
|
|
221
|
+
"X-Deepline-API-Major": String(_chunk4BSCSQ6Ijs.SDK_API_MAJOR),
|
|
222
|
+
"X-Deepline-API-Contract": _chunk4BSCSQ6Ijs.SDK_API_CONTRACT,
|
|
223
223
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
224
224
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
225
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
225
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkS33BN7GZjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
226
226
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
227
227
|
},
|
|
228
228
|
signal: controller.signal
|
|
@@ -238,7 +238,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
238
238
|
if (!raw || typeof raw.ok !== "boolean" || typeof raw.status !== "string") {
|
|
239
239
|
return {
|
|
240
240
|
ok: false,
|
|
241
|
-
transient:
|
|
241
|
+
transient: _chunkS33BN7GZjs.TRANSIENT_HTTP_STATUSES.has(response.status),
|
|
242
242
|
error: new Error(
|
|
243
243
|
`SDK compatibility endpoint returned a non-policy response (HTTP ${response.status}).`
|
|
244
244
|
)
|
|
@@ -309,8 +309,8 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
309
309
|
}
|
|
310
310
|
async function requireSdkCompatibility(baseUrl, options = {}) {
|
|
311
311
|
if (shouldSkipCompatibilityCheck()) return null;
|
|
312
|
-
const maxRetries = _nullishCoalesce(options.maxRetries, () => (
|
|
313
|
-
const backoffMs = _nullishCoalesce(options.backoffMs, () => (
|
|
312
|
+
const maxRetries = _nullishCoalesce(options.maxRetries, () => ( _chunkS33BN7GZjs.DEFAULT_MAX_RETRIES));
|
|
313
|
+
const backoffMs = _nullishCoalesce(options.backoffMs, () => ( _chunkS33BN7GZjs.defaultRetryBackoffMs));
|
|
314
314
|
let attempt;
|
|
315
315
|
let attempts = 0;
|
|
316
316
|
for (; ; ) {
|
|
@@ -318,7 +318,7 @@ async function requireSdkCompatibility(baseUrl, options = {}) {
|
|
|
318
318
|
attempt = await attemptSdkCompatibility(
|
|
319
319
|
baseUrl,
|
|
320
320
|
options,
|
|
321
|
-
_nullishCoalesce(options.attemptTimeoutMs, () => (
|
|
321
|
+
_nullishCoalesce(options.attemptTimeoutMs, () => ( _chunkS33BN7GZjs.DEFAULT_TIMEOUT))
|
|
322
322
|
);
|
|
323
323
|
if (attempt.ok) return acceptSdkCompatibility(baseUrl, options, attempt);
|
|
324
324
|
if (!attempt.transient || attempts > maxRetries) break;
|
|
@@ -467,7 +467,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
467
467
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
468
468
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
469
469
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
470
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
470
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkS33BN7GZjs.DEFAULT_SKILL_AGENTS));
|
|
471
471
|
const values = {
|
|
472
472
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
473
473
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -598,25 +598,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
598
598
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
599
599
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
600
600
|
function shouldSkipSkillsSync() {
|
|
601
|
-
if (
|
|
601
|
+
if (_chunk4BSCSQ6Ijs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
602
602
|
return true;
|
|
603
603
|
}
|
|
604
604
|
const value = _optionalChain([process, 'access', _62 => _62.env, 'access', _63 => _63.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65(), 'access', _66 => _66.toLowerCase, 'call', _67 => _67()]);
|
|
605
605
|
return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
|
|
606
606
|
}
|
|
607
607
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
608
|
-
return _path.join.call(void 0,
|
|
608
|
+
return _path.join.call(void 0, _chunkS33BN7GZjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
609
609
|
}
|
|
610
610
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
611
611
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
612
|
-
var agentLeaseSegment =
|
|
612
|
+
var agentLeaseSegment = _chunkS33BN7GZjs.skillsAgentPathSegment;
|
|
613
613
|
function sortedLeaseAgents(agents) {
|
|
614
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
614
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkS33BN7GZjs.KNOWN_SKILL_AGENTS] : agents;
|
|
615
615
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
616
616
|
}
|
|
617
617
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
618
618
|
return _path.join.call(void 0,
|
|
619
|
-
|
|
619
|
+
_chunkS33BN7GZjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
620
620
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
621
621
|
);
|
|
622
622
|
}
|
|
@@ -775,7 +775,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
775
775
|
constructor(baseUrl, error) {
|
|
776
776
|
const detail = error instanceof Error ? error.message : String(error);
|
|
777
777
|
super(
|
|
778
|
-
`Could not save skills state in ${
|
|
778
|
+
`Could not save skills state in ${_chunkS33BN7GZjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
779
779
|
);
|
|
780
780
|
this.name = "SkillsStateUnavailableError";
|
|
781
781
|
}
|
|
@@ -860,7 +860,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
860
860
|
}
|
|
861
861
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
862
862
|
return _path.join.call(void 0,
|
|
863
|
-
|
|
863
|
+
_chunkS33BN7GZjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
864
864
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
865
865
|
);
|
|
866
866
|
}
|
|
@@ -894,8 +894,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
894
894
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
895
895
|
}
|
|
896
896
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
897
|
-
if (shouldSkipSkillsSync() ||
|
|
898
|
-
const agents =
|
|
897
|
+
if (shouldSkipSkillsSync() || _chunkS33BN7GZjs.hasActivePluginSkills.call(void 0, )) return;
|
|
898
|
+
const agents = _chunkS33BN7GZjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
899
899
|
if (agents.length === 0) return;
|
|
900
900
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
901
901
|
}
|
|
@@ -918,7 +918,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
|
|
|
918
918
|
}
|
|
919
919
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
920
920
|
return _path.join.call(void 0,
|
|
921
|
-
|
|
921
|
+
_chunkS33BN7GZjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
922
922
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
923
923
|
);
|
|
924
924
|
}
|
|
@@ -947,7 +947,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
947
947
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
948
948
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
949
949
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
950
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _71 => _71.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
950
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _71 => _71.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkS33BN7GZjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
951
951
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _72 => _72.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
952
952
|
notice(
|
|
953
953
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1035,7 +1035,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1035
1035
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1036
1036
|
}
|
|
1037
1037
|
function isDefaultAgentSet(agents) {
|
|
1038
|
-
return agents.length ===
|
|
1038
|
+
return agents.length === _chunkS33BN7GZjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkS33BN7GZjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1039
1039
|
}
|
|
1040
1040
|
function safeSkillFilePath(value) {
|
|
1041
1041
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1192,10 +1192,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1192
1192
|
method: "POST",
|
|
1193
1193
|
headers: { "Content-Type": "application/json" },
|
|
1194
1194
|
body: JSON.stringify({
|
|
1195
|
-
sdk_cli: { version:
|
|
1195
|
+
sdk_cli: { version: _chunk4BSCSQ6Ijs.SDK_VERSION },
|
|
1196
1196
|
skills: {
|
|
1197
1197
|
version: localVersion,
|
|
1198
|
-
capability:
|
|
1198
|
+
capability: _chunk3ET6NRXPjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1199
1199
|
}
|
|
1200
1200
|
}),
|
|
1201
1201
|
signal: controller.signal
|
|
@@ -1234,7 +1234,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
function noInstallerProbePath(baseUrl) {
|
|
1236
1236
|
return _path.join.call(void 0,
|
|
1237
|
-
|
|
1237
|
+
_chunkS33BN7GZjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1238
1238
|
"skills-sync-no-installer-unknown.json"
|
|
1239
1239
|
);
|
|
1240
1240
|
}
|
|
@@ -1314,7 +1314,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1314
1314
|
function resolveSkillsInstallSpawn(install, platform = process.platform) {
|
|
1315
1315
|
return resolveShellSpawn(install.command, install.args, platform);
|
|
1316
1316
|
}
|
|
1317
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1317
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkS33BN7GZjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1318
1318
|
const commands = [];
|
|
1319
1319
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1320
1320
|
if (probes.bunx === "available") {
|
|
@@ -1458,7 +1458,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
1460
|
function writeSdkSkillsStatusLine(line) {
|
|
1461
|
-
const progress =
|
|
1461
|
+
const progress = _chunkDNOZQGJFjs.getActiveCliProgress.call(void 0, );
|
|
1462
1462
|
if (progress) {
|
|
1463
1463
|
progress.writeLine(line);
|
|
1464
1464
|
return;
|
|
@@ -1469,11 +1469,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1469
1469
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1470
1470
|
const skip = shouldSkipSkillsSync();
|
|
1471
1471
|
if (skip && !options.claim) return;
|
|
1472
|
-
const usingPluginSkills =
|
|
1472
|
+
const usingPluginSkills = _chunkS33BN7GZjs.hasActivePluginSkills.call(void 0, );
|
|
1473
1473
|
if (usingPluginSkills) {
|
|
1474
1474
|
return;
|
|
1475
1475
|
}
|
|
1476
|
-
const agents =
|
|
1476
|
+
const agents = _chunkS33BN7GZjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1477
1477
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1478
1478
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1479
1479
|
}
|
|
@@ -1510,7 +1510,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1510
1510
|
return;
|
|
1511
1511
|
}
|
|
1512
1512
|
try {
|
|
1513
|
-
const localVersion =
|
|
1513
|
+
const localVersion = _chunkS33BN7GZjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1514
1514
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1515
1515
|
needsUpdate: options.update.needs_update,
|
|
1516
1516
|
remoteVersion: options.update.remote.version
|
|
@@ -1632,7 +1632,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1632
1632
|
update.remoteVersion,
|
|
1633
1633
|
agents
|
|
1634
1634
|
);
|
|
1635
|
-
void
|
|
1635
|
+
void _chunkISSYN3DJjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1636
1636
|
baseUrl,
|
|
1637
1637
|
remoteSkillsVersion: update.remoteVersion,
|
|
1638
1638
|
agents,
|
|
@@ -1663,7 +1663,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1663
1663
|
notice(
|
|
1664
1664
|
publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
|
|
1665
1665
|
);
|
|
1666
|
-
void
|
|
1666
|
+
void _chunkISSYN3DJjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1667
1667
|
baseUrl,
|
|
1668
1668
|
remoteSkillsVersion: update.remoteVersion,
|
|
1669
1669
|
agents,
|
|
@@ -1676,7 +1676,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
1678
|
runLegacySkillsCleanup(agents);
|
|
1679
|
-
if (!
|
|
1679
|
+
if (!_chunkS33BN7GZjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1680
1680
|
notice(
|
|
1681
1681
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1682
1682
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
4
|
+
var _chunk4BSCSQ6Ijs = require('./chunk-4BSCSQ6I.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -778,7 +778,7 @@ function readSkillsVersionFile(path) {
|
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
780
|
function resolveAutoSyncSkillAgents() {
|
|
781
|
-
switch (
|
|
781
|
+
switch (_chunk4BSCSQ6Ijs.detectAgentRuntime.call(void 0, )) {
|
|
782
782
|
case "codex":
|
|
783
783
|
return ["codex"];
|
|
784
784
|
case "claude_code":
|
|
@@ -848,7 +848,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
848
848
|
}
|
|
849
849
|
|
|
850
850
|
// src/http.ts
|
|
851
|
-
var HttpClient2 = class extends
|
|
851
|
+
var HttpClient2 = class extends _chunk4BSCSQ6Ijs.HttpClient {
|
|
852
852
|
constructor(config) {
|
|
853
853
|
super(config, readSdkSkillsLocalVersion);
|
|
854
854
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MF7PCM6C.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JKQPITEE.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-5TYLSS4Q.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WW52ANX4.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FZZMCVOS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
resolveShellSpawn,
|
|
11
11
|
syncSdkSkillsIfNeeded
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OCXWUWUI.mjs";
|
|
13
13
|
import {
|
|
14
14
|
addJsonNotice,
|
|
15
15
|
isJsonOutputMode
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WW52ANX4.mjs";
|
|
17
17
|
import {
|
|
18
18
|
resolveApiKeyForBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4ANDW2OT.mjs";
|
|
20
20
|
import {
|
|
21
21
|
SDK_VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HNTIGYRT.mjs";
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1439,7 +1439,11 @@ Authoring rules:
|
|
|
1439
1439
|
with deepline secrets set]]. res.json is a property, not a method; check
|
|
1440
1440
|
res.ok. A play cannot loop deepline.fetch over pages: fan out over rows
|
|
1441
1441
|
with deepline.dataset, or
|
|
1442
|
-
call one endpoint that returns the whole result.
|
|
1442
|
+
call one endpoint that returns the whole result. For a GET whose body you
|
|
1443
|
+
parse in the same row and never need again (a homepage or scraped page),
|
|
1444
|
+
pass { transient: true } as the fourth argument: the body is returned to
|
|
1445
|
+
the play but not kept, so a rerun fetches it again instead of reading a
|
|
1446
|
+
stored copy. Return or store only the fields you extracted.
|
|
1443
1447
|
Triggers: export const config = { cron: { schedule, timezone, input, overlap } };
|
|
1444
1448
|
or { webhook: {} }. A cron run receives {} unless cron.input is written
|
|
1445
1449
|
inline; it is pinned with the published revision. Add
|
|
@@ -1529,6 +1533,26 @@ Output:
|
|
|
1529
1533
|
the output unit, observed or static range and sample size.
|
|
1530
1534
|
Cost:
|
|
1531
1535
|
Read-only. Uses the current org's pricing; does not start a run.
|
|
1536
|
+
`
|
|
1537
|
+
},
|
|
1538
|
+
"plays step-values": {
|
|
1539
|
+
core: `
|
|
1540
|
+
Purpose:
|
|
1541
|
+
Read what one diagram step read and produced, run by run: its recorded
|
|
1542
|
+
input and output previews, status and attempt.
|
|
1543
|
+
Input:
|
|
1544
|
+
The play is a bare name or qualified reference. The step is its id as the
|
|
1545
|
+
diagram draws it (a child play's step is <card>/play/<id>).[[cli: --step
|
|
1546
|
+
names it. --runs takes comma-separated run ids, or --last <n> reads the
|
|
1547
|
+
newest n runs; at most 50 either way. --json prints the exact result.]][[mcp:
|
|
1548
|
+
Name at most 50 runs.]]
|
|
1549
|
+
Output:
|
|
1550
|
+
One line per run, in order: its status and attempt, then input and output
|
|
1551
|
+
fields. "not reached" when the run recorded its steps but never settled at
|
|
1552
|
+
this one; "not recorded" when the run recorded no step values at all; "not
|
|
1553
|
+
a run of this play" for an id that is not this Play's.
|
|
1554
|
+
Cost:
|
|
1555
|
+
Free. Read-only; previews are bounded, so each run's answer is small.
|
|
1532
1556
|
`
|
|
1533
1557
|
},
|
|
1534
1558
|
"plays list": {
|
|
@@ -1726,6 +1750,20 @@ Output:
|
|
|
1726
1750
|
The same compact view as the CLI's --json; full: true returns the complete
|
|
1727
1751
|
check document.
|
|
1728
1752
|
]]
|
|
1753
|
+
Diagram:
|
|
1754
|
+
Required to publish. A run records what each step read and produced only
|
|
1755
|
+
for steps a diagram binds. Put a /** @mermaid */ flowchart above the
|
|
1756
|
+
imports and // @mermaid-node <id> in:"\u2026" out:"\u2026" on the line above each step
|
|
1757
|
+
it draws. Check fails until:
|
|
1758
|
+
the diagram compiles and every box is bound (or declared sketch);
|
|
1759
|
+
each marker names out: when its statement produces a value, and in:
|
|
1760
|
+
when it reads local values (check lists them);
|
|
1761
|
+
out: names a finished value, not one created empty and filled later.
|
|
1762
|
+
Each issue names its line and the lines to paste. A CLI before 0.4.0, and
|
|
1763
|
+
the dashboard, API, MCP and deploy-on-push until 15 Dec 2026, get warnings.
|
|
1764
|
+
Running a local file never needs a diagram. Last resort, not recommended
|
|
1765
|
+
(runs record no per-step values):
|
|
1766
|
+
/** @mermaid off: <why this Play has no diagram> */
|
|
1729
1767
|
Cost:
|
|
1730
1768
|
Free.
|
|
1731
1769
|
Avoid:
|
|
@@ -1822,10 +1860,11 @@ Waiting and timeouts:
|
|
|
1822
1860
|
poll with runs get <run-id> until run.status is terminal.
|
|
1823
1861
|
]]
|
|
1824
1862
|
[[mcp:
|
|
1825
|
-
deepline_run_play waits for the run to end, up to timeout_ms (default
|
|
1826
|
-
maximum
|
|
1863
|
+
deepline_run_play waits for the run to end, up to timeout_ms (default and
|
|
1864
|
+
maximum 50000, under a 60 s client tool-call timeout); timeout_ms: 0
|
|
1827
1865
|
returns once the run is admitted. A run still active then returns its
|
|
1828
|
-
status; call deepline_get_run with run.id
|
|
1866
|
+
status; call deepline_get_run with run.id and wait_for_completion_ms until
|
|
1867
|
+
run.status is terminal.
|
|
1829
1868
|
]]
|
|
1830
1869
|
[[cli:
|
|
1831
1870
|
Input rules:
|
|
@@ -1966,6 +2005,10 @@ Input:
|
|
|
1966
2005
|
Output (JSON):
|
|
1967
2006
|
success, name, liveVersion, revisionId, artifactHash, and the trigger
|
|
1968
2007
|
metadata and bindings now live.
|
|
2008
|
+
Diagram:
|
|
2009
|
+
Refused until the play meets the diagram rules plays check reports (see
|
|
2010
|
+
plays check --help, Diagram), with the same issues and fixes. Running a
|
|
2011
|
+
local file never needs a diagram.
|
|
1969
2012
|
Cost:
|
|
1970
2013
|
Free. It changes cloud state: every caller of the play name gets the new
|
|
1971
2014
|
version at once.
|
|
@@ -2011,7 +2054,7 @@ Purpose:
|
|
|
2011
2054
|
Current status and structure of one run: state, per-step progress, row
|
|
2012
2055
|
counts, dataset handles, and exact follow-up commands.
|
|
2013
2056
|
When:
|
|
2014
|
-
To check a run started with [[cli:--no-wait]][[mcp:timeout_ms: 0, or one still running when deepline_run_play returned]], to find the dataset table name for
|
|
2057
|
+
To check a run started with [[cli:--no-wait]][[mcp:timeout_ms: 0, or one still running when deepline_run_play returned (pass wait_for_completion_ms to wait for it to end instead of pausing between calls)]], to find the dataset table name for
|
|
2015
2058
|
[[db query]], or to see row-level failure counts. Not for cost and not for
|
|
2016
2059
|
rows.
|
|
2017
2060
|
[[cli:
|
|
@@ -2123,7 +2166,7 @@ With [[cli:--full]][[mcp:full: true]]:
|
|
|
2123
2166
|
Debugging a run:
|
|
2124
2167
|
When a run failed or looks stuck, read [[runs get <run-id>]] for its state and
|
|
2125
2168
|
last event, then [[runs logs <run-id>]][[cli: --failed]] for the failure window, then
|
|
2126
|
-
[[cli:runs watch <run-id>]][[mcp:deepline_get_run
|
|
2169
|
+
[[cli:runs watch <run-id>]][[mcp:deepline_get_run with wait_for_completion_ms]] to follow it if it is still active. A run can go quiet
|
|
2127
2170
|
for minutes while it waits on a slow provider (Apify actors, large company
|
|
2128
2171
|
searches), an intentional deepline.sleep, or a rate-limit backoff; that is
|
|
2129
2172
|
healthy. Stop it only after about ten minutes without progress on a fast
|