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
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5S6PHKRV.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6PWJKMFQ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-I4VKGNAQ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GGB3JYCW.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-V6SCP4B7.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -502,6 +502,7 @@ function resolveNpmGlobalPrefix(env) {
|
|
|
502
502
|
env
|
|
503
503
|
);
|
|
504
504
|
const result = spawnSync(plan.command, plan.args, {
|
|
505
|
+
windowsHide: true,
|
|
505
506
|
encoding: "utf8",
|
|
506
507
|
env,
|
|
507
508
|
shell: plan.shell,
|
|
@@ -818,6 +819,7 @@ function runCommand(command, args, env = process.env) {
|
|
|
818
819
|
let output = "";
|
|
819
820
|
const plan = resolveShellSpawn(command, args, process.platform, env);
|
|
820
821
|
const child = spawn(plan.command, plan.args, {
|
|
822
|
+
windowsHide: true,
|
|
821
823
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
824
|
shell: plan.shell,
|
|
823
825
|
env
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WEHCBH5R.mjs";
|
|
7
7
|
import {
|
|
8
8
|
buildPlayDashboardUrl,
|
|
9
9
|
byokLines,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
examples,
|
|
14
14
|
schemaLines,
|
|
15
15
|
topLevelField
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GGGAEVCX.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
19
|
} from "./chunk-JL2OTMSG.mjs";
|
|
@@ -141,8 +141,14 @@ async function findNamed(reference, options, lookups) {
|
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
|
+
let scopedToolError;
|
|
144
145
|
const tool = async () => {
|
|
145
|
-
const record = await lookups.tool(name)
|
|
146
|
+
const record = await lookups.tool(name).catch((error) => {
|
|
147
|
+
if (!(error instanceof DeeplineError) || error.code !== "TOOL_UNAVAILABLE_IN_WORKSPACE")
|
|
148
|
+
throw error;
|
|
149
|
+
scopedToolError = error;
|
|
150
|
+
return null;
|
|
151
|
+
});
|
|
146
152
|
if (!record) return null;
|
|
147
153
|
const features = toolFeatures(record);
|
|
148
154
|
return {
|
|
@@ -178,6 +184,7 @@ async function findNamed(reference, options, lookups) {
|
|
|
178
184
|
})
|
|
179
185
|
);
|
|
180
186
|
const [chosen, shadowed] = matches.filter((match) => match !== null);
|
|
187
|
+
if (!chosen && scopedToolError) throw scopedToolError;
|
|
181
188
|
return { chosen, shadowed };
|
|
182
189
|
}
|
|
183
190
|
async function describeName(name, options, lookups) {
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
SCHEMA_LINE_LIMIT,
|
|
3
3
|
fieldBlockLines,
|
|
4
4
|
schemaFields
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GGGAEVCX.mjs";
|
|
6
6
|
import {
|
|
7
7
|
csvSafeJsonString,
|
|
8
8
|
csvStringFromRows,
|
|
9
9
|
formatCliFailureDiagnostic,
|
|
10
10
|
markJsonOutputHandled,
|
|
11
11
|
writeRawStderr
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GGB3JYCW.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/describe-options.ts
|
|
15
15
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkR7J7CJPZjs = require('./chunk-R7J7CJPZ.js');
|
|
@@ -384,7 +384,7 @@ Output:
|
|
|
384
384
|
Your runtime price, allowance used, paid overage, and reset date.
|
|
385
385
|
Usage is shown in standard sandbox minutes at your current rate and in credits.
|
|
386
386
|
${PLAY_RUNTIME_PRICING_NOTE}
|
|
387
|
-
${
|
|
387
|
+
${_chunkH4ALLC2Xjs.PRICING_PAGE_NOTE}
|
|
388
388
|
Cost:
|
|
389
389
|
Free to check.
|
|
390
390
|
[[cli:
|
|
@@ -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
|
]]
|
|
@@ -1569,7 +1578,7 @@ Concurrency:
|
|
|
1569
1578
|
deepline billing entitlements shows this workspace's plan and limit and
|
|
1570
1579
|
every plan's limit; this help prints them too when you are signed in.
|
|
1571
1580
|
]]
|
|
1572
|
-
${
|
|
1581
|
+
${_chunkH4ALLC2Xjs.PRICING_PAGE_NOTE}
|
|
1573
1582
|
Cost:
|
|
1574
1583
|
Spends Deepline credits through the play's tool calls. Validation errors
|
|
1575
1584
|
(missing column, bad input) fail before any spend.
|
|
@@ -1820,7 +1829,7 @@ Concurrency:
|
|
|
1820
1829
|
deepline billing entitlements shows this workspace's plan and limit and
|
|
1821
1830
|
every plan's limit; this help prints them too when you are signed in.
|
|
1822
1831
|
]]
|
|
1823
|
-
${
|
|
1832
|
+
${_chunkH4ALLC2Xjs.PRICING_PAGE_NOTE}
|
|
1824
1833
|
Cost:
|
|
1825
1834
|
Free.
|
|
1826
1835
|
Avoid:
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunk54EEYLTFjs = require('./chunk-54EEYLTF.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,17 +14,17 @@ var _chunkQGKX2WBZjs = require('./chunk-QGKX2WBZ.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkUDXULACQjs = require('./chunk-UDXULACQ.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkPACD5DGCjs = require('./chunk-PACD5DGC.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkVTGG2RT3js = require('./chunk-VTGG2RT3.js');
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
var _crypto = require('crypto');
|
|
@@ -59,7 +59,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
59
59
|
return value === "1" || value === "true" || value === "yes";
|
|
60
60
|
}
|
|
61
61
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
|
|
62
|
-
return _path.join.call(void 0,
|
|
62
|
+
return _path.join.call(void 0, _chunkUDXULACQjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
63
63
|
}
|
|
64
64
|
function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
|
|
65
65
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -67,9 +67,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
67
67
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
68
68
|
return JSON.stringify({
|
|
69
69
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
70
|
-
version:
|
|
71
|
-
apiContract:
|
|
72
|
-
apiMajor:
|
|
70
|
+
version: _chunkPACD5DGCjs.SDK_VERSION,
|
|
71
|
+
apiContract: _chunkPACD5DGCjs.SDK_API_CONTRACT,
|
|
72
|
+
apiMajor: _chunkPACD5DGCjs.SDK_API_MAJOR,
|
|
73
73
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
74
74
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
75
75
|
});
|
|
@@ -77,8 +77,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
77
77
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
78
78
|
return JSON.stringify({
|
|
79
79
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
80
|
-
version:
|
|
81
|
-
apiContract:
|
|
80
|
+
version: _chunkPACD5DGCjs.SDK_VERSION,
|
|
81
|
+
apiContract: _chunkPACD5DGCjs.SDK_API_CONTRACT,
|
|
82
82
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
83
83
|
});
|
|
84
84
|
}
|
|
@@ -103,7 +103,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
103
103
|
}
|
|
104
104
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
105
105
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
106
|
-
const path = _path.join.call(void 0,
|
|
106
|
+
const path = _path.join.call(void 0, _chunkUDXULACQjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
107
107
|
try {
|
|
108
108
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
109
109
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -190,7 +190,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
190
190
|
);
|
|
191
191
|
try {
|
|
192
192
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
193
|
-
url.searchParams.set("version",
|
|
193
|
+
url.searchParams.set("version", _chunkPACD5DGCjs.SDK_VERSION);
|
|
194
194
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
195
195
|
url.searchParams.set("command", options.command.trim());
|
|
196
196
|
}
|
|
@@ -198,7 +198,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
198
198
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
199
199
|
url.searchParams.set(
|
|
200
200
|
"skills_cli_capability",
|
|
201
|
-
String(
|
|
201
|
+
String(_chunkVTGG2RT3js.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
204
|
if (options.catalog) {
|
|
@@ -210,14 +210,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
210
210
|
const response = await fetch(url, {
|
|
211
211
|
method: "GET",
|
|
212
212
|
headers: {
|
|
213
|
-
...
|
|
214
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
215
|
-
"X-Deepline-SDK-Version":
|
|
216
|
-
"X-Deepline-API-Major": String(
|
|
217
|
-
"X-Deepline-API-Contract":
|
|
213
|
+
..._chunkPACD5DGCjs.deploymentProtectionHeaders.call(void 0, ),
|
|
214
|
+
"User-Agent": `deepline-ts-sdk/${_chunkPACD5DGCjs.SDK_VERSION}`,
|
|
215
|
+
"X-Deepline-SDK-Version": _chunkPACD5DGCjs.SDK_VERSION,
|
|
216
|
+
"X-Deepline-API-Major": String(_chunkPACD5DGCjs.SDK_API_MAJOR),
|
|
217
|
+
"X-Deepline-API-Contract": _chunkPACD5DGCjs.SDK_API_CONTRACT,
|
|
218
218
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
219
219
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
220
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
220
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkUDXULACQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
221
221
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
222
222
|
},
|
|
223
223
|
signal: controller.signal
|
|
@@ -386,7 +386,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
386
386
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
387
387
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
388
388
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
389
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
389
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkUDXULACQjs.DEFAULT_SKILL_AGENTS));
|
|
390
390
|
const values = {
|
|
391
391
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
392
392
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -514,25 +514,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
514
514
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
515
515
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
516
516
|
function shouldSkipSkillsSync() {
|
|
517
|
-
if (
|
|
517
|
+
if (_chunkPACD5DGCjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
518
518
|
return true;
|
|
519
519
|
}
|
|
520
520
|
const value = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60(), 'access', _61 => _61.toLowerCase, 'call', _62 => _62()]);
|
|
521
521
|
return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
|
|
522
522
|
}
|
|
523
523
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
524
|
-
return _path.join.call(void 0,
|
|
524
|
+
return _path.join.call(void 0, _chunkUDXULACQjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
525
525
|
}
|
|
526
526
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
527
527
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
528
|
-
var agentLeaseSegment =
|
|
528
|
+
var agentLeaseSegment = _chunkUDXULACQjs.skillsAgentPathSegment;
|
|
529
529
|
function sortedLeaseAgents(agents) {
|
|
530
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
530
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkUDXULACQjs.KNOWN_SKILL_AGENTS] : agents;
|
|
531
531
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
532
532
|
}
|
|
533
533
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
534
534
|
return _path.join.call(void 0,
|
|
535
|
-
|
|
535
|
+
_chunkUDXULACQjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
536
536
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
537
537
|
);
|
|
538
538
|
}
|
|
@@ -691,7 +691,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
691
691
|
constructor(baseUrl, error) {
|
|
692
692
|
const detail = error instanceof Error ? error.message : String(error);
|
|
693
693
|
super(
|
|
694
|
-
`Could not save skills state in ${
|
|
694
|
+
`Could not save skills state in ${_chunkUDXULACQjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
695
695
|
);
|
|
696
696
|
this.name = "SkillsStateUnavailableError";
|
|
697
697
|
}
|
|
@@ -776,7 +776,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
776
776
|
}
|
|
777
777
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
778
778
|
return _path.join.call(void 0,
|
|
779
|
-
|
|
779
|
+
_chunkUDXULACQjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
780
780
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
781
781
|
);
|
|
782
782
|
}
|
|
@@ -810,8 +810,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
810
810
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
811
811
|
}
|
|
812
812
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
813
|
-
if (shouldSkipSkillsSync() ||
|
|
814
|
-
const agents =
|
|
813
|
+
if (shouldSkipSkillsSync() || _chunkUDXULACQjs.hasActivePluginSkills.call(void 0, )) return;
|
|
814
|
+
const agents = _chunkUDXULACQjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
815
815
|
if (agents.length === 0) return;
|
|
816
816
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
817
817
|
}
|
|
@@ -823,6 +823,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
|
|
|
823
823
|
shell: false
|
|
824
824
|
};
|
|
825
825
|
const child = _child_process.spawn.call(void 0, launch.command, launch.args, {
|
|
826
|
+
windowsHide: true,
|
|
826
827
|
detached: true,
|
|
827
828
|
stdio: "ignore",
|
|
828
829
|
env: process.env,
|
|
@@ -833,7 +834,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
|
|
|
833
834
|
}
|
|
834
835
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
835
836
|
return _path.join.call(void 0,
|
|
836
|
-
|
|
837
|
+
_chunkUDXULACQjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
837
838
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
838
839
|
);
|
|
839
840
|
}
|
|
@@ -862,7 +863,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
862
863
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
863
864
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
864
865
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
865
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
866
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkUDXULACQjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
866
867
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _67 => _67.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
867
868
|
notice(
|
|
868
869
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -950,7 +951,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
950
951
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
951
952
|
}
|
|
952
953
|
function isDefaultAgentSet(agents) {
|
|
953
|
-
return agents.length ===
|
|
954
|
+
return agents.length === _chunkUDXULACQjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkUDXULACQjs.DEFAULT_SKILL_AGENTS[index]);
|
|
954
955
|
}
|
|
955
956
|
function safeSkillFilePath(value) {
|
|
956
957
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1107,10 +1108,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1107
1108
|
method: "POST",
|
|
1108
1109
|
headers: { "Content-Type": "application/json" },
|
|
1109
1110
|
body: JSON.stringify({
|
|
1110
|
-
sdk_cli: { version:
|
|
1111
|
+
sdk_cli: { version: _chunkPACD5DGCjs.SDK_VERSION },
|
|
1111
1112
|
skills: {
|
|
1112
1113
|
version: localVersion,
|
|
1113
|
-
capability:
|
|
1114
|
+
capability: _chunkVTGG2RT3js.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1114
1115
|
}
|
|
1115
1116
|
}),
|
|
1116
1117
|
signal: controller.signal
|
|
@@ -1149,7 +1150,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1149
1150
|
}
|
|
1150
1151
|
function noInstallerProbePath(baseUrl) {
|
|
1151
1152
|
return _path.join.call(void 0,
|
|
1152
|
-
|
|
1153
|
+
_chunkUDXULACQjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1153
1154
|
"skills-sync-no-installer-unknown.json"
|
|
1154
1155
|
);
|
|
1155
1156
|
}
|
|
@@ -1206,6 +1207,7 @@ function dueUnknownInstallerProbes(baseUrl, remoteVersion) {
|
|
|
1206
1207
|
function probeCommand(command, timeoutMs) {
|
|
1207
1208
|
const plan = resolveShellSpawn(command, ["--version"]);
|
|
1208
1209
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
1210
|
+
windowsHide: true,
|
|
1209
1211
|
stdio: "ignore",
|
|
1210
1212
|
shell: plan.shell,
|
|
1211
1213
|
timeout: timeoutMs
|
|
@@ -1228,7 +1230,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1228
1230
|
function resolveSkillsInstallSpawn(install, platform = process.platform) {
|
|
1229
1231
|
return resolveShellSpawn(install.command, install.args, platform);
|
|
1230
1232
|
}
|
|
1231
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1233
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkUDXULACQjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1232
1234
|
const commands = [];
|
|
1233
1235
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1234
1236
|
if (probes.bunx === "available") {
|
|
@@ -1253,6 +1255,7 @@ function runOneSkillsInstall(install) {
|
|
|
1253
1255
|
return new Promise((resolve) => {
|
|
1254
1256
|
const plan = resolveSkillsInstallSpawn(install);
|
|
1255
1257
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
1258
|
+
windowsHide: true,
|
|
1256
1259
|
stdio: ["ignore", "ignore", "pipe"],
|
|
1257
1260
|
env: process.env,
|
|
1258
1261
|
shell: plan.shell
|
|
@@ -1362,6 +1365,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1362
1365
|
for (const candidate of candidates) {
|
|
1363
1366
|
const plan = resolveShellSpawn(candidate.command, candidate.args);
|
|
1364
1367
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
1368
|
+
windowsHide: true,
|
|
1365
1369
|
stdio: "ignore",
|
|
1366
1370
|
env: process.env,
|
|
1367
1371
|
shell: plan.shell
|
|
@@ -1370,7 +1374,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1370
1374
|
}
|
|
1371
1375
|
}
|
|
1372
1376
|
function writeSdkSkillsStatusLine(line) {
|
|
1373
|
-
const progress =
|
|
1377
|
+
const progress = _chunk54EEYLTFjs.getActiveCliProgress.call(void 0, );
|
|
1374
1378
|
if (progress) {
|
|
1375
1379
|
progress.writeLine(line);
|
|
1376
1380
|
return;
|
|
@@ -1381,11 +1385,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1381
1385
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1382
1386
|
const skip = shouldSkipSkillsSync();
|
|
1383
1387
|
if (skip && !options.claim) return;
|
|
1384
|
-
const usingPluginSkills =
|
|
1388
|
+
const usingPluginSkills = _chunkUDXULACQjs.hasActivePluginSkills.call(void 0, );
|
|
1385
1389
|
if (usingPluginSkills) {
|
|
1386
1390
|
return;
|
|
1387
1391
|
}
|
|
1388
|
-
const agents =
|
|
1392
|
+
const agents = _chunkUDXULACQjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1389
1393
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1390
1394
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1391
1395
|
}
|
|
@@ -1422,7 +1426,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1422
1426
|
return;
|
|
1423
1427
|
}
|
|
1424
1428
|
try {
|
|
1425
|
-
const localVersion =
|
|
1429
|
+
const localVersion = _chunkUDXULACQjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1426
1430
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1427
1431
|
needsUpdate: options.update.needs_update,
|
|
1428
1432
|
remoteVersion: options.update.remote.version
|
|
@@ -1544,7 +1548,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1544
1548
|
update.remoteVersion,
|
|
1545
1549
|
agents
|
|
1546
1550
|
);
|
|
1547
|
-
void
|
|
1551
|
+
void _chunkZDQFBJPOjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1548
1552
|
baseUrl,
|
|
1549
1553
|
remoteSkillsVersion: update.remoteVersion,
|
|
1550
1554
|
agents,
|
|
@@ -1575,7 +1579,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1575
1579
|
notice(
|
|
1576
1580
|
publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
|
|
1577
1581
|
);
|
|
1578
|
-
void
|
|
1582
|
+
void _chunkZDQFBJPOjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1579
1583
|
baseUrl,
|
|
1580
1584
|
remoteSkillsVersion: update.remoteVersion,
|
|
1581
1585
|
agents,
|
|
@@ -1588,7 +1592,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1588
1592
|
}
|
|
1589
1593
|
}
|
|
1590
1594
|
runLegacySkillsCleanup(agents);
|
|
1591
|
-
if (!
|
|
1595
|
+
if (!_chunkUDXULACQjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1592
1596
|
notice(
|
|
1593
1597
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1594
1598
|
);
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQM6Y6S4Ejs = require('./chunk-QM6Y6S4E.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkUDXULACQjs = require('./chunk-UDXULACQ.js');
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
var _commander = require('commander');
|
|
@@ -22,7 +22,7 @@ var _fs = require('fs');
|
|
|
22
22
|
var _path = require('path');
|
|
23
23
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
24
24
|
function lastSearchPath() {
|
|
25
|
-
return _path.join.call(void 0,
|
|
25
|
+
return _path.join.call(void 0, _chunkUDXULACQjs.sdkCliStateDirPath.call(void 0, _chunkUDXULACQjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
26
26
|
}
|
|
27
27
|
function rememberSearchRef(searchRef) {
|
|
28
28
|
writeSearchRefs({ searchRef });
|
|
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
132
132
|
console.error("--summary-width must be an integer of at least 2.");
|
|
133
133
|
return 1;
|
|
134
134
|
}
|
|
135
|
-
const client = new (0,
|
|
135
|
+
const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-6JF3S4TP.js")));
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
157
157
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
158
158
|
if (!multiple) {
|
|
159
159
|
if (searchRef) rememberSearchRef(searchRef);
|
|
160
|
-
|
|
160
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0, result, { json, text });
|
|
161
161
|
return 0;
|
|
162
162
|
}
|
|
163
163
|
searches.push({ ...result, query });
|
|
@@ -171,8 +171,8 @@ ${text}`);
|
|
|
171
171
|
}
|
|
172
172
|
} catch (error) {
|
|
173
173
|
if (!multiple) throw error;
|
|
174
|
-
const payload =
|
|
175
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
174
|
+
const payload = _chunkZDQFBJPOjs.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkZDQFBJPOjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
176
176
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
177
177
|
if (!json) {
|
|
178
178
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -184,7 +184,7 @@ Search failed.
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
rememberSearchRefsByTool(refs);
|
|
187
|
-
|
|
187
|
+
_chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|