deepline 0.1.131 → 0.1.133
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/apps/play-runner-workers/src/entry.ts +163 -97
- package/dist/bundling-sources/apps/play-runner-workers/src/runtime/batching.ts +22 -12
- package/dist/bundling-sources/sdk/src/release.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/batch-runtime.ts +30 -23
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +277 -100
- package/dist/cli/index.js +79 -14
- package/dist/cli/index.mjs +79 -14
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -413,10 +413,10 @@ var SDK_RELEASE = {
|
|
|
413
413
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
414
414
|
// the SDK enrich generator's one-second stale policy.
|
|
415
415
|
// 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
|
|
416
|
-
version: "0.1.
|
|
416
|
+
version: "0.1.133",
|
|
417
417
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
418
418
|
supportPolicy: {
|
|
419
|
-
latest: "0.1.
|
|
419
|
+
latest: "0.1.133",
|
|
420
420
|
minimumSupported: "0.1.53",
|
|
421
421
|
deprecatedBelow: "0.1.53",
|
|
422
422
|
commandMinimumSupported: [
|
|
@@ -5027,8 +5027,14 @@ function recentUsageLines(entries) {
|
|
|
5027
5027
|
const op = `${humanize(entry.provider)} ${humanize(entry.operation)}`.trim();
|
|
5028
5028
|
const charge = entry.billing_mode === "no_bill" ? "free" : `${entry.credits ?? 0} cr`;
|
|
5029
5029
|
const state = entry.charge_state === "temporary_hold" ? "temporary hold, awaiting actual usage" : entry.status || "completed";
|
|
5030
|
+
const auditBits = [
|
|
5031
|
+
entry.outcome ? `outcome=${entry.outcome}` : null,
|
|
5032
|
+
entry.pricing_basis ? `priced_by=${entry.pricing_basis}` : null,
|
|
5033
|
+
entry.run_id ? `run=${entry.run_id}` : null,
|
|
5034
|
+
entry.request_id ? `request=${entry.request_id}` : null
|
|
5035
|
+
].filter(Boolean);
|
|
5030
5036
|
lines.push(
|
|
5031
|
-
`${op} | ${charge} | ${state} | ${entry.created_at || "unknown"}`
|
|
5037
|
+
`${op} | ${charge} | ${state}${auditBits.length > 0 ? ` | ${auditBits.join(" | ")}` : ""} | ${entry.created_at || "unknown"}`
|
|
5032
5038
|
);
|
|
5033
5039
|
}
|
|
5034
5040
|
return lines;
|
|
@@ -5045,14 +5051,24 @@ function summarizeLedgerRows(summary, rows) {
|
|
|
5045
5051
|
}
|
|
5046
5052
|
function ledgerApiEntryToRow(entry) {
|
|
5047
5053
|
const metadata = typeof entry.metadata === "object" && entry.metadata !== null ? entry.metadata : {};
|
|
5054
|
+
const audit = typeof entry.billing_audit === "object" && entry.billing_audit !== null ? entry.billing_audit : {};
|
|
5048
5055
|
return {
|
|
5049
5056
|
created_at: entry.created_at ?? "",
|
|
5050
5057
|
delta_credits: entry.delta ?? "",
|
|
5051
5058
|
reason: entry.reason ?? "",
|
|
5052
|
-
provider: metadata.provider ?? "",
|
|
5053
|
-
operation: metadata.operation ?? "",
|
|
5054
|
-
request_id: metadata.requestId ?? metadata.request_id ?? "",
|
|
5055
|
-
run_id: metadata.runId ?? metadata.run_id ?? "",
|
|
5059
|
+
provider: entry.provider ?? audit.provider ?? metadata.provider ?? "",
|
|
5060
|
+
operation: entry.operation ?? audit.operation ?? metadata.operation ?? "",
|
|
5061
|
+
request_id: entry.request_id ?? audit.request_id ?? metadata.requestId ?? metadata.request_id ?? "",
|
|
5062
|
+
run_id: entry.run_id ?? audit.run_id ?? metadata.runId ?? metadata.run_id ?? "",
|
|
5063
|
+
billing_stage: entry.billing_stage ?? audit.billing_stage ?? metadata.billingStage ?? "",
|
|
5064
|
+
charge_state: entry.charge_state ?? audit.charge_state ?? "",
|
|
5065
|
+
billing_mode: entry.billing_mode ?? audit.billing_mode ?? metadata.billingMode ?? metadata.chargeMode ?? "",
|
|
5066
|
+
pricing_model: entry.pricing_model ?? audit.pricing_model ?? metadata.pricingModel ?? "",
|
|
5067
|
+
pricing_basis: entry.pricing_basis ?? audit.pricing_basis ?? "",
|
|
5068
|
+
charge_credits: entry.charge_credits ?? audit.charge_credits ?? "",
|
|
5069
|
+
outcome: entry.outcome ?? audit.outcome ?? "",
|
|
5070
|
+
result_count: entry.result_count ?? audit.result_count ?? "",
|
|
5071
|
+
deepline_rough_usd: entry.deepline_rough_usd ?? "",
|
|
5056
5072
|
api_key_id: entry.api_key_id ?? "",
|
|
5057
5073
|
stripe_session_id: entry.stripe_session_id ?? ""
|
|
5058
5074
|
};
|
|
@@ -5068,6 +5084,15 @@ function ledgerRowsToCsv(rows, header) {
|
|
|
5068
5084
|
"operation",
|
|
5069
5085
|
"request_id",
|
|
5070
5086
|
"run_id",
|
|
5087
|
+
"billing_stage",
|
|
5088
|
+
"charge_state",
|
|
5089
|
+
"billing_mode",
|
|
5090
|
+
"pricing_model",
|
|
5091
|
+
"pricing_basis",
|
|
5092
|
+
"charge_credits",
|
|
5093
|
+
"outcome",
|
|
5094
|
+
"result_count",
|
|
5095
|
+
"deepline_rough_usd",
|
|
5071
5096
|
"api_key_id",
|
|
5072
5097
|
"stripe_session_id"
|
|
5073
5098
|
]
|
|
@@ -5246,6 +5271,7 @@ async function handleLedgerExportAll(options) {
|
|
|
5246
5271
|
for (; ; ) {
|
|
5247
5272
|
const params = new URLSearchParams({ limit: "5000" });
|
|
5248
5273
|
if (cursor !== null) params.set("cursor", cursor);
|
|
5274
|
+
if (options.runId) params.set("run_id", options.runId);
|
|
5249
5275
|
const payload = await http.get(
|
|
5250
5276
|
`/api/v2/billing/ledger?${params.toString()}`
|
|
5251
5277
|
);
|
|
@@ -5273,13 +5299,14 @@ async function handleLedgerExportAll(options) {
|
|
|
5273
5299
|
row_count: summary.row_count,
|
|
5274
5300
|
net_delta_credits: summary.net_delta_credits,
|
|
5275
5301
|
scope: "current_auth_context",
|
|
5302
|
+
...options.runId ? { run_id: options.runId } : {},
|
|
5276
5303
|
render: {
|
|
5277
5304
|
sections: [
|
|
5278
5305
|
{
|
|
5279
5306
|
title: "billing ledger",
|
|
5280
5307
|
lines: [
|
|
5281
5308
|
`Billing ledger written to ${outputPath}`,
|
|
5282
|
-
`${summary.row_count} row(s) exported for the current auth context.`,
|
|
5309
|
+
`${summary.row_count} row(s) exported for the current auth context${options.runId ? ` and run ${options.runId}` : ""}.`,
|
|
5283
5310
|
`Net ledger delta: ${summary.net_delta_credits} Deepline Credits`
|
|
5284
5311
|
]
|
|
5285
5312
|
}
|
|
@@ -5703,6 +5730,7 @@ Notes:
|
|
|
5703
5730
|
Examples:
|
|
5704
5731
|
deepline billing ledger export all
|
|
5705
5732
|
deepline billing ledger export all --output ./ledger.csv
|
|
5733
|
+
deepline billing ledger export all --run-id play/demo/run/abc123
|
|
5706
5734
|
deepline billing ledger export all --json
|
|
5707
5735
|
`
|
|
5708
5736
|
).addCommand(
|
|
@@ -5724,7 +5752,7 @@ Examples:
|
|
|
5724
5752
|
deepline billing ledger export all
|
|
5725
5753
|
deepline billing ledger export all --json
|
|
5726
5754
|
`
|
|
5727
|
-
).option("--output <path>", "Write CSV to an explicit path").option(
|
|
5755
|
+
).option("--output <path>", "Write CSV to an explicit path").option("--run-id <run_id>", "Export ledger rows for one play run.").option(
|
|
5728
5756
|
"--json",
|
|
5729
5757
|
"Emit JSON output. Also automatic when stdout is piped"
|
|
5730
5758
|
).action(handleLedgerExportAll)
|
|
@@ -21770,6 +21798,23 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
21770
21798
|
}
|
|
21771
21799
|
|
|
21772
21800
|
// src/cli/commands/update.ts
|
|
21801
|
+
var NPM_SDK_INSTALL_COMMON_FLAGS = ["--no-audit", "--no-fund"];
|
|
21802
|
+
var NPM_SDK_GLOBAL_INSTALL_FLAGS = [
|
|
21803
|
+
"--no-audit",
|
|
21804
|
+
"--no-fund",
|
|
21805
|
+
"--allow-scripts=esbuild"
|
|
21806
|
+
];
|
|
21807
|
+
var NPM_SDK_SIDECAR_PACKAGE_JSON = `${JSON.stringify(
|
|
21808
|
+
{
|
|
21809
|
+
private: true,
|
|
21810
|
+
allowScripts: {
|
|
21811
|
+
esbuild: true
|
|
21812
|
+
}
|
|
21813
|
+
},
|
|
21814
|
+
null,
|
|
21815
|
+
2
|
|
21816
|
+
)}
|
|
21817
|
+
`;
|
|
21773
21818
|
function posixShellQuote(value) {
|
|
21774
21819
|
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
21775
21820
|
}
|
|
@@ -21787,6 +21832,16 @@ function buildSourceUpdateCommand(sourceRoot) {
|
|
|
21787
21832
|
const cdCommand = process.platform === "win32" ? `cd /d ${quotedRoot}` : `cd ${quotedRoot}`;
|
|
21788
21833
|
return `${cdCommand} && git fetch origin main --tags && git merge --ff-only origin/main`;
|
|
21789
21834
|
}
|
|
21835
|
+
function buildSidecarProjectConfigCommand(versionDir, nodeBin) {
|
|
21836
|
+
const script = [
|
|
21837
|
+
"const fs=require('node:fs');",
|
|
21838
|
+
"const path=require('node:path');",
|
|
21839
|
+
"const dir=process.argv[1];",
|
|
21840
|
+
"fs.mkdirSync(dir,{recursive:true});",
|
|
21841
|
+
`fs.writeFileSync(path.join(dir,'package.json'),${JSON.stringify(NPM_SDK_SIDECAR_PACKAGE_JSON)});`
|
|
21842
|
+
].join("");
|
|
21843
|
+
return `${shellQuote4(nodeBin)} -e ${shellQuote4(script)} ${shellQuote4(versionDir)}`;
|
|
21844
|
+
}
|
|
21790
21845
|
function sidecarStateDir(input2) {
|
|
21791
21846
|
const scope = input2.env.DEEPLINE_CONFIG_SCOPE?.trim();
|
|
21792
21847
|
if (!scope || scope.includes("/") || scope.includes("\\")) {
|
|
@@ -21823,7 +21878,8 @@ function resolvePythonSidecarUpdatePlan(options) {
|
|
|
21823
21878
|
);
|
|
21824
21879
|
const packageSpec = options.packageSpec || "deepline@latest";
|
|
21825
21880
|
const npmCommand = "npm";
|
|
21826
|
-
const
|
|
21881
|
+
const versionDir = (0, import_node_path18.join)(stateDir, "versions", "<version>");
|
|
21882
|
+
const manualCommand = `${buildSidecarProjectConfigCommand(versionDir, nodeBin)} && ${npmCommand} install --prefix ${shellQuote4(versionDir)} ${NPM_SDK_INSTALL_COMMON_FLAGS.map(shellQuote4).join(" ")} ${shellQuote4(packageSpec)}`;
|
|
21827
21883
|
return {
|
|
21828
21884
|
kind: "python-sidecar",
|
|
21829
21885
|
stateDir,
|
|
@@ -21890,7 +21946,14 @@ function resolveUpdatePlan(options = {}) {
|
|
|
21890
21946
|
const command = "npm";
|
|
21891
21947
|
const packageSpec = options.packageSpec || "deepline@latest";
|
|
21892
21948
|
const installPrefix = entrypoint ? inferNpmGlobalPrefixFromEntrypoint(entrypoint) : null;
|
|
21893
|
-
const args = installPrefix ? [
|
|
21949
|
+
const args = installPrefix ? [
|
|
21950
|
+
"install",
|
|
21951
|
+
"-g",
|
|
21952
|
+
"--prefix",
|
|
21953
|
+
installPrefix,
|
|
21954
|
+
...NPM_SDK_GLOBAL_INSTALL_FLAGS,
|
|
21955
|
+
packageSpec
|
|
21956
|
+
] : ["install", "-g", ...NPM_SDK_GLOBAL_INSTALL_FLAGS, packageSpec];
|
|
21894
21957
|
return {
|
|
21895
21958
|
kind: "npm-global",
|
|
21896
21959
|
command,
|
|
@@ -22065,7 +22128,7 @@ async function runPythonSidecarUpdatePlan(plan) {
|
|
|
22065
22128
|
);
|
|
22066
22129
|
(0, import_node_fs15.rmSync)(tempDir, { recursive: true, force: true });
|
|
22067
22130
|
(0, import_node_fs15.mkdirSync)(tempDir, { recursive: true });
|
|
22068
|
-
(0, import_node_fs15.writeFileSync)((0, import_node_path18.join)(tempDir, "package.json"),
|
|
22131
|
+
(0, import_node_fs15.writeFileSync)((0, import_node_path18.join)(tempDir, "package.json"), NPM_SDK_SIDECAR_PACKAGE_JSON);
|
|
22069
22132
|
const env = {
|
|
22070
22133
|
...process.env,
|
|
22071
22134
|
PATH: `${(0, import_node_path18.dirname)(plan.nodeBin)}${process.platform === "win32" ? ";" : ":"}${process.env.PATH ?? ""}`
|
|
@@ -22076,8 +22139,7 @@ async function runPythonSidecarUpdatePlan(plan) {
|
|
|
22076
22139
|
"install",
|
|
22077
22140
|
"--prefix",
|
|
22078
22141
|
tempDir,
|
|
22079
|
-
|
|
22080
|
-
"--no-fund",
|
|
22142
|
+
...NPM_SDK_INSTALL_COMMON_FLAGS,
|
|
22081
22143
|
plan.packageSpec
|
|
22082
22144
|
],
|
|
22083
22145
|
env
|
|
@@ -22677,6 +22739,9 @@ function shouldDeferSkillsSyncForCommand() {
|
|
|
22677
22739
|
const args = process.argv.slice(2);
|
|
22678
22740
|
const command = args[0];
|
|
22679
22741
|
const subcommand = args[1];
|
|
22742
|
+
if (command === "tools" && ["list", "search", "grep", "describe", "get"].includes(subcommand ?? "")) {
|
|
22743
|
+
return true;
|
|
22744
|
+
}
|
|
22680
22745
|
return (command === "play" || command === "plays") && subcommand === "run" && args.includes("--json");
|
|
22681
22746
|
}
|
|
22682
22747
|
function isLegacyNoopInvocation() {
|
package/dist/cli/index.mjs
CHANGED
|
@@ -390,10 +390,10 @@ var SDK_RELEASE = {
|
|
|
390
390
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
391
391
|
// the SDK enrich generator's one-second stale policy.
|
|
392
392
|
// 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
|
|
393
|
-
version: "0.1.
|
|
393
|
+
version: "0.1.133",
|
|
394
394
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
395
395
|
supportPolicy: {
|
|
396
|
-
latest: "0.1.
|
|
396
|
+
latest: "0.1.133",
|
|
397
397
|
minimumSupported: "0.1.53",
|
|
398
398
|
deprecatedBelow: "0.1.53",
|
|
399
399
|
commandMinimumSupported: [
|
|
@@ -5016,8 +5016,14 @@ function recentUsageLines(entries) {
|
|
|
5016
5016
|
const op = `${humanize(entry.provider)} ${humanize(entry.operation)}`.trim();
|
|
5017
5017
|
const charge = entry.billing_mode === "no_bill" ? "free" : `${entry.credits ?? 0} cr`;
|
|
5018
5018
|
const state = entry.charge_state === "temporary_hold" ? "temporary hold, awaiting actual usage" : entry.status || "completed";
|
|
5019
|
+
const auditBits = [
|
|
5020
|
+
entry.outcome ? `outcome=${entry.outcome}` : null,
|
|
5021
|
+
entry.pricing_basis ? `priced_by=${entry.pricing_basis}` : null,
|
|
5022
|
+
entry.run_id ? `run=${entry.run_id}` : null,
|
|
5023
|
+
entry.request_id ? `request=${entry.request_id}` : null
|
|
5024
|
+
].filter(Boolean);
|
|
5019
5025
|
lines.push(
|
|
5020
|
-
`${op} | ${charge} | ${state} | ${entry.created_at || "unknown"}`
|
|
5026
|
+
`${op} | ${charge} | ${state}${auditBits.length > 0 ? ` | ${auditBits.join(" | ")}` : ""} | ${entry.created_at || "unknown"}`
|
|
5021
5027
|
);
|
|
5022
5028
|
}
|
|
5023
5029
|
return lines;
|
|
@@ -5034,14 +5040,24 @@ function summarizeLedgerRows(summary, rows) {
|
|
|
5034
5040
|
}
|
|
5035
5041
|
function ledgerApiEntryToRow(entry) {
|
|
5036
5042
|
const metadata = typeof entry.metadata === "object" && entry.metadata !== null ? entry.metadata : {};
|
|
5043
|
+
const audit = typeof entry.billing_audit === "object" && entry.billing_audit !== null ? entry.billing_audit : {};
|
|
5037
5044
|
return {
|
|
5038
5045
|
created_at: entry.created_at ?? "",
|
|
5039
5046
|
delta_credits: entry.delta ?? "",
|
|
5040
5047
|
reason: entry.reason ?? "",
|
|
5041
|
-
provider: metadata.provider ?? "",
|
|
5042
|
-
operation: metadata.operation ?? "",
|
|
5043
|
-
request_id: metadata.requestId ?? metadata.request_id ?? "",
|
|
5044
|
-
run_id: metadata.runId ?? metadata.run_id ?? "",
|
|
5048
|
+
provider: entry.provider ?? audit.provider ?? metadata.provider ?? "",
|
|
5049
|
+
operation: entry.operation ?? audit.operation ?? metadata.operation ?? "",
|
|
5050
|
+
request_id: entry.request_id ?? audit.request_id ?? metadata.requestId ?? metadata.request_id ?? "",
|
|
5051
|
+
run_id: entry.run_id ?? audit.run_id ?? metadata.runId ?? metadata.run_id ?? "",
|
|
5052
|
+
billing_stage: entry.billing_stage ?? audit.billing_stage ?? metadata.billingStage ?? "",
|
|
5053
|
+
charge_state: entry.charge_state ?? audit.charge_state ?? "",
|
|
5054
|
+
billing_mode: entry.billing_mode ?? audit.billing_mode ?? metadata.billingMode ?? metadata.chargeMode ?? "",
|
|
5055
|
+
pricing_model: entry.pricing_model ?? audit.pricing_model ?? metadata.pricingModel ?? "",
|
|
5056
|
+
pricing_basis: entry.pricing_basis ?? audit.pricing_basis ?? "",
|
|
5057
|
+
charge_credits: entry.charge_credits ?? audit.charge_credits ?? "",
|
|
5058
|
+
outcome: entry.outcome ?? audit.outcome ?? "",
|
|
5059
|
+
result_count: entry.result_count ?? audit.result_count ?? "",
|
|
5060
|
+
deepline_rough_usd: entry.deepline_rough_usd ?? "",
|
|
5045
5061
|
api_key_id: entry.api_key_id ?? "",
|
|
5046
5062
|
stripe_session_id: entry.stripe_session_id ?? ""
|
|
5047
5063
|
};
|
|
@@ -5057,6 +5073,15 @@ function ledgerRowsToCsv(rows, header) {
|
|
|
5057
5073
|
"operation",
|
|
5058
5074
|
"request_id",
|
|
5059
5075
|
"run_id",
|
|
5076
|
+
"billing_stage",
|
|
5077
|
+
"charge_state",
|
|
5078
|
+
"billing_mode",
|
|
5079
|
+
"pricing_model",
|
|
5080
|
+
"pricing_basis",
|
|
5081
|
+
"charge_credits",
|
|
5082
|
+
"outcome",
|
|
5083
|
+
"result_count",
|
|
5084
|
+
"deepline_rough_usd",
|
|
5060
5085
|
"api_key_id",
|
|
5061
5086
|
"stripe_session_id"
|
|
5062
5087
|
]
|
|
@@ -5235,6 +5260,7 @@ async function handleLedgerExportAll(options) {
|
|
|
5235
5260
|
for (; ; ) {
|
|
5236
5261
|
const params = new URLSearchParams({ limit: "5000" });
|
|
5237
5262
|
if (cursor !== null) params.set("cursor", cursor);
|
|
5263
|
+
if (options.runId) params.set("run_id", options.runId);
|
|
5238
5264
|
const payload = await http.get(
|
|
5239
5265
|
`/api/v2/billing/ledger?${params.toString()}`
|
|
5240
5266
|
);
|
|
@@ -5262,13 +5288,14 @@ async function handleLedgerExportAll(options) {
|
|
|
5262
5288
|
row_count: summary.row_count,
|
|
5263
5289
|
net_delta_credits: summary.net_delta_credits,
|
|
5264
5290
|
scope: "current_auth_context",
|
|
5291
|
+
...options.runId ? { run_id: options.runId } : {},
|
|
5265
5292
|
render: {
|
|
5266
5293
|
sections: [
|
|
5267
5294
|
{
|
|
5268
5295
|
title: "billing ledger",
|
|
5269
5296
|
lines: [
|
|
5270
5297
|
`Billing ledger written to ${outputPath}`,
|
|
5271
|
-
`${summary.row_count} row(s) exported for the current auth context.`,
|
|
5298
|
+
`${summary.row_count} row(s) exported for the current auth context${options.runId ? ` and run ${options.runId}` : ""}.`,
|
|
5272
5299
|
`Net ledger delta: ${summary.net_delta_credits} Deepline Credits`
|
|
5273
5300
|
]
|
|
5274
5301
|
}
|
|
@@ -5692,6 +5719,7 @@ Notes:
|
|
|
5692
5719
|
Examples:
|
|
5693
5720
|
deepline billing ledger export all
|
|
5694
5721
|
deepline billing ledger export all --output ./ledger.csv
|
|
5722
|
+
deepline billing ledger export all --run-id play/demo/run/abc123
|
|
5695
5723
|
deepline billing ledger export all --json
|
|
5696
5724
|
`
|
|
5697
5725
|
).addCommand(
|
|
@@ -5713,7 +5741,7 @@ Examples:
|
|
|
5713
5741
|
deepline billing ledger export all
|
|
5714
5742
|
deepline billing ledger export all --json
|
|
5715
5743
|
`
|
|
5716
|
-
).option("--output <path>", "Write CSV to an explicit path").option(
|
|
5744
|
+
).option("--output <path>", "Write CSV to an explicit path").option("--run-id <run_id>", "Export ledger rows for one play run.").option(
|
|
5717
5745
|
"--json",
|
|
5718
5746
|
"Emit JSON output. Also automatic when stdout is piped"
|
|
5719
5747
|
).action(handleLedgerExportAll)
|
|
@@ -21801,6 +21829,23 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
21801
21829
|
}
|
|
21802
21830
|
|
|
21803
21831
|
// src/cli/commands/update.ts
|
|
21832
|
+
var NPM_SDK_INSTALL_COMMON_FLAGS = ["--no-audit", "--no-fund"];
|
|
21833
|
+
var NPM_SDK_GLOBAL_INSTALL_FLAGS = [
|
|
21834
|
+
"--no-audit",
|
|
21835
|
+
"--no-fund",
|
|
21836
|
+
"--allow-scripts=esbuild"
|
|
21837
|
+
];
|
|
21838
|
+
var NPM_SDK_SIDECAR_PACKAGE_JSON = `${JSON.stringify(
|
|
21839
|
+
{
|
|
21840
|
+
private: true,
|
|
21841
|
+
allowScripts: {
|
|
21842
|
+
esbuild: true
|
|
21843
|
+
}
|
|
21844
|
+
},
|
|
21845
|
+
null,
|
|
21846
|
+
2
|
|
21847
|
+
)}
|
|
21848
|
+
`;
|
|
21804
21849
|
function posixShellQuote(value) {
|
|
21805
21850
|
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
21806
21851
|
}
|
|
@@ -21818,6 +21863,16 @@ function buildSourceUpdateCommand(sourceRoot) {
|
|
|
21818
21863
|
const cdCommand = process.platform === "win32" ? `cd /d ${quotedRoot}` : `cd ${quotedRoot}`;
|
|
21819
21864
|
return `${cdCommand} && git fetch origin main --tags && git merge --ff-only origin/main`;
|
|
21820
21865
|
}
|
|
21866
|
+
function buildSidecarProjectConfigCommand(versionDir, nodeBin) {
|
|
21867
|
+
const script = [
|
|
21868
|
+
"const fs=require('node:fs');",
|
|
21869
|
+
"const path=require('node:path');",
|
|
21870
|
+
"const dir=process.argv[1];",
|
|
21871
|
+
"fs.mkdirSync(dir,{recursive:true});",
|
|
21872
|
+
`fs.writeFileSync(path.join(dir,'package.json'),${JSON.stringify(NPM_SDK_SIDECAR_PACKAGE_JSON)});`
|
|
21873
|
+
].join("");
|
|
21874
|
+
return `${shellQuote4(nodeBin)} -e ${shellQuote4(script)} ${shellQuote4(versionDir)}`;
|
|
21875
|
+
}
|
|
21821
21876
|
function sidecarStateDir(input2) {
|
|
21822
21877
|
const scope = input2.env.DEEPLINE_CONFIG_SCOPE?.trim();
|
|
21823
21878
|
if (!scope || scope.includes("/") || scope.includes("\\")) {
|
|
@@ -21854,7 +21909,8 @@ function resolvePythonSidecarUpdatePlan(options) {
|
|
|
21854
21909
|
);
|
|
21855
21910
|
const packageSpec = options.packageSpec || "deepline@latest";
|
|
21856
21911
|
const npmCommand = "npm";
|
|
21857
|
-
const
|
|
21912
|
+
const versionDir = join13(stateDir, "versions", "<version>");
|
|
21913
|
+
const manualCommand = `${buildSidecarProjectConfigCommand(versionDir, nodeBin)} && ${npmCommand} install --prefix ${shellQuote4(versionDir)} ${NPM_SDK_INSTALL_COMMON_FLAGS.map(shellQuote4).join(" ")} ${shellQuote4(packageSpec)}`;
|
|
21858
21914
|
return {
|
|
21859
21915
|
kind: "python-sidecar",
|
|
21860
21916
|
stateDir,
|
|
@@ -21921,7 +21977,14 @@ function resolveUpdatePlan(options = {}) {
|
|
|
21921
21977
|
const command = "npm";
|
|
21922
21978
|
const packageSpec = options.packageSpec || "deepline@latest";
|
|
21923
21979
|
const installPrefix = entrypoint ? inferNpmGlobalPrefixFromEntrypoint(entrypoint) : null;
|
|
21924
|
-
const args = installPrefix ? [
|
|
21980
|
+
const args = installPrefix ? [
|
|
21981
|
+
"install",
|
|
21982
|
+
"-g",
|
|
21983
|
+
"--prefix",
|
|
21984
|
+
installPrefix,
|
|
21985
|
+
...NPM_SDK_GLOBAL_INSTALL_FLAGS,
|
|
21986
|
+
packageSpec
|
|
21987
|
+
] : ["install", "-g", ...NPM_SDK_GLOBAL_INSTALL_FLAGS, packageSpec];
|
|
21925
21988
|
return {
|
|
21926
21989
|
kind: "npm-global",
|
|
21927
21990
|
command,
|
|
@@ -22096,7 +22159,7 @@ async function runPythonSidecarUpdatePlan(plan) {
|
|
|
22096
22159
|
);
|
|
22097
22160
|
rmSync3(tempDir, { recursive: true, force: true });
|
|
22098
22161
|
mkdirSync9(tempDir, { recursive: true });
|
|
22099
|
-
writeFileSync14(join13(tempDir, "package.json"),
|
|
22162
|
+
writeFileSync14(join13(tempDir, "package.json"), NPM_SDK_SIDECAR_PACKAGE_JSON);
|
|
22100
22163
|
const env = {
|
|
22101
22164
|
...process.env,
|
|
22102
22165
|
PATH: `${dirname11(plan.nodeBin)}${process.platform === "win32" ? ";" : ":"}${process.env.PATH ?? ""}`
|
|
@@ -22107,8 +22170,7 @@ async function runPythonSidecarUpdatePlan(plan) {
|
|
|
22107
22170
|
"install",
|
|
22108
22171
|
"--prefix",
|
|
22109
22172
|
tempDir,
|
|
22110
|
-
|
|
22111
|
-
"--no-fund",
|
|
22173
|
+
...NPM_SDK_INSTALL_COMMON_FLAGS,
|
|
22112
22174
|
plan.packageSpec
|
|
22113
22175
|
],
|
|
22114
22176
|
env
|
|
@@ -22708,6 +22770,9 @@ function shouldDeferSkillsSyncForCommand() {
|
|
|
22708
22770
|
const args = process.argv.slice(2);
|
|
22709
22771
|
const command = args[0];
|
|
22710
22772
|
const subcommand = args[1];
|
|
22773
|
+
if (command === "tools" && ["list", "search", "grep", "describe", "get"].includes(subcommand ?? "")) {
|
|
22774
|
+
return true;
|
|
22775
|
+
}
|
|
22711
22776
|
return (command === "play" || command === "plays") && subcommand === "run" && args.includes("--json");
|
|
22712
22777
|
}
|
|
22713
22778
|
function isLegacyNoopInvocation() {
|
package/dist/index.js
CHANGED
|
@@ -284,10 +284,10 @@ var SDK_RELEASE = {
|
|
|
284
284
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
285
285
|
// the SDK enrich generator's one-second stale policy.
|
|
286
286
|
// 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
|
|
287
|
-
version: "0.1.
|
|
287
|
+
version: "0.1.133",
|
|
288
288
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
289
289
|
supportPolicy: {
|
|
290
|
-
latest: "0.1.
|
|
290
|
+
latest: "0.1.133",
|
|
291
291
|
minimumSupported: "0.1.53",
|
|
292
292
|
deprecatedBelow: "0.1.53",
|
|
293
293
|
commandMinimumSupported: [
|
package/dist/index.mjs
CHANGED
|
@@ -206,10 +206,10 @@ var SDK_RELEASE = {
|
|
|
206
206
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
207
207
|
// the SDK enrich generator's one-second stale policy.
|
|
208
208
|
// 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
|
|
209
|
-
version: "0.1.
|
|
209
|
+
version: "0.1.133",
|
|
210
210
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
211
211
|
supportPolicy: {
|
|
212
|
-
latest: "0.1.
|
|
212
|
+
latest: "0.1.133",
|
|
213
213
|
minimumSupported: "0.1.53",
|
|
214
214
|
deprecatedBelow: "0.1.53",
|
|
215
215
|
commandMinimumSupported: [
|