deepline 0.3.489 → 0.3.491
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 +6 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +4 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/direct-admission-deadline.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +10 -0
- package/dist/cli/{auth-5RIU6GT7.mjs → auth-FXAC472Y.mjs} +5 -5
- package/dist/cli/auth-QIDL3YCW.js +43 -0
- package/dist/cli/{billing-T5MAGF25.js → billing-PDOA3KZ3.js} +79 -79
- package/dist/cli/{billing-T4TMPRFS.mjs → billing-UM4LE33K.mjs} +6 -6
- package/dist/cli/{chunk-SZHNIKTR.js → chunk-27MRSV6O.js} +26 -26
- package/dist/cli/{chunk-NBHCEVWY.mjs → chunk-2MW6TGNZ.mjs} +4 -4
- package/dist/cli/{chunk-FL7NHJTS.js → chunk-3FMU6F6E.js} +15 -15
- package/dist/cli/{chunk-TMQ3PCSY.mjs → chunk-3K4IAV7I.mjs} +2 -2
- package/dist/cli/{chunk-LMUOUIBV.mjs → chunk-3WRWPNHE.mjs} +5 -5
- package/dist/cli/{chunk-IAYSWZDJ.js → chunk-4IP5MLWU.js} +1 -1
- package/dist/cli/{chunk-6V7KVRR5.js → chunk-4OLXMJ2L.js} +13 -2
- package/dist/cli/{chunk-WIKIF67Q.js → chunk-5KMGKG4B.js} +8 -8
- package/dist/cli/{chunk-WRJ6MEY5.mjs → chunk-6PMM7VJN.mjs} +1 -1
- package/dist/cli/{chunk-GW6HV7Z7.js → chunk-6UARNRXT.js} +7 -7
- package/dist/cli/{chunk-UYZNRLDE.js → chunk-74H5OTRM.js} +1 -1
- package/dist/cli/{chunk-K2RUSHZ7.js → chunk-AEKJZJ4R.js} +4 -4
- package/dist/cli/{chunk-F3TDT57M.js → chunk-B2TXKEED.js} +5 -5
- package/dist/cli/{chunk-RI2PLVD4.js → chunk-BCKIBVEJ.js} +7 -7
- package/dist/cli/{chunk-S5PMBDY6.mjs → chunk-CFPFTS3A.mjs} +12 -12
- package/dist/cli/{chunk-J7EENGKJ.mjs → chunk-CGDUFVNE.mjs} +2 -2
- package/dist/cli/{chunk-S4F2R2LO.js → chunk-CRBBGKRH.js} +9 -9
- package/dist/cli/{chunk-JVHOS3K3.mjs → chunk-DEJIN4DF.mjs} +1 -1
- package/dist/cli/{chunk-FH7ZABHW.js → chunk-DUFRH43S.js} +261 -261
- package/dist/cli/{chunk-H66YVVT7.mjs → chunk-EPD7NSDJ.mjs} +2 -2
- package/dist/cli/{chunk-INW22YP7.mjs → chunk-FTXIJTV2.mjs} +3 -5
- package/dist/cli/{chunk-G7POOFBJ.mjs → chunk-H6UIS36S.mjs} +2 -2
- package/dist/cli/{chunk-CSBMKHTV.js → chunk-HHTVRICE.js} +17 -17
- package/dist/cli/{chunk-YSB44HZB.js → chunk-HNG2U3IG.js} +2 -2
- package/dist/cli/{chunk-L2GMFNAO.mjs → chunk-HSJK6EMU.mjs} +3 -3
- package/dist/cli/{chunk-R23HZ6AV.js → chunk-I64PYCTB.js} +2 -2
- package/dist/cli/{chunk-5DEJ3TLB.js → chunk-IG3GSBBE.js} +122 -119
- package/dist/cli/{chunk-C55LNEUF.mjs → chunk-IIO7UOVW.mjs} +5 -2
- package/dist/cli/{chunk-QJ4FWKUU.mjs → chunk-KGJVDR4Q.mjs} +2 -2
- package/dist/cli/{chunk-3S5VBG6Z.mjs → chunk-LMG7O6XJ.mjs} +2 -2
- package/dist/cli/{chunk-RACN23LT.mjs → chunk-MAM6ZOVS.mjs} +18 -4
- package/dist/cli/{chunk-VP65YKOA.js → chunk-MN6DCV63.js} +5 -5
- package/dist/cli/{chunk-7R243PYK.mjs → chunk-NUOKAKZW.mjs} +1 -1
- package/dist/cli/{chunk-ZICPJKMP.mjs → chunk-OLHWZM4A.mjs} +5 -5
- package/dist/cli/{chunk-6PHHQDM6.mjs → chunk-ORKLMANE.mjs} +1 -1
- package/dist/cli/{chunk-4GWEZPZR.mjs → chunk-OYJTLEB4.mjs} +1 -1
- package/dist/cli/{chunk-2QUROYZU.mjs → chunk-PIPEPCRL.mjs} +1 -1
- package/dist/cli/{chunk-FNKSRKTA.js → chunk-Q7G7CU4W.js} +3 -3
- package/dist/cli/{chunk-35N4S2E6.mjs → chunk-QBOE5LEH.mjs} +1 -1
- package/dist/cli/{chunk-FFDWL5N2.js → chunk-RFSXXDH7.js} +16 -16
- package/dist/cli/{chunk-DHAJSTSH.mjs → chunk-S4CYM4EC.mjs} +6 -6
- package/dist/cli/{chunk-UI67QLIR.js → chunk-SJOHQ2WW.js} +53 -53
- package/dist/cli/{chunk-I4NWMPT3.js → chunk-SUMKWA53.js} +53 -53
- package/dist/cli/{chunk-6FMP5XRF.js → chunk-TH7JLR5D.js} +6 -6
- package/dist/cli/{chunk-Q2EIZKVX.mjs → chunk-TKLDKIJU.mjs} +12 -1
- package/dist/cli/{chunk-DY7T6VNT.js → chunk-TMAS3WH3.js} +21 -21
- package/dist/cli/{chunk-Y3SG26KP.mjs → chunk-VC3SH4QW.mjs} +4 -4
- package/dist/cli/{chunk-OTQ2CO6M.mjs → chunk-WCWVXN3R.mjs} +2 -2
- package/dist/cli/{chunk-YEX3VNAY.mjs → chunk-X75ONMDJ.mjs} +2 -2
- package/dist/cli/{chunk-4EFD6R2V.js → chunk-X7YOVJBC.js} +52 -38
- package/dist/cli/{chunk-LOX3BISD.js → chunk-YNWET57Z.js} +9 -11
- package/dist/cli/{chunk-QXWE6PHI.mjs → chunk-YV4DP6KQ.mjs} +2 -2
- package/dist/cli/{chunk-UZ7VPOTA.js → chunk-ZEZ3CZ3X.js} +3 -3
- package/dist/cli/{chunk-LM5UIDFA.js → chunk-ZX2FXZJN.js} +7 -7
- package/dist/cli/{csv-XTKN255I.js → csv-IGPAPAES.js} +13 -13
- package/dist/cli/{csv-WAD54M7T.mjs → csv-RNMQHECI.mjs} +4 -4
- package/dist/cli/{db-TTS6Y4FI.js → db-32OXM3TO.js} +27 -27
- package/dist/cli/{db-2ELZMJFC.mjs → db-CKMVVGXJ.mjs} +6 -6
- package/dist/cli/describe-67GMIEIO.js +50 -0
- package/dist/cli/{describe-Z7GWMGKU.mjs → describe-QR7I3VOF.mjs} +21 -20
- 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-WUBVVJXN.js → executions-PCZS7B2M.js} +8 -8
- package/dist/cli/{executions-2TQH54AB.mjs → executions-S4M4JMCU.mjs} +6 -6
- package/dist/cli/{feedback-6KAY4LE6.js → feedback-6EGKPZ3U.js} +8 -8
- package/dist/cli/{feedback-QI75ZVF2.mjs → feedback-FGUJVCBS.mjs} +4 -4
- package/dist/cli/getting-started.d.mts +17 -2
- package/dist/cli/getting-started.d.ts +17 -2
- package/dist/cli/getting-started.js +8 -2
- package/dist/cli/getting-started.mjs +9 -3
- package/dist/cli/{git-3PI2SXVS.mjs → git-LR4ARG5H.mjs} +5 -5
- package/dist/cli/git-PIH5Z5LN.js +25 -0
- package/dist/cli/index.js +138 -137
- package/dist/cli/index.mjs +41 -40
- package/dist/cli/{legacy-noops-SIDE3HLT.mjs → legacy-noops-S37PJ7OJ.mjs} +5 -5
- package/dist/cli/{legacy-noops-BNEVRTQT.js → legacy-noops-VX4JEQR6.js} +8 -8
- package/dist/cli/{monitors-WRWVVXUZ.js → monitors-ADASJI72.js} +91 -91
- package/dist/cli/{monitors-BYQ5V5MX.mjs → monitors-H3AX6CZG.mjs} +7 -7
- package/dist/cli/{org-OZNDX3G2.mjs → org-D3F5LUDW.mjs} +6 -6
- package/dist/cli/{org-KWCSSJ3Y.js → org-ZRJ3C56J.js} +72 -72
- package/dist/cli/{pages-OQVOMVF5.js → pages-5TKO3644.js} +17 -17
- package/dist/cli/{pages-DXU3TNND.mjs → pages-PSHU366M.mjs} +6 -6
- package/dist/cli/{play-ZFG4HDDX.mjs → play-AUDDK7XB.mjs} +20 -19
- package/dist/cli/{play-6D7U66KO.js → play-VDAETQDI.js} +323 -322
- package/dist/cli/{providers-H7R3Z5HS.js → providers-IURPWRWD.js} +9 -9
- package/dist/cli/{providers-4RRQIK3Q.mjs → providers-X7YMZSKQ.mjs} +6 -6
- package/dist/cli/{quickstart-TFKRPMCH.mjs → quickstart-6AGWVFNX.mjs} +5 -5
- package/dist/cli/{quickstart-FQ5E5G6O.js → quickstart-Y6GFXLDV.js} +13 -13
- package/dist/cli/{run-GRCGGUUM.mjs → run-TG7J45NS.mjs} +26 -25
- package/dist/cli/{run-QRDJTXKB.js → run-TQFGOXNT.js} +41 -40
- package/dist/cli/{search-OEVSDE3U.mjs → search-3G4J2GC6.mjs} +7 -7
- package/dist/cli/search-VC43NUY7.js +32 -0
- package/dist/cli/{search-output-F6KBWKT2.js → search-output-NPZICK5C.js} +6 -6
- package/dist/cli/{search-output-VK5ZDVKL.mjs → search-output-ZGNHDCLL.mjs} +4 -4
- package/dist/cli/{secrets-DCRVVQV2.mjs → secrets-EAWJBRUD.mjs} +6 -6
- package/dist/cli/{secrets-KKAAZENS.js → secrets-KTTHT4ZG.js} +15 -15
- package/dist/cli/{sessions-XVBIXCXU.mjs → sessions-D4Q3LCEQ.mjs} +5 -5
- package/dist/cli/{sessions-FDHENJVG.js → sessions-S4YVBPAW.js} +6 -6
- package/dist/cli/{settings-36HMWFAP.js → settings-BAK3VOWW.js} +79 -78
- package/dist/cli/{settings-OBVR52US.mjs → settings-JUORW6NL.mjs} +12 -11
- package/dist/cli/{setup-KFYQZYP3.mjs → setup-AXFGCXJE.mjs} +17 -12
- package/dist/cli/{setup-M6OWOPMB.js → setup-NJPHTW32.js} +60 -55
- package/dist/cli/skills-4NQZISNK.js +36 -0
- package/dist/cli/{skills-AZDPA6IQ.mjs → skills-SKJVDJEF.mjs} +10 -7
- package/dist/cli/{tools-F6XEUK7H.mjs → tools-63THJVJZ.mjs} +19 -18
- package/dist/cli/tools-BAHK33FQ.js +57 -0
- package/dist/cli/update-EMIGRGJ7.js +34 -0
- package/dist/cli/{update-QMGJRICE.mjs → update-KSID5F74.mjs} +10 -9
- package/dist/cli/{workflow-M4YPUASM.js → workflow-BLSMWBKW.js} +17 -17
- package/dist/cli/{workflow-L5WNCAPB.mjs → workflow-C4B54X2Z.mjs} +7 -7
- package/dist/{client-BkbDHRIg.d.mts → client-B4R1scm2.d.mts} +1 -1
- package/dist/{client-D3hVHXjK.d.ts → client-CQgGFxAH.d.ts} +1 -1
- package/dist/{client-core-DUdVqO_m.d.ts → client-core-BUNjKBKq.d.ts} +6 -1
- package/dist/{client-core-BZoSMKcY.d.mts → client-core-DMvHWjub.d.mts} +6 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +110 -110
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +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 +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-PSIS3XA6.js +0 -43
- package/dist/cli/describe-2V7H5LJP.js +0 -49
- package/dist/cli/git-DCADFTQ6.js +0 -25
- package/dist/cli/search-2FB7WQUS.js +0 -32
- package/dist/cli/skills-URCPOKZZ.js +0 -33
- package/dist/cli/tools-4G5J5NQP.js +0 -56
- package/dist/cli/update-UWVL2OYA.js +0 -33
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkHNG2U3IGjs = require('./chunk-HNG2U3IG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkSJOHQ2WWjs = require('./chunk-SJOHQ2WW.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
|
|
|
18
18
|
}
|
|
19
19
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
|
|
20
20
|
_optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
|
|
21
|
-
if (maintenancePolicy !== "off")
|
|
22
|
-
const compatibility = await
|
|
21
|
+
if (maintenancePolicy !== "off") _chunkSJOHQ2WWjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkSJOHQ2WWjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
|
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
32
|
if (compatibility.error) throw compatibility.error;
|
|
33
|
-
|
|
33
|
+
_chunkSJOHQ2WWjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
34
34
|
quietAdvisory: true
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -34,16 +34,24 @@ var DEEPLINE_GTM_STARTER_PROMPTS = [
|
|
|
34
34
|
var DEEPLINE_GTM_PRIMARY_STARTER_PROMPT = DEEPLINE_GTM_STARTER_PROMPTS[0].prompt;
|
|
35
35
|
var DEEPLINE_GTM_HANDOFF_QUESTION = "What would you like to do with Deepline?";
|
|
36
36
|
var DEEPLINE_GTM_CUSTOM_OPTION = "Tell me what you want to accomplish and I'll help you build it";
|
|
37
|
+
var DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE = "~/.agents/skills/deepline-gtm/SKILL.md";
|
|
38
|
+
function deeplineGtmStarterSkillStep(codexSkillFile) {
|
|
39
|
+
return `Load the deepline-gtm skill first. Claude Code: invoke it with the selected prompt. Codex and others: read ${codexSkillFile}, installed mid-session so unlisted. Then run the starter command as written, adding no flags.`;
|
|
40
|
+
}
|
|
41
|
+
var DEEPLINE_GTM_STARTER_SKILL_STEP = deeplineGtmStarterSkillStep(
|
|
42
|
+
`${DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE} (project .agents/skills/ if setup reports local scope)`
|
|
43
|
+
);
|
|
37
44
|
var DEEPLINE_GTM_STARTER_OPTIONS = [
|
|
38
45
|
...DEEPLINE_GTM_STARTER_PROMPTS.map(({ prompt }) => prompt),
|
|
39
46
|
DEEPLINE_GTM_CUSTOM_OPTION
|
|
40
47
|
];
|
|
41
|
-
function deeplineGtmGettingStartedPayload() {
|
|
48
|
+
function deeplineGtmGettingStartedPayload(codexSkillFile = DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE) {
|
|
42
49
|
return {
|
|
43
50
|
skill: DEEPLINE_GTM_SKILL,
|
|
44
51
|
examples: DEEPLINE_GTM_STARTER_PROMPTS,
|
|
45
52
|
question: DEEPLINE_GTM_HANDOFF_QUESTION,
|
|
46
53
|
customOption: DEEPLINE_GTM_CUSTOM_OPTION,
|
|
54
|
+
starterBehavior: deeplineGtmStarterSkillStep(codexSkillFile),
|
|
47
55
|
customProblemBehavior: "Turn the business problem into one exact /deepline-gtm prompt, show that reusable prompt, then execute it without asking the user to paste it again."
|
|
48
56
|
};
|
|
49
57
|
}
|
|
@@ -54,6 +62,9 @@ export {
|
|
|
54
62
|
DEEPLINE_GTM_PRIMARY_STARTER_PROMPT,
|
|
55
63
|
DEEPLINE_GTM_HANDOFF_QUESTION,
|
|
56
64
|
DEEPLINE_GTM_CUSTOM_OPTION,
|
|
65
|
+
DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE,
|
|
66
|
+
deeplineGtmStarterSkillStep,
|
|
67
|
+
DEEPLINE_GTM_STARTER_SKILL_STEP,
|
|
57
68
|
DEEPLINE_GTM_STARTER_OPTIONS,
|
|
58
69
|
deeplineGtmGettingStartedPayload
|
|
59
70
|
};
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRFSXXDH7js = require('./chunk-RFSXXDH7.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkSJOHQ2WWjs = require('./chunk-SJOHQ2WW.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkAEKJZJ4Rjs = require('./chunk-AEKJZJ4R.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -44,7 +44,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
44
44
|
async function reportAutoUpdateEvent(input) {
|
|
45
45
|
let apiKey = "";
|
|
46
46
|
try {
|
|
47
|
-
apiKey =
|
|
47
|
+
apiKey = _chunkZEZ3CZ3Xjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
48
48
|
} catch (e2) {
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
@@ -60,15 +60,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
60
60
|
headers: {
|
|
61
61
|
Authorization: `Bearer ${apiKey}`,
|
|
62
62
|
"Content-Type": "application/json",
|
|
63
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
63
|
+
"User-Agent": `deepline-ts-sdk/${_chunkAEKJZJ4Rjs.SDK_VERSION}`,
|
|
64
64
|
"X-Deepline-Client-Family": "sdk",
|
|
65
65
|
"X-Deepline-CLI-Family": "sdk",
|
|
66
|
-
"X-Deepline-CLI-Version":
|
|
67
|
-
"X-Deepline-SDK-Version":
|
|
66
|
+
"X-Deepline-CLI-Version": _chunkAEKJZJ4Rjs.SDK_VERSION,
|
|
67
|
+
"X-Deepline-SDK-Version": _chunkAEKJZJ4Rjs.SDK_VERSION
|
|
68
68
|
},
|
|
69
69
|
body: JSON.stringify({
|
|
70
70
|
event: input.event,
|
|
71
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
71
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkAEKJZJ4Rjs.SDK_VERSION,
|
|
72
72
|
target_version: input.response.latest,
|
|
73
73
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
74
74
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -87,13 +87,13 @@ function envTruthy(name) {
|
|
|
87
87
|
return value === "1" || value === "true" || value === "yes";
|
|
88
88
|
}
|
|
89
89
|
function shouldSkipSelfUpdate(policy) {
|
|
90
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
90
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkRFSXXDH7js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkSJOHQ2WWjs.isCiEnvironment.call(void 0, );
|
|
91
91
|
}
|
|
92
92
|
function isDowngradeAutoUpdateResponse(response) {
|
|
93
93
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
94
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
94
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkAEKJZJ4Rjs.SDK_VERSION;
|
|
95
95
|
if (!target) return false;
|
|
96
|
-
return
|
|
96
|
+
return _chunkRFSXXDH7js.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
97
97
|
}
|
|
98
98
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
99
99
|
return new Promise((resolve) => {
|
|
@@ -146,7 +146,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
146
146
|
}
|
|
147
147
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
148
148
|
const target = response.latest;
|
|
149
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
149
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkAEKJZJ4Rjs.SDK_VERSION;
|
|
150
150
|
process.stderr.write(
|
|
151
151
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
152
152
|
`
|
|
@@ -154,21 +154,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
154
154
|
return false;
|
|
155
155
|
}
|
|
156
156
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
157
|
-
const plan =
|
|
157
|
+
const plan = _chunkRFSXXDH7js.resolveUpdatePlan.call(void 0, {
|
|
158
158
|
packageSpec,
|
|
159
159
|
requireVerifiedNpmOwnership: true,
|
|
160
160
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
161
161
|
});
|
|
162
|
-
if (!
|
|
162
|
+
if (!_chunkRFSXXDH7js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
165
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
166
166
|
deferredAutoUpdate = async () => {
|
|
167
167
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
168
168
|
};
|
|
169
|
-
if (
|
|
169
|
+
if (_chunkBCKIBVEJjs.isJsonOutputMode.call(void 0, )) {
|
|
170
170
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
171
|
-
|
|
171
|
+
_chunkBCKIBVEJjs.addJsonNotice.call(void 0, {
|
|
172
172
|
code: "sdk_update_queued",
|
|
173
173
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
174
174
|
});
|
|
@@ -181,7 +181,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
183
183
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
184
|
-
if (!
|
|
184
|
+
if (!_chunkRFSXXDH7js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
185
185
|
const autoUpdate = response.auto_update;
|
|
186
186
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
187
187
|
process.stderr.write(
|
|
@@ -194,7 +194,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
194
194
|
event: "started",
|
|
195
195
|
installKind: plan.kind
|
|
196
196
|
});
|
|
197
|
-
const updateResult = await
|
|
197
|
+
const updateResult = await _chunkRFSXXDH7js.runAutomaticUpdatePlan.call(void 0, plan);
|
|
198
198
|
if (updateResult.status === "skipped_previous_failure") {
|
|
199
199
|
void reportAutoUpdateEvent({
|
|
200
200
|
baseUrl,
|
|
@@ -245,7 +245,7 @@ var _crypto = require('crypto');
|
|
|
245
245
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
246
246
|
var activeToolExecuteCommand = null;
|
|
247
247
|
function progressLine(line) {
|
|
248
|
-
if (!
|
|
248
|
+
if (!_chunkBCKIBVEJjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
249
249
|
}
|
|
250
250
|
function beginToolExecuteCommand() {
|
|
251
251
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NUOKAKZW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
sdkCliStateDirPath,
|
|
13
13
|
skillsAgentPathSegment,
|
|
14
14
|
writeSdkSkillsLocalVersion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PIPEPCRL.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SDK_API_CONTRACT,
|
|
18
18
|
SDK_API_MAJOR,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
agentSessionIdFromEnvironment,
|
|
21
21
|
deploymentProtectionHeaders,
|
|
22
22
|
detectAgentRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6PMM7VJN.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError
|
|
26
26
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
27
27
|
import {
|
|
28
28
|
SDK_RELEASE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-OYJTLEB4.mjs";
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X75ONMDJ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PIPEPCRL.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PIPEPCRL.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6PMM7VJN.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -11,20 +11,23 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkSJOHQ2WWjs = require('./chunk-SJOHQ2WW.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkAEKJZJ4Rjs = require('./chunk-AEKJZJ4R.js');
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var _chunk4OLXMJ2Ljs = require('./chunk-4OLXMJ2L.js');
|
|
28
31
|
|
|
29
32
|
// src/cli/commands/skills.ts
|
|
30
33
|
var _child_process = require('child_process');
|
|
@@ -73,6 +76,16 @@ function workspaceSkillRootsForAgents(agents) {
|
|
|
73
76
|
)
|
|
74
77
|
].sort((a, b) => a.localeCompare(b));
|
|
75
78
|
}
|
|
79
|
+
function deeplineGtmCodexSkillFile(root) {
|
|
80
|
+
if (root === null) return _chunk4OLXMJ2Ljs.DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE;
|
|
81
|
+
return _path.join.call(void 0,
|
|
82
|
+
root,
|
|
83
|
+
WORKSPACE_SKILL_ROOTS_BY_AGENT.codex[0],
|
|
84
|
+
"skills",
|
|
85
|
+
"deepline-gtm",
|
|
86
|
+
"SKILL.md"
|
|
87
|
+
);
|
|
88
|
+
}
|
|
76
89
|
function installedSkillRoots(agent, scope, root) {
|
|
77
90
|
if (scope === "local") {
|
|
78
91
|
const dirs = root ? WORKSPACE_SKILL_ROOTS_BY_AGENT[agent] : void 0;
|
|
@@ -132,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
132
145
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
133
146
|
}
|
|
134
147
|
function resolveLocalRoot() {
|
|
135
|
-
const target =
|
|
148
|
+
const target = _chunkZEZ3CZ3Xjs.resolveProjectPinTarget.call(void 0, );
|
|
136
149
|
if (!target.ok) {
|
|
137
150
|
throw new Error(
|
|
138
151
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -143,7 +156,7 @@ function resolveLocalRoot() {
|
|
|
143
156
|
return target.dir;
|
|
144
157
|
}
|
|
145
158
|
function detectSkillsAgents(input) {
|
|
146
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
159
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkAEKJZJ4Rjs.detectAgentRuntime.call(void 0, )));
|
|
147
160
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
148
161
|
if (knownAgent) return [knownAgent];
|
|
149
162
|
const roots = [
|
|
@@ -158,11 +171,11 @@ function detectSkillsAgents(input) {
|
|
|
158
171
|
return detected.length > 0 ? detected : ["*"];
|
|
159
172
|
}
|
|
160
173
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
161
|
-
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, _chunkZEZ3CZ3Xjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
162
175
|
}
|
|
163
176
|
function buildSkillsPlan(input) {
|
|
164
177
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
165
|
-
const legacyNames = [...
|
|
178
|
+
const legacyNames = [..._chunkSJOHQ2WWjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
166
179
|
(a, b) => a.localeCompare(b)
|
|
167
180
|
);
|
|
168
181
|
return {
|
|
@@ -176,7 +189,7 @@ function buildSkillsPlan(input) {
|
|
|
176
189
|
args: [
|
|
177
190
|
"exec",
|
|
178
191
|
"--yes",
|
|
179
|
-
`--package=${
|
|
192
|
+
`--package=${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE}`,
|
|
180
193
|
"--",
|
|
181
194
|
"skills",
|
|
182
195
|
"remove",
|
|
@@ -192,11 +205,11 @@ function buildSkillsPlan(input) {
|
|
|
192
205
|
args: [
|
|
193
206
|
"exec",
|
|
194
207
|
"--yes",
|
|
195
|
-
`--package=${
|
|
208
|
+
`--package=${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE}`,
|
|
196
209
|
"--",
|
|
197
210
|
"skills",
|
|
198
211
|
"add",
|
|
199
|
-
|
|
212
|
+
_chunkSJOHQ2WWjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
200
213
|
"--agent",
|
|
201
214
|
...input.agents,
|
|
202
215
|
...scopeArgs,
|
|
@@ -233,7 +246,7 @@ function readSkillsInstallState(path) {
|
|
|
233
246
|
}
|
|
234
247
|
function runProcess(command, args, cwd) {
|
|
235
248
|
return new Promise((resolve, reject) => {
|
|
236
|
-
const plan =
|
|
249
|
+
const plan = _chunkSJOHQ2WWjs.resolveShellSpawn.call(void 0,
|
|
237
250
|
command,
|
|
238
251
|
args,
|
|
239
252
|
process.platform,
|
|
@@ -255,7 +268,7 @@ function runProcess(command, args, cwd) {
|
|
|
255
268
|
child.kill("SIGTERM");
|
|
256
269
|
reject(
|
|
257
270
|
new Error(
|
|
258
|
-
`${
|
|
271
|
+
`${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
259
272
|
)
|
|
260
273
|
);
|
|
261
274
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -266,7 +279,7 @@ function runProcess(command, args, cwd) {
|
|
|
266
279
|
child.once("close", (code) => {
|
|
267
280
|
clearTimeout(timeout);
|
|
268
281
|
if (code && stderr.trim()) {
|
|
269
|
-
process.stderr.write(`${
|
|
282
|
+
process.stderr.write(`${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
270
283
|
`);
|
|
271
284
|
}
|
|
272
285
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -280,7 +293,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
280
293
|
scope = normalizeScope(options.scope);
|
|
281
294
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
282
295
|
} catch (error) {
|
|
283
|
-
|
|
296
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
284
297
|
{
|
|
285
298
|
ok: false,
|
|
286
299
|
status: "failed",
|
|
@@ -292,22 +305,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
292
305
|
);
|
|
293
306
|
return 2;
|
|
294
307
|
}
|
|
295
|
-
const baseUrl =
|
|
308
|
+
const baseUrl = _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
296
309
|
const catalog = {
|
|
297
|
-
skillNames: [...
|
|
298
|
-
version:
|
|
310
|
+
skillNames: [..._chunkSJOHQ2WWjs.DEFAULT_SDK_SKILL_NAMES],
|
|
311
|
+
version: _chunkAEKJZJ4Rjs.SDK_VERSION
|
|
299
312
|
};
|
|
300
313
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
301
314
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
302
315
|
if (options.dryRun) {
|
|
303
|
-
|
|
316
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
304
317
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
305
318
|
{ json: options.json }
|
|
306
319
|
);
|
|
307
320
|
return 0;
|
|
308
321
|
}
|
|
309
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
310
|
-
|
|
322
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkSJOHQ2WWjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
323
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
311
324
|
{
|
|
312
325
|
ok: true,
|
|
313
326
|
status: "current",
|
|
@@ -339,10 +352,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
339
352
|
}
|
|
340
353
|
if (scope === "local" && root) {
|
|
341
354
|
const managedNames = [
|
|
342
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
355
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkSJOHQ2WWjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
343
356
|
];
|
|
344
357
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
345
|
-
|
|
358
|
+
_chunkZEZ3CZ3Xjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
346
359
|
".deepline/",
|
|
347
360
|
...agentRoots.flatMap(
|
|
348
361
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -351,7 +364,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
351
364
|
}
|
|
352
365
|
let lease;
|
|
353
366
|
try {
|
|
354
|
-
lease = scope === "global" ? await
|
|
367
|
+
lease = scope === "global" ? await _chunkSJOHQ2WWjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
355
368
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
356
369
|
onWait: () => process.stderr.write(
|
|
357
370
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -359,8 +372,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
359
372
|
}) : { release: () => {
|
|
360
373
|
} };
|
|
361
374
|
} catch (error) {
|
|
362
|
-
if (!(error instanceof
|
|
363
|
-
|
|
375
|
+
if (!(error instanceof _chunkSJOHQ2WWjs.SkillsStateUnavailableError)) throw error;
|
|
376
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
364
377
|
{
|
|
365
378
|
ok: false,
|
|
366
379
|
status: "failed",
|
|
@@ -376,7 +389,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
376
389
|
return 5;
|
|
377
390
|
}
|
|
378
391
|
if (!lease) {
|
|
379
|
-
|
|
392
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
380
393
|
{
|
|
381
394
|
ok: false,
|
|
382
395
|
status: "failed",
|
|
@@ -385,7 +398,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
385
398
|
scope,
|
|
386
399
|
agents,
|
|
387
400
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
388
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
401
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkSJOHQ2WWjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
389
402
|
},
|
|
390
403
|
{ json: options.json }
|
|
391
404
|
);
|
|
@@ -434,7 +447,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
434
447
|
}
|
|
435
448
|
}
|
|
436
449
|
} catch (error) {
|
|
437
|
-
|
|
450
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
438
451
|
{
|
|
439
452
|
ok: false,
|
|
440
453
|
status: "failed",
|
|
@@ -450,7 +463,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
450
463
|
return 5;
|
|
451
464
|
}
|
|
452
465
|
if (missing.length > 0) {
|
|
453
|
-
|
|
466
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
454
467
|
{
|
|
455
468
|
ok: false,
|
|
456
469
|
status: "failed",
|
|
@@ -490,7 +503,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
490
503
|
{
|
|
491
504
|
schemaVersion: 1,
|
|
492
505
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
493
|
-
cliVersion:
|
|
506
|
+
cliVersion: _chunkAEKJZJ4Rjs.SDK_VERSION,
|
|
494
507
|
scope,
|
|
495
508
|
agents,
|
|
496
509
|
skillsVersion: plan.version,
|
|
@@ -503,9 +516,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
503
516
|
"utf8"
|
|
504
517
|
);
|
|
505
518
|
if (scope === "global") {
|
|
506
|
-
|
|
519
|
+
_chunkSJOHQ2WWjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
507
520
|
}
|
|
508
|
-
|
|
521
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
509
522
|
{
|
|
510
523
|
ok: true,
|
|
511
524
|
status: "complete",
|
|
@@ -536,7 +549,7 @@ function registerSkillsCommand(program) {
|
|
|
536
549
|
"after",
|
|
537
550
|
`
|
|
538
551
|
Notes:
|
|
539
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
552
|
+
This command reinstalls current Deepline-managed skills using ${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE},
|
|
540
553
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
541
554
|
persistent project.
|
|
542
555
|
|
|
@@ -548,13 +561,13 @@ Examples:
|
|
|
548
561
|
).action(async (options) => {
|
|
549
562
|
process.exitCode = await runSkillsCommand(options);
|
|
550
563
|
});
|
|
551
|
-
program.command(
|
|
564
|
+
program.command(_chunkSJOHQ2WWjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
552
565
|
"--claim <token>",
|
|
553
566
|
"Owner token of the leases this child was started for."
|
|
554
567
|
).action(async (options) => {
|
|
555
568
|
const claim = _optionalChain([options, 'access', _5 => _5.claim, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
|
|
556
569
|
if (!claim) {
|
|
557
|
-
|
|
570
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
558
571
|
{
|
|
559
572
|
ok: false,
|
|
560
573
|
status: "failed",
|
|
@@ -567,7 +580,7 @@ Examples:
|
|
|
567
580
|
process.exitCode = 2;
|
|
568
581
|
return;
|
|
569
582
|
}
|
|
570
|
-
await
|
|
583
|
+
await _chunkSJOHQ2WWjs.syncSdkSkillsIfNeeded.call(void 0, _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
571
584
|
mode: "inline",
|
|
572
585
|
notices: "defer",
|
|
573
586
|
claim
|
|
@@ -585,4 +598,5 @@ Examples:
|
|
|
585
598
|
|
|
586
599
|
|
|
587
600
|
|
|
588
|
-
|
|
601
|
+
|
|
602
|
+
exports.workspaceSkillRootsForAgents = workspaceSkillRootsForAgents; exports.deeplineGtmCodexSkillFile = deeplineGtmCodexSkillFile; exports.missingInstalledSkills = missingInstalledSkills; exports.inferActiveSkillsScope = inferActiveSkillsScope; exports.detectSkillsAgents = detectSkillsAgents; exports.skillsStatePathForScope = skillsStatePathForScope; exports.buildSkillsPlan = buildSkillsPlan; exports.isSkillsPlanCurrent = isSkillsPlanCurrent; exports.runSkillsCommand = runSkillsCommand; exports.registerSkillsCommand = registerSkillsCommand;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk4IP5MLWUjs = require('./chunk-4IP5MLWU.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -174,7 +174,7 @@ function extractorValueType(name) {
|
|
|
174
174
|
}
|
|
175
175
|
const named = NAMED_VALUE_SHAPES[definition.valueKind];
|
|
176
176
|
if (!named) return { type: "string" };
|
|
177
|
-
const { type, fields } =
|
|
177
|
+
const { type, fields } = _chunk4IP5MLWUjs.schemaField.call(void 0, name, named.schema, true);
|
|
178
178
|
return { type, ...fields ? { fields } : {}, shape: named.shape };
|
|
179
179
|
}
|
|
180
180
|
function jsonSchemaOf(wrapper) {
|
|
@@ -211,7 +211,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
211
211
|
description,
|
|
212
212
|
cost: stringField(recordField(tool, "pricing"), "displayText") || void 0,
|
|
213
213
|
guidance: [],
|
|
214
|
-
inputs:
|
|
214
|
+
inputs: _chunk4IP5MLWUjs.schemaFields.call(void 0,
|
|
215
215
|
recordField(tool, "payload_schema", "payloadSchema")
|
|
216
216
|
),
|
|
217
217
|
outputs: [],
|
|
@@ -248,7 +248,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
248
248
|
(path) => path.replace(/^toolResponse\.raw\./, "")
|
|
249
249
|
);
|
|
250
250
|
const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
|
|
251
|
-
const { fields, ...typed } =
|
|
251
|
+
const { fields, ...typed } = _chunk4IP5MLWUjs.schemaField.call(void 0, name, node, true);
|
|
252
252
|
const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
|
|
253
253
|
const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
|
|
254
254
|
const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
|
|
@@ -308,20 +308,18 @@ function describedTool(tool, requestedToolId) {
|
|
|
308
308
|
],
|
|
309
309
|
rateLimit: withPlanRateLimit(
|
|
310
310
|
recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
|
|
311
|
-
|
|
311
|
+
_chunk4IP5MLWUjs.rateLimitSummary.call(void 0,
|
|
312
312
|
recordField(contract, "executionMetadata").configuredRateLimits
|
|
313
313
|
)
|
|
314
314
|
),
|
|
315
|
-
inputs:
|
|
315
|
+
inputs: _chunk4IP5MLWUjs.schemaFields.call(void 0, inputSchema),
|
|
316
316
|
outputs: [...lists, ...values].map(({ field }) => field),
|
|
317
|
-
rawResponse:
|
|
317
|
+
rawResponse: _chunk4IP5MLWUjs.schemaFields.call(void 0, outputSchema),
|
|
318
318
|
runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
function withPlanRateLimit(planRequestsPerMinute,
|
|
322
|
-
|
|
323
|
-
const plan = `${planRequestsPerMinute} requests/minute for this workspace on its plan`;
|
|
324
|
-
return sharedLimit ? `${plan} (shared ceiling: ${sharedLimit})` : plan;
|
|
321
|
+
function withPlanRateLimit(planRequestsPerMinute, configuredLimit) {
|
|
322
|
+
return typeof planRequestsPerMinute === "number" ? `${planRequestsPerMinute} requests/minute for this workspace on its plan` : configuredLimit;
|
|
325
323
|
}
|
|
326
324
|
function sampleValueForField(field) {
|
|
327
325
|
const name = stringField(field, "name").toLowerCase();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IIO7UOVW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PIPEPCRL.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|