deepline 0.3.357 → 0.3.358
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/monitors/deactivation-reasons.ts +14 -1
- package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +52 -19
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +35 -18
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +202 -44
- package/dist/cli/{auth-5Y2YV5LY.mjs → auth-QSEB4OI6.mjs} +6 -4
- package/dist/cli/auth-VP5WIGFS.js +33 -0
- package/dist/cli/{billing-UOFR7KDB.mjs → billing-KNJ6ZHSN.mjs} +5 -5
- package/dist/cli/{billing-Y6IKDJ6H.js → billing-UE2CP5O5.js} +74 -74
- package/dist/cli/{chunk-O7IM72KW.mjs → chunk-3DP24EZA.mjs} +15 -15
- package/dist/cli/{chunk-IWBFG4XI.mjs → chunk-4IUOBUNS.mjs} +1 -1
- package/dist/cli/{chunk-C2EHMMME.js → chunk-5PJ6XYRV.js} +64 -60
- package/dist/cli/{chunk-CPQIVH6G.js → chunk-5RWJSROL.js} +8 -8
- package/dist/cli/{chunk-5UNTNKNX.js → chunk-BVPN57AD.js} +6 -6
- package/dist/cli/{chunk-PJYCAGKK.mjs → chunk-EL62MLRD.mjs} +1 -1
- package/dist/cli/{chunk-NZ6BT4NL.mjs → chunk-EVPWVNJV.mjs} +7 -7
- package/dist/cli/{chunk-SCY4UCEZ.js → chunk-GYDSDOXB.js} +75 -50
- package/dist/cli/{chunk-VXH4225Y.mjs → chunk-HGLESMAC.mjs} +27 -2
- package/dist/cli/{chunk-EWTVIN3O.js → chunk-HKRJUIRL.js} +47 -47
- package/dist/cli/{chunk-R5P3KFF5.js → chunk-HNAFCPM4.js} +8 -8
- package/dist/cli/{chunk-WQSV34KV.js → chunk-KIRDHNX5.js} +11 -11
- package/dist/cli/{chunk-NEMHJYA4.js → chunk-LOSZZCER.js} +2 -2
- package/dist/cli/{chunk-2AROJ4EZ.mjs → chunk-NMHQTEIQ.mjs} +2 -2
- package/dist/cli/{chunk-J4A4MRBK.js → chunk-OO3MYL2Y.js} +26 -26
- package/dist/cli/{chunk-SXXUOZRS.js → chunk-OVUDXZCK.js} +1 -1
- package/dist/cli/{chunk-2NZUC5OS.mjs → chunk-Q77PWYDF.mjs} +4 -4
- package/dist/cli/chunk-QFBHEQCQ.mjs +1421 -0
- package/dist/cli/{chunk-SMLKQAEB.mjs → chunk-QH6PV7IJ.mjs} +3 -3
- package/dist/cli/chunk-QILHWZFP.js +1421 -0
- package/dist/cli/{chunk-N47R7S3E.mjs → chunk-SJY4SUCH.mjs} +1 -1
- package/dist/cli/{chunk-LJTZVC2T.mjs → chunk-SPJ3IDR4.mjs} +2 -2
- package/dist/cli/{chunk-4YXJTQ5X.js → chunk-UZQWPQ6V.js} +5 -5
- package/dist/cli/{chunk-ZYPSNUDU.js → chunk-V4MVLHOW.js} +231 -231
- package/dist/cli/{chunk-VG5WMYSF.mjs → chunk-VZBNBCEB.mjs} +3 -3
- package/dist/cli/{chunk-6P235JSN.js → chunk-WVO6AJM7.js} +15 -15
- package/dist/cli/{chunk-XYD76KJB.mjs → chunk-WYVUMIEF.mjs} +8 -8
- package/dist/cli/{chunk-QYCAH7SM.mjs → chunk-YWGKGXSH.mjs} +6 -2
- package/dist/cli/client-I4RRFLPM.js +20 -0
- package/dist/cli/{client-23QTYYIR.mjs → client-M2TQV23S.mjs} +4 -4
- package/dist/cli/command-docs.d.mts +50 -0
- package/dist/cli/command-docs.d.ts +50 -0
- package/dist/cli/command-docs.js +13 -0
- package/dist/cli/command-docs.mjs +13 -0
- package/dist/cli/{csv-VKEF5C65.mjs → csv-OQUTHAMD.mjs} +3 -3
- package/dist/cli/{csv-SQIEBX66.js → csv-VSVZWQ24.js} +12 -12
- package/dist/cli/{db-Z33ZRE3N.js → db-6QNWRH47.js} +30 -30
- package/dist/cli/{db-KX7FDHL4.mjs → db-QH56PKPT.mjs} +5 -5
- package/dist/cli/{describe-5ZQ6KIJH.js → describe-BKJNG2I5.js} +21 -21
- package/dist/cli/{describe-K2SJ22B3.mjs → describe-NCUJW2JG.mjs} +16 -16
- package/dist/cli/{executions-KCZZY6SS.js → executions-63CSEYKE.js} +7 -7
- package/dist/cli/{executions-452G2REF.mjs → executions-NOZELHEN.mjs} +5 -5
- package/dist/cli/{feedback-55HU4EQY.mjs → feedback-GL7YHJAK.mjs} +3 -3
- package/dist/cli/{feedback-BM7ZNH7Y.js → feedback-T4FGM7DY.js} +7 -7
- package/dist/cli/git-4EBFGJAN.js +23 -0
- package/dist/cli/{git-CAPESVAJ.mjs → git-C3SPUEUB.mjs} +4 -4
- package/dist/cli/index.js +183 -83
- package/dist/cli/index.mjs +145 -45
- package/dist/cli/{legacy-noops-3B3MG33Y.mjs → legacy-noops-BBDNHMAW.mjs} +4 -4
- package/dist/cli/{legacy-noops-PV5AWTIZ.js → legacy-noops-W6UWORVY.js} +7 -7
- package/dist/cli/{monitors-43R6CUFK.mjs → monitors-LEGM63T3.mjs} +5 -5
- package/dist/cli/{monitors-DVFEJHQT.js → monitors-R32SKFE3.js} +86 -86
- package/dist/cli/{org-X5WSLJRD.mjs → org-RBIBSVP3.mjs} +5 -5
- package/dist/cli/{org-BGCB45VI.js → org-RYRHB22V.js} +61 -61
- package/dist/cli/{play-OFO6XZ5L.mjs → play-FMPNHLXU.mjs} +11 -11
- package/dist/cli/play-GDDOUU3I.js +153 -0
- package/dist/cli/{providers-L2MPYA3E.mjs → providers-5JHHZWMF.mjs} +5 -5
- package/dist/cli/{providers-RJYHQC4J.js → providers-WAUWYRTK.js} +8 -8
- package/dist/cli/{quickstart-NHFMGZ3B.mjs → quickstart-RYKNMAFN.mjs} +5 -5
- package/dist/cli/{quickstart-E6OWYYMT.js → quickstart-V5LHMW2X.js} +7 -7
- package/dist/cli/{search-IPTZAOUE.mjs → search-B2BB2MHO.mjs} +6 -6
- package/dist/cli/search-RQLY5D2A.js +26 -0
- package/dist/cli/{secrets-6LD4CA2X.js → secrets-BEAESK2H.js} +14 -14
- package/dist/cli/{secrets-TCOPPNXR.mjs → secrets-XJOXWVUG.mjs} +5 -5
- package/dist/cli/{sessions-QV4LUKEP.js → sessions-ELBTWKLS.js} +5 -5
- package/dist/cli/{sessions-D4JETMAW.mjs → sessions-VRDJCPKE.mjs} +4 -4
- package/dist/cli/{settings-IVJPCORG.mjs → settings-QEL2SD7N.mjs} +8 -8
- package/dist/cli/{settings-JOYKXSY7.js → settings-V5RI4UWE.js} +75 -75
- package/dist/cli/{setup-MIJZTYMH.js → setup-CS3IACGU.js} +43 -43
- package/dist/cli/{setup-WCKQK7FE.mjs → setup-FNVP5XQR.mjs} +8 -8
- package/dist/cli/{skills-GYWMUDDF.mjs → skills-73PM6I6F.mjs} +4 -4
- package/dist/cli/skills-OH3X3OUA.js +28 -0
- package/dist/cli/tools-BY6D7M4I.js +40 -0
- package/dist/cli/{tools-ILYNEPGQ.mjs → tools-N2H5HJYP.mjs} +8 -8
- package/dist/cli/{update-P3VIHMC6.mjs → update-MUMZ6L7J.mjs} +6 -6
- package/dist/cli/update-PEGDRQ3G.js +28 -0
- package/dist/cli/{workflow-A6ID4C6N.mjs → workflow-WY2CL73A.mjs} +9 -9
- package/dist/cli/{workflow-YWKK3A4X.js → workflow-X66V6L3H.js} +19 -19
- package/dist/index.js +13 -13
- package/dist/index.mjs +12 -12
- package/dist/install-integrity.json +80 -74
- 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/package.json +6 -1
- package/dist/cli/auth-AABYKR2S.js +0 -31
- package/dist/cli/client-3DYV3HZ4.js +0 -20
- package/dist/cli/git-VESXOJ4M.js +0 -23
- package/dist/cli/play-ZO4HDGMC.js +0 -153
- package/dist/cli/search-2FJA6OH4.js +0 -26
- package/dist/cli/skills-JL4J5CII.js +0 -28
- package/dist/cli/tools-ZOKG4AX4.js +0 -40
- package/dist/cli/update-WUMDEAEE.js +0 -28
|
@@ -2,9 +2,6 @@ import {
|
|
|
2
2
|
apiErrorCodeFromResponse,
|
|
3
3
|
apiErrorMessage
|
|
4
4
|
} from "./chunk-DLIRSHV6.mjs";
|
|
5
|
-
import {
|
|
6
|
-
SDK_RELEASE
|
|
7
|
-
} from "./chunk-N47R7S3E.mjs";
|
|
8
5
|
import {
|
|
9
6
|
DeeplineError,
|
|
10
7
|
TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
|
|
@@ -15,6 +12,9 @@ import {
|
|
|
15
12
|
isProviderTransientFailure,
|
|
16
13
|
serializeToolExecutionFailure
|
|
17
14
|
} from "./chunk-NXGCO4JB.mjs";
|
|
15
|
+
import {
|
|
16
|
+
SDK_RELEASE
|
|
17
|
+
} from "./chunk-SJY4SUCH.mjs";
|
|
18
18
|
|
|
19
19
|
// src/errors.ts
|
|
20
20
|
var CustomerDbQueryOutcomeUnknownError = class extends DeeplineError {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkLOSZZCERjs = require('./chunk-LOSZZCER.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk5PJ6XYRVjs = require('./chunk-5PJ6XYRV.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkBVPN57ADjs = require('./chunk-BVPN57AD.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkUZQWPQ6Vjs = require('./chunk-UZQWPQ6V.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
|
|
|
489
489
|
}
|
|
490
490
|
function resolveNpmGlobalPrefix(env) {
|
|
491
491
|
try {
|
|
492
|
-
const plan =
|
|
492
|
+
const plan = _chunk5PJ6XYRVjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
|
|
493
493
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
494
494
|
encoding: "utf8",
|
|
495
495
|
env,
|
|
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
545
545
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
546
546
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
547
547
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
548
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
549
|
-
const npmGlobalInstallFlags =
|
|
548
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkLOSZZCERjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunkLOSZZCERjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
550
550
|
const args = installPrefix ? [
|
|
551
551
|
"install",
|
|
552
552
|
"-g",
|
|
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
packageSpec
|
|
557
557
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
558
558
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
559
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
559
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkUZQWPQ6Vjs.autoDetectBaseUrl.call(void 0, )
|
|
560
560
|
);
|
|
561
561
|
return {
|
|
562
562
|
kind: "npm-global",
|
|
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
703
703
|
function runCommand(command, args, env = process.env) {
|
|
704
704
|
return new Promise((resolveResult) => {
|
|
705
705
|
let output = "";
|
|
706
|
-
const plan =
|
|
706
|
+
const plan = _chunk5PJ6XYRVjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
707
707
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
708
708
|
stdio: ["inherit", "pipe", "pipe"],
|
|
709
709
|
shell: plan.shell,
|
|
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1079
1079
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1080
1080
|
}
|
|
1081
1081
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1082
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1082
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkUZQWPQ6Vjs.autoDetectBaseUrl));
|
|
1083
1083
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1084
1084
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1085
1085
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1086
1086
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1087
1087
|
process.stdout.write = (() => true);
|
|
1088
1088
|
try {
|
|
1089
|
-
const exitCode = await
|
|
1089
|
+
const exitCode = await _chunk5PJ6XYRVjs.runSkillsCommand.call(void 0, { json: true });
|
|
1090
1090
|
if (exitCode !== 0) {
|
|
1091
1091
|
throw new Error(
|
|
1092
1092
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1157
1157
|
]
|
|
1158
1158
|
};
|
|
1159
1159
|
if (options.json && !options.executeWithJson) {
|
|
1160
|
-
|
|
1160
|
+
_chunkBVPN57ADjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1161
1161
|
return 0;
|
|
1162
1162
|
}
|
|
1163
1163
|
if (options.printCommand) {
|
|
1164
|
-
|
|
1164
|
+
_chunkBVPN57ADjs.printCommandEnvelope.call(void 0,
|
|
1165
1165
|
{
|
|
1166
1166
|
...plan,
|
|
1167
1167
|
render: {
|
|
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1174
1174
|
return 0;
|
|
1175
1175
|
}
|
|
1176
1176
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1177
|
-
|
|
1177
|
+
_chunkBVPN57ADjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
}
|
|
1180
1180
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
|
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (options.executeWithJson && options.json) {
|
|
1207
|
-
|
|
1207
|
+
_chunkBVPN57ADjs.printCommandEnvelope.call(void 0,
|
|
1208
1208
|
{
|
|
1209
1209
|
ok: true,
|
|
1210
1210
|
pinnedVersion
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
recentSearchRef,
|
|
13
13
|
registerDeprecatedSearchCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QH6PV7IJ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
extractSummaryFields,
|
|
17
17
|
projectRowOutput,
|
|
@@ -20,10 +20,13 @@ import {
|
|
|
20
20
|
writeCsvOutputFile,
|
|
21
21
|
writeJsonOutputFile
|
|
22
22
|
} from "./chunk-MIMASXO4.mjs";
|
|
23
|
+
import {
|
|
24
|
+
playToolListGetterMode
|
|
25
|
+
} from "./chunk-7E66A24V.mjs";
|
|
23
26
|
import {
|
|
24
27
|
DeeplineClient,
|
|
25
28
|
validateExecutionIdempotencyKey
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-EVPWVNJV.mjs";
|
|
27
30
|
import {
|
|
28
31
|
beginToolExecuteCommand,
|
|
29
32
|
getToolExecuteInvocationId,
|
|
@@ -37,14 +40,11 @@ import {
|
|
|
37
40
|
printJsonError,
|
|
38
41
|
renderCommandEnvelopeText,
|
|
39
42
|
shouldEmitJson
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-EL62MLRD.mjs";
|
|
41
44
|
import {
|
|
42
45
|
resolveConfig,
|
|
43
46
|
sdkCliStateDirPath
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import {
|
|
46
|
-
playToolListGetterMode
|
|
47
|
-
} from "./chunk-7E66A24V.mjs";
|
|
47
|
+
} from "./chunk-VZBNBCEB.mjs";
|
|
48
48
|
import {
|
|
49
49
|
DeeplineError
|
|
50
50
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -1030,7 +1030,7 @@ Examples:
|
|
|
1030
1030
|
process.exitCode = await narrowView();
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
|
-
const { describeAnything } = await import("./describe-
|
|
1033
|
+
const { describeAnything } = await import("./describe-NCUJW2JG.mjs");
|
|
1034
1034
|
process.exitCode = await describeAnything(
|
|
1035
1035
|
toolId,
|
|
1036
1036
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-GAMFK2ZP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EL62MLRD.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
sdkCliStateDirPath,
|
|
23
23
|
skillsAgentPathSegment,
|
|
24
24
|
writeSdkSkillsLocalVersion
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VZBNBCEB.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DeeplineError
|
|
28
28
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -81,6 +81,10 @@ var DEFAULT_V1_SKILL_NAMES = [
|
|
|
81
81
|
"clay-to-deepline",
|
|
82
82
|
"deepline-analytics",
|
|
83
83
|
"deepline-engine",
|
|
84
|
+
// Retired: its guidance lives in `feedback send --help` and `sessions send
|
|
85
|
+
// --help`. Kept as a stub because installed CLIs list it and refuse to
|
|
86
|
+
// sync any skill when the published index lacks a listed name. Move to
|
|
87
|
+
// LEGACY_SKILL_NAMES_TO_REMOVE once those CLIs are out of the field.
|
|
84
88
|
"deepline-feedback",
|
|
85
89
|
"deepline-gtm",
|
|
86
90
|
"deepline-plays",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkKIRDHNX5js = require('./chunk-KIRDHNX5.js');
|
|
7
|
+
require('./chunk-S6R3OX7B.js');
|
|
8
|
+
require('./chunk-LA46MMTL.js');
|
|
9
|
+
require('./chunk-UZQWPQ6V.js');
|
|
10
|
+
require('./chunk-XNYIZMNQ.js');
|
|
11
|
+
require('./chunk-7P5AA3SN.js');
|
|
12
|
+
require('./chunk-OVUDXZCK.js');
|
|
13
|
+
require('./chunk-OG64RBAC.js');
|
|
14
|
+
require('./chunk-COGTRVWW.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.DeeplineClient = _chunkKIRDHNX5js.DeeplineClient; exports.MONITOR_JOB_PHASES = _chunkKIRDHNX5js.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkKIRDHNX5js.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkKIRDHNX5js.MONITOR_JOB_STATES;
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
MONITOR_JOB_PHASES,
|
|
4
4
|
MONITOR_JOB_RECONCILIATION_STATES,
|
|
5
5
|
MONITOR_JOB_STATES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EVPWVNJV.mjs";
|
|
7
|
+
import "./chunk-6IKARAYD.mjs";
|
|
7
8
|
import "./chunk-CBVIJSHF.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-VZBNBCEB.mjs";
|
|
9
10
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-N47R7S3E.mjs";
|
|
11
|
-
import "./chunk-6IKARAYD.mjs";
|
|
12
11
|
import "./chunk-NXGCO4JB.mjs";
|
|
12
|
+
import "./chunk-SJY4SUCH.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
14
14
|
import "./chunk-KRD6H754.mjs";
|
|
15
15
|
export {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/// <reference path="./text-imports.d.ts" />
|
|
2
|
+
/**
|
|
3
|
+
* The command explanations, and the only place they are written down.
|
|
4
|
+
*
|
|
5
|
+
* `deepline <command> --help` appends the `core` text after commander's own
|
|
6
|
+
* help output, or `core` and then `verbose` the first time that command's help
|
|
7
|
+
* is read in an agent session (see help-seen.ts); `--help --verbose` always
|
|
8
|
+
* appends both; `--help --quiet` appends nothing. The MCP server serves the
|
|
9
|
+
* same text through the `deepline_help` tool, so a restricted client reads the
|
|
10
|
+
* identical explanation an agent with a shell would see.
|
|
11
|
+
*
|
|
12
|
+
* Every entry answers, in this order: what the command is for, when to reach
|
|
13
|
+
* for it, exactly what input it accepts, exactly what it prints, whether it
|
|
14
|
+
* spends credits, and what not to do with it. Agents guess input and output
|
|
15
|
+
* formats when a help page leaves them out, and then write parsing code for
|
|
16
|
+
* cases that do not exist; keep those two sections literal.
|
|
17
|
+
*
|
|
18
|
+
* Keys are the command path without the `deepline` prefix. The
|
|
19
|
+
* `command-docs.test.ts` suite fails when a key names a command that does not
|
|
20
|
+
* exist and when a golden-path command has no entry, so a rename or removal
|
|
21
|
+
* cannot leave stale text behind.
|
|
22
|
+
*/
|
|
23
|
+
type CommandDoc = {
|
|
24
|
+
/** Shown by default at the end of `--help`. */
|
|
25
|
+
core: string;
|
|
26
|
+
/** Shown after `core` with `--help --verbose`. */
|
|
27
|
+
verbose?: string;
|
|
28
|
+
};
|
|
29
|
+
type HelpDetail = 'quiet' | 'core' | 'verbose';
|
|
30
|
+
declare const COMMAND_DOCS: Record<string, CommandDoc>;
|
|
31
|
+
/** The command path (without the program name) for a commander command. */
|
|
32
|
+
declare function commandDocKey(command: {
|
|
33
|
+
name(): string;
|
|
34
|
+
parent: {
|
|
35
|
+
name(): string;
|
|
36
|
+
parent: unknown;
|
|
37
|
+
} | null;
|
|
38
|
+
}): string;
|
|
39
|
+
declare function helpDetailFromArgv(argv: readonly string[]): HelpDetail;
|
|
40
|
+
/**
|
|
41
|
+
* The explanation text for one command at one detail level, or '' when the
|
|
42
|
+
* level is quiet or the command has no entry. The returned text is complete:
|
|
43
|
+
* it ends with the pointer to the other detail level.
|
|
44
|
+
*/
|
|
45
|
+
declare function renderCommandExplanation(key: string, detail: HelpDetail, options?: {
|
|
46
|
+
pointer?: boolean;
|
|
47
|
+
firstRead?: boolean;
|
|
48
|
+
}): string;
|
|
49
|
+
|
|
50
|
+
export { COMMAND_DOCS, type CommandDoc, type HelpDetail, commandDocKey, helpDetailFromArgv, renderCommandExplanation };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/// <reference path="./text-imports.d.ts" />
|
|
2
|
+
/**
|
|
3
|
+
* The command explanations, and the only place they are written down.
|
|
4
|
+
*
|
|
5
|
+
* `deepline <command> --help` appends the `core` text after commander's own
|
|
6
|
+
* help output, or `core` and then `verbose` the first time that command's help
|
|
7
|
+
* is read in an agent session (see help-seen.ts); `--help --verbose` always
|
|
8
|
+
* appends both; `--help --quiet` appends nothing. The MCP server serves the
|
|
9
|
+
* same text through the `deepline_help` tool, so a restricted client reads the
|
|
10
|
+
* identical explanation an agent with a shell would see.
|
|
11
|
+
*
|
|
12
|
+
* Every entry answers, in this order: what the command is for, when to reach
|
|
13
|
+
* for it, exactly what input it accepts, exactly what it prints, whether it
|
|
14
|
+
* spends credits, and what not to do with it. Agents guess input and output
|
|
15
|
+
* formats when a help page leaves them out, and then write parsing code for
|
|
16
|
+
* cases that do not exist; keep those two sections literal.
|
|
17
|
+
*
|
|
18
|
+
* Keys are the command path without the `deepline` prefix. The
|
|
19
|
+
* `command-docs.test.ts` suite fails when a key names a command that does not
|
|
20
|
+
* exist and when a golden-path command has no entry, so a rename or removal
|
|
21
|
+
* cannot leave stale text behind.
|
|
22
|
+
*/
|
|
23
|
+
type CommandDoc = {
|
|
24
|
+
/** Shown by default at the end of `--help`. */
|
|
25
|
+
core: string;
|
|
26
|
+
/** Shown after `core` with `--help --verbose`. */
|
|
27
|
+
verbose?: string;
|
|
28
|
+
};
|
|
29
|
+
type HelpDetail = 'quiet' | 'core' | 'verbose';
|
|
30
|
+
declare const COMMAND_DOCS: Record<string, CommandDoc>;
|
|
31
|
+
/** The command path (without the program name) for a commander command. */
|
|
32
|
+
declare function commandDocKey(command: {
|
|
33
|
+
name(): string;
|
|
34
|
+
parent: {
|
|
35
|
+
name(): string;
|
|
36
|
+
parent: unknown;
|
|
37
|
+
} | null;
|
|
38
|
+
}): string;
|
|
39
|
+
declare function helpDetailFromArgv(argv: readonly string[]): HelpDetail;
|
|
40
|
+
/**
|
|
41
|
+
* The explanation text for one command at one detail level, or '' when the
|
|
42
|
+
* level is quiet or the command has no entry. The returned text is complete:
|
|
43
|
+
* it ends with the pointer to the other detail level.
|
|
44
|
+
*/
|
|
45
|
+
declare function renderCommandExplanation(key: string, detail: HelpDetail, options?: {
|
|
46
|
+
pointer?: boolean;
|
|
47
|
+
firstRead?: boolean;
|
|
48
|
+
}): string;
|
|
49
|
+
|
|
50
|
+
export { COMMAND_DOCS, type CommandDoc, type HelpDetail, commandDocKey, helpDetailFromArgv, renderCommandExplanation };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkQILHWZFPjs = require('./chunk-QILHWZFP.js');
|
|
7
|
+
require('./chunk-COGTRVWW.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.COMMAND_DOCS = _chunkQILHWZFPjs.COMMAND_DOCS; exports.commandDocKey = _chunkQILHWZFPjs.commandDocKey; exports.helpDetailFromArgv = _chunkQILHWZFPjs.helpDetailFromArgv; exports.renderCommandExplanation = _chunkQILHWZFPjs.renderCommandExplanation;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMMAND_DOCS,
|
|
3
|
+
commandDocKey,
|
|
4
|
+
helpDetailFromArgv,
|
|
5
|
+
renderCommandExplanation
|
|
6
|
+
} from "./chunk-QFBHEQCQ.mjs";
|
|
7
|
+
import "./chunk-KRD6H754.mjs";
|
|
8
|
+
export {
|
|
9
|
+
COMMAND_DOCS,
|
|
10
|
+
commandDocKey,
|
|
11
|
+
helpDetailFromArgv,
|
|
12
|
+
renderCommandExplanation
|
|
13
|
+
};
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-EL62MLRD.mjs";
|
|
8
|
+
import "./chunk-VZBNBCEB.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-N47R7S3E.mjs";
|
|
11
10
|
import "./chunk-NXGCO4JB.mjs";
|
|
11
|
+
import "./chunk-SJY4SUCH.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|
|
14
14
|
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkBVPN57ADjs = require('./chunk-BVPN57AD.js');
|
|
8
|
+
require('./chunk-UZQWPQ6V.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
|
-
require('./chunk-SXXUOZRS.js');
|
|
11
10
|
require('./chunk-7P5AA3SN.js');
|
|
11
|
+
require('./chunk-OVUDXZCK.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
14
14
|
|
|
@@ -126,7 +126,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
126
126
|
column.length,
|
|
127
127
|
...rows.map((row) => {
|
|
128
128
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
129
|
-
return (verbose ? value :
|
|
129
|
+
return (verbose ? value : _chunkBVPN57ADjs.clip.call(void 0, value, 42)).length;
|
|
130
130
|
})
|
|
131
131
|
)
|
|
132
132
|
])
|
|
@@ -136,7 +136,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
136
136
|
const body = rows.map(
|
|
137
137
|
(row) => columns.map((column) => {
|
|
138
138
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
139
|
-
const display = verbose ? raw :
|
|
139
|
+
const display = verbose ? raw : _chunkBVPN57ADjs.clip.call(void 0, raw, 42);
|
|
140
140
|
return display.padEnd(widths[column]);
|
|
141
141
|
}).join(" | ")
|
|
142
142
|
);
|
|
@@ -156,7 +156,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
156
156
|
{ exitCode: 2 }
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
|
-
const allRows =
|
|
159
|
+
const allRows = _chunkBVPN57ADjs.readCsvRows.call(void 0, csvPath);
|
|
160
160
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
161
161
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
162
162
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -169,7 +169,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
169
169
|
if (options.summary) {
|
|
170
170
|
const summaries = summarizeColumns(selected, columns);
|
|
171
171
|
if (format === "json") {
|
|
172
|
-
|
|
172
|
+
_chunkBVPN57ADjs.printJson.call(void 0, {
|
|
173
173
|
rows: summaries,
|
|
174
174
|
total_rows: selected.length,
|
|
175
175
|
source_total_rows: allRows.length
|
|
@@ -178,7 +178,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
178
178
|
}
|
|
179
179
|
const displayRows = summaryDisplayRows(summaries);
|
|
180
180
|
if (format === "csv") {
|
|
181
|
-
process.stdout.write(
|
|
181
|
+
process.stdout.write(_chunkBVPN57ADjs.csvStringFromRows.call(void 0, displayRows));
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
184
|
process.stdout.write(
|
|
@@ -193,7 +193,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
if (format === "json") {
|
|
196
|
-
|
|
196
|
+
_chunkBVPN57ADjs.printJson.call(void 0, {
|
|
197
197
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
198
198
|
});
|
|
199
199
|
return;
|
|
@@ -436,7 +436,7 @@ async function handleCsvRenderStart(options) {
|
|
|
436
436
|
if (log) {
|
|
437
437
|
detail = `
|
|
438
438
|
CSV render log:
|
|
439
|
-
${
|
|
439
|
+
${_chunkBVPN57ADjs.clip.call(void 0, log, 2e3)}`;
|
|
440
440
|
}
|
|
441
441
|
} catch (e7) {
|
|
442
442
|
}
|
|
@@ -487,7 +487,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
487
487
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
488
488
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
489
489
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
490
|
-
|
|
490
|
+
_chunkBVPN57ADjs.printCommandEnvelope.call(void 0, payload, {
|
|
491
491
|
json: options.json,
|
|
492
492
|
text: `${lines.join("\n")}
|
|
493
493
|
`
|
|
@@ -523,7 +523,7 @@ async function handleCsvRenderStop(options) {
|
|
|
523
523
|
};
|
|
524
524
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
525
525
|
` : "No running CSV render process found.\n";
|
|
526
|
-
|
|
526
|
+
_chunkBVPN57ADjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
527
527
|
}
|
|
528
528
|
async function handleCsvRender(action, options) {
|
|
529
529
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|