deepline 0.3.574 → 0.3.576
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 +13 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +0 -18
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/builtin-pacing.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +149 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +0 -14
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +190 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +41 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +6 -66
- package/dist/cli/{agents-6WN5LYUP.mjs → agents-BLJR2Y3X.mjs} +213 -19
- package/dist/cli/{agents-7ZZSF4FS.js → agents-CJQ7KBFT.js} +235 -41
- package/dist/cli/auth-GSDYP4ZN.js +44 -0
- package/dist/cli/{auth-I2QVO677.mjs → auth-SLZIRCPE.mjs} +5 -5
- package/dist/cli/{billing-YPH4GEWU.mjs → billing-6Q4SK5KF.mjs} +9 -9
- package/dist/cli/{billing-44QFBUWA.js → billing-IECMVARO.js} +102 -102
- package/dist/cli/{chunk-MGF3MK27.mjs → chunk-2UHEJPSS.mjs} +5 -5
- package/dist/cli/{chunk-2QYU57RG.js → chunk-36254433.js} +3 -3
- package/dist/cli/{chunk-ECLCRE5P.js → chunk-45POZK3F.js} +3 -3
- package/dist/cli/{chunk-5E2PAGF5.js → chunk-4KIIXV5Z.js} +21 -21
- package/dist/cli/{chunk-7334X74C.mjs → chunk-5VABOJ4M.mjs} +2 -2
- package/dist/cli/{chunk-YR4REP4D.mjs → chunk-66K7F7LR.mjs} +1 -1
- package/dist/cli/{chunk-6GZIT3TH.js → chunk-6JQZC6HX.js} +20 -20
- package/dist/cli/{chunk-ID3LGPOE.js → chunk-6RY5COUY.js} +23 -23
- package/dist/cli/{chunk-VGIDPJXM.mjs → chunk-7DI34I73.mjs} +3 -3
- package/dist/cli/{chunk-Z3XFXFRT.js → chunk-ANPHEXTT.js} +9 -9
- package/dist/cli/{chunk-NRVEVKXR.mjs → chunk-AUR24RQB.mjs} +2 -2
- package/dist/cli/{chunk-JCO226JM.mjs → chunk-AZFSCPYK.mjs} +89 -10
- package/dist/cli/{chunk-2RPRSTHD.js → chunk-BRPUB6UA.js} +5 -5
- package/dist/cli/{chunk-XVBEEGI4.mjs → chunk-CUIFDMNP.mjs} +11 -1
- package/dist/cli/{chunk-OIZUFRTE.mjs → chunk-D5LWYP2H.mjs} +3 -3
- package/dist/cli/{chunk-PP5RMEQQ.js → chunk-DGY4EYIX.js} +5 -5
- package/dist/cli/{chunk-Q3A53SWK.mjs → chunk-DWUESXDD.mjs} +1 -1
- package/dist/cli/{chunk-7UR57HPJ.js → chunk-E4M4QZBP.js} +11 -1
- package/dist/cli/{chunk-DOZIWA66.js → chunk-EQO77FQZ.js} +5 -5
- package/dist/cli/{chunk-N6I3BB2O.js → chunk-F4H26PP6.js} +274 -274
- package/dist/cli/{chunk-L2NXB4WG.mjs → chunk-FYKHAT2F.mjs} +64 -3
- package/dist/cli/{chunk-QPSBV4FD.mjs → chunk-GI57Q7JU.mjs} +2 -2
- package/dist/cli/{chunk-H7PVSG3L.js → chunk-GZ7KYGYE.js} +15 -15
- package/dist/cli/{chunk-PW6NKI2A.mjs → chunk-HE53AI2E.mjs} +3 -3
- package/dist/cli/{chunk-LJLM4BUL.js → chunk-HHMO3CON.js} +6 -6
- package/dist/cli/{chunk-2TMAKJBT.mjs → chunk-JPFAD6G6.mjs} +2 -2
- package/dist/cli/{chunk-VLUBEMWM.js → chunk-JSIOLCTK.js} +20 -20
- package/dist/cli/{chunk-B2XLIQPH.mjs → chunk-KQTZO6NT.mjs} +2 -2
- package/dist/cli/{chunk-SLXCVPN7.js → chunk-L6H72AIX.js} +2 -2
- package/dist/cli/{chunk-X7RKCAMX.mjs → chunk-LKC7PHDX.mjs} +4 -4
- package/dist/cli/{chunk-DG56RWI2.js → chunk-M23G33MH.js} +2 -2
- package/dist/cli/{chunk-IB225ZK4.js → chunk-MDJ4LPQ5.js} +4 -4
- package/dist/cli/{chunk-AFPGYZBH.js → chunk-MXK4M7HP.js} +17 -17
- package/dist/cli/{chunk-KSHZY52O.js → chunk-MXPCTF57.js} +89 -10
- package/dist/cli/{chunk-6B5EZOI3.js → chunk-NQFZ7FYN.js} +10 -10
- package/dist/cli/{chunk-OH6WOID2.mjs → chunk-OMVBBAQP.mjs} +2 -2
- package/dist/cli/{chunk-D6ZVRKJ2.js → chunk-OXRG325T.js} +41 -41
- package/dist/cli/{chunk-G7OR3GVD.mjs → chunk-PU5VCDCJ.mjs} +5 -5
- package/dist/cli/{chunk-VYSUJMB5.js → chunk-PYFMNPTA.js} +8 -8
- package/dist/cli/{chunk-LCAXLGAY.mjs → chunk-QCD7BQ5Z.mjs} +2 -2
- package/dist/cli/{chunk-4T2U72SP.mjs → chunk-R5NKLZL2.mjs} +1 -1
- package/dist/cli/{chunk-ZTCP5BHH.mjs → chunk-RW3URFZK.mjs} +2 -2
- package/dist/cli/{chunk-IA2LTIWO.mjs → chunk-S4IW4NAI.mjs} +2 -2
- package/dist/cli/{chunk-UXIUAIL2.js → chunk-SBZSJQEI.js} +53 -53
- package/dist/cli/{chunk-XMBTAPHR.js → chunk-SKHUWQZE.js} +7 -7
- package/dist/cli/{chunk-S22FSNNC.mjs → chunk-SY3OKOI5.mjs} +1 -1
- package/dist/cli/{chunk-MAMGREBW.mjs → chunk-TZHS2W5Z.mjs} +1 -1
- package/dist/cli/{chunk-BUBOZKH2.js → chunk-UD6M2ZTY.js} +2 -2
- package/dist/cli/{chunk-W6UCS3O6.mjs → chunk-UGIH4462.mjs} +5 -5
- package/dist/cli/{chunk-7GQU46SZ.js → chunk-V25CXBR2.js} +26 -26
- package/dist/cli/{chunk-G2HW2SAP.js → chunk-WDWV77SJ.js} +13 -13
- package/dist/cli/{chunk-I62ZBEKH.js → chunk-WPGZ6V36.js} +48 -48
- package/dist/cli/{chunk-GMQZFWQU.mjs → chunk-X5V6S5KI.mjs} +7 -7
- package/dist/cli/{chunk-ZFXDD7VM.mjs → chunk-XJNJ3BWU.mjs} +1 -1
- package/dist/cli/{chunk-NDDGFX4X.js → chunk-Y4A6Y5EY.js} +11 -11
- package/dist/cli/{chunk-LLSCFLFU.mjs → chunk-YHM64N5C.mjs} +1 -1
- package/dist/cli/{chunk-JY7RKJ65.mjs → chunk-ZIGMC2X4.mjs} +13 -13
- package/dist/cli/{chunk-IXYVHTRZ.js → chunk-ZO65VJRJ.js} +70 -9
- package/dist/cli/{chunk-SRUNYWQ2.mjs → chunk-ZRC52APB.mjs} +1 -1
- package/dist/cli/{chunk-DX646HO7.mjs → chunk-ZYN6S6G2.mjs} +4 -4
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-ROQM6UB3.mjs → concurrent-runs-help-H3SA7J6H.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-PB7GT6F2.js +22 -0
- package/dist/cli/{csv-FWGSY4GE.js → csv-6DEKR3QQ.js} +13 -13
- package/dist/cli/{csv-R7GV33BC.mjs → csv-ICXI7JAS.mjs} +4 -4
- package/dist/cli/{db-OCH35YJG.js → db-AG7INMLP.js} +27 -27
- package/dist/cli/{db-UWXA4RRV.mjs → db-VI7T5E6O.mjs} +6 -6
- package/dist/cli/describe-LMHIG3DP.js +50 -0
- package/dist/cli/{describe-QI4HMUGE.mjs → describe-S6NFWWGK.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +10 -1
- package/dist/cli/describe-core.d.ts +10 -1
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-7CFGC24E.js → executions-M5R5QHIA.js} +8 -8
- package/dist/cli/{executions-YF3KMZZN.mjs → executions-MK7H4Q2H.mjs} +6 -6
- package/dist/cli/{feedback-YCZHHSBS.js → feedback-L3L4FEQL.js} +14 -14
- package/dist/cli/{feedback-DWIWBS7O.mjs → feedback-ZHATL2XF.mjs} +6 -6
- package/dist/cli/{git-XCGMQQOD.mjs → git-W5DHNH2Q.mjs} +5 -5
- package/dist/cli/git-WYNCLDHD.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-5ABAJBSW.mjs → integrations-73YSN2LI.mjs} +7 -7
- package/dist/cli/{integrations-IEZA3TGK.js → integrations-IBWNO3YP.js} +29 -29
- package/dist/cli/{legacy-noops-OZMY73Y3.mjs → legacy-noops-4LFZJTDX.mjs} +6 -6
- package/dist/cli/{legacy-noops-KNFLJ5P2.js → legacy-noops-AE6DBYJM.js} +9 -9
- package/dist/cli/{mcp-NLQAO7KP.js → mcp-BKL6M6OI.js} +24 -24
- package/dist/cli/{mcp-WSPFKQPZ.mjs → mcp-E6PTSNDE.mjs} +4 -4
- package/dist/cli/{monitors-LPKFFTOX.mjs → monitors-MXJ27KQK.mjs} +7 -7
- package/dist/cli/{monitors-BJYOB4S3.js → monitors-SW7ZCPPT.js} +100 -100
- package/dist/cli/{org-RYPMUYUW.mjs → org-HYAJ2MIK.mjs} +6 -6
- package/dist/cli/{org-WIVHI4WT.js → org-XJ44KZ5I.js} +121 -121
- package/dist/cli/{outcomes-QKX7IE3O.js → outcomes-PTXGG4BZ.js} +14 -14
- package/dist/cli/{outcomes-FADJYC4I.mjs → outcomes-PUMAXRGD.mjs} +6 -6
- package/dist/cli/{play-ID73J3NP.js → play-EPDZ3GDV.js} +349 -349
- package/dist/cli/{play-4ZKK5Q7U.mjs → play-QN3X6IAE.mjs} +20 -20
- package/dist/cli/{providers-WCCGYGW6.js → providers-GNJFGNDH.js} +9 -9
- package/dist/cli/{providers-LURYBSNO.mjs → providers-JIN5UQ7Z.mjs} +6 -6
- package/dist/cli/{quickstart-KCCSEE5J.mjs → quickstart-4EBFHGB7.mjs} +4 -4
- package/dist/cli/{quickstart-LVPOU25V.js → quickstart-YH6NNC5I.js} +6 -6
- package/dist/cli/{run-2QMJRCVA.js → run-4DRF7KQJ.js} +70 -49
- package/dist/cli/{run-XXK7DDUF.mjs → run-5467KBCP.mjs} +48 -27
- package/dist/cli/search-B2KCWPUV.js +32 -0
- package/dist/cli/{search-ZYAWW3CK.mjs → search-ZERTOGH6.mjs} +7 -7
- package/dist/cli/{search-output-N45AIOB4.mjs → search-output-OAVJXRFO.mjs} +5 -5
- package/dist/cli/{search-output-YNXAZSKT.js → search-output-OMNZN2LP.js} +8 -8
- package/dist/cli/{secrets-MHT27L2M.js → secrets-7XK2BGYX.js} +15 -15
- package/dist/cli/{secrets-7Q3AOUAS.mjs → secrets-KAVDYB4P.mjs} +6 -6
- package/dist/cli/sessions-PUQURPPC.js +23 -0
- package/dist/cli/{sessions-6QKOM7M3.mjs → sessions-TNPI6XWB.mjs} +6 -6
- package/dist/cli/{settings-NPVIDENI.mjs → settings-KUABXRAJ.mjs} +12 -12
- package/dist/cli/{settings-OP7Q6YX6.js → settings-RQ3Z3JCM.js} +85 -85
- package/dist/cli/{setup-OOT3EIMF.mjs → setup-6IX6BSS7.mjs} +9 -9
- package/dist/cli/{setup-RT6GHL3W.js → setup-TDOWNKYN.js} +49 -49
- package/dist/cli/skills-AACRY2TV.js +37 -0
- package/dist/cli/{skills-TEXI4CLZ.mjs → skills-Z6NBJ4KP.mjs} +7 -7
- package/dist/cli/{tools-G5L36M3X.mjs → tools-LQKFWK7J.mjs} +19 -19
- package/dist/cli/tools-OTYA4722.js +57 -0
- package/dist/cli/update-JTGMI6OJ.js +37 -0
- package/dist/cli/{update-YNKQTE4D.mjs → update-RUB4EIKW.mjs} +9 -9
- package/dist/cli/{views-IQFMUMLU.mjs → views-D7WY5QPR.mjs} +6 -6
- package/dist/cli/{views-OVQ5AQAU.js → views-FFLXLAGC.js} +21 -21
- package/dist/cli/{workflow-Y5IFMI7N.mjs → workflow-BV2OTEQD.mjs} +7 -7
- package/dist/cli/{workflow-RCBYXIFZ.js → workflow-QW7QVODA.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +122 -122
- package/dist/release.d.mts +9 -1
- package/dist/release.d.ts +9 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-UKPV5U2B.js +0 -44
- package/dist/cli/concurrent-runs-help-BFVCUJF4.js +0 -22
- package/dist/cli/describe-6OI5K2SH.js +0 -50
- package/dist/cli/git-TGLNZRS3.js +0 -26
- package/dist/cli/search-AQSAXA6D.js +0 -32
- package/dist/cli/sessions-RGD7L4LC.js +0 -23
- package/dist/cli/skills-ERAA734H.js +0 -37
- package/dist/cli/tools-D5SZSIIH.js +0 -57
- package/dist/cli/update-WZ6527EF.js +0 -37
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSKHUWQZEjs = require('./chunk-SKHUWQZE.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var _chunkXMBTAPHRjs = require('./chunk-XMBTAPHR.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkZO65VJRJjs = require('./chunk-ZO65VJRJ.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
@@ -31,13 +31,13 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunkSKHUWQZEjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
38
38
|
byok: async (_value, tool) => ({
|
|
39
39
|
details: _nullishCoalesce(tool.byok, () => ( {})),
|
|
40
|
-
lines:
|
|
40
|
+
lines: _chunkZO65VJRJjs.byokLines.call(void 0, _nullishCoalesce(tool.byok, () => ( {})))
|
|
41
41
|
})
|
|
42
42
|
};
|
|
43
43
|
var isFeatureView = (value) => typeof value === "string" && Object.hasOwn(VIEWS, value);
|
|
@@ -133,7 +133,7 @@ async function findNamed(reference, options, lookups) {
|
|
|
133
133
|
const record = await lookups.play(reference2);
|
|
134
134
|
if (!record) return null;
|
|
135
135
|
return {
|
|
136
|
-
described:
|
|
136
|
+
described: _chunkZO65VJRJjs.describedPlay.call(void 0, record),
|
|
137
137
|
record: { ...record },
|
|
138
138
|
schemas: {
|
|
139
139
|
inputSchema: _nullishCoalesce(record.inputSchema, () => ( null)),
|
|
@@ -153,15 +153,15 @@ async function findNamed(reference, options, lookups) {
|
|
|
153
153
|
const features = toolFeatures(record);
|
|
154
154
|
return {
|
|
155
155
|
described: {
|
|
156
|
-
...
|
|
156
|
+
..._chunkSKHUWQZEjs.describedTool.call(void 0, record, name),
|
|
157
157
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
158
158
|
},
|
|
159
|
-
record:
|
|
159
|
+
record: _chunkSKHUWQZEjs.toolMetadataJsonForDescribe.call(void 0,
|
|
160
160
|
record,
|
|
161
161
|
name,
|
|
162
162
|
lookups.seedStarterScript
|
|
163
163
|
),
|
|
164
|
-
schemas:
|
|
164
|
+
schemas: _chunkSKHUWQZEjs.publicToolSchemas.call(void 0, record),
|
|
165
165
|
feature: (featureName, value) => {
|
|
166
166
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
167
167
|
return feature ? describeFeature(record, feature, value, {
|
|
@@ -208,7 +208,7 @@ async function describeName(name, options, lookups) {
|
|
|
208
208
|
const note = shadows ? `Showing your org play "${name}". It has the same name as a Deepline ${shadows.kind.replace("_", " ")}; see that one with: ${shadows.describeCommand}` : null;
|
|
209
209
|
const verbose = options.verbose === true;
|
|
210
210
|
const isPlay = described.kind === "prebuilt_play" || described.kind === "custom_play";
|
|
211
|
-
const dashboardUrl = isPlay ?
|
|
211
|
+
const dashboardUrl = isPlay ? _chunkZO65VJRJjs.buildPlayDashboardUrl.call(void 0,
|
|
212
212
|
lookups.baseUrl,
|
|
213
213
|
described.id,
|
|
214
214
|
lookups.dashboardOrgId
|
|
@@ -276,7 +276,7 @@ async function describeName(name, options, lookups) {
|
|
|
276
276
|
},
|
|
277
277
|
lines: [
|
|
278
278
|
`${described.id} [${described.kind.replace("_", " ")}]`,
|
|
279
|
-
...
|
|
279
|
+
..._chunkZO65VJRJjs.schemaLines.call(void 0, described, {
|
|
280
280
|
full: true,
|
|
281
281
|
secondary: true,
|
|
282
282
|
...fields.length ? { fields } : {}
|
|
@@ -285,17 +285,17 @@ async function describeName(name, options, lookups) {
|
|
|
285
285
|
} : {
|
|
286
286
|
envelope: {
|
|
287
287
|
...summary,
|
|
288
|
-
inputs: inputs.map(
|
|
289
|
-
outputs: outputs.map(
|
|
290
|
-
...described.rowInputs ? { rowInputs: described.rowInputs.map(
|
|
291
|
-
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(
|
|
292
|
-
runExamples:
|
|
288
|
+
inputs: inputs.map(_chunkZO65VJRJjs.topLevelField),
|
|
289
|
+
outputs: outputs.map(_chunkZO65VJRJjs.topLevelField),
|
|
290
|
+
...described.rowInputs ? { rowInputs: described.rowInputs.map(_chunkZO65VJRJjs.topLevelField) } : {},
|
|
291
|
+
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(_chunkZO65VJRJjs.topLevelField) } : {},
|
|
292
|
+
runExamples: _chunkZO65VJRJjs.examples.call(void 0, described, { verbose }),
|
|
293
293
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
294
294
|
...shadows ? { shadows, note } : {}
|
|
295
295
|
},
|
|
296
296
|
lines: [
|
|
297
297
|
...note ? [`Note: ${note}`, ""] : [],
|
|
298
|
-
...
|
|
298
|
+
..._chunkZO65VJRJjs.describedLines.call(void 0, described, {
|
|
299
299
|
cli: shown && (!named || options.cliExample === true),
|
|
300
300
|
play: shown && (!named || options.playExample === true),
|
|
301
301
|
explain: named,
|
|
@@ -312,7 +312,7 @@ async function describeName(name, options, lookups) {
|
|
|
312
312
|
// its value stands, so callers of the older commands read what they did.
|
|
313
313
|
{ ...view.envelope, ...record }
|
|
314
314
|
) : {
|
|
315
|
-
...
|
|
315
|
+
..._chunkZO65VJRJjs.describedJson.call(void 0, described, {
|
|
316
316
|
secondary: verbose || fields.length > 0,
|
|
317
317
|
verbose
|
|
318
318
|
}),
|
|
@@ -636,7 +636,9 @@ Input:
|
|
|
636
636
|
--input-file input.json. A play that reads a CSV takes its path:
|
|
637
637
|
--input '{"csv":"leads.csv"}'. -e '<code>' runs code as a play body.
|
|
638
638
|
<play>@latest runs the newest revision; deepline/<id> runs Deepline's
|
|
639
|
-
version when your org has one with the same name.
|
|
639
|
+
version when your org has one with the same name. --example <name> starts
|
|
640
|
+
from a named example input the play declares (describe lists them);
|
|
641
|
+
--input fields replace the example's.
|
|
640
642
|
Examples:
|
|
641
643
|
deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
642
644
|
deepline run person-to-email-batch --input '{"csv":"leads.csv"}' --dry-run
|
|
@@ -4281,11 +4283,13 @@ Purpose:
|
|
|
4281
4283
|
Deepline agents in Slack. Members create agents, each with instructions and
|
|
4282
4284
|
skills from the workspace's skill library, and bind Slack channels to them.
|
|
4283
4285
|
An agent answers @mentions in its channels and works in this workspace
|
|
4284
|
-
through the shared deepline-agent service account (role
|
|
4286
|
+
through the shared deepline-agent service account (role member), the way your
|
|
4285
4287
|
own coding agent works with Deepline.
|
|
4286
4288
|
Set up once (owners and admins):
|
|
4287
4289
|
1. Turn agents on: [[agents enable]]. The first run creates the service
|
|
4288
|
-
account.
|
|
4290
|
+
account. Run it again to give an account made with the run role the
|
|
4291
|
+
member role, which writing to an outcome needs. [[agents disable]]
|
|
4292
|
+
turns every agent off.
|
|
4289
4293
|
2. Set the model key every agent runs on: [[agents billing set]] reads an
|
|
4290
4294
|
OpenAI or Anthropic API key from piped stdin (deepline agents billing
|
|
4291
4295
|
set < key.txt) or a hidden prompt. An sk-ant- key is Anthropic's; pass
|
|
@@ -4296,7 +4300,9 @@ Set up once (owners and admins):
|
|
|
4296
4300
|
3. Add the agent to your Slack workspace: [[agents slack install]] prints
|
|
4297
4301
|
an "Add to Slack" link. Open it in a browser signed in to Deepline as
|
|
4298
4302
|
you, pick the Slack workspace and approve; the link works once, for 15
|
|
4299
|
-
minutes, and only for you.
|
|
4303
|
+
minutes, and only for you. The agent posts under this workspace's
|
|
4304
|
+
logo (a panda if it has none); a Slack workspace installed before
|
|
4305
|
+
that needs installing again. Each Slack workspace gets its own
|
|
4300
4306
|
bot token, stored encrypted, and only this workspace's channels answer
|
|
4301
4307
|
there. A Slack workspace already connected to another Deepline
|
|
4302
4308
|
workspace is refused. [[agents slack status]] lists where the agent is
|
|
@@ -4320,6 +4326,65 @@ Make an agent (members with the run grant):
|
|
|
4320
4326
|
Only an agent's or skill's creator, or an admin, changes or deletes it:
|
|
4321
4327
|
[[agents update pipeline --skills icp,territories]], [[agents delete pipeline]],
|
|
4322
4328
|
[[agents channels remove C0123456789]], [[agents skills delete icp]].
|
|
4329
|
+
Models:
|
|
4330
|
+
One key serves every agent, so your agents run on the models of that
|
|
4331
|
+
key's provider. An agent runs on the provider's default unless it is given
|
|
4332
|
+
a model, and a channel runs on its agent's model unless it is given its
|
|
4333
|
+
own. [[agents models]] lists the models and which your workspace's key can
|
|
4334
|
+
run. A model of the other provider is refused.
|
|
4335
|
+
- An agent's model, everywhere it answers: [[agents update pipeline --model sonnet]]
|
|
4336
|
+
("default" returns it to the default).
|
|
4337
|
+
- One channel's model: [[agents channels set C0123456789 --model opus]]
|
|
4338
|
+
("default" follows the agent again). Anyone the agent answers in a
|
|
4339
|
+
channel can also ask it there ("switch to Sonnet"): that changes that
|
|
4340
|
+
channel only, and Deepline keeps who asked.
|
|
4341
|
+
The next step the agent takes runs on the new model.
|
|
4342
|
+
Outcomes (needs the outcomes rollout):
|
|
4343
|
+
An agent can work toward an outcome in a channel:
|
|
4344
|
+
[[agents channels add pipeline C0123456789 --outcome enrichment-coverage]],
|
|
4345
|
+
or on a channel already bound,
|
|
4346
|
+
[[agents channels set C0123456789 --outcome enrichment-coverage]]. The
|
|
4347
|
+
channel becomes the outcome's home, one per outcome. The agent joins the
|
|
4348
|
+
outcome under its own name, says in the channel what it is working toward,
|
|
4349
|
+
reads the outcome when a turn starts and writes what matters back to it.
|
|
4350
|
+
Between mentions it is woken there when something on the outcome concerns
|
|
4351
|
+
it: a schedule it set firing, a task made for it, an ask a person answered.
|
|
4352
|
+
--linked binds one more channel to the same outcome: the agent answers
|
|
4353
|
+
there with the outcome in view and is woken only in the home channel.
|
|
4354
|
+
[[agents channels set C0123456789 --no-outcome]] takes the outcome off.
|
|
4355
|
+
You need member access to the outcome, and so does the agent: an admin
|
|
4356
|
+
raises the agents' service account once, with
|
|
4357
|
+
[[org service-accounts set-role <service-account-id> member]] (the id is in
|
|
4358
|
+
[[org service-accounts list]]). Until then attaching says so and changes
|
|
4359
|
+
nothing on the outcome.
|
|
4360
|
+
A paused outcome still wakes its agent when something reaches it; the
|
|
4361
|
+
agent is told the outcome is paused and decides what is worth doing.
|
|
4362
|
+
Every outcome has an agent by default. While agents are on, an outcome
|
|
4363
|
+
with no home channel is owned by Bot by Deepline: it joins as
|
|
4364
|
+
"deepline" and is woken by the same things (a post that names
|
|
4365
|
+
@deepline, a reply in a thread it started, an answered ask, a task made
|
|
4366
|
+
for it, a schedule it set). With no channel to post in, it writes to the
|
|
4367
|
+
outcome's feed. [[agents outcomes]] lists those outcomes with what woke
|
|
4368
|
+
the agent last; [[outcomes watches list <outcome>]] shows its watch. It
|
|
4369
|
+
starts at most 30 turns an hour on one outcome; what arrives past that
|
|
4370
|
+
waits for the next turn. Giving the outcome a home channel hands the
|
|
4371
|
+
watch to that channel's agent, [[agents disable]] or deleting the outcome
|
|
4372
|
+
removes it, and running [[agents enable]] again puts the agent on
|
|
4373
|
+
outcomes made before this.
|
|
4374
|
+
From Slack:
|
|
4375
|
+
Inviting the agent's app to a channel no agent answers in, or mentioning
|
|
4376
|
+
it there, posts a card that asks which outcome the channel is for. Picking
|
|
4377
|
+
one and pressing Connect does what channels add --outcome does: the channel
|
|
4378
|
+
becomes the outcome's home, or a linked channel when the outcome has a
|
|
4379
|
+
home already. "Only answer questions" binds the channel with no outcome.
|
|
4380
|
+
When the agent needs a person to decide, it opens an ask on the outcome
|
|
4381
|
+
and the ask appears in the channel with a button for each option. A click
|
|
4382
|
+
answers the ask on the outcome, the same as [[outcomes asks answer]].
|
|
4383
|
+
Both are done as a Deepline member, so the first click shows you, alone,
|
|
4384
|
+
a link that says which member you are. Open it signed in to Deepline, or
|
|
4385
|
+
pass it to [[agents slack link <code>]]; [[agents slack unlink]] forgets
|
|
4386
|
+
it. Your grants are read at each click: connecting needs the run grant,
|
|
4387
|
+
an outcome and answering an ask need member access.
|
|
4323
4388
|
Feedback:
|
|
4324
4389
|
Each answer the agent posts in Slack carries Helpful / Not helpful buttons.
|
|
4325
4390
|
[[agents feedback]] lists the ratings, newest first; --agent pipeline keeps
|
|
@@ -4345,11 +4410,22 @@ Confirmations:
|
|
|
4345
4410
|
Output (JSON):
|
|
4346
4411
|
list prints workspace {lifecycle, billing {provider (openai, anthropic),
|
|
4347
4412
|
keyLast4} or null} (null before
|
|
4348
|
-
enable), agents[] {name, instructions, skillNames,
|
|
4349
|
-
updatedByUserId, conversations[] {platform,
|
|
4350
|
-
conversationName, createdByUserId, createdAt
|
|
4351
|
-
|
|
4352
|
-
|
|
4413
|
+
enable), agents[] {name, instructions, skillNames, model (null: the
|
|
4414
|
+
default), ownerUserId, updatedByUserId, conversations[] {platform,
|
|
4415
|
+
conversationId, conversationName, createdByUserId, createdAt, model (null:
|
|
4416
|
+
its agent's), outcome {slug, role (home, linked), agentKey, watching} or
|
|
4417
|
+
null}} and skills[] {name, description, markdownLength}. get, create,
|
|
4418
|
+
update and channels add print agent; created, changed or removed says
|
|
4419
|
+
whether anything changed. models prints default and models[] {id, label,
|
|
4420
|
+
provider, aliases, available}. outcomes prints owners[] {outcome, agent,
|
|
4421
|
+
watch {key, ringState (idle, pending, delivering, failing), lastRungAt,
|
|
4422
|
+
lastRingError} or null, refusal, lastWake {at, status (woken,
|
|
4423
|
+
nothing_waiting, throttled, not_woken), matches, what[]} or null,
|
|
4424
|
+
lastWokenAt, turnsInWindow, turnLimit, windowEndsAt} and more. channels
|
|
4425
|
+
set prints model {model {id,
|
|
4426
|
+
label, provider}, from (conversation, agent), changed} and outcome
|
|
4427
|
+
{changed, agentName, conversation, woken}; channels add --outcome prints
|
|
4428
|
+
that outcome too.
|
|
4353
4429
|
feedback prints feedback[] {agentName (null once deleted), platform,
|
|
4354
4430
|
conversationId, conversationName, threadTs, messageTs, raterId, rating
|
|
4355
4431
|
(helpful, not_helpful), updatedAt} and cursor (null on the last page).
|
|
@@ -4368,10 +4444,13 @@ Output (JSON):
|
|
|
4368
4444
|
status prints installations[] {teamId, teamName, status (installed,
|
|
4369
4445
|
uninstalled), scopes, installedAt, installedByUserId, uninstalledAt,
|
|
4370
4446
|
uninstallReason (app_uninstalled, tokens_revoked)}; never a token.
|
|
4447
|
+
slack link prints linked, created, slackTeamId and slackUserId; slack
|
|
4448
|
+
unlink prints removed.
|
|
4371
4449
|
Cost:
|
|
4372
4450
|
Model calls are billed to the workspace's OpenAI or Anthropic key, never
|
|
4373
4451
|
to Deepline credits. Tools an agent calls spend Deepline credits as they
|
|
4374
|
-
would for you.
|
|
4452
|
+
would for you. A turn an outcome wakes the agent for is a turn like any
|
|
4453
|
+
other.
|
|
4375
4454
|
Avoid:
|
|
4376
4455
|
Do not pass the model key as an argument; it is refused. Do not bind a
|
|
4377
4456
|
channel the agent's Slack app is not in, or one in a Slack workspace this
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBRPUB6UAjs = require('./chunk-BRPUB6UA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkJSIOLCTKjs = require('./chunk-JSIOLCTK.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk36254433js = require('./chunk-36254433.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, _chunk36254433js.sdkCliStateDirPath.call(void 0, _chunk36254433js.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, _chunkBRPUB6UAjs.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-OMNZN2LP.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
|
+
_chunkJSIOLCTKjs.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 = _chunkJSIOLCTKjs.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkJSIOLCTKjs.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
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SY3OKOI5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
enforceSdkCompatibilityResponse,
|
|
6
6
|
flushDeferredSkillsSyncNotices,
|
|
7
7
|
requireSdkCompatibility
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2UHEJPSS.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkWPGZ6V36js = require('./chunk-WPGZ6V36.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkJSIOLCTKjs = require('./chunk-JSIOLCTK.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk36254433js = require('./chunk-36254433.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkMDJ4LPQ5js = require('./chunk-MDJ4LPQ5.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 = _chunk36254433js.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, () => ( _chunkMDJ4LPQ5js.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, _chunk36254433js.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 = [..._chunkWPGZ6V36js.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=${_chunkWPGZ6V36js.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=${_chunkWPGZ6V36js.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkWPGZ6V36js.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 = _chunkWPGZ6V36js.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -269,7 +269,7 @@ function runProcess(command, args, cwd) {
|
|
|
269
269
|
child.kill("SIGTERM");
|
|
270
270
|
reject(
|
|
271
271
|
new Error(
|
|
272
|
-
`${
|
|
272
|
+
`${_chunkWPGZ6V36js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
273
273
|
)
|
|
274
274
|
);
|
|
275
275
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -280,7 +280,7 @@ function runProcess(command, args, cwd) {
|
|
|
280
280
|
child.once("close", (code) => {
|
|
281
281
|
clearTimeout(timeout);
|
|
282
282
|
if (code && stderr.trim()) {
|
|
283
|
-
process.stderr.write(`${
|
|
283
|
+
process.stderr.write(`${_chunkWPGZ6V36js.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
284
284
|
`);
|
|
285
285
|
}
|
|
286
286
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -288,7 +288,7 @@ function runProcess(command, args, cwd) {
|
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
async function showSkills(options, name) {
|
|
291
|
-
const baseUrl =
|
|
291
|
+
const baseUrl = _chunk36254433js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
292
292
|
const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
|
|
293
293
|
try {
|
|
294
294
|
const response = await fetch(url, {
|
|
@@ -301,7 +301,7 @@ async function showSkills(options, name) {
|
|
|
301
301
|
}
|
|
302
302
|
if (name) {
|
|
303
303
|
const markdown = await response.text();
|
|
304
|
-
|
|
304
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
305
305
|
{ ok: true, status: "completed", skill: { name, markdown } },
|
|
306
306
|
{ json: options.json, text: markdown }
|
|
307
307
|
);
|
|
@@ -311,7 +311,7 @@ async function showSkills(options, name) {
|
|
|
311
311
|
const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
|
|
312
312
|
(skill) => skill.install_surface === "v1" && skill.name
|
|
313
313
|
);
|
|
314
|
-
|
|
314
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
315
315
|
{
|
|
316
316
|
ok: true,
|
|
317
317
|
status: "completed",
|
|
@@ -328,7 +328,7 @@ Read one with: deepline skills show <name>
|
|
|
328
328
|
);
|
|
329
329
|
return 0;
|
|
330
330
|
} catch (error) {
|
|
331
|
-
|
|
331
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
332
332
|
{
|
|
333
333
|
ok: false,
|
|
334
334
|
status: "failed",
|
|
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
351
351
|
scope = normalizeScope(options.scope);
|
|
352
352
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
353
353
|
} catch (error) {
|
|
354
|
-
|
|
354
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
355
355
|
{
|
|
356
356
|
ok: false,
|
|
357
357
|
status: "failed",
|
|
@@ -363,22 +363,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
363
363
|
);
|
|
364
364
|
return 2;
|
|
365
365
|
}
|
|
366
|
-
const baseUrl =
|
|
366
|
+
const baseUrl = _chunk36254433js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
367
367
|
const catalog = {
|
|
368
|
-
skillNames: [...
|
|
369
|
-
version:
|
|
368
|
+
skillNames: [..._chunkWPGZ6V36js.DEFAULT_SDK_SKILL_NAMES],
|
|
369
|
+
version: _chunkMDJ4LPQ5js.SDK_VERSION
|
|
370
370
|
};
|
|
371
371
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
372
372
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
373
373
|
if (options.dryRun) {
|
|
374
|
-
|
|
374
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
375
375
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
376
376
|
{ json: options.json }
|
|
377
377
|
);
|
|
378
378
|
return 0;
|
|
379
379
|
}
|
|
380
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
381
|
-
|
|
380
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkWPGZ6V36js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
381
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
382
382
|
{
|
|
383
383
|
ok: true,
|
|
384
384
|
status: "current",
|
|
@@ -410,10 +410,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
410
410
|
}
|
|
411
411
|
if (scope === "local" && root) {
|
|
412
412
|
const managedNames = [
|
|
413
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
413
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkWPGZ6V36js.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
414
414
|
];
|
|
415
415
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
416
|
-
|
|
416
|
+
_chunk36254433js.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
417
417
|
".deepline/",
|
|
418
418
|
...agentRoots.flatMap(
|
|
419
419
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -422,7 +422,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
422
422
|
}
|
|
423
423
|
let lease;
|
|
424
424
|
try {
|
|
425
|
-
lease = scope === "global" ? await
|
|
425
|
+
lease = scope === "global" ? await _chunkWPGZ6V36js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
426
426
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
427
427
|
onWait: () => process.stderr.write(
|
|
428
428
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -430,8 +430,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
430
430
|
}) : { release: () => {
|
|
431
431
|
} };
|
|
432
432
|
} catch (error) {
|
|
433
|
-
if (!(error instanceof
|
|
434
|
-
|
|
433
|
+
if (!(error instanceof _chunkWPGZ6V36js.SkillsStateUnavailableError)) throw error;
|
|
434
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
435
435
|
{
|
|
436
436
|
ok: false,
|
|
437
437
|
status: "failed",
|
|
@@ -447,7 +447,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
447
447
|
return 5;
|
|
448
448
|
}
|
|
449
449
|
if (!lease) {
|
|
450
|
-
|
|
450
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
451
451
|
{
|
|
452
452
|
ok: false,
|
|
453
453
|
status: "failed",
|
|
@@ -456,7 +456,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
456
456
|
scope,
|
|
457
457
|
agents,
|
|
458
458
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
459
|
-
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 ${_chunkWPGZ6V36js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
460
460
|
},
|
|
461
461
|
{ json: options.json }
|
|
462
462
|
);
|
|
@@ -505,7 +505,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
} catch (error) {
|
|
508
|
-
|
|
508
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
509
509
|
{
|
|
510
510
|
ok: false,
|
|
511
511
|
status: "failed",
|
|
@@ -521,7 +521,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
521
521
|
return 5;
|
|
522
522
|
}
|
|
523
523
|
if (missing.length > 0) {
|
|
524
|
-
|
|
524
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
525
525
|
{
|
|
526
526
|
ok: false,
|
|
527
527
|
status: "failed",
|
|
@@ -561,7 +561,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
561
561
|
{
|
|
562
562
|
schemaVersion: 1,
|
|
563
563
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
564
|
-
cliVersion:
|
|
564
|
+
cliVersion: _chunkMDJ4LPQ5js.SDK_VERSION,
|
|
565
565
|
scope,
|
|
566
566
|
agents,
|
|
567
567
|
skillsVersion: plan.version,
|
|
@@ -574,9 +574,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
574
574
|
"utf8"
|
|
575
575
|
);
|
|
576
576
|
if (scope === "global") {
|
|
577
|
-
|
|
577
|
+
_chunkWPGZ6V36js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
580
580
|
{
|
|
581
581
|
ok: true,
|
|
582
582
|
status: "complete",
|
|
@@ -625,7 +625,7 @@ Examples:
|
|
|
625
625
|
"after",
|
|
626
626
|
`
|
|
627
627
|
Notes:
|
|
628
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
628
|
+
This command reinstalls current Deepline-managed skills using ${_chunkWPGZ6V36js.SKILLS_NPX_PACKAGE},
|
|
629
629
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
630
630
|
persistent project.
|
|
631
631
|
|
|
@@ -637,13 +637,13 @@ Examples:
|
|
|
637
637
|
).action(async (options) => {
|
|
638
638
|
process.exitCode = await runSkillsCommand(options);
|
|
639
639
|
});
|
|
640
|
-
program.command(
|
|
640
|
+
program.command(_chunkWPGZ6V36js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
641
641
|
"--claim <token>",
|
|
642
642
|
"Owner token of the leases this child was started for."
|
|
643
643
|
).action(async (options) => {
|
|
644
644
|
const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
|
|
645
645
|
if (!claim) {
|
|
646
|
-
|
|
646
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
647
647
|
{
|
|
648
648
|
ok: false,
|
|
649
649
|
status: "failed",
|
|
@@ -656,7 +656,7 @@ Examples:
|
|
|
656
656
|
process.exitCode = 2;
|
|
657
657
|
return;
|
|
658
658
|
}
|
|
659
|
-
await
|
|
659
|
+
await _chunkWPGZ6V36js.syncSdkSkillsIfNeeded.call(void 0, _chunk36254433js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
660
660
|
mode: "inline",
|
|
661
661
|
notices: "defer",
|
|
662
662
|
claim
|