deepline 0.3.192 → 0.3.193
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/cli/index.js +24 -3
- package/dist/cli/index.mjs +24 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +1 -1
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
|
@@ -200,7 +200,7 @@ export const SDK_RELEASE = {
|
|
|
200
200
|
// getters keep their established compatibility behavior.
|
|
201
201
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
202
202
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
203
|
-
version: '0.3.
|
|
203
|
+
version: '0.3.193',
|
|
204
204
|
updateSummary:
|
|
205
205
|
'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.',
|
|
206
206
|
packageCapabilities: {
|
package/dist/cli/index.js
CHANGED
|
@@ -3051,7 +3051,7 @@ var SDK_RELEASE = {
|
|
|
3051
3051
|
// getters keep their established compatibility behavior.
|
|
3052
3052
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
3053
3053
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
3054
|
-
version: "0.3.
|
|
3054
|
+
version: "0.3.193",
|
|
3055
3055
|
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.",
|
|
3056
3056
|
packageCapabilities: {
|
|
3057
3057
|
updatePreferences: 1
|
|
@@ -13342,10 +13342,18 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
13342
13342
|
async function handleTargetStatus(options) {
|
|
13343
13343
|
const client2 = new DeeplineClient();
|
|
13344
13344
|
const payload = await client2.billing.targetStatus();
|
|
13345
|
+
const balanceCommand = "deepline billing balance --json";
|
|
13346
|
+
const recentChargesCommand = "deepline billing usage --limit 5 --json";
|
|
13347
|
+
const exactChargeCommand = "deepline billing usage --request-id <job_id> --json";
|
|
13345
13348
|
printCommandEnvelope(
|
|
13346
13349
|
{
|
|
13347
13350
|
ok: true,
|
|
13348
13351
|
...payload,
|
|
13352
|
+
next: {
|
|
13353
|
+
balance: balanceCommand,
|
|
13354
|
+
recentCharges: recentChargesCommand,
|
|
13355
|
+
chargeByJobId: exactChargeCommand
|
|
13356
|
+
},
|
|
13349
13357
|
render: {
|
|
13350
13358
|
sections: [
|
|
13351
13359
|
{
|
|
@@ -13354,7 +13362,10 @@ async function handleTargetStatus(options) {
|
|
|
13354
13362
|
`Plan: ${payload.plan.name} (${payload.plan.sku})`,
|
|
13355
13363
|
`State: ${payload.state}`,
|
|
13356
13364
|
`Payment: ${payload.payment_state}`,
|
|
13357
|
-
`Automatic recharge: ${payload.recharge_state}
|
|
13365
|
+
`Automatic recharge: ${payload.recharge_state}`,
|
|
13366
|
+
`Balance: ${balanceCommand}`,
|
|
13367
|
+
`Recent charges: ${recentChargesCommand}`,
|
|
13368
|
+
`Charge for a tool job: ${exactChargeCommand}`
|
|
13358
13369
|
]
|
|
13359
13370
|
}
|
|
13360
13371
|
]
|
|
@@ -13822,7 +13833,9 @@ Examples:
|
|
|
13822
13833
|
"after",
|
|
13823
13834
|
"\nAn absent intent is durably retired; an existing operation is returned unchanged.\nThis command never starts a payment. Use the original amount, workspace, and key.\nExample:\n deepline billing top-up-recover 1000 --org-id org_original --idempotency-key original-purchase-key --json\n"
|
|
13824
13835
|
).action(handleTopUpRecover);
|
|
13825
|
-
billing.command("status").description(
|
|
13836
|
+
billing.command("status").description(
|
|
13837
|
+
"Show plan, payment, and recharge state; use usage for charges."
|
|
13838
|
+
).option("--json", "Emit JSON output").action(handleTargetStatus);
|
|
13826
13839
|
billing.command("auto-recharge").description("Inspect and manage automatic Deepline credit recharge.").addHelpText(
|
|
13827
13840
|
"after",
|
|
13828
13841
|
`
|
|
@@ -50465,6 +50478,7 @@ function buildToolExecuteBaseEnvelope(input2) {
|
|
|
50465
50478
|
envelope,
|
|
50466
50479
|
"output"
|
|
50467
50480
|
);
|
|
50481
|
+
const billingLookup = typeof envelope.job_id === "string" && envelope.job_id.trim() ? `deepline billing usage --request-id ${shellQuote6(envelope.job_id)} --json` : null;
|
|
50468
50482
|
const inspectCommand = `deepline tools execute ${input2.toolId} --input ${shellQuote6(JSON.stringify(input2.params))} --json`;
|
|
50469
50483
|
const actions = input2.listConversion ? [
|
|
50470
50484
|
{
|
|
@@ -50480,6 +50494,9 @@ function buildToolExecuteBaseEnvelope(input2) {
|
|
|
50480
50494
|
}
|
|
50481
50495
|
] : []
|
|
50482
50496
|
] : [];
|
|
50497
|
+
if (billingLookup) {
|
|
50498
|
+
actions.push({ label: "charge", command: billingLookup });
|
|
50499
|
+
}
|
|
50483
50500
|
return {
|
|
50484
50501
|
...envelope,
|
|
50485
50502
|
...input2.idempotencyKey ? { idempotency_key: input2.idempotencyKey } : {},
|
|
@@ -50489,6 +50506,7 @@ function buildToolExecuteBaseEnvelope(input2) {
|
|
|
50489
50506
|
...warningMessages.length > 0 ? { warnings: warningMessages } : {},
|
|
50490
50507
|
next: {
|
|
50491
50508
|
inspect: inspectCommand,
|
|
50509
|
+
...billingLookup ? { billing: billingLookup } : {},
|
|
50492
50510
|
...apifyRecovery ?? {},
|
|
50493
50511
|
playDebugging: "When fixing a play getter, inspect returned dataset handles with runs get and export rows with runs export; do not copy CLI preview paths blindly.",
|
|
50494
50512
|
...input2.listConversion ? {
|
|
@@ -50541,6 +50559,7 @@ function buildToolExecuteRowArtifactEnvelope(input2) {
|
|
|
50541
50559
|
void _render;
|
|
50542
50560
|
void _next;
|
|
50543
50561
|
void _local;
|
|
50562
|
+
const billingLookup = isRecord12(input2.baseEnvelope.next) && typeof input2.baseEnvelope.next.billing === "string" ? input2.baseEnvelope.next.billing : null;
|
|
50544
50563
|
return {
|
|
50545
50564
|
...base,
|
|
50546
50565
|
status: typeof base.status === "string" ? base.status : "completed",
|
|
@@ -50583,6 +50602,7 @@ function buildToolExecuteRowArtifactEnvelope(input2) {
|
|
|
50583
50602
|
},
|
|
50584
50603
|
next: {
|
|
50585
50604
|
inspect: "Re-run with --json only when you need the raw provider/tool response.",
|
|
50605
|
+
...billingLookup ? { billing: billingLookup } : {},
|
|
50586
50606
|
listSourcePath: input2.rowOutput.sourcePath,
|
|
50587
50607
|
expandToPlay: "Use stable map and step keys so reruns are idempotent: completed rows are reused, and only missing or stale work runs again."
|
|
50588
50608
|
},
|
|
@@ -50601,6 +50621,7 @@ function buildToolExecuteRowArtifactEnvelope(input2) {
|
|
|
50601
50621
|
}
|
|
50602
50622
|
],
|
|
50603
50623
|
actions: [
|
|
50624
|
+
...billingLookup ? [{ label: "charge", command: billingLookup }] : [],
|
|
50604
50625
|
{
|
|
50605
50626
|
label: "next",
|
|
50606
50627
|
command: "Move the script into a project folder and expand it into a Deepline play. Use stable map and step keys so reruns are idempotent: completed rows are reused, and only missing or stale work runs again."
|
package/dist/cli/index.mjs
CHANGED
|
@@ -3046,7 +3046,7 @@ var SDK_RELEASE = {
|
|
|
3046
3046
|
// getters keep their established compatibility behavior.
|
|
3047
3047
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
3048
3048
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
3049
|
-
version: "0.3.
|
|
3049
|
+
version: "0.3.193",
|
|
3050
3050
|
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.",
|
|
3051
3051
|
packageCapabilities: {
|
|
3052
3052
|
updatePreferences: 1
|
|
@@ -13349,10 +13349,18 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
13349
13349
|
async function handleTargetStatus(options) {
|
|
13350
13350
|
const client2 = new DeeplineClient();
|
|
13351
13351
|
const payload = await client2.billing.targetStatus();
|
|
13352
|
+
const balanceCommand = "deepline billing balance --json";
|
|
13353
|
+
const recentChargesCommand = "deepline billing usage --limit 5 --json";
|
|
13354
|
+
const exactChargeCommand = "deepline billing usage --request-id <job_id> --json";
|
|
13352
13355
|
printCommandEnvelope(
|
|
13353
13356
|
{
|
|
13354
13357
|
ok: true,
|
|
13355
13358
|
...payload,
|
|
13359
|
+
next: {
|
|
13360
|
+
balance: balanceCommand,
|
|
13361
|
+
recentCharges: recentChargesCommand,
|
|
13362
|
+
chargeByJobId: exactChargeCommand
|
|
13363
|
+
},
|
|
13356
13364
|
render: {
|
|
13357
13365
|
sections: [
|
|
13358
13366
|
{
|
|
@@ -13361,7 +13369,10 @@ async function handleTargetStatus(options) {
|
|
|
13361
13369
|
`Plan: ${payload.plan.name} (${payload.plan.sku})`,
|
|
13362
13370
|
`State: ${payload.state}`,
|
|
13363
13371
|
`Payment: ${payload.payment_state}`,
|
|
13364
|
-
`Automatic recharge: ${payload.recharge_state}
|
|
13372
|
+
`Automatic recharge: ${payload.recharge_state}`,
|
|
13373
|
+
`Balance: ${balanceCommand}`,
|
|
13374
|
+
`Recent charges: ${recentChargesCommand}`,
|
|
13375
|
+
`Charge for a tool job: ${exactChargeCommand}`
|
|
13365
13376
|
]
|
|
13366
13377
|
}
|
|
13367
13378
|
]
|
|
@@ -13829,7 +13840,9 @@ Examples:
|
|
|
13829
13840
|
"after",
|
|
13830
13841
|
"\nAn absent intent is durably retired; an existing operation is returned unchanged.\nThis command never starts a payment. Use the original amount, workspace, and key.\nExample:\n deepline billing top-up-recover 1000 --org-id org_original --idempotency-key original-purchase-key --json\n"
|
|
13831
13842
|
).action(handleTopUpRecover);
|
|
13832
|
-
billing.command("status").description(
|
|
13843
|
+
billing.command("status").description(
|
|
13844
|
+
"Show plan, payment, and recharge state; use usage for charges."
|
|
13845
|
+
).option("--json", "Emit JSON output").action(handleTargetStatus);
|
|
13833
13846
|
billing.command("auto-recharge").description("Inspect and manage automatic Deepline credit recharge.").addHelpText(
|
|
13834
13847
|
"after",
|
|
13835
13848
|
`
|
|
@@ -50612,6 +50625,7 @@ function buildToolExecuteBaseEnvelope(input2) {
|
|
|
50612
50625
|
envelope,
|
|
50613
50626
|
"output"
|
|
50614
50627
|
);
|
|
50628
|
+
const billingLookup = typeof envelope.job_id === "string" && envelope.job_id.trim() ? `deepline billing usage --request-id ${shellQuote6(envelope.job_id)} --json` : null;
|
|
50615
50629
|
const inspectCommand = `deepline tools execute ${input2.toolId} --input ${shellQuote6(JSON.stringify(input2.params))} --json`;
|
|
50616
50630
|
const actions = input2.listConversion ? [
|
|
50617
50631
|
{
|
|
@@ -50627,6 +50641,9 @@ function buildToolExecuteBaseEnvelope(input2) {
|
|
|
50627
50641
|
}
|
|
50628
50642
|
] : []
|
|
50629
50643
|
] : [];
|
|
50644
|
+
if (billingLookup) {
|
|
50645
|
+
actions.push({ label: "charge", command: billingLookup });
|
|
50646
|
+
}
|
|
50630
50647
|
return {
|
|
50631
50648
|
...envelope,
|
|
50632
50649
|
...input2.idempotencyKey ? { idempotency_key: input2.idempotencyKey } : {},
|
|
@@ -50636,6 +50653,7 @@ function buildToolExecuteBaseEnvelope(input2) {
|
|
|
50636
50653
|
...warningMessages.length > 0 ? { warnings: warningMessages } : {},
|
|
50637
50654
|
next: {
|
|
50638
50655
|
inspect: inspectCommand,
|
|
50656
|
+
...billingLookup ? { billing: billingLookup } : {},
|
|
50639
50657
|
...apifyRecovery ?? {},
|
|
50640
50658
|
playDebugging: "When fixing a play getter, inspect returned dataset handles with runs get and export rows with runs export; do not copy CLI preview paths blindly.",
|
|
50641
50659
|
...input2.listConversion ? {
|
|
@@ -50688,6 +50706,7 @@ function buildToolExecuteRowArtifactEnvelope(input2) {
|
|
|
50688
50706
|
void _render;
|
|
50689
50707
|
void _next;
|
|
50690
50708
|
void _local;
|
|
50709
|
+
const billingLookup = isRecord12(input2.baseEnvelope.next) && typeof input2.baseEnvelope.next.billing === "string" ? input2.baseEnvelope.next.billing : null;
|
|
50691
50710
|
return {
|
|
50692
50711
|
...base,
|
|
50693
50712
|
status: typeof base.status === "string" ? base.status : "completed",
|
|
@@ -50730,6 +50749,7 @@ function buildToolExecuteRowArtifactEnvelope(input2) {
|
|
|
50730
50749
|
},
|
|
50731
50750
|
next: {
|
|
50732
50751
|
inspect: "Re-run with --json only when you need the raw provider/tool response.",
|
|
50752
|
+
...billingLookup ? { billing: billingLookup } : {},
|
|
50733
50753
|
listSourcePath: input2.rowOutput.sourcePath,
|
|
50734
50754
|
expandToPlay: "Use stable map and step keys so reruns are idempotent: completed rows are reused, and only missing or stale work runs again."
|
|
50735
50755
|
},
|
|
@@ -50748,6 +50768,7 @@ function buildToolExecuteRowArtifactEnvelope(input2) {
|
|
|
50748
50768
|
}
|
|
50749
50769
|
],
|
|
50750
50770
|
actions: [
|
|
50771
|
+
...billingLookup ? [{ label: "charge", command: billingLookup }] : [],
|
|
50751
50772
|
{
|
|
50752
50773
|
label: "next",
|
|
50753
50774
|
command: "Move the script into a project folder and expand it into a Deepline play. Use stable map and step keys so reruns are idempotent: completed rows are reused, and only missing or stale work runs again."
|
package/dist/index.js
CHANGED
|
@@ -864,7 +864,7 @@ var SDK_RELEASE = {
|
|
|
864
864
|
// getters keep their established compatibility behavior.
|
|
865
865
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
866
866
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
867
|
-
version: "0.3.
|
|
867
|
+
version: "0.3.193",
|
|
868
868
|
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.",
|
|
869
869
|
packageCapabilities: {
|
|
870
870
|
updatePreferences: 1
|
package/dist/index.mjs
CHANGED
|
@@ -768,7 +768,7 @@ var SDK_RELEASE = {
|
|
|
768
768
|
// getters keep their established compatibility behavior.
|
|
769
769
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
770
770
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
771
|
-
version: "0.3.
|
|
771
|
+
version: "0.3.193",
|
|
772
772
|
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.",
|
|
773
773
|
packageCapabilities: {
|
|
774
774
|
updatePreferences: 1
|
package/dist/release.d.mts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.193";
|
|
153
153
|
readonly 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.";
|
|
154
154
|
readonly packageCapabilities: {
|
|
155
155
|
readonly updatePreferences: 1;
|
package/dist/release.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.193";
|
|
153
153
|
readonly 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.";
|
|
154
154
|
readonly packageCapabilities: {
|
|
155
155
|
readonly updatePreferences: 1;
|
package/dist/release.js
CHANGED
|
@@ -74,7 +74,7 @@ var SDK_RELEASE = {
|
|
|
74
74
|
// getters keep their established compatibility behavior.
|
|
75
75
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
76
76
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
77
|
-
version: "0.3.
|
|
77
|
+
version: "0.3.193",
|
|
78
78
|
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.",
|
|
79
79
|
packageCapabilities: {
|
|
80
80
|
updatePreferences: 1
|
package/dist/release.mjs
CHANGED
|
@@ -48,7 +48,7 @@ var SDK_RELEASE = {
|
|
|
48
48
|
// getters keep their established compatibility behavior.
|
|
49
49
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
50
50
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
51
|
-
version: "0.3.
|
|
51
|
+
version: "0.3.193",
|
|
52
52
|
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.",
|
|
53
53
|
packageCapabilities: {
|
|
54
54
|
updatePreferences: 1
|