deepline 0.3.366 → 0.3.368
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +5 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -18
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +14 -6
- package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +69 -0
- package/dist/cli/auth-NJ6RE6XQ.js +33 -0
- package/dist/cli/{auth-TZ75C4ZF.mjs → auth-RUWM7VTH.mjs} +4 -4
- package/dist/cli/{billing-HVC2GZIO.js → billing-PLBQKLDK.js} +73 -73
- package/dist/cli/{billing-EWUOK4GO.mjs → billing-WSS57VQY.mjs} +4 -4
- package/dist/cli/{chunk-F3M4MBWP.js → chunk-27QA6Q4G.js} +224 -224
- package/dist/cli/{chunk-EHMD3F4H.js → chunk-2YOKZW46.js} +26 -26
- package/dist/cli/{chunk-Q7EHVVXL.js → chunk-7AWSYT7H.js} +117 -9
- package/dist/cli/{chunk-HWQDC632.mjs → chunk-7PQTQSJY.mjs} +111 -3
- package/dist/cli/{chunk-ACTYDJXL.mjs → chunk-A2OLR6DK.mjs} +2 -2
- package/dist/cli/{chunk-DLKBP5OO.js → chunk-AUWKAVXB.js} +54 -146
- package/dist/cli/{chunk-ZMPLBWCO.js → chunk-BKEYQHJ2.js} +50 -50
- package/dist/cli/{chunk-7CM4UYZQ.js → chunk-DZOEDNSU.js} +9 -9
- package/dist/cli/{chunk-FLDG3DHC.mjs → chunk-ENGMDXHN.mjs} +2 -2
- package/dist/cli/{chunk-HQKAEQYO.mjs → chunk-EZUGGC5A.mjs} +1 -1
- package/dist/cli/{chunk-4TTEGFR2.mjs → chunk-GHZUH33K.mjs} +1 -1
- package/dist/cli/{chunk-NL2SM3PJ.js → chunk-GJO4H3NN.js} +60 -60
- package/dist/cli/{chunk-BLVYVSKP.js → chunk-GTC2KAZQ.js} +4 -4
- package/dist/cli/{chunk-GY2CP5CD.js → chunk-HZT2Y7WB.js} +15 -15
- package/dist/cli/{chunk-B7Z67XDJ.mjs → chunk-IG7OYVS7.mjs} +6 -6
- package/dist/cli/{chunk-6IHGYDQ2.mjs → chunk-LEZWRLB3.mjs} +1 -1
- package/dist/cli/{chunk-4MW7PFKR.js → chunk-NZHVJB2W.js} +2 -2
- package/dist/cli/{chunk-CGQYV3DP.mjs → chunk-OTI7CDLE.mjs} +10 -102
- package/dist/cli/{chunk-34VVYOOS.mjs → chunk-PU53IS6H.mjs} +2 -2
- package/dist/cli/{chunk-QGOX4BEC.mjs → chunk-S3MDB6SI.mjs} +1 -1
- package/dist/cli/{chunk-HN36RO6X.js → chunk-S4Y7B2O3.js} +1 -1
- package/dist/cli/{chunk-WQU6JKI7.js → chunk-SNENR3BL.js} +6 -6
- package/dist/cli/{chunk-HGTB7UDS.mjs → chunk-THO6F53F.mjs} +1 -1
- package/dist/cli/{chunk-POZOZVP4.mjs → chunk-XUMWO4ST.mjs} +4 -4
- package/dist/cli/{chunk-R2KRYCMG.js → chunk-YCJMDCTH.js} +8 -8
- package/dist/cli/{chunk-AA27IFNY.mjs → chunk-ZS2YQ4YK.mjs} +2 -2
- package/dist/cli/{client-XGLW3H5N.mjs → client-JJEEIOIL.mjs} +3 -3
- package/dist/cli/client-UPKWYV32.js +20 -0
- package/dist/cli/{csv-CSRHORRP.mjs → csv-75D36YRA.mjs} +3 -3
- package/dist/cli/{csv-D2FZPBLE.js → csv-EPNNU27J.js} +12 -12
- package/dist/cli/{db-SMPCTNYW.mjs → db-6HYSGMLN.mjs} +4 -4
- package/dist/cli/{db-FBTYUJNE.js → db-SWNKJUU5.js} +29 -29
- package/dist/cli/{describe-O7DAHKCV.mjs → describe-N2KSBPOR.mjs} +8 -8
- package/dist/cli/{describe-YLIQOYIQ.js → describe-XMUHTICA.js} +15 -15
- package/dist/cli/{executions-5WWOQBZA.js → executions-3ESWUDHH.js} +6 -6
- package/dist/cli/{executions-3JT2QJF3.mjs → executions-WHSG2JGN.mjs} +4 -4
- package/dist/cli/{feedback-NLO2YSK4.mjs → feedback-2VHTJXU7.mjs} +3 -3
- package/dist/cli/{feedback-JM2AYBUJ.js → feedback-CGZE7L7A.js} +7 -7
- package/dist/cli/{git-SXG2PCY3.mjs → git-IG4J5OUT.mjs} +4 -4
- package/dist/cli/git-WPEOAE72.js +23 -0
- package/dist/cli/index.js +82 -82
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-7FHORR7V.mjs → legacy-noops-7WXL7PB3.mjs} +4 -4
- package/dist/cli/{legacy-noops-FPP5XP4I.js → legacy-noops-QF7S6JJB.js} +7 -7
- package/dist/cli/{monitors-ZHSUOPCC.js → monitors-6XYT53X6.js} +85 -85
- package/dist/cli/{monitors-Z4R2PECQ.mjs → monitors-QS4QFORU.mjs} +4 -4
- package/dist/cli/{org-SS2INCPG.mjs → org-5IGU7FES.mjs} +4 -4
- package/dist/cli/{org-NQYIPCDY.js → org-NLR3D3M7.js} +64 -64
- package/dist/cli/play-3ECRZYD5.js +153 -0
- package/dist/cli/{play-TNMFBICT.mjs → play-JVENSY4T.mjs} +7 -7
- package/dist/cli/{providers-AXYAEJCA.mjs → providers-RSVO5U4E.mjs} +4 -4
- package/dist/cli/{providers-ZGGKKO2C.js → providers-T4GCIOTW.js} +7 -7
- package/dist/cli/{quickstart-2SLJX4FM.js → quickstart-IHAG5QZ6.js} +5 -5
- package/dist/cli/{quickstart-2O4QL5GW.mjs → quickstart-ZDFOKNYW.mjs} +3 -3
- package/dist/cli/search-RYLADJUK.js +26 -0
- package/dist/cli/{search-BM6PCZM3.mjs → search-ZGEYJSMF.mjs} +5 -5
- package/dist/cli/{secrets-US4VXQHS.js → secrets-DVTEZCPE.js} +13 -13
- package/dist/cli/{secrets-536MUJQU.mjs → secrets-OQZRZBP6.mjs} +4 -4
- package/dist/cli/{sessions-25GZ6Q77.mjs → sessions-XM7PFJL2.mjs} +4 -4
- package/dist/cli/{sessions-EBL2YYVN.js → sessions-XYEG53JJ.js} +5 -5
- package/dist/cli/{settings-LJ5JD3SD.js → settings-NWEBQOX4.js} +74 -74
- package/dist/cli/{settings-CVJFIHPL.mjs → settings-TKXYRYYH.mjs} +7 -7
- package/dist/cli/{setup-X7KWBX3R.mjs → setup-3UD5TDRJ.mjs} +6 -6
- package/dist/cli/{setup-M5CL4OR2.js → setup-JRU6VGFQ.js} +41 -41
- package/dist/cli/{skills-HQS57Z3Z.mjs → skills-GLLMNOCY.mjs} +4 -4
- package/dist/cli/skills-PZQDJJWN.js +28 -0
- package/dist/cli/{tools-RZVJKDMA.mjs → tools-VXXAMH2X.mjs} +6 -6
- package/dist/cli/tools-WYXBAUMT.js +40 -0
- package/dist/cli/{update-7EHG6ZRX.mjs → update-UCGMUUDQ.mjs} +6 -6
- package/dist/cli/update-WM6SOME3.js +28 -0
- package/dist/cli/{workflow-5D32EFY7.mjs → workflow-BGGKNZTG.mjs} +5 -5
- package/dist/cli/{workflow-6EU3N2FH.js → workflow-G2UU7WTU.js} +15 -15
- package/dist/{client-BmKft6Pr.d.mts → client-CjHv4K6D.d.mts} +8 -0
- package/dist/{client-Bra0Nc2D.d.ts → client-rTuhNN-x.d.ts} +8 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +76 -76
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-AV5JNWDX.js +0 -33
- package/dist/cli/client-XVB5TOJ3.js +0 -20
- package/dist/cli/git-7ZQJCYJA.js +0 -23
- package/dist/cli/play-6SFL4F4A.js +0 -153
- package/dist/cli/search-BNQV6EUD.js +0 -26
- package/dist/cli/skills-LSNI3TO5.js +0 -28
- package/dist/cli/tools-TPVFLJDX.js +0 -40
- package/dist/cli/update-TW3326K2.js +0 -28
|
@@ -9,9 +9,11 @@ import {
|
|
|
9
9
|
shellQuote
|
|
10
10
|
} from "./chunk-OVDNJAJN.mjs";
|
|
11
11
|
import {
|
|
12
|
+
Capability,
|
|
13
|
+
observedMaxText,
|
|
12
14
|
recentSearchRef,
|
|
13
15
|
registerDeprecatedSearchCommand
|
|
14
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7PQTQSJY.mjs";
|
|
15
17
|
import {
|
|
16
18
|
extractSummaryFields,
|
|
17
19
|
projectRowOutput,
|
|
@@ -26,7 +28,7 @@ import {
|
|
|
26
28
|
import {
|
|
27
29
|
DeeplineClient,
|
|
28
30
|
validateExecutionIdempotencyKey
|
|
29
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-THO6F53F.mjs";
|
|
30
32
|
import {
|
|
31
33
|
beginToolExecuteCommand,
|
|
32
34
|
getToolExecuteInvocationId,
|
|
@@ -40,11 +42,11 @@ import {
|
|
|
40
42
|
printJsonError,
|
|
41
43
|
renderCommandEnvelopeText,
|
|
42
44
|
shouldEmitJson
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-S3MDB6SI.mjs";
|
|
44
46
|
import {
|
|
45
47
|
resolveConfig,
|
|
46
48
|
sdkCliStateDirPath
|
|
47
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-EZUGGC5A.mjs";
|
|
48
50
|
import {
|
|
49
51
|
DeeplineError
|
|
50
52
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -243,102 +245,6 @@ function arrayField(value, key) {
|
|
|
243
245
|
return Array.isArray(candidate) ? candidate : [];
|
|
244
246
|
}
|
|
245
247
|
|
|
246
|
-
// src/cli/tool-description.ts
|
|
247
|
-
var Capability = class _Capability {
|
|
248
|
-
#catalogEntry;
|
|
249
|
-
constructor(catalogEntry) {
|
|
250
|
-
this.#catalogEntry = catalogEntry;
|
|
251
|
-
}
|
|
252
|
-
static fromCatalogEntry(catalogEntry) {
|
|
253
|
-
return new _Capability(catalogEntry);
|
|
254
|
-
}
|
|
255
|
-
describe() {
|
|
256
|
-
return CapabilityDescription.fromCatalogEntry(this.#catalogEntry);
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
var CapabilityDescription = class _CapabilityDescription {
|
|
260
|
-
#catalogEntry;
|
|
261
|
-
constructor(catalogEntry) {
|
|
262
|
-
this.#catalogEntry = catalogEntry;
|
|
263
|
-
}
|
|
264
|
-
static fromCatalogEntry(catalogEntry) {
|
|
265
|
-
return new _CapabilityDescription(catalogEntry);
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* The customer price already resolved by the catalog. This intentionally
|
|
269
|
-
* omits provider-price fields, even when a catalog Adapter carried them.
|
|
270
|
-
*/
|
|
271
|
-
customerCost() {
|
|
272
|
-
const legacyCost = recordValue(this.#catalogEntry.cost);
|
|
273
|
-
const pricing = recordValue(this.#catalogEntry.pricing);
|
|
274
|
-
const unit = stringValue(pricing.unit);
|
|
275
|
-
const legacyPricingModel = stringValue(
|
|
276
|
-
legacyCost.pricingModel ?? legacyCost.pricing_model
|
|
277
|
-
);
|
|
278
|
-
const pricingModel = unit === "call" ? "fixed" : unit === "result" || unit === "page" ? `per_${unit}` : unit === "usage" ? "provider_usage" : legacyPricingModel;
|
|
279
|
-
const canonicalCredits = pricingNumber(
|
|
280
|
-
pricing,
|
|
281
|
-
"creditsPerUnit",
|
|
282
|
-
"credits_per_unit",
|
|
283
|
-
this.#catalogEntry.deeplineCreditsPerPricingUnit ?? this.#catalogEntry.deepline_credits_per_pricing_unit
|
|
284
|
-
);
|
|
285
|
-
const canonicalUsd = pricingNumber(
|
|
286
|
-
pricing,
|
|
287
|
-
"usdPerUnit",
|
|
288
|
-
"usd_per_unit",
|
|
289
|
-
this.#catalogEntry.deeplineUsdPerPricingUnit ?? this.#catalogEntry.deepline_usd_per_pricing_unit
|
|
290
|
-
);
|
|
291
|
-
const billingSource = stringValue(
|
|
292
|
-
this.#catalogEntry.billingSource ?? this.#catalogEntry.billing_source
|
|
293
|
-
);
|
|
294
|
-
const billingSourceLabel = stringValue(
|
|
295
|
-
this.#catalogEntry.billingSourceLabel ?? this.#catalogEntry.billing_source_label
|
|
296
|
-
);
|
|
297
|
-
const isFree = billingSource === "free";
|
|
298
|
-
return {
|
|
299
|
-
pricingModel: pricingModel || null,
|
|
300
|
-
unit: unit || null,
|
|
301
|
-
displayText: isFree ? "Free" : stringValue(pricing.displayText ?? pricing.display_text),
|
|
302
|
-
summary: isFree ? null : stringValue(pricing.summary),
|
|
303
|
-
billingMode: stringValue(
|
|
304
|
-
legacyCost.billingMode ?? legacyCost.billing_mode
|
|
305
|
-
),
|
|
306
|
-
billingSource,
|
|
307
|
-
billingSourceLabel,
|
|
308
|
-
deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits,
|
|
309
|
-
deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd,
|
|
310
|
-
...pricing.estimatedRange && !isFree && billingSource !== "own_provider_credentials" ? {
|
|
311
|
-
estimatedRange: pricing.estimatedRange,
|
|
312
|
-
details: Array.isArray(pricing.details) ? pricing.details.filter(
|
|
313
|
-
(value) => typeof value === "string"
|
|
314
|
-
) : []
|
|
315
|
-
} : {},
|
|
316
|
-
...pricing.observedReference && !isFree && billingSource !== "own_provider_credentials" ? {
|
|
317
|
-
observedReference: pricing.observedReference,
|
|
318
|
-
details: Array.isArray(pricing.details) ? pricing.details.filter(
|
|
319
|
-
(value) => typeof value === "string"
|
|
320
|
-
) : []
|
|
321
|
-
} : {}
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
function recordValue(value) {
|
|
326
|
-
return value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
327
|
-
}
|
|
328
|
-
function stringValue(value) {
|
|
329
|
-
return typeof value === "string" && value.trim() ? value : null;
|
|
330
|
-
}
|
|
331
|
-
function numberValue(value) {
|
|
332
|
-
return typeof value === "number" && Number.isFinite(value) ? value : null;
|
|
333
|
-
}
|
|
334
|
-
function pricingNumber(pricing, canonicalKey, aliasKey, legacyValue) {
|
|
335
|
-
for (const key of [canonicalKey, aliasKey]) {
|
|
336
|
-
if (Object.prototype.hasOwnProperty.call(pricing, key))
|
|
337
|
-
return numberValue(pricing[key]);
|
|
338
|
-
}
|
|
339
|
-
return numberValue(legacyValue);
|
|
340
|
-
}
|
|
341
|
-
|
|
342
248
|
// src/cli/tool-connection-status.ts
|
|
343
249
|
function toolConnectionStatusMessage(input) {
|
|
344
250
|
if (input.credentialStatus === "requires_connection") {
|
|
@@ -1030,7 +936,7 @@ Examples:
|
|
|
1030
936
|
process.exitCode = await narrowView();
|
|
1031
937
|
return;
|
|
1032
938
|
}
|
|
1033
|
-
const { describeAnything } = await import("./describe-
|
|
939
|
+
const { describeAnything } = await import("./describe-N2KSBPOR.mjs");
|
|
1034
940
|
process.exitCode = await describeAnything(
|
|
1035
941
|
toolId,
|
|
1036
942
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -1587,7 +1493,8 @@ function describedTool(tool, requestedToolId) {
|
|
|
1587
1493
|
cost: [
|
|
1588
1494
|
stringField2(cost, "displayText"),
|
|
1589
1495
|
// "Free (free)" says the same thing twice.
|
|
1590
|
-
billing.toLowerCase() === stringField2(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})
|
|
1496
|
+
billing.toLowerCase() === stringField2(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
|
|
1497
|
+
observedMaxText(cost) && `\u2014 ${observedMaxText(cost)}`
|
|
1591
1498
|
].filter(Boolean).join(" ") || void 0,
|
|
1592
1499
|
guidance: [
|
|
1593
1500
|
...contract.deprecated === true ? [`Deprecated. ${stringField2(deprecation, "message")}`.trim()] : [],
|
|
@@ -1736,6 +1643,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
|
|
|
1736
1643
|
const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
|
|
1737
1644
|
return [
|
|
1738
1645
|
`${options.heading ?? `Pricing: ${toolId}`}: ${price}`,
|
|
1646
|
+
...observedMaxText(cost) ? [` ${observedMaxText(cost)}`] : [],
|
|
1739
1647
|
...cost.observedReference || cost.estimatedRange ? [
|
|
1740
1648
|
...summary ? [` ${summary}`] : [],
|
|
1741
1649
|
...(cost.details ?? []).map((detail) => ` ${detail}`)
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-S3MDB6SI.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-EZUGGC5A.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -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.368",
|
|
53
53
|
updateSummary: "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.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGTC2KAZQjs = require('./chunk-GTC2KAZQ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -225,8 +225,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
225
225
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
226
226
|
var defaultBrowserCommandRunner = childProcess;
|
|
227
227
|
function getAuthedHttpClient() {
|
|
228
|
-
const config =
|
|
229
|
-
return { config, http: new (0,
|
|
228
|
+
const config = _chunkGTC2KAZQjs.resolveConfig.call(void 0, );
|
|
229
|
+
return { config, http: new (0, _chunkGTC2KAZQjs.HttpClient)(config) };
|
|
230
230
|
}
|
|
231
231
|
function stableOsUserId() {
|
|
232
232
|
try {
|
|
@@ -566,7 +566,7 @@ function collectLocalEnvInfo() {
|
|
|
566
566
|
os: `${process.platform} ${process.arch}`,
|
|
567
567
|
node_version: process.version,
|
|
568
568
|
home_dir: homeDir,
|
|
569
|
-
agent_runtime:
|
|
569
|
+
agent_runtime: _chunkGTC2KAZQjs.detectAgentRuntime.call(void 0, )
|
|
570
570
|
};
|
|
571
571
|
const env = process.env;
|
|
572
572
|
const optional = {
|
|
@@ -813,9 +813,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
813
813
|
}
|
|
814
814
|
function withAgentCommandContext(value) {
|
|
815
815
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
816
|
-
return
|
|
816
|
+
return _chunkGTC2KAZQjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
817
817
|
...valueRecord,
|
|
818
|
-
command_context:
|
|
818
|
+
command_context: _chunkGTC2KAZQjs.resolveCliCommandContext.call(void 0, )
|
|
819
819
|
} : value;
|
|
820
820
|
}
|
|
821
821
|
function printJson(value, fields) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LEZWRLB3.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ENGMDXHN.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-S3MDB6SI.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EZUGGC5A.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkSNENR3BLjs = require('./chunk-SNENR3BL.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkGTC2KAZQjs = require('./chunk-GTC2KAZQ.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkGTC2KAZQjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
143
143
|
const cwd = process.cwd();
|
|
144
144
|
return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
|
|
145
145
|
(candidate) => sessionStartedInDirectory(candidate, cwd)
|
|
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
|
|
|
448
448
|
return { encodedContent: encoded, needsChunking: true };
|
|
449
449
|
}
|
|
450
450
|
async function uploadPayload(path, payload) {
|
|
451
|
-
const { http } =
|
|
451
|
+
const { http } = _chunkSNENR3BLjs.getAuthedHttpClient.call(void 0, );
|
|
452
452
|
return await http.post(path, payload);
|
|
453
453
|
}
|
|
454
454
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
481
481
|
...options.rating ? { rating: options.rating } : {}
|
|
482
482
|
});
|
|
483
483
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
484
|
-
|
|
484
|
+
_chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
|
|
485
485
|
{
|
|
486
486
|
...response,
|
|
487
487
|
ok: true,
|
|
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
|
|
|
513
513
|
filename: _path.basename.call(void 0, filePath),
|
|
514
514
|
...rating ? { rating } : {}
|
|
515
515
|
});
|
|
516
|
-
|
|
516
|
+
_chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
|
|
517
517
|
{
|
|
518
518
|
...response2,
|
|
519
519
|
ok: true,
|
|
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
|
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
565
|
const sessionIds = built.map((session) => session.sessionId);
|
|
566
|
-
|
|
566
|
+
_chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
|
|
567
567
|
{
|
|
568
568
|
...response,
|
|
569
569
|
ok: true,
|
|
@@ -671,7 +671,7 @@ ${refreshMeta}
|
|
|
671
671
|
</body>
|
|
672
672
|
</html>`;
|
|
673
673
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
674
|
-
|
|
674
|
+
_chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
|
|
675
675
|
{
|
|
676
676
|
ok: true,
|
|
677
677
|
file: outputPath,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-S3MDB6SI.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EZUGGC5A.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -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-THO6F53F.mjs";
|
|
7
7
|
import "./chunk-6IKARAYD.mjs";
|
|
8
8
|
import "./chunk-CBVIJSHF.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-EZUGGC5A.mjs";
|
|
10
10
|
import "./chunk-DLIRSHV6.mjs";
|
|
11
11
|
import "./chunk-NXGCO4JB.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-GHZUH33K.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
14
14
|
import "./chunk-KRD6H754.mjs";
|
|
15
15
|
export {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkDZOEDNSUjs = require('./chunk-DZOEDNSU.js');
|
|
7
|
+
require('./chunk-S6R3OX7B.js');
|
|
8
|
+
require('./chunk-LA46MMTL.js');
|
|
9
|
+
require('./chunk-GTC2KAZQ.js');
|
|
10
|
+
require('./chunk-XNYIZMNQ.js');
|
|
11
|
+
require('./chunk-7P5AA3SN.js');
|
|
12
|
+
require('./chunk-S4Y7B2O3.js');
|
|
13
|
+
require('./chunk-OG64RBAC.js');
|
|
14
|
+
require('./chunk-COGTRVWW.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.DeeplineClient = _chunkDZOEDNSUjs.DeeplineClient; exports.MONITOR_JOB_PHASES = _chunkDZOEDNSUjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkDZOEDNSUjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkDZOEDNSUjs.MONITOR_JOB_STATES;
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-S3MDB6SI.mjs";
|
|
8
|
+
import "./chunk-EZUGGC5A.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
10
|
import "./chunk-NXGCO4JB.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-GHZUH33K.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 _chunkSNENR3BLjs = require('./chunk-SNENR3BL.js');
|
|
8
|
+
require('./chunk-GTC2KAZQ.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
10
|
require('./chunk-7P5AA3SN.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-S4Y7B2O3.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 : _chunkSNENR3BLjs.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 : _chunkSNENR3BLjs.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 = _chunkSNENR3BLjs.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
|
+
_chunkSNENR3BLjs.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(_chunkSNENR3BLjs.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
|
+
_chunkSNENR3BLjs.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
|
+
${_chunkSNENR3BLjs.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
|
+
_chunkSNENR3BLjs.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
|
+
_chunkSNENR3BLjs.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"));
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient,
|
|
6
6
|
planCustomerDbQuery
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-THO6F53F.mjs";
|
|
8
8
|
import "./chunk-6IKARAYD.mjs";
|
|
9
9
|
import "./chunk-CBVIJSHF.mjs";
|
|
10
10
|
import {
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
printCommandEnvelope,
|
|
17
17
|
recordRows,
|
|
18
18
|
shouldEmitJson
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-S3MDB6SI.mjs";
|
|
20
20
|
import {
|
|
21
21
|
CustomerDbQueryOutcomeUnknownError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EZUGGC5A.mjs";
|
|
23
23
|
import "./chunk-DLIRSHV6.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError
|
|
26
26
|
} from "./chunk-NXGCO4JB.mjs";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-GHZUH33K.mjs";
|
|
28
28
|
import "./chunk-WZYKRD7T.mjs";
|
|
29
29
|
import "./chunk-KRD6H754.mjs";
|
|
30
30
|
|