deepline 0.3.549 → 0.3.551
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/sdk/src/types.ts +22 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/tool-connection.ts +42 -0
- package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +31 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +187 -16
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +70 -19
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +854 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +15 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +6 -2
- package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +43 -0
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +1 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +38 -5
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +16 -0
- package/dist/cli/auth-B4PI7GVY.js +43 -0
- package/dist/cli/{auth-YENF525S.mjs → auth-E7BH4GMJ.mjs} +5 -5
- package/dist/cli/{billing-52GAHIDZ.js → billing-DNQAZGX7.js} +99 -99
- package/dist/cli/{billing-XPXB27G7.mjs → billing-OXKU462W.mjs} +10 -10
- package/dist/cli/chunk-2RIKOPIM.mjs +9 -0
- package/dist/cli/{chunk-L6UMWAAY.mjs → chunk-2UXDHFSF.mjs} +1 -1
- package/dist/cli/{chunk-XYIECA7M.js → chunk-2WFPHBR4.js} +30 -8
- package/dist/cli/{chunk-HWCIU3KY.js → chunk-2ZYRBMQM.js} +23 -22
- package/dist/cli/{chunk-NVALIJQS.js → chunk-3G6QZACZ.js} +23 -20
- package/dist/cli/{chunk-BPBPY42E.js → chunk-3KYBDAR3.js} +7 -7
- package/dist/cli/{chunk-DCTEH6N5.mjs → chunk-3T65J5RG.mjs} +2 -2
- package/dist/cli/{chunk-DIRLEJJX.js → chunk-44I675YK.js} +42 -41
- package/dist/cli/{chunk-LP2VNGG3.mjs → chunk-44KSACJW.mjs} +2 -2
- package/dist/cli/{chunk-X4RGDE4J.mjs → chunk-4D3WIZST.mjs} +1 -1
- package/dist/cli/{chunk-7FY7AHR6.js → chunk-4OMAGJ6U.js} +2 -2
- package/dist/cli/{chunk-TYOAOSDL.js → chunk-54EEYLTF.js} +3 -3
- package/dist/cli/{chunk-PLAJ6HPD.mjs → chunk-5IL7SC45.mjs} +2 -2
- package/dist/cli/{chunk-XS72HELO.mjs → chunk-5S6PHKRV.mjs} +2 -1
- package/dist/cli/{chunk-4HSSPT73.js → chunk-5VVSEU67.js} +6 -6
- package/dist/cli/{chunk-ANOTB6V3.mjs → chunk-6PWJKMFQ.mjs} +5 -4
- package/dist/cli/{chunk-MAE3AKDR.mjs → chunk-7DOQ3OEX.mjs} +17 -8
- package/dist/cli/{chunk-RMKRZJOS.js → chunk-7RSIFA72.js} +18 -16
- package/dist/cli/{chunk-4AUV5QJF.mjs → chunk-7WQNWJQW.mjs} +7 -5
- package/dist/cli/{chunk-6P7TGCHQ.mjs → chunk-BGBJV26E.mjs} +10 -3
- package/dist/cli/{chunk-UGVXHT62.mjs → chunk-BIIJATTX.mjs} +2 -2
- package/dist/cli/{chunk-ADWMIZCB.js → chunk-C4CUZH57.js} +20 -11
- package/dist/cli/{chunk-PQX4WTBY.mjs → chunk-CLRAANWH.mjs} +1 -1
- package/dist/cli/{chunk-XPYCNA43.js → chunk-COGREZAO.js} +48 -44
- package/dist/cli/{chunk-QUELC3B2.js → chunk-CQ6JYQSW.js} +10 -10
- package/dist/cli/{chunk-Z3DKJOUL.mjs → chunk-D6M5HFBB.mjs} +1 -1
- package/dist/cli/{chunk-W77LBYF3.mjs → chunk-E64HFB4L.mjs} +13 -13
- package/dist/cli/{chunk-BDOLPGHD.mjs → chunk-FOTGUFVK.mjs} +3 -3
- package/dist/cli/{chunk-4QUWXUUJ.mjs → chunk-GGB3JYCW.mjs} +3 -2
- package/dist/cli/{chunk-7AOFSZJM.mjs → chunk-GGGAEVCX.mjs} +23 -1
- package/dist/cli/{chunk-PLJCY35C.mjs → chunk-GVYLCCKN.mjs} +1 -1
- package/dist/cli/{chunk-UV4RU2TE.js → chunk-H4ALLC2X.js} +2 -0
- package/dist/cli/{chunk-V5WPYOAE.mjs → chunk-HEHVGEZV.mjs} +10 -7
- package/dist/cli/{chunk-AZSVDAXT.mjs → chunk-I4VKGNAQ.mjs} +9 -5
- package/dist/cli/{chunk-RKF263LR.js → chunk-KWSH5T7K.js} +25 -18
- package/dist/cli/{chunk-4DJNXAPH.js → chunk-LPJPCGT3.js} +8 -8
- package/dist/cli/{chunk-Y5SKYU5X.mjs → chunk-MNSTCJMX.mjs} +3 -3
- package/dist/cli/{chunk-Y5MDCPWA.js → chunk-MR5LTVHD.js} +53 -53
- package/dist/cli/{chunk-LMFTDDAM.mjs → chunk-MXGA6JFI.mjs} +2 -2
- package/dist/cli/{chunk-BDUZJX4V.js → chunk-NMWGZD6Y.js} +26 -26
- package/dist/cli/{chunk-5622PYAP.js → chunk-PACD5DGC.js} +4 -4
- package/dist/cli/{chunk-CX4KGWCH.mjs → chunk-PM7MO62Y.mjs} +3 -3
- package/dist/cli/{chunk-ETLEPHLT.js → chunk-POLUE7D5.js} +11 -11
- package/dist/cli/{chunk-VLAJGF27.js → chunk-PPSDCN6C.js} +3 -2
- package/dist/cli/{chunk-KBMBNUUW.js → chunk-QM6Y6S4E.js} +5 -5
- package/dist/cli/{chunk-YX7BX2FA.mjs → chunk-RE5MJBEV.mjs} +2 -2
- package/dist/cli/{chunk-5CXE22BI.mjs → chunk-S7IZWGUA.mjs} +2 -2
- package/dist/cli/{chunk-OWX4AAJ4.js → chunk-T2B5BVZE.js} +13 -13
- package/dist/cli/{chunk-3IUQNHIG.js → chunk-UDXULACQ.js} +3 -3
- package/dist/cli/{chunk-ECWOIXAV.js → chunk-UPMRIVZB.js} +14 -12
- package/dist/cli/{chunk-U6KHWIAO.mjs → chunk-V6SCP4B7.mjs} +1 -1
- package/dist/cli/{chunk-V7WMNX4R.js → chunk-VTGG2RT3.js} +1 -1
- package/dist/cli/{chunk-QIZBUY2N.mjs → chunk-VWLHRZFG.mjs} +4 -4
- package/dist/cli/{chunk-YZTS3XA7.js → chunk-W2ZWQUHT.js} +2 -2
- package/dist/cli/{chunk-5T37KQNG.mjs → chunk-W425ERWN.mjs} +6 -5
- package/dist/cli/{chunk-GWNYLIF7.mjs → chunk-WEHCBH5R.mjs} +4 -2
- package/dist/cli/{chunk-CXFOYRI4.js → chunk-WKBHUB6R.js} +270 -270
- package/dist/cli/{chunk-SVNAP2QI.js → chunk-XYE5XPGF.js} +9 -9
- package/dist/cli/{chunk-HPSCRVTM.js → chunk-Z2FIOG3V.js} +12 -12
- package/dist/cli/{chunk-KTZ3VU6S.js → chunk-ZCDKE4UH.js} +5 -5
- package/dist/cli/{chunk-QGKX2WBZ.js → chunk-ZDQFBJPO.js} +20 -19
- package/dist/cli/{chunk-J6FINSAK.mjs → chunk-ZMNGZ6XS.mjs} +1 -1
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/{concurrent-runs-help-OYSLW55L.mjs → concurrent-runs-help-C6L6I5OR.mjs} +7 -7
- package/dist/cli/concurrent-runs-help-JEFQZTJI.js +21 -0
- package/dist/cli/{csv-FRO3UFMQ.js → csv-QMF4FWE7.js} +19 -14
- package/dist/cli/{csv-TFCTUYF2.mjs → csv-SYSDXFEM.mjs} +10 -5
- package/dist/cli/{db-NHVZBT2H.mjs → db-Q7HURWRZ.mjs} +6 -6
- package/dist/cli/{db-SNFNRVZJ.js → db-YSHPPA4H.js} +27 -27
- package/dist/cli/describe-PXTSBJTL.js +50 -0
- package/dist/cli/{describe-OVFPRJJL.mjs → describe-YGMQBV44.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-HWMH2LTC.mjs → executions-G7U3VUXN.mjs} +6 -6
- package/dist/cli/{executions-RZLKKPZV.js → executions-MWBC5TAW.js} +8 -8
- package/dist/cli/{feedback-WD4JVF77.mjs → feedback-GMHIFLBJ.mjs} +6 -6
- package/dist/cli/{feedback-3D5OROCI.js → feedback-SD55OY6H.js} +14 -14
- package/dist/cli/{git-RYUKBCUZ.mjs → git-HPE45OPD.mjs} +5 -5
- package/dist/cli/git-I3JV7IGH.js +25 -0
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-KJPFCEXL.mjs → integrations-2W4MGIQR.mjs} +7 -7
- package/dist/cli/{integrations-Y7OK23DW.js → integrations-HFKVBY6G.js} +15 -15
- package/dist/cli/{legacy-noops-2PU2ZVEP.mjs → legacy-noops-GZYKNU2Z.mjs} +6 -6
- package/dist/cli/{legacy-noops-G7ZY7K3K.js → legacy-noops-SXVNDEXN.js} +9 -9
- package/dist/cli/{mcp-D7F2RSOI.mjs → mcp-BWA6KULG.mjs} +4 -4
- package/dist/cli/{mcp-GILBYX72.js → mcp-PJRHQHHU.js} +24 -24
- package/dist/cli/{monitors-OXNHOT3C.js → monitors-K2WSI6CR.js} +100 -100
- package/dist/cli/{monitors-IK5KXY2H.mjs → monitors-SYQKCATO.mjs} +7 -7
- package/dist/cli/{org-L5D7EISU.mjs → org-5KD7X7IA.mjs} +6 -6
- package/dist/cli/{org-OYM3UNTP.js → org-YQ2CR32B.js} +88 -88
- package/dist/cli/{play-YK22QPYO.js → play-SZXY2F2S.js} +352 -341
- package/dist/cli/{play-PK6QO3WX.mjs → play-TTMABJEI.mjs} +40 -29
- package/dist/cli/{providers-Z6MNJDCG.mjs → providers-GQIOMRQO.mjs} +6 -6
- package/dist/cli/{providers-5CYP7P4N.js → providers-YDHCTZAF.js} +9 -9
- package/dist/cli/{quickstart-2YKETYJY.js → quickstart-BNYOXQXG.js} +6 -6
- package/dist/cli/{quickstart-2I73XQXB.mjs → quickstart-PHSSMKCA.mjs} +4 -4
- package/dist/cli/{run-KGQ6TUBB.mjs → run-74C3C75C.mjs} +26 -26
- package/dist/cli/{run-YVSEAVE5.js → run-GFIAZXVL.js} +47 -47
- package/dist/cli/search-2RRRF4LW.js +32 -0
- package/dist/cli/{search-V2HPN6FU.mjs → search-3SWUB7KX.mjs} +7 -7
- package/dist/cli/{search-output-BUSANFRN.js → search-output-6JF3S4TP.js} +43 -13
- package/dist/cli/{search-output-OCTOSDEO.mjs → search-output-K2SWHVHQ.mjs} +40 -10
- package/dist/cli/{secrets-WZGRBWI5.mjs → secrets-2M4XWEKE.mjs} +6 -6
- package/dist/cli/{secrets-VDKTHCVB.js → secrets-2SAKLH2H.js} +15 -15
- package/dist/cli/{sessions-5DTN55DZ.mjs → sessions-A64BCXTO.mjs} +6 -6
- package/dist/cli/sessions-SBH27JNW.js +22 -0
- package/dist/cli/{settings-A7VSNOLI.js → settings-HV64WIJF.js} +85 -85
- package/dist/cli/{settings-BK5FPQ3X.mjs → settings-SVGEC3FI.mjs} +12 -12
- package/dist/cli/{setup-LLQVPZTP.mjs → setup-EDC3NEJ3.mjs} +15 -10
- package/dist/cli/{setup-NV27CYQ5.js → setup-FHXOLQGQ.js} +55 -50
- package/dist/cli/{skills-IV6HK4XA.mjs → skills-3HGHZMXB.mjs} +7 -7
- package/dist/cli/skills-Y3SRLOYD.js +36 -0
- package/dist/cli/tools-OFYPUPUV.js +57 -0
- package/dist/cli/{tools-4FKPCRD7.mjs → tools-P2QS6A6Q.mjs} +19 -19
- package/dist/cli/{update-MH5M746E.mjs → update-552BYQM4.mjs} +9 -9
- package/dist/cli/update-SOUSCLB7.js +34 -0
- package/dist/cli/{views-KXC4JDT7.mjs → views-LD5HXJYY.mjs} +6 -6
- package/dist/cli/{views-JW44TCGL.js → views-PA25NAE3.js} +21 -21
- package/dist/cli/{workflow-F5AHL2ET.js → workflow-FIDBUQV6.js} +17 -17
- package/dist/cli/{workflow-FI4DL7ZI.mjs → workflow-LDYFGBYP.mjs} +7 -7
- package/dist/{client-BEJqhQAj.d.mts → client-DuDFiJDU.d.mts} +1 -1
- package/dist/{client-core-BPYuWfBC.d.ts → client-core-CJRzLanv.d.ts} +93 -4
- package/dist/{client-core-BqetRxx-.d.mts → client-core-DydMQOft.d.mts} +93 -4
- package/dist/{client-Ceo295L2.d.ts → client-t9HZAkFD.d.ts} +1 -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 +124 -124
- 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-UVEZIP3H.js +0 -43
- package/dist/cli/chunk-NIPLY25A.mjs +0 -7
- package/dist/cli/concurrent-runs-help-74AFW3BD.js +0 -21
- package/dist/cli/describe-2JCOC4AK.js +0 -50
- package/dist/cli/git-GCCPCUWJ.js +0 -25
- package/dist/cli/search-YG3UIZ6A.js +0 -32
- package/dist/cli/sessions-NSPT6LHT.js +0 -22
- package/dist/cli/skills-UA5E4DA3.js +0 -36
- package/dist/cli/tools-NJVPAG37.js +0 -57
- package/dist/cli/update-DKX27XZB.js +0 -34
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkCOGREZAOjs = require('./chunk-COGREZAO.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkUDXULACQjs = require('./chunk-UDXULACQ.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkPACD5DGCjs = require('./chunk-PACD5DGC.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
|
|
@@ -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 = _chunkUDXULACQjs.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, () => ( _chunkPACD5DGCjs.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, _chunkUDXULACQjs.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 = [..._chunkCOGREZAOjs.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=${_chunkCOGREZAOjs.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=${_chunkCOGREZAOjs.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkCOGREZAOjs.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 = _chunkCOGREZAOjs.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -254,6 +254,7 @@ function runProcess(command, args, cwd) {
|
|
|
254
254
|
cwd
|
|
255
255
|
);
|
|
256
256
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
257
|
+
windowsHide: true,
|
|
257
258
|
cwd,
|
|
258
259
|
env: process.env,
|
|
259
260
|
stdio: ["ignore", "ignore", "pipe"],
|
|
@@ -268,7 +269,7 @@ function runProcess(command, args, cwd) {
|
|
|
268
269
|
child.kill("SIGTERM");
|
|
269
270
|
reject(
|
|
270
271
|
new Error(
|
|
271
|
-
`${
|
|
272
|
+
`${_chunkCOGREZAOjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
272
273
|
)
|
|
273
274
|
);
|
|
274
275
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -279,7 +280,7 @@ function runProcess(command, args, cwd) {
|
|
|
279
280
|
child.once("close", (code) => {
|
|
280
281
|
clearTimeout(timeout);
|
|
281
282
|
if (code && stderr.trim()) {
|
|
282
|
-
process.stderr.write(`${
|
|
283
|
+
process.stderr.write(`${_chunkCOGREZAOjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
283
284
|
`);
|
|
284
285
|
}
|
|
285
286
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -287,7 +288,7 @@ function runProcess(command, args, cwd) {
|
|
|
287
288
|
});
|
|
288
289
|
}
|
|
289
290
|
async function showSkills(options, name) {
|
|
290
|
-
const baseUrl =
|
|
291
|
+
const baseUrl = _chunkUDXULACQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
291
292
|
const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
|
|
292
293
|
try {
|
|
293
294
|
const response = await fetch(url, {
|
|
@@ -300,7 +301,7 @@ async function showSkills(options, name) {
|
|
|
300
301
|
}
|
|
301
302
|
if (name) {
|
|
302
303
|
const markdown = await response.text();
|
|
303
|
-
|
|
304
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
304
305
|
{ ok: true, status: "completed", skill: { name, markdown } },
|
|
305
306
|
{ json: options.json, text: markdown }
|
|
306
307
|
);
|
|
@@ -310,7 +311,7 @@ async function showSkills(options, name) {
|
|
|
310
311
|
const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
|
|
311
312
|
(skill) => skill.install_surface === "v1" && skill.name
|
|
312
313
|
);
|
|
313
|
-
|
|
314
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
314
315
|
{
|
|
315
316
|
ok: true,
|
|
316
317
|
status: "completed",
|
|
@@ -327,7 +328,7 @@ Read one with: deepline skills show <name>
|
|
|
327
328
|
);
|
|
328
329
|
return 0;
|
|
329
330
|
} catch (error) {
|
|
330
|
-
|
|
331
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
331
332
|
{
|
|
332
333
|
ok: false,
|
|
333
334
|
status: "failed",
|
|
@@ -350,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
350
351
|
scope = normalizeScope(options.scope);
|
|
351
352
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
352
353
|
} catch (error) {
|
|
353
|
-
|
|
354
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
354
355
|
{
|
|
355
356
|
ok: false,
|
|
356
357
|
status: "failed",
|
|
@@ -362,22 +363,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
362
363
|
);
|
|
363
364
|
return 2;
|
|
364
365
|
}
|
|
365
|
-
const baseUrl =
|
|
366
|
+
const baseUrl = _chunkUDXULACQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
366
367
|
const catalog = {
|
|
367
|
-
skillNames: [...
|
|
368
|
-
version:
|
|
368
|
+
skillNames: [..._chunkCOGREZAOjs.DEFAULT_SDK_SKILL_NAMES],
|
|
369
|
+
version: _chunkPACD5DGCjs.SDK_VERSION
|
|
369
370
|
};
|
|
370
371
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
371
372
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
372
373
|
if (options.dryRun) {
|
|
373
|
-
|
|
374
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
374
375
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
375
376
|
{ json: options.json }
|
|
376
377
|
);
|
|
377
378
|
return 0;
|
|
378
379
|
}
|
|
379
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
380
|
-
|
|
380
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkCOGREZAOjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
381
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
381
382
|
{
|
|
382
383
|
ok: true,
|
|
383
384
|
status: "current",
|
|
@@ -409,10 +410,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
409
410
|
}
|
|
410
411
|
if (scope === "local" && root) {
|
|
411
412
|
const managedNames = [
|
|
412
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
413
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkCOGREZAOjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
413
414
|
];
|
|
414
415
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
415
|
-
|
|
416
|
+
_chunkUDXULACQjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
416
417
|
".deepline/",
|
|
417
418
|
...agentRoots.flatMap(
|
|
418
419
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -421,7 +422,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
421
422
|
}
|
|
422
423
|
let lease;
|
|
423
424
|
try {
|
|
424
|
-
lease = scope === "global" ? await
|
|
425
|
+
lease = scope === "global" ? await _chunkCOGREZAOjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
425
426
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
426
427
|
onWait: () => process.stderr.write(
|
|
427
428
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -429,8 +430,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
429
430
|
}) : { release: () => {
|
|
430
431
|
} };
|
|
431
432
|
} catch (error) {
|
|
432
|
-
if (!(error instanceof
|
|
433
|
-
|
|
433
|
+
if (!(error instanceof _chunkCOGREZAOjs.SkillsStateUnavailableError)) throw error;
|
|
434
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
434
435
|
{
|
|
435
436
|
ok: false,
|
|
436
437
|
status: "failed",
|
|
@@ -446,7 +447,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
446
447
|
return 5;
|
|
447
448
|
}
|
|
448
449
|
if (!lease) {
|
|
449
|
-
|
|
450
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
450
451
|
{
|
|
451
452
|
ok: false,
|
|
452
453
|
status: "failed",
|
|
@@ -455,7 +456,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
455
456
|
scope,
|
|
456
457
|
agents,
|
|
457
458
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
458
|
-
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${
|
|
459
|
+
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkCOGREZAOjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
459
460
|
},
|
|
460
461
|
{ json: options.json }
|
|
461
462
|
);
|
|
@@ -504,7 +505,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
504
505
|
}
|
|
505
506
|
}
|
|
506
507
|
} catch (error) {
|
|
507
|
-
|
|
508
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
508
509
|
{
|
|
509
510
|
ok: false,
|
|
510
511
|
status: "failed",
|
|
@@ -520,7 +521,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
520
521
|
return 5;
|
|
521
522
|
}
|
|
522
523
|
if (missing.length > 0) {
|
|
523
|
-
|
|
524
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
524
525
|
{
|
|
525
526
|
ok: false,
|
|
526
527
|
status: "failed",
|
|
@@ -560,7 +561,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
560
561
|
{
|
|
561
562
|
schemaVersion: 1,
|
|
562
563
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
563
|
-
cliVersion:
|
|
564
|
+
cliVersion: _chunkPACD5DGCjs.SDK_VERSION,
|
|
564
565
|
scope,
|
|
565
566
|
agents,
|
|
566
567
|
skillsVersion: plan.version,
|
|
@@ -573,9 +574,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
573
574
|
"utf8"
|
|
574
575
|
);
|
|
575
576
|
if (scope === "global") {
|
|
576
|
-
|
|
577
|
+
_chunkCOGREZAOjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
577
578
|
}
|
|
578
|
-
|
|
579
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
579
580
|
{
|
|
580
581
|
ok: true,
|
|
581
582
|
status: "complete",
|
|
@@ -624,7 +625,7 @@ Examples:
|
|
|
624
625
|
"after",
|
|
625
626
|
`
|
|
626
627
|
Notes:
|
|
627
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
628
|
+
This command reinstalls current Deepline-managed skills using ${_chunkCOGREZAOjs.SKILLS_NPX_PACKAGE},
|
|
628
629
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
629
630
|
persistent project.
|
|
630
631
|
|
|
@@ -636,13 +637,13 @@ Examples:
|
|
|
636
637
|
).action(async (options) => {
|
|
637
638
|
process.exitCode = await runSkillsCommand(options);
|
|
638
639
|
});
|
|
639
|
-
program.command(
|
|
640
|
+
program.command(_chunkCOGREZAOjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
640
641
|
"--claim <token>",
|
|
641
642
|
"Owner token of the leases this child was started for."
|
|
642
643
|
).action(async (options) => {
|
|
643
644
|
const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
|
|
644
645
|
if (!claim) {
|
|
645
|
-
|
|
646
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
646
647
|
{
|
|
647
648
|
ok: false,
|
|
648
649
|
status: "failed",
|
|
@@ -655,7 +656,7 @@ Examples:
|
|
|
655
656
|
process.exitCode = 2;
|
|
656
657
|
return;
|
|
657
658
|
}
|
|
658
|
-
await
|
|
659
|
+
await _chunkCOGREZAOjs.syncSdkSkillsIfNeeded.call(void 0, _chunkUDXULACQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
659
660
|
mode: "inline",
|
|
660
661
|
notices: "defer",
|
|
661
662
|
claim
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GGB3JYCW.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-V6SCP4B7.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkZDQFBJPOjs.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkZDQFBJPOjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GVYLCCKN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-I4VKGNAQ.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveShellSpawn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I4VKGNAQ.mjs";
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
import { spawnSync } from "child_process";
|
|
@@ -15,6 +15,7 @@ function readNpmVersion(env) {
|
|
|
15
15
|
try {
|
|
16
16
|
const plan = resolveShellSpawn("npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = spawnSync(plan.command, plan.args, {
|
|
18
|
+
windowsHide: true,
|
|
18
19
|
encoding: "utf8",
|
|
19
20
|
env,
|
|
20
21
|
shell: plan.shell,
|
|
@@ -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 _chunkW2ZWQUHTjs = require('./chunk-W2ZWQUHT.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkCOGREZAOjs = require('./chunk-COGREZAO.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") _chunkCOGREZAOjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkW2ZWQUHTjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkCOGREZAOjs.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
|
+
_chunkCOGREZAOjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
34
34
|
quietAdvisory: true
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-I4VKGNAQ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GGB3JYCW.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-V6SCP4B7.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4D3WIZST.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -254,6 +254,7 @@ function runProcess(command, args, cwd) {
|
|
|
254
254
|
cwd
|
|
255
255
|
);
|
|
256
256
|
const child = spawn(plan.command, plan.args, {
|
|
257
|
+
windowsHide: true,
|
|
257
258
|
cwd,
|
|
258
259
|
env: process.env,
|
|
259
260
|
stdio: ["ignore", "ignore", "pipe"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PRICING_PAGE_NOTE
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2RIKOPIM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS
|
|
6
6
|
} from "./chunk-5LUF4LAR.mjs";
|
|
@@ -470,7 +470,7 @@ Purpose:
|
|
|
470
470
|
When:
|
|
471
471
|
First, whenever you do not already know what to run.
|
|
472
472
|
Input:
|
|
473
|
-
|
|
473
|
+
Pass a full tool ID for an exact lookup, or search for one capability at a time.
|
|
474
474
|
Include the input fields, the result you need, and requirements.
|
|
475
475
|
Leave out customer data like names and domains, and export details like filenames.
|
|
476
476
|
For a workflow with distinct steps, search for each step separately.
|
|
@@ -496,8 +496,10 @@ Examples:
|
|
|
496
496
|
]]
|
|
497
497
|
Output:
|
|
498
498
|
A ranked list. Each result has an id, its kind, what it does, and its price.
|
|
499
|
-
|
|
500
|
-
|
|
499
|
+
An exact lookup reports whether the tool matched in this scope. If it
|
|
500
|
+
misses, check the account and workspace before searching by task.
|
|
501
|
+
Tool results include an exact describe command, required inputs, known
|
|
502
|
+
effects, and available authorization metadata.
|
|
501
503
|
When search suggests a rewrite, retry with the core task in a shorter query.
|
|
502
504
|
[[cli:
|
|
503
505
|
Multiple queries print one section per query in argument order. With --json,
|
|
@@ -974,10 +976,11 @@ Input:
|
|
|
974
976
|
--payload is an alias of --input. There is no --payload-file flag; use
|
|
975
977
|
@path. --out <file.csv> writes row-shaped output to a CSV file.
|
|
976
978
|
--connection <name> selects a workspace authorization for supported
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
979
|
+
operations. For Google Workspace team availability, choose the approved
|
|
980
|
+
domain as the connection and pass primary work emails in calendarIds.
|
|
981
|
+
For booking, organizerEmail selects the primary calendar that receives the
|
|
982
|
+
event. Verify the calendars with a read-only call before publishing booking.
|
|
983
|
+
Where supported, omitting --connection uses the caller's default account.
|
|
981
984
|
deepline integrations list --json lists workspace authorization names.
|
|
982
985
|
Each authorization grants specific scopes. Missing scopes fail the call.
|
|
983
986
|
]]
|
|
@@ -999,6 +1002,12 @@ Failures:
|
|
|
999
1002
|
fix the key, plan or input instead of retrying.
|
|
1000
1003
|
]]
|
|
1001
1004
|
[[mcp:
|
|
1005
|
+
Named authorizations:
|
|
1006
|
+
Pass the authorized connection name as connection alongside tool_id and
|
|
1007
|
+
input. For Google Workspace, choose the approved domain and pass primary
|
|
1008
|
+
work emails in input.calendarIds for a read-only availability check. Use
|
|
1009
|
+
the same connection in the Play. For booking, input.organizerEmail selects
|
|
1010
|
+
the primary calendar that receives the event.
|
|
1002
1011
|
Output:
|
|
1003
1012
|
data, the provider result, and credits_used when it is reported.
|
|
1004
1013
|
]]
|
|
@@ -1,19 +1,19 @@
|
|
|
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 _chunkPPSDCN6Cjs = require('./chunk-PPSDCN6C.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk44I675YKjs = require('./chunk-44I675YK.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkCOGREZAOjs = require('./chunk-COGREZAO.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkUDXULACQjs = require('./chunk-UDXULACQ.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,13 +495,14 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkCOGREZAOjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
502
502
|
env
|
|
503
503
|
);
|
|
504
504
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
505
|
+
windowsHide: true,
|
|
505
506
|
encoding: "utf8",
|
|
506
507
|
env,
|
|
507
508
|
shell: plan.shell,
|
|
@@ -556,8 +557,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
557
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
558
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
559
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
560
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkPPSDCN6Cjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
561
|
+
const npmGlobalInstallFlags = _chunkPPSDCN6Cjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
562
|
const args = installPrefix ? [
|
|
562
563
|
"install",
|
|
563
564
|
"-g",
|
|
@@ -567,7 +568,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
568
|
packageSpec
|
|
568
569
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
570
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
571
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkUDXULACQjs.autoDetectBaseUrl.call(void 0, )
|
|
571
572
|
);
|
|
572
573
|
return {
|
|
573
574
|
kind: "npm-global",
|
|
@@ -816,8 +817,9 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
817
|
function runCommand(command, args, env = process.env) {
|
|
817
818
|
return new Promise((resolveResult) => {
|
|
818
819
|
let output = "";
|
|
819
|
-
const plan =
|
|
820
|
+
const plan = _chunkCOGREZAOjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
821
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
822
|
+
windowsHide: true,
|
|
821
823
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
824
|
shell: plan.shell,
|
|
823
825
|
env
|
|
@@ -1199,14 +1201,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1201
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1202
|
}
|
|
1201
1203
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1204
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkUDXULACQjs.autoDetectBaseUrl));
|
|
1203
1205
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1206
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1207
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1208
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1209
|
process.stdout.write = (() => true);
|
|
1208
1210
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1211
|
+
const exitCode = await _chunk44I675YKjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1212
|
if (exitCode !== 0) {
|
|
1211
1213
|
throw new Error(
|
|
1212
1214
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1279,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1279
|
]
|
|
1278
1280
|
};
|
|
1279
1281
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1282
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1283
|
return 0;
|
|
1282
1284
|
}
|
|
1283
1285
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1286
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
1285
1287
|
{
|
|
1286
1288
|
...plan,
|
|
1287
1289
|
render: {
|
|
@@ -1294,7 +1296,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1296
|
return 0;
|
|
1295
1297
|
}
|
|
1296
1298
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1299
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1300
|
return 0;
|
|
1299
1301
|
}
|
|
1300
1302
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1326,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1324
1326
|
);
|
|
1325
1327
|
}
|
|
1326
1328
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1329
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
1328
1330
|
{
|
|
1329
1331
|
ok: true,
|
|
1330
1332
|
pinnedVersion
|