deepline 0.3.475 → 0.3.476
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/play.ts +2 -2
- package/dist/bundling-sources/sdk/src/release.ts +3 -3
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +19 -6
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +4 -4
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +24 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +21 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +8 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +104 -6
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
- package/dist/cli/auth-2ZY57Q7W.js +41 -0
- package/dist/cli/{auth-CFDYJ7FZ.mjs → auth-A22724UX.mjs} +5 -5
- package/dist/cli/{billing-PEXWWLRT.mjs → billing-IIBEZ6J7.mjs} +6 -6
- package/dist/cli/{billing-XLIL3FLK.js → billing-T5Q6OO6M.js} +79 -79
- package/dist/cli/{chunk-NHQP4UPJ.mjs → chunk-2WEPQSA2.mjs} +5 -5
- package/dist/cli/{chunk-D6SXN34W.mjs → chunk-2YHDNHRR.mjs} +4 -4
- package/dist/cli/{chunk-V4ILQ2DS.mjs → chunk-3A7TDUZV.mjs} +1 -1
- package/dist/cli/{chunk-4QHAP3MR.mjs → chunk-4WMIMSSI.mjs} +5 -5
- package/dist/cli/{chunk-HALAYT3Y.mjs → chunk-4YWYLHED.mjs} +3 -3
- package/dist/cli/{chunk-B7NJ5JQ2.js → chunk-5AEEINTU.js} +4 -4
- package/dist/cli/{chunk-TLPW2SHS.js → chunk-5FBCMLJW.js} +6 -6
- package/dist/cli/{chunk-TZRTT7EI.js → chunk-5PYSYW63.js} +26 -26
- package/dist/cli/{chunk-3MQJJ6YX.js → chunk-6YZYCKWD.js} +51 -51
- package/dist/cli/{chunk-BLW2K6YH.js → chunk-7HAUVMRF.js} +3 -3
- package/dist/cli/{chunk-CKSRTD45.js → chunk-A6BETJ2A.js} +3 -3
- package/dist/cli/{chunk-U3F63UWD.js → chunk-AS3VECCY.js} +7 -7
- package/dist/cli/{chunk-F4FNMXI3.js → chunk-B7PEXXRW.js} +53 -53
- package/dist/cli/{chunk-4QHQ3WYW.js → chunk-CBVCCXIY.js} +21 -21
- package/dist/cli/{chunk-42F6LTBJ.mjs → chunk-CFSCHLNQ.mjs} +3 -3
- package/dist/cli/{chunk-M27SSAQ7.mjs → chunk-D7EQ4PI5.mjs} +1 -1
- package/dist/cli/{chunk-KTWXY73Q.js → chunk-EBWYNNTJ.js} +5 -5
- package/dist/cli/{chunk-VFP3MFLD.mjs → chunk-F5PYBZ2H.mjs} +1 -1
- package/dist/cli/{chunk-QKMWQTMI.js → chunk-FK7SBMSZ.js} +3 -3
- package/dist/cli/{chunk-3QSFSHCJ.mjs → chunk-FVPT44IJ.mjs} +1 -1
- package/dist/cli/{chunk-MUDOASYL.mjs → chunk-H3GOAZHV.mjs} +2 -2
- package/dist/cli/{chunk-VBGPRRJ6.js → chunk-HSANVBVL.js} +2 -2
- package/dist/cli/{chunk-BSK2TGB4.js → chunk-IC3BZJR7.js} +8 -8
- package/dist/cli/{chunk-7U3L2S7X.mjs → chunk-J4FCTFQS.mjs} +10 -10
- package/dist/cli/{chunk-AD7KL6AI.mjs → chunk-JU2KBLOR.mjs} +97 -12
- package/dist/cli/{chunk-VD3E3QMI.mjs → chunk-KCP6XNRR.mjs} +1 -1
- package/dist/cli/{chunk-ZANUM4XV.js → chunk-KGLIDLJ2.js} +5 -5
- package/dist/cli/{chunk-G4SGYWKV.js → chunk-L45IECBZ.js} +6 -6
- package/dist/cli/{chunk-HMHH7JQD.mjs → chunk-LJFIUT5R.mjs} +2 -2
- package/dist/cli/{chunk-VTCXSICG.mjs → chunk-LZCYDU6Q.mjs} +2 -2
- package/dist/cli/{chunk-7SWRXZ4A.js → chunk-MYYOCJZ2.js} +93 -93
- package/dist/cli/{chunk-DKR7QPEO.js → chunk-MZSLFWOT.js} +1 -1
- package/dist/cli/{chunk-DIMKSDF6.mjs → chunk-NPNQCPFP.mjs} +2 -2
- package/dist/cli/{chunk-3WVA7E7O.mjs → chunk-NREO7TT4.mjs} +2 -2
- package/dist/cli/{chunk-BVAYLXMH.mjs → chunk-NTJDZURV.mjs} +2 -2
- package/dist/cli/{chunk-M7K5BCWP.js → chunk-PGNLD6L6.js} +10 -10
- package/dist/cli/{chunk-D3Q4FUFS.js → chunk-TEJSRJNH.js} +8 -8
- package/dist/cli/{chunk-YAAQNDP6.mjs → chunk-UHTJWDYB.mjs} +3 -3
- package/dist/cli/{chunk-ZQYBKDPA.js → chunk-ULKGYVYP.js} +2 -2
- package/dist/cli/{chunk-DUGZKPRK.mjs → chunk-UYA7LJGC.mjs} +2 -2
- package/dist/cli/{chunk-6PRYHABU.mjs → chunk-VKBZLV2K.mjs} +1 -1
- package/dist/cli/{chunk-NBVYS6VG.js → chunk-VLYUFZUT.js} +9 -9
- package/dist/cli/{chunk-FC4C7MZM.mjs → chunk-VPAVNEDQ.mjs} +4 -4
- package/dist/cli/{chunk-M4QO3GRD.js → chunk-W3BHZUPL.js} +3 -3
- package/dist/cli/{chunk-5QS4T4KR.js → chunk-WFVEMDQL.js} +2 -2
- package/dist/cli/{chunk-7XTBEYLS.js → chunk-WTPRRKZA.js} +131 -46
- package/dist/cli/{chunk-Z5VSBCFV.js → chunk-YEJDFZJP.js} +16 -16
- package/dist/cli/{chunk-YMS7VYFA.mjs → chunk-YQOWMQEW.mjs} +1 -1
- package/dist/cli/{chunk-NGOKBSBH.mjs → chunk-ZOXV6WFI.mjs} +1 -1
- package/dist/cli/{chunk-EA45HSEC.mjs → chunk-ZV4OWYLZ.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-4YHSYV2C.js → csv-FXOQ2PBE.js} +13 -13
- package/dist/cli/{csv-WC7ILC7P.mjs → csv-GPVCETS2.mjs} +4 -4
- package/dist/cli/{db-I5PV6NTC.mjs → db-F5UJTBGP.mjs} +6 -6
- package/dist/cli/{db-APZNM2GI.js → db-LXYV4GPZ.js} +27 -27
- package/dist/cli/{describe-XH5F3X5W.mjs → describe-GYWCI7I6.mjs} +17 -17
- package/dist/cli/describe-IB7SUIUT.js +48 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-PIY4XM7T.mjs → executions-6NL2YW76.mjs} +6 -6
- package/dist/cli/{executions-VIXFKZYU.js → executions-6SJKTY2L.js} +8 -8
- package/dist/cli/{feedback-IGDHBWGT.mjs → feedback-7AMQCNTB.mjs} +4 -4
- package/dist/cli/{feedback-WCLIFQTR.js → feedback-E3HULSQD.js} +8 -8
- package/dist/cli/{git-FRICPPTA.mjs → git-74IS2EFH.mjs} +5 -5
- package/dist/cli/git-A2QIIMW5.js +25 -0
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-ROAXEG6D.mjs → legacy-noops-52FFRTRZ.mjs} +5 -5
- package/dist/cli/{legacy-noops-DSFOPYDY.js → legacy-noops-ALWUQPKS.js} +8 -8
- package/dist/cli/{monitors-FZ5PRLW6.mjs → monitors-VTJIWWW2.mjs} +7 -7
- package/dist/cli/{monitors-KUCYQLU5.js → monitors-Z4ADOGTY.js} +91 -91
- package/dist/cli/{org-SRHMWKQR.js → org-2BTEKDF5.js} +72 -72
- package/dist/cli/{org-DRNND5XU.mjs → org-7GU6H7JL.mjs} +6 -6
- package/dist/cli/{pages-XNGA356T.mjs → pages-I6PFQGEU.mjs} +6 -6
- package/dist/cli/{pages-TEJQIHTU.js → pages-MG36E7RY.js} +17 -17
- package/dist/cli/{play-NE45ROIZ.mjs → play-7KFSLJX2.mjs} +18 -18
- package/dist/cli/{play-GCGFQSFP.js → play-VN52S3RV.js} +321 -321
- package/dist/cli/{providers-57TJOSMV.mjs → providers-D46JDEL2.mjs} +6 -6
- package/dist/cli/{providers-VHMUR63R.js → providers-W5XLII66.js} +9 -9
- package/dist/cli/{quickstart-K3SH4NXP.mjs → quickstart-4GTXBZHY.mjs} +4 -4
- package/dist/cli/{quickstart-BPXWO4UD.js → quickstart-TIZAC63S.js} +6 -6
- package/dist/cli/{run-553AAXDU.js → run-FOVEMYYX.js} +36 -36
- package/dist/cli/{run-ZRWJUEN2.mjs → run-LE3D4LVU.mjs} +22 -22
- package/dist/cli/{search-BW6XRS4I.mjs → search-6YL6WJMQ.mjs} +7 -7
- package/dist/cli/search-HN6SVDQU.js +32 -0
- package/dist/cli/{secrets-AMYQYUL5.js → secrets-CSTTTMZH.js} +15 -15
- package/dist/cli/{secrets-OYYCFGZE.mjs → secrets-D66U6RTT.mjs} +6 -6
- package/dist/cli/{sessions-RYCJUMJ2.js → sessions-45M2NRAA.js} +6 -6
- package/dist/cli/{sessions-O4SVVOMO.mjs → sessions-XIO3OUER.mjs} +5 -5
- package/dist/cli/{settings-7R5FQKII.js → settings-N42CVKSK.js} +78 -78
- package/dist/cli/{settings-QK7DHDU7.mjs → settings-R33X2D5T.mjs} +11 -11
- package/dist/cli/{setup-VDAAVCKK.mjs → setup-CBBC4FQP.mjs} +9 -9
- package/dist/cli/{setup-OTQDQHDN.js → setup-HREDVNF2.js} +44 -44
- package/dist/cli/{skills-HRK5O5JO.mjs → skills-4X6WS2PT.mjs} +9 -7
- package/dist/cli/skills-QZ6HZX2T.js +33 -0
- package/dist/cli/tools-KFIH7UWB.js +55 -0
- package/dist/cli/{tools-O7BM62QV.mjs → tools-YR46YFR2.mjs} +16 -16
- package/dist/cli/{update-UHKHCSTY.mjs → update-5CYAZX5X.mjs} +9 -9
- package/dist/cli/update-VZLEJLWJ.js +33 -0
- package/dist/cli/{workflow-7Z5NCTGG.js → workflow-M7AA722W.js} +17 -17
- package/dist/cli/{workflow-T2EDR7L4.mjs → workflow-NKQ3CWPK.mjs} +7 -7
- package/dist/{client-Bgl0_zXi.d.mts → client-AjmfA5nR.d.mts} +1 -1
- package/dist/{client-_ah6IuhK.d.ts → client-DMyY-QL8.d.ts} +1 -1
- package/dist/{client-core-C-ZF5vh9.d.ts → client-core-C705vFyV.d.ts} +1 -1
- package/dist/{client-core-Bfsedm0_.d.mts → client-core-CpBbvLEX.d.mts} +1 -1
- package/dist/{compiler-manifest-CCOqDGjU.d.mts → compiler-manifest-hqIAukR0.d.mts} +1 -1
- package/dist/{compiler-manifest-CCOqDGjU.d.ts → compiler-manifest-hqIAukR0.d.ts} +1 -1
- package/dist/{errors-Cy3kPnsi.d.ts → errors-CRO2qQ6k.d.ts} +1 -1
- package/dist/{errors-BLccD7tG.d.mts → errors-DIHVetNY.d.mts} +1 -1
- package/dist/{index-D5e4h1-H.d.ts → index-B8DVoeYt.d.ts} +1 -1
- package/dist/{index-4-j44HuT.d.mts → index-DVZ_X4Gb.d.mts} +1 -1
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +110 -110
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +1 -1
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +3 -3
- package/dist/release.d.ts +3 -3
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-7GVCW24N.js +0 -41
- package/dist/cli/describe-OR7FZBCD.js +0 -48
- package/dist/cli/git-CKN2F32Y.js +0 -25
- package/dist/cli/search-WF26AUDJ.js +0 -32
- package/dist/cli/skills-VNLMEOXW.js +0 -31
- package/dist/cli/tools-C3MUHL7G.js +0 -55
- package/dist/cli/update-TCKTU6QJ.js +0 -33
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F5PYBZ2H.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZOXV6WFI.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NTJDZURV.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FVPT44IJ.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZOXV6WFI.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FVPT44IJ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkMYYOCJZ2js = require('./chunk-MYYOCJZ2.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFK7SBMSZjs = require('./chunk-FK7SBMSZ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,10 +14,10 @@ var _chunkAK7UKQ5Rjs = require('./chunk-AK7UKQ5R.js');
|
|
|
14
14
|
var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkEBWYNNTJjs = require('./chunk-EBWYNNTJ.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkAS3VECCYjs = require('./chunk-AS3VECCY.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
var _fs = require('fs');
|
|
@@ -26,16 +26,16 @@ function nothingNamed(name) {
|
|
|
26
26
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
27
27
|
}
|
|
28
28
|
function findNamed2(name, options) {
|
|
29
|
-
return _chunkAK7UKQ5Rjs.findNamed.call(void 0, name, options, _chunkAK7UKQ5Rjs.describeLookupsFor.call(void 0, new (0,
|
|
29
|
+
return _chunkAK7UKQ5Rjs.findNamed.call(void 0, name, options, _chunkAK7UKQ5Rjs.describeLookupsFor.call(void 0, new (0, _chunkEBWYNNTJjs.DeeplineClient)()));
|
|
30
30
|
}
|
|
31
31
|
async function describeAnything(name, options, onMissing) {
|
|
32
|
-
const client = new (0,
|
|
32
|
+
const client = new (0, _chunkEBWYNNTJjs.DeeplineClient)();
|
|
33
33
|
const lookups = _chunkAK7UKQ5Rjs.describeLookupsFor.call(void 0, client);
|
|
34
34
|
const outcome = await _chunkAK7UKQ5Rjs.describeName.call(void 0, name, options, {
|
|
35
35
|
...lookups,
|
|
36
36
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
37
37
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
38
|
-
seedStarterScript:
|
|
38
|
+
seedStarterScript: _chunkMYYOCJZ2js.seedToolListScript
|
|
39
39
|
});
|
|
40
40
|
if (outcome.status === "missing") {
|
|
41
41
|
if (onMissing) return onMissing();
|
|
@@ -60,18 +60,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
60
60
|
` : text;
|
|
61
61
|
_fs.writeFileSync.call(void 0, path, content);
|
|
62
62
|
const bytes = Buffer.byteLength(content);
|
|
63
|
-
|
|
63
|
+
_chunkAS3VECCYjs.printCommandEnvelope.call(void 0,
|
|
64
64
|
{ path, bytes },
|
|
65
65
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
66
66
|
` }
|
|
67
67
|
);
|
|
68
68
|
return 0;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
_chunkAS3VECCYjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
71
71
|
return 0;
|
|
72
72
|
}
|
|
73
73
|
function registerDescribeCommand(program) {
|
|
74
|
-
|
|
74
|
+
_chunkFK7SBMSZjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
75
75
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
76
76
|
).addHelpText(
|
|
77
77
|
"after",
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkEBWYNNTJjs = require('./chunk-EBWYNNTJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkAS3VECCYjs = require('./chunk-AS3VECCY.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk7HAUVMRFjs = require('./chunk-7HAUVMRF.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
|
|
|
5713
5713
|
var _path = require('path');
|
|
5714
5714
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
5715
5715
|
function lastSearchPath() {
|
|
5716
|
-
return _path.join.call(void 0,
|
|
5716
|
+
return _path.join.call(void 0, _chunk7HAUVMRFjs.sdkCliStateDirPath.call(void 0, _chunk7HAUVMRFjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
5717
5717
|
}
|
|
5718
5718
|
function rememberSearchRef(searchRef) {
|
|
5719
5719
|
try {
|
|
@@ -5877,7 +5877,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
5877
5877
|
];
|
|
5878
5878
|
function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
5879
5879
|
if (result.results.length === 0)
|
|
5880
|
-
return
|
|
5880
|
+
return _chunkAS3VECCYjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5881
5881
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5882
5882
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5883
5883
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5902,7 +5902,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
|
5902
5902
|
actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
|
|
5903
5903
|
};
|
|
5904
5904
|
const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
|
|
5905
|
-
${
|
|
5905
|
+
${_chunkAS3VECCYjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5906
5906
|
const notes = rows.flatMap(
|
|
5907
5907
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
5908
5908
|
);
|
|
@@ -5997,7 +5997,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5997
5997
|
console.error("--summary-width must be an integer of at least 2.");
|
|
5998
5998
|
return 1;
|
|
5999
5999
|
}
|
|
6000
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
6000
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkEBWYNNTJjs.DeeplineClient)().search({
|
|
6001
6001
|
query,
|
|
6002
6002
|
types,
|
|
6003
6003
|
exclude,
|
|
@@ -6011,7 +6011,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
6011
6011
|
});
|
|
6012
6012
|
if (searchRef) rememberSearchRef(searchRef);
|
|
6013
6013
|
pointAtDescribe(result);
|
|
6014
|
-
|
|
6014
|
+
_chunkAS3VECCYjs.printCommandEnvelope.call(void 0, result, {
|
|
6015
6015
|
json: options.json === true,
|
|
6016
6016
|
text: renderSearchResults(result, summaryWidth)
|
|
6017
6017
|
});
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.476",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -94,8 +94,8 @@ var SDK_RELEASE = {
|
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
command: "search",
|
|
97
|
-
introducedIn: "0.3.
|
|
98
|
-
reason: "deepline search was added in SDK CLI 0.3.
|
|
97
|
+
introducedIn: "0.3.287",
|
|
98
|
+
reason: "deepline search was added in SDK CLI 0.3.287 as the one search across tools, monitors, and plays. On an older version run deepline tools search or deepline plays search, or update."
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
command: "notifications",
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkB7PEXXRWjs = require('./chunk-B7PEXXRW.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkB7PEXXRWjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -819,8 +819,8 @@ Authoring rules:
|
|
|
819
819
|
or { webhook: {} }. A cron run receives {} unless cron.input is written
|
|
820
820
|
inline; it is pinned with the published revision.
|
|
821
821
|
Runtime: The default Play runtime is 30 minutes. Standard uses 1 GiB / 1 CPU.
|
|
822
|
-
|
|
823
|
-
|
|
822
|
+
Select runtime.size 'large' (4 GiB / 2 CPU) or 'xlarge' (8 GiB / 4 CPU)
|
|
823
|
+
when a step needs more memory.
|
|
824
824
|
Compute pricing follows the workspace plan.
|
|
825
825
|
[[cli:Use deepline billing quote for the session ceiling.]]
|
|
826
826
|
Set runtime.timeout to extend a run up to 4h.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkL45IECBZjs = require('./chunk-L45IECBZ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkJDMR33HSjs = require('./chunk-JDMR33HS.js');
|
|
@@ -11,7 +11,7 @@ var _chunkJDMR33HSjs = require('./chunk-JDMR33HS.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkAS3VECCYjs = require('./chunk-AS3VECCY.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
|
|
|
579
579
|
return raw;
|
|
580
580
|
}
|
|
581
581
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
582
|
-
const selection =
|
|
582
|
+
const selection = _chunkAS3VECCYjs.parseJsonFields.call(void 0, args, "run");
|
|
583
583
|
args = selection.args;
|
|
584
584
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
585
585
|
let filePath = null;
|
|
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
591
591
|
let revisionSelector = null;
|
|
592
592
|
const watch = !args.includes("--no-wait");
|
|
593
593
|
const dryRun = args.includes("--dry-run");
|
|
594
|
-
let jsonOutput = dryRun ?
|
|
594
|
+
let jsonOutput = dryRun ? _chunkAS3VECCYjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkAS3VECCYjs.argsWantJson.call(void 0, args);
|
|
595
595
|
const fullJson = args.includes("--full");
|
|
596
596
|
const force = args.includes("--force");
|
|
597
597
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
654
654
|
"--log-level requires one of: debug, info, warn, error."
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
|
-
const parsed =
|
|
657
|
+
const parsed = _chunkL45IECBZjs.parseLogLevel.call(void 0, value);
|
|
658
658
|
if (!parsed) {
|
|
659
659
|
throw new Error(
|
|
660
660
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
972
972
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
973
973
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
974
974
|
);
|
|
975
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
975
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkL45IECBZjs.parseLogLevel.call(void 0, options.logLevel);
|
|
976
976
|
if (!logLevel)
|
|
977
977
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
978
978
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
986
986
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
987
987
|
logLevel = "debug";
|
|
988
988
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
989
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
990
|
-
[...fullJson ? ["--full"] : [], ...
|
|
989
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkAS3VECCYjs.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkAS3VECCYjs.jsonFieldArgs.call(void 0, options.json)],
|
|
991
991
|
"run"
|
|
992
992
|
).fields;
|
|
993
993
|
const watch = options.wait === false ? false : base.watch;
|
|
994
994
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
995
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
995
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkAS3VECCYjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D7EQ4PI5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
sdkCliStateDirPath,
|
|
13
13
|
skillsAgentPathSegment,
|
|
14
14
|
writeSdkSkillsLocalVersion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZOXV6WFI.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SDK_API_CONTRACT,
|
|
18
18
|
SDK_API_MAJOR,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
agentSessionIdFromEnvironment,
|
|
21
21
|
deploymentProtectionHeaders,
|
|
22
22
|
detectAgentRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FVPT44IJ.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError
|
|
26
26
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
27
27
|
import {
|
|
28
28
|
SDK_RELEASE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UHTJWDYB.mjs";
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -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 _chunkAS3VECCYjs = require('./chunk-AS3VECCY.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -17,7 +17,7 @@ var CliProgress = (_class = class {
|
|
|
17
17
|
|
|
18
18
|
// --json output is one JSON document: progress never renders under it.
|
|
19
19
|
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);
|
|
20
|
-
this.enabled = enabled && !
|
|
20
|
+
this.enabled = enabled && !_chunkAS3VECCYjs.isJsonOutputMode.call(void 0, );
|
|
21
21
|
}
|
|
22
22
|
setLogWriter(writer) {
|
|
23
23
|
this.logWriter = writer;
|
|
@@ -49,7 +49,7 @@ var CliProgress = (_class = class {
|
|
|
49
49
|
this.logWriter(line);
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
if (
|
|
52
|
+
if (_chunkAS3VECCYjs.isJsonOutputMode.call(void 0, )) return;
|
|
53
53
|
if (!this.enabled) {
|
|
54
54
|
process.stderr.write(`${line}
|
|
55
55
|
`);
|
|
@@ -819,8 +819,8 @@ Authoring rules:
|
|
|
819
819
|
or { webhook: {} }. A cron run receives {} unless cron.input is written
|
|
820
820
|
inline; it is pinned with the published revision.
|
|
821
821
|
Runtime: The default Play runtime is 30 minutes. Standard uses 1 GiB / 1 CPU.
|
|
822
|
-
|
|
823
|
-
|
|
822
|
+
Select runtime.size 'large' (4 GiB / 2 CPU) or 'xlarge' (8 GiB / 4 CPU)
|
|
823
|
+
when a step needs more memory.
|
|
824
824
|
Compute pricing follows the workspace plan.
|
|
825
825
|
[[cli:Use deepline billing quote for the session ceiling.]]
|
|
826
826
|
Set runtime.timeout to extend a run up to 4h.
|