deepline 0.3.445 → 0.3.447
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/monitors/signal-radars/inbound-dead-letter.ts +3 -0
- package/dist/cli/{auth-QNWYRLML.mjs → auth-COGJHSV4.mjs} +4 -4
- package/dist/cli/auth-MHBOTH5I.js +40 -0
- package/dist/cli/{billing-ULHQPQ2L.mjs → billing-LMW3OXJG.mjs} +4 -4
- package/dist/cli/{billing-3HFPC32I.js → billing-O4VZKEBX.js} +73 -73
- package/dist/cli/{chunk-GGMJ2VTZ.js → chunk-3HQHWCXO.js} +246 -246
- package/dist/cli/{chunk-T7SLOS2J.mjs → chunk-3T74FJWG.mjs} +4 -4
- package/dist/cli/{chunk-TABMEHIP.js → chunk-4OGNPUTA.js} +4 -4
- package/dist/cli/{chunk-THZL4XHV.js → chunk-5FRUCHTH.js} +8 -8
- package/dist/cli/{chunk-SAN2HUYZ.mjs → chunk-6EQRPWRM.mjs} +11 -11
- package/dist/cli/{chunk-MMMA4OLB.js → chunk-7DEPUMTR.js} +8 -8
- package/dist/cli/{chunk-2L2D2SXH.mjs → chunk-7Y6TUHBC.mjs} +2 -2
- package/dist/cli/{chunk-3SELRVWB.mjs → chunk-AWV47AZQ.mjs} +5 -5
- package/dist/cli/{chunk-HFXG7GGH.js → chunk-AZ3I7WXB.js} +6 -6
- package/dist/cli/{chunk-SSRKG7I5.mjs → chunk-BJ5JX32Q.mjs} +3 -3
- package/dist/cli/{chunk-E5JZH6CI.mjs → chunk-DOTKSF3L.mjs} +1 -1
- package/dist/cli/{chunk-6DQTJ3DY.js → chunk-DQJOTP5P.js} +35 -35
- package/dist/cli/{chunk-V247SCRQ.js → chunk-DXMNRVCV.js} +20 -20
- package/dist/cli/{chunk-IXJN2NLA.mjs → chunk-ETLBBI6B.mjs} +1 -1
- package/dist/cli/{chunk-TX6F2BB6.js → chunk-F4IUMSC6.js} +2 -2
- package/dist/cli/{chunk-FB7VBDA3.mjs → chunk-G3QV4EOW.mjs} +3 -3
- package/dist/cli/{chunk-HU6PIQDF.mjs → chunk-G7L27KZB.mjs} +2 -2
- package/dist/cli/{chunk-H6HZMADG.js → chunk-GC7P7QC4.js} +52 -52
- package/dist/cli/{chunk-6LVOC2HD.mjs → chunk-H5YDQBLP.mjs} +1 -1
- package/dist/cli/{chunk-W25OALCJ.mjs → chunk-HDFRJ4IT.mjs} +32 -5
- package/dist/cli/{chunk-LBZUIZKQ.mjs → chunk-JNO7JR6A.mjs} +2 -2
- package/dist/cli/{chunk-BEI6ZL6E.mjs → chunk-JRQFJMP5.mjs} +1 -1
- package/dist/cli/{chunk-KNAKCMGJ.js → chunk-KGQNIA37.js} +17 -17
- package/dist/cli/{chunk-732QWWPG.js → chunk-LJE4SJYM.js} +10 -10
- package/dist/cli/{chunk-C54S4QPU.mjs → chunk-O2WRDCE6.mjs} +2 -2
- package/dist/cli/{chunk-5JJ6JYTL.js → chunk-POS24KGO.js} +6 -6
- package/dist/cli/{chunk-PP66EATA.js → chunk-PQUUWFXY.js} +2 -2
- package/dist/cli/{chunk-CQ3ZZ3RL.js → chunk-QSKHP36B.js} +16 -16
- package/dist/cli/{chunk-ZRWX23RQ.mjs → chunk-RTP24G2N.mjs} +1 -1
- package/dist/cli/{chunk-WQPJQEDE.mjs → chunk-SLEUWLJE.mjs} +4 -3
- package/dist/cli/{chunk-EI2NN6HP.js → chunk-SVSWKNUO.js} +1 -1
- package/dist/cli/{chunk-FC7LS3Y5.js → chunk-TFFZZSOA.js} +50 -50
- package/dist/cli/{chunk-OAVHRVPA.js → chunk-U57YILAD.js} +2 -2
- package/dist/cli/{chunk-COCZROBN.js → chunk-VFK2XNEX.js} +26 -26
- package/dist/cli/{chunk-NHWNFLFK.mjs → chunk-VN2S5AD7.mjs} +2 -2
- package/dist/cli/{chunk-3OBHZADJ.mjs → chunk-XPZVU6DO.mjs} +1 -1
- package/dist/cli/{chunk-YXY6FCRU.mjs → chunk-XQTTO5ZK.mjs} +3 -3
- package/dist/cli/{chunk-FKAHVFPJ.mjs → chunk-YBWAG72P.mjs} +1 -1
- package/dist/cli/{chunk-QFXPA2E4.js → chunk-Z2GUFYT6.js} +9 -8
- package/dist/cli/{chunk-LRNYRGCN.js → chunk-Z2XUZC34.js} +32 -5
- package/dist/cli/{csv-QXMJNWPE.mjs → csv-THN4ZLUI.mjs} +3 -3
- package/dist/cli/{csv-NAATVV3O.js → csv-TKHPVZTQ.js} +12 -12
- package/dist/cli/{db-2ADNWVDN.mjs → db-4OLJNFTE.mjs} +4 -4
- package/dist/cli/{db-IB426AKH.js → db-JRFN65AN.js} +25 -25
- package/dist/cli/{describe-6T2HEQ2V.js → describe-OER7TYUP.js} +24 -24
- package/dist/cli/{describe-UM4PAI2I.mjs → describe-PC2VEBPG.mjs} +16 -16
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-3WVCUBHH.js → executions-H4GQTNRL.js} +6 -6
- package/dist/cli/{executions-4NCMXHDI.mjs → executions-UCUKWRNI.mjs} +4 -4
- package/dist/cli/{feedback-C4IBRZKH.js → feedback-4N3WCV2J.js} +7 -7
- package/dist/cli/{feedback-OKLN3VLD.mjs → feedback-GYMC5YZB.mjs} +3 -3
- package/dist/cli/{git-A6XP6LIW.mjs → git-AXXF7WZP.mjs} +4 -4
- package/dist/cli/git-LHHJFXJL.js +24 -0
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-LCQXCYQY.mjs → legacy-noops-GOH56MJB.mjs} +4 -4
- package/dist/cli/{legacy-noops-ALY2PBIT.js → legacy-noops-N7OL7HA5.js} +7 -7
- package/dist/cli/{monitors-T3YN2RYD.mjs → monitors-57FT6XVT.mjs} +4 -4
- package/dist/cli/{monitors-5C6PSVAT.js → monitors-JH63QWM2.js} +84 -84
- package/dist/cli/{org-4V76A3LD.js → org-2XHVAWMG.js} +66 -66
- package/dist/cli/{org-7WLA42NC.mjs → org-SWUF6IMF.mjs} +4 -4
- package/dist/cli/{play-WRHGX3WB.mjs → play-5LWJRKWA.mjs} +12 -12
- package/dist/cli/{play-UT3TLBM6.js → play-ZFOIZD4I.js} +296 -296
- package/dist/cli/{providers-ZR4SRGJF.js → providers-74MVZVMN.js} +7 -7
- package/dist/cli/{providers-UA2DJLBP.mjs → providers-D4C2JSKB.mjs} +4 -4
- package/dist/cli/{quickstart-IT46STSN.mjs → quickstart-2UBYYZZ2.mjs} +3 -3
- package/dist/cli/{quickstart-QN5FXZWS.js → quickstart-V2VPGBNV.js} +5 -5
- package/dist/cli/{search-QKK5SGMV.mjs → search-AEF4GNGW.mjs} +5 -5
- package/dist/cli/search-LT23PNKG.js +30 -0
- package/dist/cli/{secrets-FX3IVBUP.js → secrets-HOPL4L2K.js} +13 -13
- package/dist/cli/{secrets-GWXM2FH4.mjs → secrets-LSA45EST.mjs} +4 -4
- package/dist/cli/{sessions-G6LCRYTC.js → sessions-YAO2R3VM.js} +5 -5
- package/dist/cli/{sessions-FDZ24XY4.mjs → sessions-ZDW2TWJD.mjs} +4 -4
- package/dist/cli/{settings-6W42BCZE.js → settings-5NVBSJE3.js} +75 -75
- package/dist/cli/{settings-77ODFZUE.mjs → settings-L7VDUB4S.mjs} +8 -8
- package/dist/cli/{setup-5OBB5UGB.mjs → setup-2SNQ6KRO.mjs} +7 -7
- package/dist/cli/{setup-T3FF5IRN.js → setup-E2KCE7JQ.js} +42 -42
- package/dist/cli/{skills-ADG7CBUP.mjs → skills-3AJAHTG3.mjs} +5 -5
- package/dist/cli/skills-UOZ4C3PQ.js +29 -0
- package/dist/cli/tools-4QF5UT7T.js +44 -0
- package/dist/cli/{tools-OBZRYZ7K.mjs → tools-VSZOCX3I.mjs} +15 -15
- package/dist/cli/{update-ODKOYFCA.mjs → update-ML7WYXTR.mjs} +7 -7
- package/dist/cli/update-MQV3ZPDE.js +31 -0
- package/dist/cli/{workflow-TBLNAOXJ.js → workflow-PNOMCXFA.js} +15 -15
- package/dist/cli/{workflow-RGKEVZSP.mjs → workflow-XW3F2T4N.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +86 -86
- 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-ZA4FRBSX.js +0 -40
- package/dist/cli/git-RRZOWDCN.js +0 -24
- package/dist/cli/search-INZD56I2.js +0 -30
- package/dist/cli/skills-ALCERVAB.js +0 -29
- package/dist/cli/tools-FNWIMNNK.js +0 -44
- package/dist/cli/update-N7I4MXRK.js +0 -31
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AWV47AZQ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XQTTO5ZK.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XPZVU6DO.mjs";
|
|
15
15
|
import {
|
|
16
16
|
SDK_VERSION,
|
|
17
17
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RTP24G2N.mjs";
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkSVSWKNUOjs = require('./chunk-SVSWKNUO.js');
|
|
21
21
|
|
|
22
22
|
// src/config.ts
|
|
23
23
|
|
|
@@ -649,9 +649,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
// src/version.ts
|
|
652
|
-
var SDK_VERSION =
|
|
653
|
-
var SDK_API_MAJOR =
|
|
654
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
652
|
+
var SDK_VERSION = _chunkSVSWKNUOjs.SDK_RELEASE.version;
|
|
653
|
+
var SDK_API_MAJOR = _chunkSVSWKNUOjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
654
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkSVSWKNUOjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
655
655
|
|
|
656
656
|
// src/agent-runtime.ts
|
|
657
657
|
|
|
@@ -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
|
|
4
|
+
var _chunkPOS24KGOjs = require('./chunk-POS24KGO.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4OGNPUTAjs = require('./chunk-4OGNPUTA.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 =
|
|
142
|
+
const sessionId = _chunk4OGNPUTAjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkPOS24KGOjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkPOS24KGOjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkPOS24KGOjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkPOS24KGOjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkPOS24KGOjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YBWAG72P.mjs";
|
|
5
5
|
import {
|
|
6
6
|
recentSearchRef,
|
|
7
7
|
registerDeprecatedSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-G3QV4EOW.mjs";
|
|
9
9
|
import {
|
|
10
10
|
arrayField,
|
|
11
11
|
formatModelDescription,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
toolInputFieldsForDisplay,
|
|
25
25
|
toolMetadataJsonForDescribe,
|
|
26
26
|
toolOutputFieldsForDisplay
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SLEUWLJE.mjs";
|
|
28
28
|
import {
|
|
29
29
|
rateLimitQualifier
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HDFRJ4IT.mjs";
|
|
31
31
|
import {
|
|
32
32
|
shellQuote
|
|
33
33
|
} from "./chunk-OVDNJAJN.mjs";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import {
|
|
49
49
|
DeeplineClient,
|
|
50
50
|
validateExecutionIdempotencyKey
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-JRQFJMP5.mjs";
|
|
52
52
|
import {
|
|
53
53
|
stableStringify
|
|
54
54
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -58,18 +58,18 @@ import {
|
|
|
58
58
|
maybeAutoUpdateAndRelaunch,
|
|
59
59
|
registerCompatibilityCatalog,
|
|
60
60
|
runToolExecuteStage
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-3T74FJWG.mjs";
|
|
62
62
|
import {
|
|
63
63
|
isCliTraceEnabled,
|
|
64
64
|
recordCliTrace,
|
|
65
65
|
resolveCliMaintenancePolicy
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-ETLBBI6B.mjs";
|
|
67
67
|
import {
|
|
68
68
|
checkSdkCompatibility,
|
|
69
69
|
enforceSdkCompatibilityResponse,
|
|
70
70
|
flushDeferredSkillsSyncNotices,
|
|
71
71
|
syncSdkSkillsIfNeeded
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-XQTTO5ZK.mjs";
|
|
73
73
|
import {
|
|
74
74
|
printCommandEnvelope,
|
|
75
75
|
printCompactJson,
|
|
@@ -77,12 +77,12 @@ import {
|
|
|
77
77
|
printJsonError,
|
|
78
78
|
renderCommandEnvelopeText,
|
|
79
79
|
shouldEmitJson
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-XPZVU6DO.mjs";
|
|
81
81
|
import {
|
|
82
82
|
readSdkSkillsLocalVersion,
|
|
83
83
|
resolveConfig,
|
|
84
84
|
sdkCliStateDirPath
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-RTP24G2N.mjs";
|
|
86
86
|
import {
|
|
87
87
|
DeeplineError
|
|
88
88
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -971,7 +971,7 @@ Examples:
|
|
|
971
971
|
process.exitCode = await narrowView();
|
|
972
972
|
return;
|
|
973
973
|
}
|
|
974
|
-
const { describeAnything } = await import("./describe-
|
|
974
|
+
const { describeAnything } = await import("./describe-PC2VEBPG.mjs");
|
|
975
975
|
process.exitCode = await describeAnything(
|
|
976
976
|
toolId,
|
|
977
977
|
{
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkLJE4SJYMjs = require('./chunk-LJE4SJYM.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkPOS24KGOjs = require('./chunk-POS24KGO.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk4OGNPUTAjs = require('./chunk-4OGNPUTA.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, _chunk4OGNPUTAjs.sdkCliStateDirPath.call(void 0, _chunk4OGNPUTAjs.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 _chunkPOS24KGOjs.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
|
+
${_chunkPOS24KGOjs.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, _chunkLJE4SJYMjs.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
|
+
_chunkPOS24KGOjs.printCommandEnvelope.call(void 0, result, {
|
|
6005
6005
|
json: options.json === true,
|
|
6006
6006
|
text: renderSearchResults(result, summaryWidth)
|
|
6007
6007
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ETLBBI6B.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XQTTO5ZK.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DOTKSF3L.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BJ5JX32Q.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XQTTO5ZK.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XPZVU6DO.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RTP24G2N.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkU57YILADjs = require('./chunk-U57YILAD.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGC7P7QC4js = require('./chunk-GC7P7QC4.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") _chunkGC7P7QC4js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
18
|
+
const compatibility = await _chunkU57YILADjs.traceCliSpan.call(void 0,
|
|
19
19
|
"cli.sdk_compatibility",
|
|
20
20
|
{ baseUrl, command: "plays run" },
|
|
21
|
-
() =>
|
|
21
|
+
() => _chunkGC7P7QC4js.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
|
+
_chunkGC7P7QC4js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
28
28
|
quietAdvisory: true
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XQTTO5ZK.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XPZVU6DO.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION,
|
|
20
20
|
autoDetectBaseUrl,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ensureProjectPrivatePathsIgnored,
|
|
23
23
|
resolveProjectPinTarget,
|
|
24
24
|
sdkCliStateDirPath
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RTP24G2N.mjs";
|
|
26
26
|
|
|
27
27
|
// src/cli/commands/skills.ts
|
|
28
28
|
import { spawn } from "child_process";
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkGC7P7QC4js = require('./chunk-GC7P7QC4.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkPOS24KGOjs = require('./chunk-POS24KGO.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ var _chunk5JJ6JYTLjs = require('./chunk-5JJ6JYTL.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk4OGNPUTAjs = require('./chunk-4OGNPUTA.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 = _chunk4OGNPUTAjs.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, () => ( _chunk4OGNPUTAjs.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, _chunk4OGNPUTAjs.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 = [..._chunkGC7P7QC4js.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=${_chunkGC7P7QC4js.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=${_chunkGC7P7QC4js.SKILLS_NPX_PACKAGE}`,
|
|
139
139
|
"--",
|
|
140
140
|
"skills",
|
|
141
141
|
"add",
|
|
142
|
-
|
|
142
|
+
_chunkGC7P7QC4js.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 = _chunkGC7P7QC4js.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
|
+
`${_chunkGC7P7QC4js.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(`${_chunkGC7P7QC4js.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
|
+
_chunkPOS24KGOjs.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 = _chunk4OGNPUTAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
239
239
|
const catalog = {
|
|
240
|
-
skillNames: [...
|
|
241
|
-
version:
|
|
240
|
+
skillNames: [..._chunkGC7P7QC4js.DEFAULT_SDK_SKILL_NAMES],
|
|
241
|
+
version: _chunk4OGNPUTAjs.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
|
+
_chunkPOS24KGOjs.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)) && !_chunkGC7P7QC4js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
253
|
+
_chunkPOS24KGOjs.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, ..._chunkGC7P7QC4js.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
286
286
|
];
|
|
287
287
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
288
|
-
|
|
288
|
+
_chunk4OGNPUTAjs.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 _chunkGC7P7QC4js.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 _chunkGC7P7QC4js.SkillsStateUnavailableError)) throw error;
|
|
306
|
+
_chunkPOS24KGOjs.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
|
+
_chunkPOS24KGOjs.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 ${_chunkGC7P7QC4js.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
|
+
_chunkPOS24KGOjs.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: _chunk4OGNPUTAjs.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
|
+
_chunkGC7P7QC4js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
421
421
|
}
|
|
422
|
-
|
|
422
|
+
_chunkPOS24KGOjs.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 ${_chunkGC7P7QC4js.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(_chunkGC7P7QC4js.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
|
+
_chunkPOS24KGOjs.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 _chunkGC7P7QC4js.syncSdkSkillsIfNeeded.call(void 0, _chunk4OGNPUTAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
485
485
|
mode: "inline",
|
|
486
486
|
notices: "defer",
|
|
487
487
|
claim
|