deepline 0.3.492 → 0.3.493
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 +11 -5
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +25 -9
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +5 -4
- package/dist/bundling-sources/shared_libs/play-runtime/crustdata-company-identify-batching.ts +162 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +19 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/receipt-sql.ts +17 -23
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +28 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +75 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +412 -59
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +38 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +19 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +165 -12
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
- package/dist/cli/{auth-4I6QY5WX.mjs → auth-3NAY3AST.mjs} +5 -5
- package/dist/cli/auth-KYQLDI6V.js +43 -0
- package/dist/cli/{billing-2H4GOJZY.js → billing-FSB4BBBO.js} +80 -80
- package/dist/cli/{billing-4F6L4JSI.mjs → billing-SBWQCC7B.mjs} +7 -7
- package/dist/cli/{chunk-MQ2LQOAM.mjs → chunk-2BRTYIAH.mjs} +23 -9
- package/dist/cli/{chunk-E47VAVAR.js → chunk-2H4OFVR5.js} +5 -5
- package/dist/cli/{chunk-ZDTPSVGF.js → chunk-2I7VN65H.js} +10 -10
- package/dist/cli/{chunk-LCCFGSV7.mjs → chunk-2IHGVAGT.mjs} +2 -2
- package/dist/cli/{chunk-BDUFZSUL.js → chunk-2NGIBJM2.js} +8 -8
- package/dist/cli/{chunk-OTUT3XTX.mjs → chunk-3QGUWB6E.mjs} +4 -4
- package/dist/cli/{chunk-3BRDP4UP.mjs → chunk-4IJFQV3O.mjs} +1 -1
- package/dist/cli/{chunk-PIC6M4X3.mjs → chunk-4NIGNT7X.mjs} +1 -1
- package/dist/cli/{chunk-YVOYZPMY.mjs → chunk-5DIZ2G74.mjs} +2 -2
- package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
- package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-5WOPBX3H.mjs} +1 -1
- package/dist/cli/{chunk-R5MP3CIY.mjs → chunk-67ZG7XZV.mjs} +3 -3
- package/dist/cli/{chunk-W4FEX5ZF.js → chunk-7HABWOMB.js} +261 -261
- package/dist/cli/{chunk-FPLN7PHP.js → chunk-AGTXL6LZ.js} +5 -5
- package/dist/cli/{chunk-SE23YSBK.js → chunk-AWMCZAUR.js} +3 -3
- package/dist/cli/{chunk-HHTVRICE.js → chunk-C2MRDPA5.js} +17 -17
- package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
- package/dist/cli/{chunk-O3K22ZC7.js → chunk-DWJ4RXSA.js} +34 -11
- package/dist/cli/{chunk-6YO4OJPM.mjs → chunk-DYP27IWC.mjs} +99 -24
- package/dist/cli/{chunk-EANFUHRM.mjs → chunk-E5ILCMKQ.mjs} +1 -1
- package/dist/cli/{chunk-Y7QCMOGZ.mjs → chunk-EBAS3UT2.mjs} +6 -6
- package/dist/cli/{chunk-DJOLMS2A.js → chunk-EFO5GVYS.js} +1 -1
- package/dist/cli/{chunk-NF7NUKWF.js → chunk-EYG336YV.js} +132 -57
- package/dist/cli/{chunk-OKHBAAJG.mjs → chunk-GSC35TPZ.mjs} +2 -2
- package/dist/cli/{chunk-MPITIXW4.mjs → chunk-HLM2UFQ5.mjs} +13 -5
- package/dist/cli/{chunk-TVUE4CPW.js → chunk-HTUSTPP4.js} +32 -32
- package/dist/cli/{chunk-GDSZWTJK.mjs → chunk-IJJ6D5WL.mjs} +12 -12
- package/dist/cli/{chunk-3TISK5RQ.js → chunk-IJOHWGPF.js} +6 -6
- package/dist/cli/{chunk-NBL6JMIY.js → chunk-IOBPR2VO.js} +17 -17
- package/dist/cli/{chunk-EFFHRXKB.js → chunk-IOMEJKGK.js} +2 -2
- package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-IRDYBMA7.mjs} +34 -11
- package/dist/cli/{chunk-B2JE3HD6.js → chunk-JO2JZUBR.js} +3 -3
- package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
- package/dist/cli/{chunk-O2FB42N2.js → chunk-KCDZWS2B.js} +56 -56
- package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-KGDDQMI7.mjs} +2 -2
- package/dist/cli/{chunk-UUH4GQRL.mjs → chunk-KKSKYZO4.mjs} +1 -1
- package/dist/cli/{chunk-OTDX4A4W.js → chunk-LGTZYI5B.js} +21 -21
- package/dist/cli/{chunk-JJAHWKJ2.js → chunk-MLEUOTEQ.js} +73 -59
- package/dist/cli/{chunk-YOCEY4EI.mjs → chunk-NALJJTPS.mjs} +5 -5
- package/dist/cli/{chunk-HFEJ7JJT.js → chunk-NPNAEPY4.js} +26 -26
- package/dist/cli/{chunk-3IBKEOL4.js → chunk-NWIDPT7H.js} +4 -4
- package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
- package/dist/cli/{chunk-4RB74KJX.js → chunk-QTPS5RLG.js} +15 -15
- package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
- package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
- package/dist/cli/{chunk-RC366IJS.mjs → chunk-SXD2EYAH.mjs} +6 -6
- package/dist/cli/{chunk-YNWET57Z.js → chunk-TIFRRLZT.js} +7 -7
- package/dist/cli/{chunk-ZCKUNXXR.mjs → chunk-TNQOR6XQ.mjs} +1 -1
- package/dist/cli/{chunk-OGNIB64W.js → chunk-UCMY2SO2.js} +23 -15
- package/dist/cli/{chunk-O65HDVA7.mjs → chunk-VFHIYWMC.mjs} +5 -5
- package/dist/cli/{chunk-JHBRJDUC.js → chunk-WCZFCOMZ.js} +7 -7
- package/dist/cli/{chunk-FFOJRD53.mjs → chunk-WTFI7BVH.mjs} +3 -3
- package/dist/cli/{chunk-42Z6VC2Q.js → chunk-XLE7KXE7.js} +2 -2
- package/dist/cli/{chunk-Q3CCCTRQ.js → chunk-XQX476QK.js} +14 -14
- package/dist/cli/{chunk-F6EQWY4E.mjs → chunk-Y3NN2UAF.mjs} +2 -2
- package/dist/cli/{chunk-MJFVF5AW.mjs → chunk-ZQH4TXM2.mjs} +2 -2
- package/dist/cli/{chunk-DVGCPOEA.mjs → chunk-ZVW7EWTC.mjs} +7 -7
- package/dist/cli/{chunk-4GJIJHRQ.mjs → chunk-ZVXB7OU7.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-JGJNDRSA.js → csv-DKYZE2KM.js} +13 -13
- package/dist/cli/{csv-VGXGV7YM.mjs → csv-XR22YQXT.mjs} +4 -4
- package/dist/cli/{db-OYG27ZBM.mjs → db-EOKG36YN.mjs} +7 -7
- package/dist/cli/{db-W52WJ6E5.js → db-RNYRTCMV.js} +28 -28
- package/dist/cli/describe-ICFXOQBW.mjs +50 -0
- package/dist/cli/describe-RS75I33X.js +50 -0
- 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-EVE4KUGL.mjs → executions-3RAOACNS.mjs} +7 -7
- package/dist/cli/{executions-LAJHZGPY.js → executions-OBWPSWH7.js} +9 -9
- package/dist/cli/{feedback-75QB7KVG.mjs → feedback-6EQRVBKF.mjs} +4 -4
- package/dist/cli/{feedback-ZABCN7RT.js → feedback-6GPEUBLF.js} +8 -8
- package/dist/cli/getting-started.d.mts +12 -10
- package/dist/cli/getting-started.d.ts +12 -10
- package/dist/cli/getting-started.js +4 -2
- package/dist/cli/getting-started.mjs +3 -1
- package/dist/cli/{git-QIFEYQGY.mjs → git-CVQ24DTR.mjs} +5 -5
- package/dist/cli/git-DEFE4SSB.js +25 -0
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-PNTWBBGY.mjs → legacy-noops-QULJZYNH.mjs} +5 -5
- package/dist/cli/{legacy-noops-2TBIAMCM.js → legacy-noops-XPOATG5V.js} +8 -8
- package/dist/cli/{monitors-LOHUYJEI.mjs → monitors-AFT5YJPZ.mjs} +49 -9
- package/dist/cli/{monitors-UKBOEGBS.js → monitors-OJ4CMREE.js} +169 -129
- package/dist/cli/{org-E7A6QLBW.js → org-RKT52CSL.js} +73 -73
- package/dist/cli/{org-JRUKUOUF.mjs → org-WHKNXANG.mjs} +7 -7
- package/dist/cli/{pages-K76HA473.mjs → pages-EEAQFGVD.mjs} +7 -7
- package/dist/cli/{pages-EUDFFLLD.js → pages-SOE3R667.js} +18 -18
- package/dist/cli/{play-DG2N66SV.mjs → play-LXFWHUBP.mjs} +147 -52
- package/dist/cli/{play-UWHNUJRA.js → play-OTJJ4E4T.js} +661 -566
- package/dist/cli/{providers-DZX6TTC6.js → providers-RU4HIAT3.js} +10 -10
- package/dist/cli/{providers-RUTTPUZD.mjs → providers-U3CPKTMM.mjs} +7 -7
- package/dist/cli/{quickstart-RGZZN2YE.mjs → quickstart-75AO2AJC.mjs} +5 -5
- package/dist/cli/{quickstart-U4NMD7KX.js → quickstart-N72IVA2Y.js} +13 -13
- package/dist/cli/{run-MOJWQYFQ.mjs → run-IGWFL6WH.mjs} +29 -28
- package/dist/cli/{run-5UNF4FHG.js → run-MMYES3IW.js} +44 -43
- package/dist/cli/search-EQURI7SZ.js +32 -0
- package/dist/cli/{search-5B3ZDU7H.mjs → search-FIYESBLZ.mjs} +8 -8
- package/dist/cli/{search-output-VQWJS3FN.js → search-output-2FXN4ZWD.js} +9 -6
- package/dist/cli/{search-output-QS4IWWHA.mjs → search-output-3I5KSW36.mjs} +7 -4
- package/dist/cli/{secrets-S3PJMEAC.js → secrets-HCZQ6JNP.js} +16 -16
- package/dist/cli/{secrets-V5XVDBIS.mjs → secrets-O7IUQ3VT.mjs} +7 -7
- package/dist/cli/{sessions-Y5QMEZ3D.js → sessions-5AYTT4IW.js} +6 -6
- package/dist/cli/{sessions-5V3X24XI.mjs → sessions-KY7A3EZO.mjs} +5 -5
- package/dist/cli/{settings-3U6RRO5F.js → settings-P4VFYWJK.js} +80 -80
- package/dist/cli/{settings-LHZYY5PT.mjs → settings-WSMRR2GS.mjs} +13 -13
- package/dist/cli/{setup-MLLIGO2S.js → setup-J7CA3EJL.js} +57 -57
- package/dist/cli/{setup-AJLWXYAN.mjs → setup-YTVKVQC7.mjs} +13 -13
- package/dist/cli/skills-KKPEGLAR.js +36 -0
- package/dist/cli/{skills-5O2MUWKK.mjs → skills-W5WY764N.mjs} +10 -10
- package/dist/cli/tools-65Y4QTW6.js +57 -0
- package/dist/cli/{tools-PWNMI5CD.mjs → tools-YECI6N3N.mjs} +20 -20
- package/dist/cli/{update-SXT4QW7S.mjs → update-BIFBIEII.mjs} +10 -10
- package/dist/cli/update-WDG7VFOW.js +34 -0
- package/dist/cli/{workflow-3WTF5IYT.js → workflow-D2TUFFH6.js} +18 -18
- package/dist/cli/{workflow-KPRM6ARO.mjs → workflow-XZVDNARC.mjs} +8 -8
- package/dist/{client-Cb1ej1Vr.d.ts → client-BDB_VbE4.d.ts} +1 -1
- package/dist/{client-vWpbLNCB.d.mts → client-CNzJ1LTF.d.mts} +1 -1
- package/dist/{client-core-CoBTvsXG.d.mts → client-core-CSv3DlPD.d.mts} +10 -3
- package/dist/{client-core-BmVs6SP0.d.ts → client-core-xEa9x3pl.d.ts} +10 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +115 -114
- 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/plays/run-request.js +2 -2
- package/dist/plays/run-request.mjs +1 -1
- 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/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-7BCLZU6K.js +0 -43
- package/dist/cli/describe-FIXCRO5N.mjs +0 -50
- package/dist/cli/describe-G3O6OUBG.js +0 -50
- package/dist/cli/git-QBAR46NW.js +0 -25
- package/dist/cli/search-3DAEJL6S.js +0 -32
- package/dist/cli/skills-BBLIML5M.js +0 -36
- package/dist/cli/tools-X5SQXUMM.js +0 -57
- package/dist/cli/update-AEJ2ZSZQ.js +0 -34
|
@@ -11,23 +11,23 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkKCDZWS2Bjs = require('./chunk-KCDZWS2B.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkJO2JZUBRjs = require('./chunk-JO2JZUBR.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkNWIDPT7Hjs = require('./chunk-NWIDPT7H.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
|
|
31
31
|
|
|
32
32
|
// src/cli/commands/skills.ts
|
|
33
33
|
var _child_process = require('child_process');
|
|
@@ -76,15 +76,15 @@ function workspaceSkillRootsForAgents(agents) {
|
|
|
76
76
|
)
|
|
77
77
|
].sort((a, b) => a.localeCompare(b));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
if (root === null)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"
|
|
86
|
-
"SKILL.md"
|
|
79
|
+
function deeplineGtmSkillRoots(root) {
|
|
80
|
+
if (root === null) {
|
|
81
|
+
const claudeConfig = _optionalChain([process, 'access', _ => _.env, 'access', _2 => _2.CLAUDE_CONFIG_DIR, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]);
|
|
82
|
+
return claudeConfig ? `${_path.join.call(void 0, claudeConfig, "skills")} or ~/.agents/skills` : _chunkRLX5ZFNXjs.DEEPLINE_GTM_GLOBAL_SKILL_ROOTS;
|
|
83
|
+
}
|
|
84
|
+
const [claude, codex] = ["claude-code", "codex"].map(
|
|
85
|
+
(agent) => _path.join.call(void 0, root, WORKSPACE_SKILL_ROOTS_BY_AGENT[agent][0], "skills")
|
|
87
86
|
);
|
|
87
|
+
return `${claude} or ${codex}`;
|
|
88
88
|
}
|
|
89
89
|
function installedSkillRoots(agent, scope, root) {
|
|
90
90
|
if (scope === "local") {
|
|
@@ -94,7 +94,7 @@ function installedSkillRoots(agent, scope, root) {
|
|
|
94
94
|
const home = _os.homedir.call(void 0, );
|
|
95
95
|
const shared = _path.join.call(void 0, home, ".agents", "skills");
|
|
96
96
|
const claude = _path.join.call(void 0,
|
|
97
|
-
_optionalChain([process, 'access',
|
|
97
|
+
_optionalChain([process, 'access', _5 => _5.env, 'access', _6 => _6.CLAUDE_CONFIG_DIR, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || _path.join.call(void 0, home, ".claude"),
|
|
98
98
|
"skills"
|
|
99
99
|
);
|
|
100
100
|
switch (agent) {
|
|
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
145
145
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
146
146
|
}
|
|
147
147
|
function resolveLocalRoot() {
|
|
148
|
-
const target =
|
|
148
|
+
const target = _chunkJO2JZUBRjs.resolveProjectPinTarget.call(void 0, );
|
|
149
149
|
if (!target.ok) {
|
|
150
150
|
throw new Error(
|
|
151
151
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
|
|
|
156
156
|
return target.dir;
|
|
157
157
|
}
|
|
158
158
|
function detectSkillsAgents(input) {
|
|
159
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
159
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkNWIDPT7Hjs.detectAgentRuntime.call(void 0, )));
|
|
160
160
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
161
161
|
if (knownAgent) return [knownAgent];
|
|
162
162
|
const roots = [
|
|
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
|
|
|
171
171
|
return detected.length > 0 ? detected : ["*"];
|
|
172
172
|
}
|
|
173
173
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
174
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
174
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkJO2JZUBRjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
175
175
|
}
|
|
176
176
|
function buildSkillsPlan(input) {
|
|
177
177
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
178
|
-
const legacyNames = [...
|
|
178
|
+
const legacyNames = [..._chunkKCDZWS2Bjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
179
179
|
(a, b) => a.localeCompare(b)
|
|
180
180
|
);
|
|
181
181
|
return {
|
|
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
|
|
|
189
189
|
args: [
|
|
190
190
|
"exec",
|
|
191
191
|
"--yes",
|
|
192
|
-
`--package=${
|
|
192
|
+
`--package=${_chunkKCDZWS2Bjs.SKILLS_NPX_PACKAGE}`,
|
|
193
193
|
"--",
|
|
194
194
|
"skills",
|
|
195
195
|
"remove",
|
|
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
|
|
|
205
205
|
args: [
|
|
206
206
|
"exec",
|
|
207
207
|
"--yes",
|
|
208
|
-
`--package=${
|
|
208
|
+
`--package=${_chunkKCDZWS2Bjs.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkKCDZWS2Bjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
213
213
|
"--agent",
|
|
214
214
|
...input.agents,
|
|
215
215
|
...scopeArgs,
|
|
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
|
|
|
246
246
|
}
|
|
247
247
|
function runProcess(command, args, cwd) {
|
|
248
248
|
return new Promise((resolve, reject) => {
|
|
249
|
-
const plan =
|
|
249
|
+
const plan = _chunkKCDZWS2Bjs.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -268,7 +268,7 @@ function runProcess(command, args, cwd) {
|
|
|
268
268
|
child.kill("SIGTERM");
|
|
269
269
|
reject(
|
|
270
270
|
new Error(
|
|
271
|
-
`${
|
|
271
|
+
`${_chunkKCDZWS2Bjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
272
272
|
)
|
|
273
273
|
);
|
|
274
274
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -279,21 +279,78 @@ function runProcess(command, args, cwd) {
|
|
|
279
279
|
child.once("close", (code) => {
|
|
280
280
|
clearTimeout(timeout);
|
|
281
281
|
if (code && stderr.trim()) {
|
|
282
|
-
process.stderr.write(`${
|
|
282
|
+
process.stderr.write(`${_chunkKCDZWS2Bjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
283
283
|
`);
|
|
284
284
|
}
|
|
285
285
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
286
286
|
});
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
|
+
async function showSkills(options, name) {
|
|
290
|
+
const baseUrl = _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
291
|
+
const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
|
|
292
|
+
try {
|
|
293
|
+
const response = await fetch(url, {
|
|
294
|
+
signal: AbortSignal.timeout(SKILLS_PROCESS_TIMEOUT_MS)
|
|
295
|
+
});
|
|
296
|
+
if (!response.ok) {
|
|
297
|
+
throw new Error(
|
|
298
|
+
response.status === 404 && name ? `no skill named ${name}; run deepline skills list` : `HTTP ${response.status} from ${url}`
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
if (name) {
|
|
302
|
+
const markdown = await response.text();
|
|
303
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
304
|
+
{ ok: true, status: "completed", skill: { name, markdown } },
|
|
305
|
+
{ json: options.json, text: markdown }
|
|
306
|
+
);
|
|
307
|
+
return 0;
|
|
308
|
+
}
|
|
309
|
+
const index = await response.json();
|
|
310
|
+
const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
|
|
311
|
+
(skill) => skill.install_surface === "v1" && skill.name
|
|
312
|
+
);
|
|
313
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
314
|
+
{
|
|
315
|
+
ok: true,
|
|
316
|
+
status: "completed",
|
|
317
|
+
skills: skills.map(({ name: name2, description }) => ({ name: name2, description })),
|
|
318
|
+
next: "deepline skills show <name>"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
json: options.json,
|
|
322
|
+
text: `${skills.map((skill) => `${skill.name}: ${_nullishCoalesce(skill.description, () => ( ""))}`).join("\n")}
|
|
323
|
+
|
|
324
|
+
Read one with: deepline skills show <name>
|
|
325
|
+
`
|
|
326
|
+
}
|
|
327
|
+
);
|
|
328
|
+
return 0;
|
|
329
|
+
} catch (error) {
|
|
330
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
331
|
+
{
|
|
332
|
+
ok: false,
|
|
333
|
+
status: "failed",
|
|
334
|
+
code: "SKILL_UNAVAILABLE",
|
|
335
|
+
exitCode: 5,
|
|
336
|
+
message: `Could not fetch skills: ${error instanceof Error ? error.message : String(error)}`
|
|
337
|
+
},
|
|
338
|
+
{ json: options.json }
|
|
339
|
+
);
|
|
340
|
+
return 5;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
289
343
|
async function runSkillsCommand(options, dependencies = {}) {
|
|
344
|
+
if (options.list || options.name) {
|
|
345
|
+
return showSkills(options, options.list ? null : _nullishCoalesce(options.name, () => ( null)));
|
|
346
|
+
}
|
|
290
347
|
let scope;
|
|
291
348
|
let root;
|
|
292
349
|
try {
|
|
293
350
|
scope = normalizeScope(options.scope);
|
|
294
351
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
295
352
|
} catch (error) {
|
|
296
|
-
|
|
353
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
297
354
|
{
|
|
298
355
|
ok: false,
|
|
299
356
|
status: "failed",
|
|
@@ -305,22 +362,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
305
362
|
);
|
|
306
363
|
return 2;
|
|
307
364
|
}
|
|
308
|
-
const baseUrl =
|
|
365
|
+
const baseUrl = _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
309
366
|
const catalog = {
|
|
310
|
-
skillNames: [...
|
|
311
|
-
version:
|
|
367
|
+
skillNames: [..._chunkKCDZWS2Bjs.DEFAULT_SDK_SKILL_NAMES],
|
|
368
|
+
version: _chunkNWIDPT7Hjs.SDK_VERSION
|
|
312
369
|
};
|
|
313
370
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
314
371
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
315
372
|
if (options.dryRun) {
|
|
316
|
-
|
|
373
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
317
374
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
318
375
|
{ json: options.json }
|
|
319
376
|
);
|
|
320
377
|
return 0;
|
|
321
378
|
}
|
|
322
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
323
|
-
|
|
379
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkKCDZWS2Bjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
380
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
324
381
|
{
|
|
325
382
|
ok: true,
|
|
326
383
|
status: "current",
|
|
@@ -352,10 +409,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
352
409
|
}
|
|
353
410
|
if (scope === "local" && root) {
|
|
354
411
|
const managedNames = [
|
|
355
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
412
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkKCDZWS2Bjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
356
413
|
];
|
|
357
414
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
358
|
-
|
|
415
|
+
_chunkJO2JZUBRjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
359
416
|
".deepline/",
|
|
360
417
|
...agentRoots.flatMap(
|
|
361
418
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -364,7 +421,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
364
421
|
}
|
|
365
422
|
let lease;
|
|
366
423
|
try {
|
|
367
|
-
lease = scope === "global" ? await
|
|
424
|
+
lease = scope === "global" ? await _chunkKCDZWS2Bjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
368
425
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
369
426
|
onWait: () => process.stderr.write(
|
|
370
427
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -372,8 +429,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
372
429
|
}) : { release: () => {
|
|
373
430
|
} };
|
|
374
431
|
} catch (error) {
|
|
375
|
-
if (!(error instanceof
|
|
376
|
-
|
|
432
|
+
if (!(error instanceof _chunkKCDZWS2Bjs.SkillsStateUnavailableError)) throw error;
|
|
433
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
377
434
|
{
|
|
378
435
|
ok: false,
|
|
379
436
|
status: "failed",
|
|
@@ -382,14 +439,14 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
382
439
|
scope,
|
|
383
440
|
agents,
|
|
384
441
|
message: error.message,
|
|
385
|
-
next: `Resolve this filesystem error, then run: deepline skills --scope ${scope}`
|
|
442
|
+
next: `Resolve this filesystem error, then run: deepline skills install --scope ${scope}`
|
|
386
443
|
},
|
|
387
444
|
{ json: options.json }
|
|
388
445
|
);
|
|
389
446
|
return 5;
|
|
390
447
|
}
|
|
391
448
|
if (!lease) {
|
|
392
|
-
|
|
449
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
393
450
|
{
|
|
394
451
|
ok: false,
|
|
395
452
|
status: "failed",
|
|
@@ -398,7 +455,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
398
455
|
scope,
|
|
399
456
|
agents,
|
|
400
457
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
401
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
458
|
+
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkKCDZWS2Bjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
402
459
|
},
|
|
403
460
|
{ json: options.json }
|
|
404
461
|
);
|
|
@@ -447,7 +504,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
447
504
|
}
|
|
448
505
|
}
|
|
449
506
|
} catch (error) {
|
|
450
|
-
|
|
507
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
451
508
|
{
|
|
452
509
|
ok: false,
|
|
453
510
|
status: "failed",
|
|
@@ -456,14 +513,14 @@ async function runSkillsInstallWithLease(input) {
|
|
|
456
513
|
scope,
|
|
457
514
|
agents,
|
|
458
515
|
message: error instanceof Error ? error.message : String(error),
|
|
459
|
-
next: `deepline skills --scope ${scope}`
|
|
516
|
+
next: `deepline skills install --scope ${scope}`
|
|
460
517
|
},
|
|
461
518
|
{ json: options.json }
|
|
462
519
|
);
|
|
463
520
|
return 5;
|
|
464
521
|
}
|
|
465
522
|
if (missing.length > 0) {
|
|
466
|
-
|
|
523
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
467
524
|
{
|
|
468
525
|
ok: false,
|
|
469
526
|
status: "failed",
|
|
@@ -473,7 +530,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
473
530
|
agents,
|
|
474
531
|
missingSkills: missing,
|
|
475
532
|
message: `The skills installer exited successfully but did not install: ${missing.join(", ")}.`,
|
|
476
|
-
next: `deepline skills --scope ${scope}`
|
|
533
|
+
next: `deepline skills install --scope ${scope}`
|
|
477
534
|
},
|
|
478
535
|
{ json: options.json }
|
|
479
536
|
);
|
|
@@ -503,7 +560,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
503
560
|
{
|
|
504
561
|
schemaVersion: 1,
|
|
505
562
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
506
|
-
cliVersion:
|
|
563
|
+
cliVersion: _chunkNWIDPT7Hjs.SDK_VERSION,
|
|
507
564
|
scope,
|
|
508
565
|
agents,
|
|
509
566
|
skillsVersion: plan.version,
|
|
@@ -516,9 +573,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
516
573
|
"utf8"
|
|
517
574
|
);
|
|
518
575
|
if (scope === "global") {
|
|
519
|
-
|
|
576
|
+
_chunkKCDZWS2Bjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
520
577
|
}
|
|
521
|
-
|
|
578
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
522
579
|
{
|
|
523
580
|
ok: true,
|
|
524
581
|
status: "complete",
|
|
@@ -545,42 +602,60 @@ async function runSkillsInstallWithLease(input) {
|
|
|
545
602
|
return 0;
|
|
546
603
|
}
|
|
547
604
|
function registerSkillsCommand(program) {
|
|
548
|
-
program.command("skills").description("
|
|
605
|
+
const skills = program.command("skills").description("List, read, and install Deepline agent skills.").addHelpText(
|
|
606
|
+
"after",
|
|
607
|
+
`
|
|
608
|
+
Examples:
|
|
609
|
+
deepline skills show
|
|
610
|
+
deepline skills list
|
|
611
|
+
deepline skills show deepline-research
|
|
612
|
+
deepline skills install
|
|
613
|
+
`
|
|
614
|
+
).action(() => {
|
|
615
|
+
skills.outputHelp();
|
|
616
|
+
});
|
|
617
|
+
skills.command("list").description("List every Deepline agent skill; changes nothing.").option("--json", "Emit one JSON result envelope").action(async (options) => {
|
|
618
|
+
process.exitCode = await runSkillsCommand({ ...options, list: true });
|
|
619
|
+
});
|
|
620
|
+
skills.command("show").description("Print a skill (deepline-gtm by default); changes nothing.").argument("[name]", "A skill name", "deepline-gtm").option("--json", "Emit one JSON result envelope").action(async (name, options) => {
|
|
621
|
+
process.exitCode = await runSkillsCommand({ ...options, name });
|
|
622
|
+
});
|
|
623
|
+
skills.command("install").description("Replace Deepline agent skills with the current release.").option("--scope <scope>", "Install scope: global or local").option("--agent <agent>", "Override the detected agent target").option("--dry-run", "Print the install plan without changing files").option("--json", "Emit one JSON result envelope").addHelpText(
|
|
549
624
|
"after",
|
|
550
625
|
`
|
|
551
626
|
Notes:
|
|
552
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
627
|
+
This command reinstalls current Deepline-managed skills using ${_chunkKCDZWS2Bjs.SKILLS_NPX_PACKAGE},
|
|
553
628
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
554
629
|
persistent project.
|
|
555
630
|
|
|
556
631
|
Examples:
|
|
557
|
-
deepline skills
|
|
558
|
-
deepline skills --scope local
|
|
559
|
-
deepline skills --agent codex --dry-run
|
|
632
|
+
deepline skills install
|
|
633
|
+
deepline skills install --scope local
|
|
634
|
+
deepline skills install --agent codex --dry-run
|
|
560
635
|
`
|
|
561
636
|
).action(async (options) => {
|
|
562
637
|
process.exitCode = await runSkillsCommand(options);
|
|
563
638
|
});
|
|
564
|
-
program.command(
|
|
639
|
+
program.command(_chunkKCDZWS2Bjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
565
640
|
"--claim <token>",
|
|
566
641
|
"Owner token of the leases this child was started for."
|
|
567
642
|
).action(async (options) => {
|
|
568
|
-
const claim = _optionalChain([options, 'access',
|
|
643
|
+
const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
|
|
569
644
|
if (!claim) {
|
|
570
|
-
|
|
645
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
571
646
|
{
|
|
572
647
|
ok: false,
|
|
573
648
|
status: "failed",
|
|
574
649
|
code: "SKILLS_AUTO_SYNC_CLAIM_REQUIRED",
|
|
575
650
|
exitCode: 2,
|
|
576
|
-
message: "skills-auto-sync is started by ordinary deepline commands and requires the lease token they pass; run `deepline skills` to install skills yourself."
|
|
651
|
+
message: "skills-auto-sync is started by ordinary deepline commands and requires the lease token they pass; run `deepline skills install` to install skills yourself."
|
|
577
652
|
},
|
|
578
653
|
{ json: true }
|
|
579
654
|
);
|
|
580
655
|
process.exitCode = 2;
|
|
581
656
|
return;
|
|
582
657
|
}
|
|
583
|
-
await
|
|
658
|
+
await _chunkKCDZWS2Bjs.syncSdkSkillsIfNeeded.call(void 0, _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
584
659
|
mode: "inline",
|
|
585
660
|
notices: "defer",
|
|
586
661
|
claim
|
|
@@ -599,4 +674,4 @@ Examples:
|
|
|
599
674
|
|
|
600
675
|
|
|
601
676
|
|
|
602
|
-
exports.workspaceSkillRootsForAgents = workspaceSkillRootsForAgents; exports.
|
|
677
|
+
exports.workspaceSkillRootsForAgents = workspaceSkillRootsForAgents; exports.deeplineGtmSkillRoots = deeplineGtmSkillRoots; exports.missingInstalledSkills = missingInstalledSkills; exports.inferActiveSkillsScope = inferActiveSkillsScope; exports.detectSkillsAgents = detectSkillsAgents; exports.skillsStatePathForScope = skillsStatePathForScope; exports.buildSkillsPlan = buildSkillsPlan; exports.isSkillsPlanCurrent = isSkillsPlanCurrent; exports.runSkillsCommand = runSkillsCommand; exports.registerSkillsCommand = registerSkillsCommand;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WTFI7BVH.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4NIGNT7X.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
SCHEMA_LINE_LIMIT,
|
|
3
3
|
fieldBlockLines,
|
|
4
4
|
schemaFields
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SAW3FBCA.mjs";
|
|
6
6
|
import {
|
|
7
7
|
csvSafeJsonString,
|
|
8
8
|
csvStringFromRows
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VFHIYWMC.mjs";
|
|
10
10
|
|
|
11
11
|
// src/cli/describe-options.ts
|
|
12
12
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -892,7 +892,10 @@ function receiptText(receipt, options, extra) {
|
|
|
892
892
|
const sections = [
|
|
893
893
|
[
|
|
894
894
|
options.label ? `${headline}: ${options.label}` : headline,
|
|
895
|
-
|
|
895
|
+
// A tool call's id is its retry key; a play's is the run to look up.
|
|
896
|
+
...receipt.id ? [
|
|
897
|
+
`${options.label?.endsWith("(tool)") ? "Call Id" : "Run Id"}: ${receipt.id}`
|
|
898
|
+
] : [],
|
|
896
899
|
...receipt.credits !== null ? [
|
|
897
900
|
`Cost: ${receipt.credits} ${receipt.credits === 1 ? "credit" : "credits"}`
|
|
898
901
|
] : [],
|
|
@@ -901,14 +904,16 @@ function receiptText(receipt, options, extra) {
|
|
|
901
904
|
];
|
|
902
905
|
const { csv, json } = receipt.outputs;
|
|
903
906
|
const data = [];
|
|
907
|
+
let resultSection;
|
|
904
908
|
for (const artifact of csv) {
|
|
905
909
|
data.push(
|
|
906
910
|
`Rows: ${artifact.path ?? "stdout"} (${artifact.rowCount} rows from ${listPath(artifact.source ?? "") || "the result"})`
|
|
907
911
|
);
|
|
908
912
|
}
|
|
909
913
|
if (extra.data !== void 0) {
|
|
910
|
-
const title = json ?
|
|
911
|
-
|
|
914
|
+
const title = json ? "Result:" : "Result (not saved; --json-out saves all of it):";
|
|
915
|
+
resultSection = resultLines(title, extra.data, extra.declared, options);
|
|
916
|
+
if (json?.path) data.push(`Saved: ${json.path}`);
|
|
912
917
|
if (receipt.schemaFile) {
|
|
913
918
|
data.push(`Full JSON Schema: ${receipt.schemaFile}`);
|
|
914
919
|
}
|
|
@@ -949,6 +954,7 @@ function receiptText(receipt, options, extra) {
|
|
|
949
954
|
if (extra.receiptFile) {
|
|
950
955
|
sections.push([`JSON receipt: ${extra.receiptFile}`]);
|
|
951
956
|
}
|
|
957
|
+
if (resultSection) sections.push(resultSection);
|
|
952
958
|
return `${sections.map((lines) => lines.join("\n")).join("\n\n")}
|
|
953
959
|
`;
|
|
954
960
|
}
|
|
@@ -1008,6 +1014,8 @@ function resultLines(title, data, declared, options) {
|
|
|
1008
1014
|
outline2.cut ? more : "--full shows every field of the result; --fields <paths> picks fields."
|
|
1009
1015
|
];
|
|
1010
1016
|
}
|
|
1017
|
+
const json = JSON.stringify(data, null, 2)?.split("\n");
|
|
1018
|
+
if (json && json.length <= budget) return [title, ...json];
|
|
1011
1019
|
const outline = outlineLines(data, budget);
|
|
1012
1020
|
return [
|
|
1013
1021
|
`${title}${outline.note ? ` ${outline.note}` : ""}`,
|