deepline 0.3.574 → 0.3.575
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/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 +4 -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/governor/governor.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +45 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +6 -66
- package/dist/cli/{agents-7ZZSF4FS.js → agents-BCLO3KQJ.js} +204 -41
- package/dist/cli/{agents-6WN5LYUP.mjs → agents-ULGDKUTM.mjs} +182 -19
- package/dist/cli/{auth-I2QVO677.mjs → auth-4WCL7A6W.mjs} +5 -5
- package/dist/cli/auth-DXUHEL5I.js +44 -0
- package/dist/cli/{billing-YPH4GEWU.mjs → billing-7JQ6EUQU.mjs} +9 -9
- package/dist/cli/{billing-44QFBUWA.js → billing-BF5LVXOM.js} +102 -102
- package/dist/cli/{chunk-MGF3MK27.mjs → chunk-2T7XOKVL.mjs} +5 -5
- package/dist/cli/{chunk-7UR57HPJ.js → chunk-2UM3I2MY.js} +1 -1
- package/dist/cli/{chunk-SRUNYWQ2.mjs → chunk-3PVKXUSJ.mjs} +1 -1
- package/dist/cli/{chunk-W6UCS3O6.mjs → chunk-56N3XAT6.mjs} +5 -5
- package/dist/cli/{chunk-LLSCFLFU.mjs → chunk-5D7OJY4W.mjs} +1 -1
- package/dist/cli/{chunk-5E2PAGF5.js → chunk-5H6254MJ.js} +21 -21
- package/dist/cli/{chunk-VYSUJMB5.js → chunk-5VSHQG5E.js} +8 -8
- package/dist/cli/{chunk-SLXCVPN7.js → chunk-636GD4IR.js} +2 -2
- package/dist/cli/{chunk-LJLM4BUL.js → chunk-6IKLITVH.js} +6 -6
- package/dist/cli/{chunk-D6ZVRKJ2.js → chunk-737Y7QGT.js} +41 -41
- package/dist/cli/{chunk-UXIUAIL2.js → chunk-7DLAJ6JJ.js} +53 -53
- package/dist/cli/{chunk-2QYU57RG.js → chunk-AO56MZ7D.js} +3 -3
- package/dist/cli/{chunk-BUBOZKH2.js → chunk-AS5XGOZY.js} +2 -2
- package/dist/cli/{chunk-XVBEEGI4.mjs → chunk-BM536WWR.mjs} +1 -1
- package/dist/cli/{chunk-DX646HO7.mjs → chunk-BONMEBWZ.mjs} +4 -4
- package/dist/cli/{chunk-S22FSNNC.mjs → chunk-BQUAE6LQ.mjs} +1 -1
- package/dist/cli/{chunk-G7OR3GVD.mjs → chunk-CVY4MBXH.mjs} +5 -5
- package/dist/cli/{chunk-KSHZY52O.js → chunk-DMPGJCNZ.js} +72 -10
- package/dist/cli/{chunk-Q3A53SWK.mjs → chunk-DWUESXDD.mjs} +1 -1
- package/dist/cli/{chunk-IA2LTIWO.mjs → chunk-E4RYSSXX.mjs} +2 -2
- package/dist/cli/{chunk-VLUBEMWM.js → chunk-EV3OPDHF.js} +20 -20
- package/dist/cli/{chunk-ECLCRE5P.js → chunk-EZIXKNKM.js} +3 -3
- package/dist/cli/{chunk-JCO226JM.mjs → chunk-FDCU3VAJ.mjs} +72 -10
- package/dist/cli/{chunk-6B5EZOI3.js → chunk-FXXERR52.js} +10 -10
- package/dist/cli/{chunk-L2NXB4WG.mjs → chunk-FYKHAT2F.mjs} +64 -3
- package/dist/cli/{chunk-NDDGFX4X.js → chunk-G2H6SQQY.js} +11 -11
- package/dist/cli/{chunk-I62ZBEKH.js → chunk-G4WPDCXA.js} +48 -48
- package/dist/cli/{chunk-G2HW2SAP.js → chunk-GB4IZ5TV.js} +13 -13
- package/dist/cli/{chunk-7334X74C.mjs → chunk-GQZFZG6R.mjs} +2 -2
- package/dist/cli/{chunk-JY7RKJ65.mjs → chunk-H3CG72RZ.mjs} +13 -13
- package/dist/cli/{chunk-N6I3BB2O.js → chunk-H6JMRLAZ.js} +274 -274
- package/dist/cli/{chunk-6GZIT3TH.js → chunk-HEOM3FAC.js} +20 -20
- package/dist/cli/{chunk-DG56RWI2.js → chunk-HO76C7AE.js} +2 -2
- package/dist/cli/{chunk-X7RKCAMX.mjs → chunk-IAJ65IDZ.mjs} +4 -4
- package/dist/cli/{chunk-ZFXDD7VM.mjs → chunk-IBYMGR5Y.mjs} +1 -1
- package/dist/cli/{chunk-LCAXLGAY.mjs → chunk-IOWLFWWG.mjs} +2 -2
- package/dist/cli/{chunk-NRVEVKXR.mjs → chunk-JGLCK2XF.mjs} +2 -2
- package/dist/cli/{chunk-IB225ZK4.js → chunk-KNCNFL76.js} +4 -4
- package/dist/cli/{chunk-QPSBV4FD.mjs → chunk-MN7JLH2T.mjs} +2 -2
- package/dist/cli/{chunk-OH6WOID2.mjs → chunk-MWLOBURN.mjs} +2 -2
- package/dist/cli/{chunk-AFPGYZBH.js → chunk-MXK4M7HP.js} +17 -17
- package/dist/cli/{chunk-MAMGREBW.mjs → chunk-NF722E6C.mjs} +1 -1
- package/dist/cli/{chunk-7GQU46SZ.js → chunk-PQYDO72W.js} +26 -26
- package/dist/cli/{chunk-4T2U72SP.mjs → chunk-QEDRUURT.mjs} +1 -1
- package/dist/cli/{chunk-B2XLIQPH.mjs → chunk-QKP3WYSZ.mjs} +2 -2
- package/dist/cli/{chunk-VGIDPJXM.mjs → chunk-RHRRY2BX.mjs} +3 -3
- package/dist/cli/{chunk-ZTCP5BHH.mjs → chunk-RW3URFZK.mjs} +2 -2
- package/dist/cli/{chunk-XMBTAPHR.js → chunk-SKHUWQZE.js} +7 -7
- package/dist/cli/{chunk-OIZUFRTE.mjs → chunk-SYQTBHRX.mjs} +3 -3
- package/dist/cli/{chunk-PW6NKI2A.mjs → chunk-TMFR2B45.mjs} +3 -3
- package/dist/cli/{chunk-YR4REP4D.mjs → chunk-TTBZ7QXX.mjs} +1 -1
- package/dist/cli/{chunk-GMQZFWQU.mjs → chunk-UQZP7XBQ.mjs} +7 -7
- package/dist/cli/{chunk-DOZIWA66.js → chunk-V5XLENWK.js} +5 -5
- package/dist/cli/{chunk-2TMAKJBT.mjs → chunk-X47J55ZJ.mjs} +2 -2
- package/dist/cli/{chunk-ID3LGPOE.js → chunk-XFV353R2.js} +23 -23
- package/dist/cli/{chunk-2RPRSTHD.js → chunk-YNAXKA23.js} +5 -5
- package/dist/cli/{chunk-IXYVHTRZ.js → chunk-ZO65VJRJ.js} +70 -9
- package/dist/cli/{chunk-PP5RMEQQ.js → chunk-ZQXJYO5P.js} +5 -5
- package/dist/cli/{chunk-H7PVSG3L.js → chunk-ZS6DT4LD.js} +15 -15
- package/dist/cli/{chunk-Z3XFXFRT.js → chunk-ZYSJND73.js} +9 -9
- 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-HITK6EOO.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-JLWY54WL.js +22 -0
- package/dist/cli/{csv-FWGSY4GE.js → csv-RS7XHQ4P.js} +13 -13
- package/dist/cli/{csv-R7GV33BC.mjs → csv-V2T23MXT.mjs} +4 -4
- package/dist/cli/{db-UWXA4RRV.mjs → db-OQ4RNTGE.mjs} +6 -6
- package/dist/cli/{db-OCH35YJG.js → db-WFIVRPKY.js} +27 -27
- package/dist/cli/describe-33PBWO5O.js +50 -0
- package/dist/cli/{describe-QI4HMUGE.mjs → describe-AXV2EEX3.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-5H2RIWZ3.js} +8 -8
- package/dist/cli/{executions-YF3KMZZN.mjs → executions-THP5ZDBQ.mjs} +6 -6
- package/dist/cli/{feedback-DWIWBS7O.mjs → feedback-2EJPILGE.mjs} +6 -6
- package/dist/cli/{feedback-YCZHHSBS.js → feedback-UOI6UEGA.js} +14 -14
- package/dist/cli/git-2OPYEPYW.js +26 -0
- package/dist/cli/{git-XCGMQQOD.mjs → git-DI3LJIAT.mjs} +5 -5
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-5ABAJBSW.mjs → integrations-DJYS5VRK.mjs} +7 -7
- package/dist/cli/{integrations-IEZA3TGK.js → integrations-TYN2BSQ6.js} +29 -29
- package/dist/cli/{legacy-noops-KNFLJ5P2.js → legacy-noops-GXQHNLGJ.js} +9 -9
- package/dist/cli/{legacy-noops-OZMY73Y3.mjs → legacy-noops-Z457BB6O.mjs} +6 -6
- package/dist/cli/{mcp-WSPFKQPZ.mjs → mcp-NAW3GFNN.mjs} +4 -4
- package/dist/cli/{mcp-NLQAO7KP.js → mcp-WMBOOTQL.js} +24 -24
- package/dist/cli/{monitors-LPKFFTOX.mjs → monitors-A7NYAXSJ.mjs} +7 -7
- package/dist/cli/{monitors-BJYOB4S3.js → monitors-OOQVE7XR.js} +100 -100
- package/dist/cli/{org-RYPMUYUW.mjs → org-7YCDUSZE.mjs} +6 -6
- package/dist/cli/{org-WIVHI4WT.js → org-D2AMIVBS.js} +121 -121
- package/dist/cli/{outcomes-QKX7IE3O.js → outcomes-2FKZDJSQ.js} +14 -14
- package/dist/cli/{outcomes-FADJYC4I.mjs → outcomes-TNTKCUEO.mjs} +6 -6
- package/dist/cli/{play-4ZKK5Q7U.mjs → play-L6CVHSN4.mjs} +20 -20
- package/dist/cli/{play-ID73J3NP.js → play-NWKHCHVZ.js} +349 -349
- package/dist/cli/{providers-LURYBSNO.mjs → providers-22LO747B.mjs} +6 -6
- package/dist/cli/{providers-WCCGYGW6.js → providers-PZGOI5CN.js} +9 -9
- package/dist/cli/{quickstart-KCCSEE5J.mjs → quickstart-3ZRVKGMH.mjs} +4 -4
- package/dist/cli/{quickstart-LVPOU25V.js → quickstart-LLWOC2GR.js} +6 -6
- package/dist/cli/{run-XXK7DDUF.mjs → run-D46W2GUA.mjs} +48 -27
- package/dist/cli/{run-2QMJRCVA.js → run-SNF23STR.js} +70 -49
- package/dist/cli/search-H57MZPLF.js +32 -0
- package/dist/cli/{search-ZYAWW3CK.mjs → search-XWVCICIX.mjs} +7 -7
- package/dist/cli/{search-output-YNXAZSKT.js → search-output-36GHD67U.js} +8 -8
- package/dist/cli/{search-output-N45AIOB4.mjs → search-output-YM5QXFQQ.mjs} +5 -5
- package/dist/cli/{secrets-7Q3AOUAS.mjs → secrets-7PTZEFRC.mjs} +6 -6
- package/dist/cli/{secrets-MHT27L2M.js → secrets-UXCIHG5I.js} +15 -15
- package/dist/cli/{sessions-6QKOM7M3.mjs → sessions-DTXJKRP4.mjs} +6 -6
- package/dist/cli/sessions-JJZMQSH4.js +23 -0
- package/dist/cli/{settings-NPVIDENI.mjs → settings-74B6UOS4.mjs} +12 -12
- package/dist/cli/{settings-OP7Q6YX6.js → settings-EYSDZE37.js} +85 -85
- package/dist/cli/{setup-OOT3EIMF.mjs → setup-2QRZ36CH.mjs} +9 -9
- package/dist/cli/{setup-RT6GHL3W.js → setup-E7PVXBPL.js} +49 -49
- package/dist/cli/{skills-TEXI4CLZ.mjs → skills-2WZ7N3UW.mjs} +7 -7
- package/dist/cli/skills-RIF2DCZI.js +37 -0
- package/dist/cli/tools-7VRQ4GSI.js +57 -0
- package/dist/cli/{tools-G5L36M3X.mjs → tools-YK5SCUZD.mjs} +19 -19
- package/dist/cli/{update-YNKQTE4D.mjs → update-563YQK53.mjs} +9 -9
- package/dist/cli/update-CMZAIAES.js +37 -0
- package/dist/cli/{views-IQFMUMLU.mjs → views-ISNCRZUP.mjs} +6 -6
- package/dist/cli/{views-OVQ5AQAU.js → views-OLPS6TPG.js} +21 -21
- package/dist/cli/{workflow-Y5IFMI7N.mjs → workflow-B3ZKU3OR.mjs} +7 -7
- package/dist/cli/{workflow-RCBYXIFZ.js → workflow-CUSCTYMW.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 +1 -1
- package/dist/release.d.ts +1 -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
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAO56MZ7Djs = require('./chunk-AO56MZ7D.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkKNCNFL76js = require('./chunk-KNCNFL76.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -331,7 +331,7 @@ function buildEnvironmentContext() {
|
|
|
331
331
|
node_version: process.version,
|
|
332
332
|
runtime: "Node.js",
|
|
333
333
|
hostname: _os.hostname.call(void 0, ),
|
|
334
|
-
agent_runtime:
|
|
334
|
+
agent_runtime: _chunkKNCNFL76js.detectAgentRuntime.call(void 0, )
|
|
335
335
|
};
|
|
336
336
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
337
337
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -352,18 +352,18 @@ function buildEnvironmentContext() {
|
|
|
352
352
|
return context;
|
|
353
353
|
}
|
|
354
354
|
function failureReportHeaders(apiKey) {
|
|
355
|
-
const agentSessionId =
|
|
355
|
+
const agentSessionId = _chunkKNCNFL76js.agentSessionIdFromEnvironment.call(void 0, );
|
|
356
356
|
return {
|
|
357
|
-
...
|
|
357
|
+
..._chunkKNCNFL76js.deploymentProtectionHeaders.call(void 0, ),
|
|
358
358
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
359
359
|
Authorization: `Bearer ${apiKey}`,
|
|
360
360
|
"Content-Type": "application/json",
|
|
361
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
361
|
+
"User-Agent": `deepline-ts-sdk/${_chunkKNCNFL76js.SDK_VERSION}`,
|
|
362
362
|
"X-Deepline-Client-Family": "sdk",
|
|
363
363
|
"X-Deepline-CLI-Family": "sdk",
|
|
364
|
-
"X-Deepline-Agent-Runtime":
|
|
365
|
-
"X-Deepline-CLI-Version":
|
|
366
|
-
"X-Deepline-SDK-Version":
|
|
364
|
+
"X-Deepline-Agent-Runtime": _chunkKNCNFL76js.detectAgentRuntime.call(void 0, ),
|
|
365
|
+
"X-Deepline-CLI-Version": _chunkKNCNFL76js.SDK_VERSION,
|
|
366
|
+
"X-Deepline-SDK-Version": _chunkKNCNFL76js.SDK_VERSION
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
async function postFailureReport(input) {
|
|
@@ -391,7 +391,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
391
391
|
if (isFailureReportingDisabled()) return false;
|
|
392
392
|
let apiKey = "";
|
|
393
393
|
try {
|
|
394
|
-
apiKey =
|
|
394
|
+
apiKey = _chunkAO56MZ7Djs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
395
395
|
} catch (e2) {
|
|
396
396
|
return false;
|
|
397
397
|
}
|
|
@@ -418,7 +418,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
418
418
|
failure_code: failureCode2,
|
|
419
419
|
failure_stage: failureStage,
|
|
420
420
|
error_body: "Automatic Deepline skills installation failed.",
|
|
421
|
-
cli_version:
|
|
421
|
+
cli_version: _chunkKNCNFL76js.SDK_VERSION,
|
|
422
422
|
context: {
|
|
423
423
|
environment: buildEnvironmentContext(),
|
|
424
424
|
skills_sync: {
|
|
@@ -538,7 +538,7 @@ function buildFailureReport(input) {
|
|
|
538
538
|
failure_kind: failureKind,
|
|
539
539
|
failure_code: code,
|
|
540
540
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
541
|
-
cli_version:
|
|
541
|
+
cli_version: _chunkKNCNFL76js.SDK_VERSION,
|
|
542
542
|
context: {
|
|
543
543
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
544
544
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -558,8 +558,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
558
558
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
559
559
|
const exitCode = resolvedExitCode(input);
|
|
560
560
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
561
|
-
const baseUrl =
|
|
562
|
-
const apiKey =
|
|
561
|
+
const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
562
|
+
const apiKey = _chunkAO56MZ7Djs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
563
563
|
if (!apiKey) return false;
|
|
564
564
|
return postFailureReport({
|
|
565
565
|
baseUrl,
|
|
@@ -914,8 +914,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
914
914
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
915
915
|
var defaultBrowserCommandRunner = childProcess;
|
|
916
916
|
function getAuthedHttpClient() {
|
|
917
|
-
const config =
|
|
918
|
-
return { config, http: new (0,
|
|
917
|
+
const config = _chunkAO56MZ7Djs.resolveConfig.call(void 0, );
|
|
918
|
+
return { config, http: new (0, _chunkAO56MZ7Djs.HttpClient)(config) };
|
|
919
919
|
}
|
|
920
920
|
function stableOsUserId() {
|
|
921
921
|
try {
|
|
@@ -1256,7 +1256,7 @@ function collectLocalEnvInfo() {
|
|
|
1256
1256
|
os: `${process.platform} ${process.arch}`,
|
|
1257
1257
|
node_version: process.version,
|
|
1258
1258
|
home_dir: homeDir,
|
|
1259
|
-
agent_runtime:
|
|
1259
|
+
agent_runtime: _chunkKNCNFL76js.detectAgentRuntime.call(void 0, )
|
|
1260
1260
|
};
|
|
1261
1261
|
const env = process.env;
|
|
1262
1262
|
const optional = {
|
|
@@ -1503,9 +1503,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
function withAgentCommandContext(value) {
|
|
1505
1505
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1506
|
-
return
|
|
1506
|
+
return _chunkKNCNFL76js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1507
1507
|
...valueRecord,
|
|
1508
|
-
command_context:
|
|
1508
|
+
command_context: _chunkAO56MZ7Djs.resolveCliCommandContext.call(void 0, )
|
|
1509
1509
|
} : value;
|
|
1510
1510
|
}
|
|
1511
1511
|
function printJson(value, fields, options = {}) {
|
|
@@ -1677,7 +1677,7 @@ function errorToJsonPayload(error) {
|
|
|
1677
1677
|
...upstreamResponse ? { upstreamResponse } : {},
|
|
1678
1678
|
...Object.keys(details).length > 0 ? { details } : {}
|
|
1679
1679
|
};
|
|
1680
|
-
const retry = cliRetryGuidance(payloadError,
|
|
1680
|
+
const retry = cliRetryGuidance(payloadError, _chunkKNCNFL76js.readToolFailureHint.call(void 0, error));
|
|
1681
1681
|
return {
|
|
1682
1682
|
ok: false,
|
|
1683
1683
|
status: "failed",
|
|
@@ -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 _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkEV3OPDHFjs.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkEV3OPDHFjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -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,53 @@ 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
|
+
From Slack:
|
|
4363
|
+
Inviting the agent's app to a channel no agent answers in, or mentioning
|
|
4364
|
+
it there, posts a card that asks which outcome the channel is for. Picking
|
|
4365
|
+
one and pressing Connect does what channels add --outcome does: the channel
|
|
4366
|
+
becomes the outcome's home, or a linked channel when the outcome has a
|
|
4367
|
+
home already. "Only answer questions" binds the channel with no outcome.
|
|
4368
|
+
When the agent needs a person to decide, it opens an ask on the outcome
|
|
4369
|
+
and the ask appears in the channel with a button for each option. A click
|
|
4370
|
+
answers the ask on the outcome, the same as [[outcomes asks answer]].
|
|
4371
|
+
Both are done as a Deepline member, so the first click shows you, alone,
|
|
4372
|
+
a link that says which member you are. Open it signed in to Deepline, or
|
|
4373
|
+
pass it to [[agents slack link <code>]]; [[agents slack unlink]] forgets
|
|
4374
|
+
it. Your grants are read at each click: connecting needs the run grant,
|
|
4375
|
+
an outcome and answering an ask need member access.
|
|
4323
4376
|
Feedback:
|
|
4324
4377
|
Each answer the agent posts in Slack carries Helpful / Not helpful buttons.
|
|
4325
4378
|
[[agents feedback]] lists the ratings, newest first; --agent pipeline keeps
|
|
@@ -4345,11 +4398,17 @@ Confirmations:
|
|
|
4345
4398
|
Output (JSON):
|
|
4346
4399
|
list prints workspace {lifecycle, billing {provider (openai, anthropic),
|
|
4347
4400
|
keyLast4} or null} (null before
|
|
4348
|
-
enable), agents[] {name, instructions, skillNames,
|
|
4349
|
-
updatedByUserId, conversations[] {platform,
|
|
4350
|
-
conversationName, createdByUserId, createdAt
|
|
4351
|
-
|
|
4352
|
-
|
|
4401
|
+
enable), agents[] {name, instructions, skillNames, model (null: the
|
|
4402
|
+
default), ownerUserId, updatedByUserId, conversations[] {platform,
|
|
4403
|
+
conversationId, conversationName, createdByUserId, createdAt, model (null:
|
|
4404
|
+
its agent's), outcome {slug, role (home, linked), agentKey, watching} or
|
|
4405
|
+
null}} and skills[] {name, description, markdownLength}. get, create,
|
|
4406
|
+
update and channels add print agent; created, changed or removed says
|
|
4407
|
+
whether anything changed. models prints default and models[] {id, label,
|
|
4408
|
+
provider, aliases, available}. channels set prints model {model {id,
|
|
4409
|
+
label, provider}, from (conversation, agent), changed} and outcome
|
|
4410
|
+
{changed, agentName, conversation, woken}; channels add --outcome prints
|
|
4411
|
+
that outcome too.
|
|
4353
4412
|
feedback prints feedback[] {agentName (null once deleted), platform,
|
|
4354
4413
|
conversationId, conversationName, threadTs, messageTs, raterId, rating
|
|
4355
4414
|
(helpful, not_helpful), updatedAt} and cursor (null on the last page).
|
|
@@ -4368,10 +4427,13 @@ Output (JSON):
|
|
|
4368
4427
|
status prints installations[] {teamId, teamName, status (installed,
|
|
4369
4428
|
uninstalled), scopes, installedAt, installedByUserId, uninstalledAt,
|
|
4370
4429
|
uninstallReason (app_uninstalled, tokens_revoked)}; never a token.
|
|
4430
|
+
slack link prints linked, created, slackTeamId and slackUserId; slack
|
|
4431
|
+
unlink prints removed.
|
|
4371
4432
|
Cost:
|
|
4372
4433
|
Model calls are billed to the workspace's OpenAI or Anthropic key, never
|
|
4373
4434
|
to Deepline credits. Tools an agent calls spend Deepline credits as they
|
|
4374
|
-
would for you.
|
|
4435
|
+
would for you. A turn an outcome wakes the agent for is a turn like any
|
|
4436
|
+
other.
|
|
4375
4437
|
Avoid:
|
|
4376
4438
|
Do not pass the model key as an argument; it is refused. Do not bind a
|
|
4377
4439
|
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 _chunkYNAXKA23js = require('./chunk-YNAXKA23.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkAO56MZ7Djs = require('./chunk-AO56MZ7D.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, _chunkAO56MZ7Djs.sdkCliStateDirPath.call(void 0, _chunkAO56MZ7Djs.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, _chunkYNAXKA23js.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-36GHD67U.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
|
+
_chunkEV3OPDHFjs.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 = _chunkEV3OPDHFjs.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkEV3OPDHFjs.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
|
+
_chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|
|
@@ -118,7 +118,7 @@ function schemaField(name, node, required) {
|
|
|
118
118
|
const { type, fields } = schemaType(schema);
|
|
119
119
|
const example = [
|
|
120
120
|
schema.example,
|
|
121
|
-
schema.default,
|
|
121
|
+
schema.deprecatedDefault === true ? void 0 : schema.default,
|
|
122
122
|
type === "string" ? NAMED_EXAMPLES[name.toLowerCase()] : void 0
|
|
123
123
|
].find((value) => value !== void 0);
|
|
124
124
|
return {
|
|
@@ -709,6 +709,7 @@ function describedLines(described, view) {
|
|
|
709
709
|
`${described.id} [${described.kind.replace("_", " ")}]`,
|
|
710
710
|
...described.displayName ? [described.displayName] : [],
|
|
711
711
|
...described.description ? [described.description] : [],
|
|
712
|
+
...described.signature ? [`Signature: ${described.signature}`] : [],
|
|
712
713
|
...described.cost ? [`Cost: ${described.cost}`] : [],
|
|
713
714
|
...described.guidance.map((line) => `Guidance: ${line}`),
|
|
714
715
|
...described.rateLimit ? [`Rate limit: ${described.rateLimit}`] : [],
|
|
@@ -736,6 +737,16 @@ function describedLines(described, view) {
|
|
|
736
737
|
...view.explain ? indented(explanation.cli) : []
|
|
737
738
|
] : []
|
|
738
739
|
),
|
|
740
|
+
...section(
|
|
741
|
+
view.cli && described.namedExamples?.length ? [
|
|
742
|
+
"Run a named example:",
|
|
743
|
+
...described.namedExamples.flatMap(
|
|
744
|
+
(example) => indented(
|
|
745
|
+
`deepline run ${described.id} --example ${example.name}${example.description ? ` # ${example.description}` : ""}`
|
|
746
|
+
)
|
|
747
|
+
)
|
|
748
|
+
] : []
|
|
749
|
+
),
|
|
739
750
|
...section(
|
|
740
751
|
view.play && play ? [
|
|
741
752
|
"Run in a play:",
|
|
@@ -826,6 +837,7 @@ function describedJson(described, view) {
|
|
|
826
837
|
...described.provider ? { provider: described.provider } : {},
|
|
827
838
|
...described.displayName ? { displayName: described.displayName } : {},
|
|
828
839
|
...described.description ? { description: described.description } : {},
|
|
840
|
+
...described.signature ? { signature: described.signature } : {},
|
|
829
841
|
...described.cost ? { cost: described.cost } : {},
|
|
830
842
|
...described.rateLimit ? { rateLimit: described.rateLimit } : {},
|
|
831
843
|
...described.byok ? { byok: described.byok } : {},
|
|
@@ -848,15 +860,60 @@ function describedJson(described, view) {
|
|
|
848
860
|
// On Windows `cli` reads `input` from this file instead of inline.
|
|
849
861
|
...inputFile ? { inputFile: inputFile.path } : {}
|
|
850
862
|
},
|
|
863
|
+
...described.namedExamples?.length ? { namedExamples: described.namedExamples } : {},
|
|
851
864
|
...described.source ? { source: described.source } : {},
|
|
852
865
|
...hidden.length ? { hidden } : {}
|
|
853
866
|
};
|
|
854
867
|
}
|
|
855
|
-
|
|
868
|
+
function pythonValue(value) {
|
|
869
|
+
if (value === null || value === void 0) return "None";
|
|
870
|
+
if (value === true) return "True";
|
|
871
|
+
if (value === false) return "False";
|
|
872
|
+
if (typeof value === "string") return `'${value.replace(/'/g, "\\'")}'`;
|
|
873
|
+
if (Array.isArray(value)) return `[${value.map(pythonValue).join(", ")}]`;
|
|
874
|
+
if (isRecord(value)) {
|
|
875
|
+
return `{${Object.entries(value).map(([key, item]) => `'${key}': ${pythonValue(item)}`).join(", ")}}`;
|
|
876
|
+
}
|
|
877
|
+
return String(value);
|
|
878
|
+
}
|
|
879
|
+
function playSignature(reference, schema) {
|
|
880
|
+
if (!isRecord(schema) || !isRecord(schema.properties)) return null;
|
|
881
|
+
const required = new Set(
|
|
882
|
+
Array.isArray(schema.required) ? schema.required.map(String) : []
|
|
883
|
+
);
|
|
884
|
+
const entries = Object.entries(schema.properties);
|
|
885
|
+
const parameters = [
|
|
886
|
+
...entries.filter(([name]) => required.has(name)).map(([name]) => name),
|
|
887
|
+
...entries.filter(([name]) => !required.has(name)).map(([name, node]) => {
|
|
888
|
+
const property = isRecord(node) ? node : {};
|
|
889
|
+
if (!("default" in property)) return `${name}=None`;
|
|
890
|
+
const notes = [
|
|
891
|
+
property.deprecatedDefault === true ? "deprecated default" : null,
|
|
892
|
+
property.defaultWhen === "empty_request" ? "only when no search input is given" : null
|
|
893
|
+
].filter(Boolean);
|
|
894
|
+
return `${name}=${pythonValue(property.default)}${notes.length ? ` (${notes.join(", ")})` : ""}`;
|
|
895
|
+
})
|
|
896
|
+
];
|
|
897
|
+
return `${reference}(${parameters.join(", ")})`;
|
|
898
|
+
}
|
|
899
|
+
function playNamedExamples(schema) {
|
|
900
|
+
const declared = isRecord(schema) ? schema.namedExamples : null;
|
|
901
|
+
if (!isRecord(declared)) return [];
|
|
902
|
+
return Object.entries(declared).flatMap(
|
|
903
|
+
([name, value]) => isRecord(value) && isRecord(value.input) ? [
|
|
904
|
+
{
|
|
905
|
+
name,
|
|
906
|
+
...typeof value.description === "string" ? { description: value.description } : {},
|
|
907
|
+
input: value.input
|
|
908
|
+
}
|
|
909
|
+
] : []
|
|
910
|
+
);
|
|
911
|
+
}
|
|
912
|
+
var DASHBOARD_ORG_PARAM = "org";
|
|
856
913
|
function buildDashboardUrl(baseUrl, path, orgId) {
|
|
857
914
|
const url = `${baseUrl.replace(/\/$/, "")}${path}`;
|
|
858
915
|
if (!orgId) return url;
|
|
859
|
-
const param = new URLSearchParams({ [
|
|
916
|
+
const param = new URLSearchParams({ [DASHBOARD_ORG_PARAM]: orgId });
|
|
860
917
|
return `${url}${url.includes("?") ? "&" : "?"}${param.toString()}`;
|
|
861
918
|
}
|
|
862
919
|
function buildPlayDashboardUrl(baseUrl, playName, orgId) {
|
|
@@ -898,6 +955,8 @@ function describedPlay(play) {
|
|
|
898
955
|
description: [field.description, `CSV header: ${header}`].filter(Boolean).join(" - ")
|
|
899
956
|
} : field;
|
|
900
957
|
});
|
|
958
|
+
const signature = playSignature(reference, play.inputSchema);
|
|
959
|
+
const namedExamples = playNamedExamples(play.inputSchema);
|
|
901
960
|
const rowOutput = play.rowOutputSchema ?? {};
|
|
902
961
|
const added = isRecord(rowOutput.addedColumns) ? rowOutput.addedColumns : {};
|
|
903
962
|
const rowOutputs = schemaFields(
|
|
@@ -920,6 +979,8 @@ function describedPlay(play) {
|
|
|
920
979
|
rowOutputsAddToSource: Object.keys(added).length > 0 || rowOutput.preservesSourceColumns === true
|
|
921
980
|
} : {},
|
|
922
981
|
runner: { via: "play", reference, inputSchema: play.inputSchema },
|
|
982
|
+
...signature ? { signature } : {},
|
|
983
|
+
...namedExamples.length ? { namedExamples } : {},
|
|
923
984
|
...starter ? { source: starter.command } : {},
|
|
924
985
|
...exclusive ? { exclusive } : {},
|
|
925
986
|
// A prebuilt's cost is what its recent runs were charged; there is no rate.
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkZO65VJRJjs = require('./chunk-ZO65VJRJ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/describe-options.ts
|
|
15
15
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -27,7 +27,7 @@ function addDescribeOptions(command, options = {}) {
|
|
|
27
27
|
"Show only the in-play example, and explain how it takes inputs and returns outputs"
|
|
28
28
|
).option("--no-example", "Hide the run examples").option(
|
|
29
29
|
"--full-schema",
|
|
30
|
-
`Print every field: a long schema unfolded (over ${
|
|
30
|
+
`Print every field: a long schema unfolded (over ${_chunkZO65VJRJjs.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
|
|
31
31
|
).option(
|
|
32
32
|
"--fields <names>",
|
|
33
33
|
"Show only these fields, comma-separated, plus every required input"
|
|
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
|
|
|
250
250
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
251
251
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
252
252
|
if (typeof logicalValue === "object") {
|
|
253
|
-
return
|
|
253
|
+
return _chunkEV3OPDHFjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
254
254
|
}
|
|
255
255
|
return logicalValue;
|
|
256
256
|
}
|
|
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
|
|
|
642
642
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
643
|
columns
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return _chunkEV3OPDHFjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
648
648
|
let temp;
|
|
@@ -770,7 +770,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
770
770
|
};
|
|
771
771
|
if (options.receiptOut && !skipReceiptFile) {
|
|
772
772
|
persist(options.receiptOut, jsonText(receipt));
|
|
773
|
-
|
|
773
|
+
_chunkEV3OPDHFjs.markJsonOutputHandled.call(void 0, );
|
|
774
774
|
} else {
|
|
775
775
|
printReceipt(receipt, options, {
|
|
776
776
|
data: hasData ? result.data : void 0,
|
|
@@ -874,9 +874,9 @@ function annotated(schema, values) {
|
|
|
874
874
|
function shapeLines(title, data) {
|
|
875
875
|
const schema = annotated(observedSchema(data), [data]);
|
|
876
876
|
const block = (heading, fieldSchema) => {
|
|
877
|
-
const { lines, folded } =
|
|
877
|
+
const { lines, folded } = _chunkZO65VJRJjs.fieldBlockLines.call(void 0,
|
|
878
878
|
heading,
|
|
879
|
-
|
|
879
|
+
_chunkZO65VJRJjs.schemaFields.call(void 0, fieldSchema)
|
|
880
880
|
);
|
|
881
881
|
return [
|
|
882
882
|
...lines,
|
|
@@ -939,7 +939,7 @@ function receiptText(receipt, options, extra) {
|
|
|
939
939
|
problems.push(
|
|
940
940
|
`Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
|
|
941
941
|
);
|
|
942
|
-
const diagnostic =
|
|
942
|
+
const diagnostic = _chunkEV3OPDHFjs.formatCliFailureDiagnostic.call(void 0, error);
|
|
943
943
|
if (diagnostic) problems.push(...diagnostic.split("\n"));
|
|
944
944
|
if (record(error) && typeof error.recoveryFile === "string") {
|
|
945
945
|
problems.push(
|
|
@@ -1032,8 +1032,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1032
1032
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1033
1033
|
` : receiptText(receipt, options, extra);
|
|
1034
1034
|
if (options.receiptOut !== void 0) {
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
_chunkEV3OPDHFjs.writeRawStderr.call(void 0, text);
|
|
1036
|
+
_chunkEV3OPDHFjs.markJsonOutputHandled.call(void 0, );
|
|
1037
1037
|
} else {
|
|
1038
1038
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1039
1039
|
}
|