deepline 0.3.440 → 0.3.442
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/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +10 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +37 -15
- package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +17 -3
- package/dist/bundling-sources/shared_libs/tool-execution-error.ts +17 -3
- package/dist/cli/{auth-KBORTFO6.mjs → auth-CUZJMTNS.mjs} +6 -6
- package/dist/cli/auth-HAO2GLGH.js +40 -0
- package/dist/cli/{billing-VJSUCB5I.mjs → billing-SWH3WAMC.mjs} +7 -7
- package/dist/cli/{billing-RE5WN7IQ.js → billing-W2U5VKFI.js} +83 -83
- package/dist/cli/{chunk-VXQQZV4A.js → chunk-2GVUZA6C.js} +33 -33
- package/dist/cli/{chunk-R2P756BJ.js → chunk-2JHQ24IT.js} +16 -16
- package/dist/cli/{chunk-MAMVGOSC.mjs → chunk-4QF2K7TM.mjs} +1 -1
- package/dist/cli/{chunk-O7PC3VOI.mjs → chunk-5ZQEDZDQ.mjs} +1 -1
- package/dist/cli/{chunk-GWC7OBRD.mjs → chunk-6YWIRIOI.mjs} +2 -2
- package/dist/cli/{chunk-Z7SKBAOU.js → chunk-77DW6WSO.js} +93 -93
- package/dist/cli/{chunk-4RKPT6IE.js → chunk-7BH4ZOWE.js} +2 -2
- package/dist/cli/{chunk-N5D4EMIY.mjs → chunk-7DH2FD7Y.mjs} +1 -1
- package/dist/cli/{chunk-PCNOULRB.mjs → chunk-7ICMVQL5.mjs} +4 -4
- package/dist/cli/{chunk-WU4U6VSB.js → chunk-A6QCMBGL.js} +5 -5
- package/dist/cli/{chunk-NPBJI7RE.js → chunk-ALJJRZNJ.js} +8 -8
- package/dist/cli/{chunk-ZLD46RSR.mjs → chunk-AR5YQQF5.mjs} +2 -2
- package/dist/cli/{chunk-GFEWNYQ4.js → chunk-C4WXHMKN.js} +2 -2
- package/dist/cli/{chunk-KAJK6XVI.js → chunk-CFUTOWE4.js} +6 -6
- package/dist/cli/{chunk-M6WSQZHP.js → chunk-D5IOUCJS.js} +57 -57
- package/dist/cli/{chunk-ATTUUPIU.js → chunk-D7IDBZDR.js} +8 -8
- package/dist/cli/{chunk-PPDBRJRW.js → chunk-DIAWYWT5.js} +6 -1
- package/dist/cli/{chunk-42YHEY2R.mjs → chunk-DUUY2JKP.mjs} +2 -2
- package/dist/cli/{chunk-KCC3FKIW.mjs → chunk-FAG4DFUC.mjs} +1 -1
- package/dist/cli/{chunk-V74O7X2X.mjs → chunk-GEHYAQSI.mjs} +2 -2
- package/dist/cli/{chunk-RDIN3NKA.js → chunk-GEQOPXOS.js} +2 -2
- package/dist/cli/{chunk-E4IXDAZI.mjs → chunk-HBL4PM5Q.mjs} +6 -1
- package/dist/cli/{chunk-4GHEUG6W.js → chunk-HYJKJJUM.js} +20 -20
- package/dist/cli/{chunk-2H4EY7KH.js → chunk-JKVRBCZL.js} +26 -26
- package/dist/cli/{chunk-V2ZITVZA.js → chunk-K2DHO3IM.js} +26 -26
- package/dist/cli/{chunk-R7GGDUOM.mjs → chunk-KKTRHDLN.mjs} +3 -3
- package/dist/cli/{chunk-OX5JAD3D.mjs → chunk-L2FWEP4G.mjs} +4 -4
- package/dist/cli/{chunk-BBYGXP2I.js → chunk-L3JU24MF.js} +12 -12
- package/dist/cli/{chunk-OOVQITRM.js → chunk-LCT6MTYQ.js} +50 -50
- package/dist/cli/{chunk-GJI7C2OU.js → chunk-NBFXQCWM.js} +8 -8
- package/dist/cli/{chunk-CWFN7MUU.mjs → chunk-O765GAOA.mjs} +9 -9
- package/dist/cli/{chunk-T6XBX45B.mjs → chunk-ODWSTSRJ.mjs} +5 -5
- package/dist/cli/{chunk-NUX2QHNC.mjs → chunk-OZDT2CZW.mjs} +1 -1
- package/dist/cli/{chunk-XL4FJX7J.mjs → chunk-P4GMPKMW.mjs} +3 -3
- package/dist/cli/{chunk-CI56TXRS.js → chunk-RR2LZVRA.js} +35 -35
- package/dist/cli/{chunk-EPABMF45.js → chunk-RWK35AB3.js} +6 -6
- package/dist/cli/{chunk-DS7Y7X26.mjs → chunk-SKXQZUMX.mjs} +1 -1
- package/dist/cli/{chunk-RAJP44MZ.mjs → chunk-SMM2EKDC.mjs} +1 -1
- package/dist/cli/{chunk-FGTKAXRJ.js → chunk-SOCWFREM.js} +101 -101
- package/dist/cli/{chunk-HNMQSS7P.js → chunk-SZUU2WTZ.js} +1 -1
- package/dist/cli/{chunk-K23LXA4N.mjs → chunk-TP4TMEML.mjs} +2 -2
- package/dist/cli/{chunk-NIR2UK5V.mjs → chunk-VLQWLPQU.mjs} +1 -1
- package/dist/cli/{chunk-GOHOTLUV.mjs → chunk-WY4W6PRD.mjs} +4 -4
- package/dist/cli/{chunk-GRAEERVE.mjs → chunk-YGMUSZLV.mjs} +3 -3
- package/dist/cli/{csv-L64ECPD5.js → csv-C5Z4OZQN.js} +14 -14
- package/dist/cli/{csv-MP3WOYPE.mjs → csv-HSR32EPA.mjs} +5 -5
- package/dist/cli/{db-RZJK6LGN.js → db-AK4ZYYRP.js} +34 -34
- package/dist/cli/{db-FOV7GHXS.mjs → db-JJGI4J5I.mjs} +7 -7
- package/dist/cli/{describe-R2BEQHVZ.mjs → describe-C35MTKF4.mjs} +16 -16
- package/dist/cli/{describe-WWENJAG2.js → describe-JVSD6F2G.js} +22 -22
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-3LFEK56I.js → executions-ZEA7O4PX.js} +9 -9
- package/dist/cli/{executions-C5WO6TGN.mjs → executions-ZECDB4NA.mjs} +7 -7
- package/dist/cli/{feedback-K6OAZUQ4.mjs → feedback-W7UL4V47.mjs} +5 -5
- package/dist/cli/{feedback-EMWUZ4LV.js → feedback-WQC4SX75.js} +9 -9
- package/dist/cli/git-E7CXCBZZ.js +24 -0
- package/dist/cli/{git-DJLL3OCZ.mjs → git-QBB7LEAV.mjs} +6 -6
- package/dist/cli/index.js +136 -136
- package/dist/cli/index.mjs +38 -38
- package/dist/cli/{legacy-noops-57SRSZ7M.js → legacy-noops-2QPJTEF4.js} +9 -9
- package/dist/cli/{legacy-noops-EAJG56KP.mjs → legacy-noops-E5NFHPKQ.mjs} +6 -6
- package/dist/cli/{monitors-FHTQ6227.mjs → monitors-E56RLT6N.mjs} +7 -7
- package/dist/cli/{monitors-OI57AAIG.js → monitors-MWBA46VZ.js} +93 -93
- package/dist/cli/{org-26EHPBKF.js → org-HGIWXACI.js} +69 -69
- package/dist/cli/{org-YGHFZTWJ.mjs → org-KE2DDK5A.mjs} +7 -7
- package/dist/cli/{play-KBKWTIXK.mjs → play-LGTF4IYG.mjs} +15 -15
- package/dist/cli/{play-PXGYS4DH.js → play-WO5UXBZM.js} +373 -373
- package/dist/cli/{providers-YPFEVK5C.mjs → providers-77KQS23B.mjs} +7 -7
- package/dist/cli/{providers-IZYBWI6M.js → providers-AIJPT54M.js} +10 -10
- package/dist/cli/{quickstart-RBCTFLI3.js → quickstart-CZQFBJVH.js} +7 -7
- package/dist/cli/{quickstart-SJ2M56CV.mjs → quickstart-EFMHLU4T.mjs} +5 -5
- package/dist/cli/{search-PSPZTTKR.mjs → search-U5KEPKNV.mjs} +8 -8
- package/dist/cli/search-XMNR7CYI.js +30 -0
- package/dist/cli/{secrets-XIWKYXGD.js → secrets-CBBR73U4.js} +16 -16
- package/dist/cli/{secrets-BCS4FE5D.mjs → secrets-JYHZIRO4.mjs} +7 -7
- package/dist/cli/{sessions-L3UEERFX.mjs → sessions-T74U74J7.mjs} +6 -6
- package/dist/cli/sessions-XA2EZDXD.js +16 -0
- package/dist/cli/{settings-SFFP7AR5.mjs → settings-C45BH4CU.mjs} +11 -11
- package/dist/cli/{settings-X2GMYBE7.js → settings-ND4437UB.js} +78 -78
- package/dist/cli/{setup-4ERUKDQ5.js → setup-FQ7JS4HM.js} +44 -44
- package/dist/cli/{setup-QIHAXFBL.mjs → setup-QDH6FAEZ.mjs} +9 -9
- package/dist/cli/skills-CSA2YFW6.js +29 -0
- package/dist/cli/{skills-BYNSDIKJ.mjs → skills-ZFSBA754.mjs} +7 -7
- package/dist/cli/tools-GUALRDI7.js +44 -0
- package/dist/cli/{tools-PQSMCIA7.mjs → tools-OVGOFORB.mjs} +15 -15
- package/dist/cli/{update-BI4E6UXI.mjs → update-BNU7VX5M.mjs} +9 -9
- package/dist/cli/update-K4WJSWDB.js +31 -0
- package/dist/cli/{workflow-PMRFMZVP.mjs → workflow-FX6GLQ3H.mjs} +8 -8
- package/dist/cli/{workflow-52P63K65.js → workflow-JSSXWU3T.js} +18 -18
- package/dist/{client-Doml68vC.d.mts → client-BCmnJaL9.d.mts} +1 -1
- package/dist/{client-9nH8tx4R.d.ts → client-BqQ7Rb11.d.ts} +1 -1
- package/dist/{compiler-manifest-CF2qngKr.d.ts → compiler-manifest-CWz_sNOQ.d.mts} +6 -2
- package/dist/{compiler-manifest-CF2qngKr.d.mts → compiler-manifest-CWz_sNOQ.d.ts} +6 -2
- package/dist/{index-Bq37k0sE.d.ts → index-4NPXDzlD.d.ts} +1 -1
- package/dist/{index-DTI-iNw8.d.mts → index-BF2JB_Ug.d.mts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +10 -10
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +96 -96
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -2
- package/dist/plays/csv-data-input.js +3 -3
- package/dist/plays/csv-data-input.mjs +2 -2
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +3 -3
- package/dist/plays/run-request.mjs +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-LXI5K7V6.js +0 -40
- package/dist/cli/git-2BW2UDK6.js +0 -24
- package/dist/cli/search-5CFJRSGN.js +0 -30
- package/dist/cli/sessions-YX2AJF5I.js +0 -16
- package/dist/cli/skills-EOPZVMJS.js +0 -29
- package/dist/cli/tools-UEZW4OD7.js +0 -44
- package/dist/cli/update-6TOZCQ4Y.js +0 -31
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSOCWFREMjs = require('./chunk-SOCWFREM.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkL3JU24MFjs = require('./chunk-L3JU24MF.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2GVUZA6Cjs = require('./chunk-2GVUZA6C.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
|
|
|
5713
5713
|
var _path = require('path');
|
|
5714
5714
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
5715
5715
|
function lastSearchPath() {
|
|
5716
|
-
return _path.join.call(void 0,
|
|
5716
|
+
return _path.join.call(void 0, _chunk2GVUZA6Cjs.sdkCliStateDirPath.call(void 0, _chunk2GVUZA6Cjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
5717
5717
|
}
|
|
5718
5718
|
function rememberSearchRef(searchRef) {
|
|
5719
5719
|
try {
|
|
@@ -5877,7 +5877,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
5877
5877
|
];
|
|
5878
5878
|
function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
5879
5879
|
if (result.results.length === 0)
|
|
5880
|
-
return
|
|
5880
|
+
return _chunkL3JU24MFjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5881
5881
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5882
5882
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5883
5883
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5902,7 +5902,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
|
5902
5902
|
actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
|
|
5903
5903
|
};
|
|
5904
5904
|
const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
|
|
5905
|
-
${
|
|
5905
|
+
${_chunkL3JU24MFjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5906
5906
|
const notes = rows.flatMap(
|
|
5907
5907
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
5908
5908
|
);
|
|
@@ -5987,7 +5987,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5987
5987
|
console.error("--summary-width must be an integer of at least 2.");
|
|
5988
5988
|
return 1;
|
|
5989
5989
|
}
|
|
5990
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
5990
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkSOCWFREMjs.DeeplineClient)().search({
|
|
5991
5991
|
query,
|
|
5992
5992
|
types,
|
|
5993
5993
|
exclude,
|
|
@@ -6001,7 +6001,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
6001
6001
|
});
|
|
6002
6002
|
if (searchRef) rememberSearchRef(searchRef);
|
|
6003
6003
|
pointAtDescribe(result);
|
|
6004
|
-
|
|
6004
|
+
_chunkL3JU24MFjs.printCommandEnvelope.call(void 0, result, {
|
|
6005
6005
|
json: options.json === true,
|
|
6006
6006
|
text: renderSearchResults(result, summaryWidth)
|
|
6007
6007
|
});
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
recentSearchRef,
|
|
7
7
|
registerDeprecatedSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KKTRHDLN.mjs";
|
|
9
9
|
import {
|
|
10
10
|
arrayField,
|
|
11
11
|
formatModelDescription,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
DeeplineClient,
|
|
47
47
|
validateExecutionIdempotencyKey
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-7ICMVQL5.mjs";
|
|
49
49
|
import {
|
|
50
50
|
stableStringify
|
|
51
51
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -55,18 +55,18 @@ import {
|
|
|
55
55
|
maybeAutoUpdateAndRelaunch,
|
|
56
56
|
registerCompatibilityCatalog,
|
|
57
57
|
runToolExecuteStage
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-L2FWEP4G.mjs";
|
|
59
59
|
import {
|
|
60
60
|
isCliTraceEnabled,
|
|
61
61
|
recordCliTrace,
|
|
62
62
|
resolveCliMaintenancePolicy
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-SMM2EKDC.mjs";
|
|
64
64
|
import {
|
|
65
65
|
checkSdkCompatibility,
|
|
66
66
|
enforceSdkCompatibilityResponse,
|
|
67
67
|
flushDeferredSkillsSyncNotices,
|
|
68
68
|
syncSdkSkillsIfNeeded
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-WY4W6PRD.mjs";
|
|
70
70
|
import {
|
|
71
71
|
printCommandEnvelope,
|
|
72
72
|
printCompactJson,
|
|
@@ -74,15 +74,15 @@ import {
|
|
|
74
74
|
printJsonError,
|
|
75
75
|
renderCommandEnvelopeText,
|
|
76
76
|
shouldEmitJson
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-TP4TMEML.mjs";
|
|
78
78
|
import {
|
|
79
79
|
readSdkSkillsLocalVersion,
|
|
80
80
|
resolveConfig,
|
|
81
81
|
sdkCliStateDirPath
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-P4GMPKMW.mjs";
|
|
83
83
|
import {
|
|
84
84
|
DeeplineError
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-HBL4PM5Q.mjs";
|
|
86
86
|
|
|
87
87
|
// src/cli/commands/tools.ts
|
|
88
88
|
import { Option } from "commander";
|
|
@@ -968,7 +968,7 @@ Examples:
|
|
|
968
968
|
process.exitCode = await narrowView();
|
|
969
969
|
return;
|
|
970
970
|
}
|
|
971
|
-
const { describeAnything } = await import("./describe-
|
|
971
|
+
const { describeAnything } = await import("./describe-C35MTKF4.mjs");
|
|
972
972
|
process.exitCode = await describeAnything(
|
|
973
973
|
toolId,
|
|
974
974
|
{
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5ZQEDZDQ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YGMUSZLV.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WY4W6PRD.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TP4TMEML.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-P4GMPKMW.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HBL4PM5Q.mjs";
|
|
4
4
|
|
|
5
5
|
// node_modules/csv-parse/dist/esm/sync.js
|
|
6
6
|
var global$1 = typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ConfigError,
|
|
4
4
|
RateLimitError,
|
|
5
5
|
ToolRateLimitError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4QF2K7TM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
apiErrorCodeFromResponse,
|
|
9
9
|
apiErrorMessage
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
ToolExecutionError,
|
|
15
15
|
deserializeToolExecutionFailure,
|
|
16
16
|
serializeToolExecutionFailure
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HBL4PM5Q.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_RELEASE
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VLQWLPQU.mjs";
|
|
21
21
|
|
|
22
22
|
// src/config.ts
|
|
23
23
|
import {
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkD5IOUCJSjs = require('./chunk-D5IOUCJS.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkL3JU24MFjs = require('./chunk-L3JU24MF.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ var _chunkBBYGXP2Ijs = require('./chunk-BBYGXP2I.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk2GVUZA6Cjs = require('./chunk-2GVUZA6C.js');
|
|
26
26
|
|
|
27
27
|
// src/cli/commands/skills.ts
|
|
28
28
|
var _child_process = require('child_process');
|
|
@@ -75,7 +75,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
75
75
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
76
76
|
}
|
|
77
77
|
function resolveLocalRoot() {
|
|
78
|
-
const target =
|
|
78
|
+
const target = _chunk2GVUZA6Cjs.resolveProjectPinTarget.call(void 0, );
|
|
79
79
|
if (!target.ok) {
|
|
80
80
|
throw new Error(
|
|
81
81
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -86,7 +86,7 @@ function resolveLocalRoot() {
|
|
|
86
86
|
return target.dir;
|
|
87
87
|
}
|
|
88
88
|
function detectSkillsAgents(input) {
|
|
89
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
89
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunk2GVUZA6Cjs.detectAgentRuntime.call(void 0, )));
|
|
90
90
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
91
91
|
if (knownAgent) return [knownAgent];
|
|
92
92
|
const roots = [
|
|
@@ -101,11 +101,11 @@ function detectSkillsAgents(input) {
|
|
|
101
101
|
return detected.length > 0 ? detected : ["*"];
|
|
102
102
|
}
|
|
103
103
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
104
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
104
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk2GVUZA6Cjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
105
105
|
}
|
|
106
106
|
function buildSkillsPlan(input) {
|
|
107
107
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
108
|
-
const legacyNames = [...
|
|
108
|
+
const legacyNames = [..._chunkD5IOUCJSjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
109
109
|
(a, b) => a.localeCompare(b)
|
|
110
110
|
);
|
|
111
111
|
return {
|
|
@@ -119,7 +119,7 @@ function buildSkillsPlan(input) {
|
|
|
119
119
|
args: [
|
|
120
120
|
"exec",
|
|
121
121
|
"--yes",
|
|
122
|
-
`--package=${
|
|
122
|
+
`--package=${_chunkD5IOUCJSjs.SKILLS_NPX_PACKAGE}`,
|
|
123
123
|
"--",
|
|
124
124
|
"skills",
|
|
125
125
|
"remove",
|
|
@@ -135,11 +135,11 @@ function buildSkillsPlan(input) {
|
|
|
135
135
|
args: [
|
|
136
136
|
"exec",
|
|
137
137
|
"--yes",
|
|
138
|
-
`--package=${
|
|
138
|
+
`--package=${_chunkD5IOUCJSjs.SKILLS_NPX_PACKAGE}`,
|
|
139
139
|
"--",
|
|
140
140
|
"skills",
|
|
141
141
|
"add",
|
|
142
|
-
|
|
142
|
+
_chunkD5IOUCJSjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
143
143
|
"--agent",
|
|
144
144
|
...input.agents,
|
|
145
145
|
...scopeArgs,
|
|
@@ -176,7 +176,7 @@ function readSkillsInstallState(path) {
|
|
|
176
176
|
}
|
|
177
177
|
function runProcess(command, args, cwd) {
|
|
178
178
|
return new Promise((resolve, reject) => {
|
|
179
|
-
const plan =
|
|
179
|
+
const plan = _chunkD5IOUCJSjs.resolveShellSpawn.call(void 0,
|
|
180
180
|
command,
|
|
181
181
|
args,
|
|
182
182
|
process.platform,
|
|
@@ -198,7 +198,7 @@ function runProcess(command, args, cwd) {
|
|
|
198
198
|
child.kill("SIGTERM");
|
|
199
199
|
reject(
|
|
200
200
|
new Error(
|
|
201
|
-
`${
|
|
201
|
+
`${_chunkD5IOUCJSjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
202
202
|
)
|
|
203
203
|
);
|
|
204
204
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -209,7 +209,7 @@ function runProcess(command, args, cwd) {
|
|
|
209
209
|
child.once("close", (code) => {
|
|
210
210
|
clearTimeout(timeout);
|
|
211
211
|
if (code && stderr.trim()) {
|
|
212
|
-
process.stderr.write(`${
|
|
212
|
+
process.stderr.write(`${_chunkD5IOUCJSjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
213
213
|
`);
|
|
214
214
|
}
|
|
215
215
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -223,7 +223,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
223
223
|
scope = normalizeScope(options.scope);
|
|
224
224
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
225
225
|
} catch (error) {
|
|
226
|
-
|
|
226
|
+
_chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
|
|
227
227
|
{
|
|
228
228
|
ok: false,
|
|
229
229
|
status: "failed",
|
|
@@ -235,22 +235,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
235
235
|
);
|
|
236
236
|
return 2;
|
|
237
237
|
}
|
|
238
|
-
const baseUrl =
|
|
238
|
+
const baseUrl = _chunk2GVUZA6Cjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
239
239
|
const catalog = {
|
|
240
|
-
skillNames: [...
|
|
241
|
-
version:
|
|
240
|
+
skillNames: [..._chunkD5IOUCJSjs.DEFAULT_SDK_SKILL_NAMES],
|
|
241
|
+
version: _chunk2GVUZA6Cjs.SDK_VERSION
|
|
242
242
|
};
|
|
243
243
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
244
244
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
245
245
|
if (options.dryRun) {
|
|
246
|
-
|
|
246
|
+
_chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
|
|
247
247
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
248
248
|
{ json: options.json }
|
|
249
249
|
);
|
|
250
250
|
return 0;
|
|
251
251
|
}
|
|
252
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
253
|
-
|
|
252
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkD5IOUCJSjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
253
|
+
_chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
|
|
254
254
|
{
|
|
255
255
|
ok: true,
|
|
256
256
|
status: "current",
|
|
@@ -282,10 +282,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
282
282
|
}
|
|
283
283
|
if (scope === "local" && root) {
|
|
284
284
|
const managedNames = [
|
|
285
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
285
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkD5IOUCJSjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
286
286
|
];
|
|
287
287
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
288
|
-
|
|
288
|
+
_chunk2GVUZA6Cjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
289
289
|
".deepline/",
|
|
290
290
|
...agentRoots.flatMap(
|
|
291
291
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -294,7 +294,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
294
294
|
}
|
|
295
295
|
let lease;
|
|
296
296
|
try {
|
|
297
|
-
lease = scope === "global" ? await
|
|
297
|
+
lease = scope === "global" ? await _chunkD5IOUCJSjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
298
298
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
299
299
|
onWait: () => process.stderr.write(
|
|
300
300
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -302,8 +302,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
302
302
|
}) : { release: () => {
|
|
303
303
|
} };
|
|
304
304
|
} catch (error) {
|
|
305
|
-
if (!(error instanceof
|
|
306
|
-
|
|
305
|
+
if (!(error instanceof _chunkD5IOUCJSjs.SkillsStateUnavailableError)) throw error;
|
|
306
|
+
_chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
|
|
307
307
|
{
|
|
308
308
|
ok: false,
|
|
309
309
|
status: "failed",
|
|
@@ -319,7 +319,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
319
319
|
return 5;
|
|
320
320
|
}
|
|
321
321
|
if (!lease) {
|
|
322
|
-
|
|
322
|
+
_chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
ok: false,
|
|
325
325
|
status: "failed",
|
|
@@ -328,7 +328,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
328
328
|
scope,
|
|
329
329
|
agents,
|
|
330
330
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
331
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
331
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkD5IOUCJSjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
332
332
|
},
|
|
333
333
|
{ json: options.json }
|
|
334
334
|
);
|
|
@@ -365,7 +365,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
365
365
|
throw new Error("Could not install the current Deepline skills.");
|
|
366
366
|
}
|
|
367
367
|
} catch (error) {
|
|
368
|
-
|
|
368
|
+
_chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
|
|
369
369
|
{
|
|
370
370
|
ok: false,
|
|
371
371
|
status: "failed",
|
|
@@ -404,7 +404,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
404
404
|
{
|
|
405
405
|
schemaVersion: 1,
|
|
406
406
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
407
|
-
cliVersion:
|
|
407
|
+
cliVersion: _chunk2GVUZA6Cjs.SDK_VERSION,
|
|
408
408
|
scope,
|
|
409
409
|
agents,
|
|
410
410
|
skillsVersion: plan.version,
|
|
@@ -417,9 +417,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
417
417
|
"utf8"
|
|
418
418
|
);
|
|
419
419
|
if (scope === "global") {
|
|
420
|
-
|
|
420
|
+
_chunkD5IOUCJSjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
421
421
|
}
|
|
422
|
-
|
|
422
|
+
_chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
|
|
423
423
|
{
|
|
424
424
|
ok: true,
|
|
425
425
|
status: "complete",
|
|
@@ -450,7 +450,7 @@ function registerSkillsCommand(program) {
|
|
|
450
450
|
"after",
|
|
451
451
|
`
|
|
452
452
|
Notes:
|
|
453
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
453
|
+
This command reinstalls current Deepline-managed skills using ${_chunkD5IOUCJSjs.SKILLS_NPX_PACKAGE},
|
|
454
454
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
455
455
|
persistent project.
|
|
456
456
|
|
|
@@ -462,13 +462,13 @@ Examples:
|
|
|
462
462
|
).action(async (options) => {
|
|
463
463
|
process.exitCode = await runSkillsCommand(options);
|
|
464
464
|
});
|
|
465
|
-
program.command(
|
|
465
|
+
program.command(_chunkD5IOUCJSjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
466
466
|
"--claim <token>",
|
|
467
467
|
"Owner token of the leases this child was started for."
|
|
468
468
|
).action(async (options) => {
|
|
469
469
|
const claim = _optionalChain([options, 'access', _ => _.claim, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3()]);
|
|
470
470
|
if (!claim) {
|
|
471
|
-
|
|
471
|
+
_chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
|
|
472
472
|
{
|
|
473
473
|
ok: false,
|
|
474
474
|
status: "failed",
|
|
@@ -481,7 +481,7 @@ Examples:
|
|
|
481
481
|
process.exitCode = 2;
|
|
482
482
|
return;
|
|
483
483
|
}
|
|
484
|
-
await
|
|
484
|
+
await _chunkD5IOUCJSjs.syncSdkSkillsIfNeeded.call(void 0, _chunk2GVUZA6Cjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
485
485
|
mode: "inline",
|
|
486
486
|
notices: "defer",
|
|
487
487
|
claim
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7BH4ZOWEjs = require('./chunk-7BH4ZOWE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkD5IOUCJSjs = require('./chunk-D5IOUCJS.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -14,17 +14,17 @@ function usesInlinePlayAdmission(command, args) {
|
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured") {
|
|
17
|
-
if (maintenancePolicy !== "off")
|
|
18
|
-
const compatibility = await
|
|
17
|
+
if (maintenancePolicy !== "off") _chunkD5IOUCJSjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
18
|
+
const compatibility = await _chunk7BH4ZOWEjs.traceCliSpan.call(void 0,
|
|
19
19
|
"cli.sdk_compatibility",
|
|
20
20
|
{ baseUrl, command: "plays run" },
|
|
21
|
-
() =>
|
|
21
|
+
() => _chunkD5IOUCJSjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
22
22
|
command: "plays run",
|
|
23
23
|
persistCache: maintenancePolicy !== "off"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
if (compatibility.error) throw compatibility.error;
|
|
27
|
-
|
|
27
|
+
_chunkD5IOUCJSjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
28
28
|
quietAdvisory: true
|
|
29
29
|
});
|
|
30
30
|
}
|