deepline 0.3.28 → 0.3.29
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/client.ts +3 -12
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +0 -26
- package/dist/cli/index.js +7 -36
- package/dist/cli/index.mjs +7 -36
- package/dist/index.d.mts +0 -25
- package/dist/index.d.ts +0 -25
- package/dist/index.js +4 -6
- package/dist/index.mjs +4 -6
- package/package.json +1 -1
|
@@ -1958,10 +1958,6 @@ export class DeeplineClient {
|
|
|
1958
1958
|
currentPublishedVersion:
|
|
1959
1959
|
play.currentPublishedVersion ?? play.liveRevision?.version ?? null,
|
|
1960
1960
|
latestRunId: play.latestRunId ?? detail.latestRuns[0]?.workflowId ?? null,
|
|
1961
|
-
...(play.runtimeLimit ? { runtimeLimit: play.runtimeLimit } : {}),
|
|
1962
|
-
...(play.activeScheduledPlays
|
|
1963
|
-
? { activeScheduledPlays: play.activeScheduledPlays }
|
|
1964
|
-
: {}),
|
|
1965
1961
|
};
|
|
1966
1962
|
}
|
|
1967
1963
|
|
|
@@ -4149,17 +4145,12 @@ export class DeeplineClient {
|
|
|
4149
4145
|
*/
|
|
4150
4146
|
async getPlay(
|
|
4151
4147
|
name: string,
|
|
4152
|
-
options?: {
|
|
4153
|
-
source?: 'working' | 'live' | `version:${number}`;
|
|
4154
|
-
guidance?: boolean;
|
|
4155
|
-
},
|
|
4148
|
+
options?: { source?: 'working' | 'live' | `version:${number}` },
|
|
4156
4149
|
): Promise<PlayDetail> {
|
|
4157
4150
|
const encodedName = encodeURIComponent(name);
|
|
4158
4151
|
const query = options?.source
|
|
4159
4152
|
? `?include=source&revision=${encodeURIComponent(options.source)}`
|
|
4160
|
-
:
|
|
4161
|
-
? '?include=guidance'
|
|
4162
|
-
: '';
|
|
4153
|
+
: '';
|
|
4163
4154
|
return this.http.get<PlayDetail>(`/api/v2/plays/${encodedName}${query}`);
|
|
4164
4155
|
}
|
|
4165
4156
|
|
|
@@ -4173,7 +4164,7 @@ export class DeeplineClient {
|
|
|
4173
4164
|
name: string,
|
|
4174
4165
|
options?: { compact?: boolean },
|
|
4175
4166
|
): Promise<PlayDescription> {
|
|
4176
|
-
const detail = await this.getPlay(name
|
|
4167
|
+
const detail = await this.getPlay(name);
|
|
4177
4168
|
return this.summarizePlayDetail(detail, options);
|
|
4178
4169
|
}
|
|
4179
4170
|
|
|
@@ -192,7 +192,7 @@ export const SDK_RELEASE = {
|
|
|
192
192
|
// 0.3.0 introduces raw-v2: complete scrubbed provider responses are
|
|
193
193
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
194
194
|
// getters keep their established compatibility behavior.
|
|
195
|
-
version: '0.3.
|
|
195
|
+
version: '0.3.29',
|
|
196
196
|
updateSummary:
|
|
197
197
|
'New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.',
|
|
198
198
|
contracts: {
|
|
@@ -970,24 +970,6 @@ export interface PlayRevisionSummary {
|
|
|
970
970
|
isWorking?: boolean;
|
|
971
971
|
}
|
|
972
972
|
|
|
973
|
-
/** Effective runtime limits stored with the selected immutable Play revision. */
|
|
974
|
-
export interface PlayRuntimeLimit {
|
|
975
|
-
timeoutSeconds: number;
|
|
976
|
-
memoryGiB: number;
|
|
977
|
-
cpu: number;
|
|
978
|
-
diskGiB: number;
|
|
979
|
-
/** `live` is what named runs execute; `working` is shown only before first publish. */
|
|
980
|
-
source: 'live' | 'working';
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
/** Read-only scheduled-Play capacity guidance for a Play with a cron trigger. */
|
|
984
|
-
export interface PlayScheduledCapacity {
|
|
985
|
-
used: number;
|
|
986
|
-
limit: number;
|
|
987
|
-
remaining: number;
|
|
988
|
-
approachingLimit: boolean;
|
|
989
|
-
}
|
|
990
|
-
|
|
991
973
|
/**
|
|
992
974
|
* Aggregate row-processing stats for a play's sheet.
|
|
993
975
|
*/
|
|
@@ -1087,10 +1069,6 @@ export interface PlayDefinitionDetail {
|
|
|
1087
1069
|
liveRevision?: PlayRevisionSummary | null;
|
|
1088
1070
|
/** `true` if the working revision differs from the live revision. */
|
|
1089
1071
|
isDraftDirty?: boolean;
|
|
1090
|
-
/** Effective sandbox limit from the live revision, or the working draft before first publish. */
|
|
1091
|
-
runtimeLimit?: PlayRuntimeLimit | null;
|
|
1092
|
-
/** Present for a Play with a cron trigger. Advisory only; publish remains authoritative. */
|
|
1093
|
-
activeScheduledPlays?: PlayScheduledCapacity | null;
|
|
1094
1072
|
/** Compatibility field for older readers. */
|
|
1095
1073
|
currentPublishedVersion?: number | null;
|
|
1096
1074
|
}
|
|
@@ -1207,10 +1185,6 @@ export interface PlayDescription {
|
|
|
1207
1185
|
};
|
|
1208
1186
|
isDraftDirty?: boolean;
|
|
1209
1187
|
latestRunId?: string | null;
|
|
1210
|
-
/** Effective sandbox limit from the revision named runs use. */
|
|
1211
|
-
runtimeLimit?: PlayRuntimeLimit | null;
|
|
1212
|
-
/** Present for a Play with a cron trigger. Advisory only; publish remains authoritative. */
|
|
1213
|
-
activeScheduledPlays?: PlayScheduledCapacity | null;
|
|
1214
1188
|
}
|
|
1215
1189
|
|
|
1216
1190
|
/**
|
package/dist/cli/index.js
CHANGED
|
@@ -1042,7 +1042,7 @@ var SDK_RELEASE = {
|
|
|
1042
1042
|
// 0.3.0 introduces raw-v2: complete scrubbed provider responses are
|
|
1043
1043
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
1044
1044
|
// getters keep their established compatibility behavior.
|
|
1045
|
-
version: "0.3.
|
|
1045
|
+
version: "0.3.29",
|
|
1046
1046
|
updateSummary: "New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.",
|
|
1047
1047
|
contracts: {
|
|
1048
1048
|
api: {
|
|
@@ -4828,9 +4828,7 @@ var DeeplineClient = class {
|
|
|
4828
4828
|
return {
|
|
4829
4829
|
...this.summarizePlayListItem(play, options),
|
|
4830
4830
|
currentPublishedVersion: play.currentPublishedVersion ?? play.liveRevision?.version ?? null,
|
|
4831
|
-
latestRunId: play.latestRunId ?? detail.latestRuns[0]?.workflowId ?? null
|
|
4832
|
-
...play.runtimeLimit ? { runtimeLimit: play.runtimeLimit } : {},
|
|
4833
|
-
...play.activeScheduledPlays ? { activeScheduledPlays: play.activeScheduledPlays } : {}
|
|
4831
|
+
latestRunId: play.latestRunId ?? detail.latestRuns[0]?.workflowId ?? null
|
|
4834
4832
|
};
|
|
4835
4833
|
}
|
|
4836
4834
|
// ——————————————————————————————————————————————————————————
|
|
@@ -6467,7 +6465,7 @@ var DeeplineClient = class {
|
|
|
6467
6465
|
*/
|
|
6468
6466
|
async getPlay(name, options) {
|
|
6469
6467
|
const encodedName = encodeURIComponent(name);
|
|
6470
|
-
const query = options?.source ? `?include=source&revision=${encodeURIComponent(options.source)}` :
|
|
6468
|
+
const query = options?.source ? `?include=source&revision=${encodeURIComponent(options.source)}` : "";
|
|
6471
6469
|
return this.http.get(`/api/v2/plays/${encodedName}${query}`);
|
|
6472
6470
|
}
|
|
6473
6471
|
/**
|
|
@@ -6477,7 +6475,7 @@ var DeeplineClient = class {
|
|
|
6477
6475
|
* guidance, revision state, and latest run metadata when available.
|
|
6478
6476
|
*/
|
|
6479
6477
|
async describePlay(name, options) {
|
|
6480
|
-
const detail = await this.getPlay(name
|
|
6478
|
+
const detail = await this.getPlay(name);
|
|
6481
6479
|
return this.summarizePlayDetail(detail, options);
|
|
6482
6480
|
}
|
|
6483
6481
|
/**
|
|
@@ -23402,25 +23400,14 @@ function printPlayCheckLimits(limits) {
|
|
|
23402
23400
|
);
|
|
23403
23401
|
}
|
|
23404
23402
|
}
|
|
23405
|
-
function printScheduledPlayCapacity(capacity) {
|
|
23406
|
-
if (!capacity) return;
|
|
23407
|
-
console.log(
|
|
23408
|
-
` scheduled plays: ${capacity.used} / ${capacity.limit} active (${capacity.remaining} available)`
|
|
23409
|
-
);
|
|
23410
|
-
if (capacity.approachingLimit) {
|
|
23411
|
-
console.log(
|
|
23412
|
-
capacity.remaining === 0 ? " warning: publishing a new schedule will be refused; updating this one does not consume another slot" : " warning: this check does not reserve the final slot; publish remains the confirmation"
|
|
23413
|
-
);
|
|
23414
|
-
}
|
|
23415
|
-
}
|
|
23416
23403
|
function formatPlayRuntimeLimit(runtimeLimit) {
|
|
23417
23404
|
if (!runtimeLimit || !Number.isFinite(runtimeLimit.timeoutSeconds)) {
|
|
23418
23405
|
return null;
|
|
23419
23406
|
}
|
|
23420
23407
|
const seconds = runtimeLimit.timeoutSeconds;
|
|
23421
|
-
if (seconds % 3600 === 0) return `${seconds / 3600}
|
|
23422
|
-
if (seconds % 60 === 0) return `${seconds / 60}
|
|
23423
|
-
return `${seconds}
|
|
23408
|
+
if (seconds % 3600 === 0) return `${seconds / 3600}h`;
|
|
23409
|
+
if (seconds % 60 === 0) return `${seconds / 60}m`;
|
|
23410
|
+
return `${seconds}s`;
|
|
23424
23411
|
}
|
|
23425
23412
|
function isRecord10(value) {
|
|
23426
23413
|
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
@@ -23683,8 +23670,6 @@ async function handlePlayCheck(args) {
|
|
|
23683
23670
|
inputSchema: play.inputSchema ?? null,
|
|
23684
23671
|
outputSchema: play.outputSchema ?? null,
|
|
23685
23672
|
staticPipeline: play.staticPipeline ?? null,
|
|
23686
|
-
runtimeLimit: play.runtimeLimit ?? null,
|
|
23687
|
-
activeScheduledPlays: play.activeScheduledPlays ?? null,
|
|
23688
23673
|
note: "Named/prebuilt play contract is available. No run was started."
|
|
23689
23674
|
};
|
|
23690
23675
|
if (options.jsonOutput) {
|
|
@@ -23693,13 +23678,6 @@ async function handlePlayCheck(args) {
|
|
|
23693
23678
|
} else {
|
|
23694
23679
|
console.log(`\u2713 ${result.reference} passed named play contract check`);
|
|
23695
23680
|
console.log(" no run started; no Deepline credits spent");
|
|
23696
|
-
const runtimeLimit = formatPlayRuntimeLimit(result.runtimeLimit);
|
|
23697
|
-
if (runtimeLimit) {
|
|
23698
|
-
console.log(
|
|
23699
|
-
` Runtime limit: ${runtimeLimit} (${result.runtimeLimit?.source ?? "live"})`
|
|
23700
|
-
);
|
|
23701
|
-
}
|
|
23702
|
-
printScheduledPlayCapacity(result.activeScheduledPlays);
|
|
23703
23681
|
if (play.runCommand) console.log(` run: ${play.runCommand}`);
|
|
23704
23682
|
}
|
|
23705
23683
|
return 0;
|
|
@@ -25216,13 +25194,6 @@ function printPlayDescription(play) {
|
|
|
25216
25194
|
if (play.triggerStatus?.blockedReason) {
|
|
25217
25195
|
console.log(` Trigger issue: ${play.triggerStatus.blockedReason}`);
|
|
25218
25196
|
}
|
|
25219
|
-
const runtimeLimit = formatPlayRuntimeLimit(play.runtimeLimit);
|
|
25220
|
-
if (runtimeLimit) {
|
|
25221
|
-
console.log(
|
|
25222
|
-
` Runtime limit: ${runtimeLimit} (${play.runtimeLimit?.source ?? "live"})`
|
|
25223
|
-
);
|
|
25224
|
-
}
|
|
25225
|
-
printScheduledPlayCapacity(play.activeScheduledPlays);
|
|
25226
25197
|
console.log(` Describe: deepline plays describe ${reference} --json`);
|
|
25227
25198
|
console.log(` Run: ${play.runCommand}`);
|
|
25228
25199
|
const cloneEditStarter = play.cloneEditStarter ?? buildCloneEditStarter(play);
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1028,7 +1028,7 @@ var SDK_RELEASE = {
|
|
|
1028
1028
|
// 0.3.0 introduces raw-v2: complete scrubbed provider responses are
|
|
1029
1029
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
1030
1030
|
// getters keep their established compatibility behavior.
|
|
1031
|
-
version: "0.3.
|
|
1031
|
+
version: "0.3.29",
|
|
1032
1032
|
updateSummary: "New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.",
|
|
1033
1033
|
contracts: {
|
|
1034
1034
|
api: {
|
|
@@ -4814,9 +4814,7 @@ var DeeplineClient = class {
|
|
|
4814
4814
|
return {
|
|
4815
4815
|
...this.summarizePlayListItem(play, options),
|
|
4816
4816
|
currentPublishedVersion: play.currentPublishedVersion ?? play.liveRevision?.version ?? null,
|
|
4817
|
-
latestRunId: play.latestRunId ?? detail.latestRuns[0]?.workflowId ?? null
|
|
4818
|
-
...play.runtimeLimit ? { runtimeLimit: play.runtimeLimit } : {},
|
|
4819
|
-
...play.activeScheduledPlays ? { activeScheduledPlays: play.activeScheduledPlays } : {}
|
|
4817
|
+
latestRunId: play.latestRunId ?? detail.latestRuns[0]?.workflowId ?? null
|
|
4820
4818
|
};
|
|
4821
4819
|
}
|
|
4822
4820
|
// ——————————————————————————————————————————————————————————
|
|
@@ -6453,7 +6451,7 @@ var DeeplineClient = class {
|
|
|
6453
6451
|
*/
|
|
6454
6452
|
async getPlay(name, options) {
|
|
6455
6453
|
const encodedName = encodeURIComponent(name);
|
|
6456
|
-
const query = options?.source ? `?include=source&revision=${encodeURIComponent(options.source)}` :
|
|
6454
|
+
const query = options?.source ? `?include=source&revision=${encodeURIComponent(options.source)}` : "";
|
|
6457
6455
|
return this.http.get(`/api/v2/plays/${encodedName}${query}`);
|
|
6458
6456
|
}
|
|
6459
6457
|
/**
|
|
@@ -6463,7 +6461,7 @@ var DeeplineClient = class {
|
|
|
6463
6461
|
* guidance, revision state, and latest run metadata when available.
|
|
6464
6462
|
*/
|
|
6465
6463
|
async describePlay(name, options) {
|
|
6466
|
-
const detail = await this.getPlay(name
|
|
6464
|
+
const detail = await this.getPlay(name);
|
|
6467
6465
|
return this.summarizePlayDetail(detail, options);
|
|
6468
6466
|
}
|
|
6469
6467
|
/**
|
|
@@ -23465,25 +23463,14 @@ function printPlayCheckLimits(limits) {
|
|
|
23465
23463
|
);
|
|
23466
23464
|
}
|
|
23467
23465
|
}
|
|
23468
|
-
function printScheduledPlayCapacity(capacity) {
|
|
23469
|
-
if (!capacity) return;
|
|
23470
|
-
console.log(
|
|
23471
|
-
` scheduled plays: ${capacity.used} / ${capacity.limit} active (${capacity.remaining} available)`
|
|
23472
|
-
);
|
|
23473
|
-
if (capacity.approachingLimit) {
|
|
23474
|
-
console.log(
|
|
23475
|
-
capacity.remaining === 0 ? " warning: publishing a new schedule will be refused; updating this one does not consume another slot" : " warning: this check does not reserve the final slot; publish remains the confirmation"
|
|
23476
|
-
);
|
|
23477
|
-
}
|
|
23478
|
-
}
|
|
23479
23466
|
function formatPlayRuntimeLimit(runtimeLimit) {
|
|
23480
23467
|
if (!runtimeLimit || !Number.isFinite(runtimeLimit.timeoutSeconds)) {
|
|
23481
23468
|
return null;
|
|
23482
23469
|
}
|
|
23483
23470
|
const seconds = runtimeLimit.timeoutSeconds;
|
|
23484
|
-
if (seconds % 3600 === 0) return `${seconds / 3600}
|
|
23485
|
-
if (seconds % 60 === 0) return `${seconds / 60}
|
|
23486
|
-
return `${seconds}
|
|
23471
|
+
if (seconds % 3600 === 0) return `${seconds / 3600}h`;
|
|
23472
|
+
if (seconds % 60 === 0) return `${seconds / 60}m`;
|
|
23473
|
+
return `${seconds}s`;
|
|
23487
23474
|
}
|
|
23488
23475
|
function isRecord10(value) {
|
|
23489
23476
|
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
@@ -23746,8 +23733,6 @@ async function handlePlayCheck(args) {
|
|
|
23746
23733
|
inputSchema: play.inputSchema ?? null,
|
|
23747
23734
|
outputSchema: play.outputSchema ?? null,
|
|
23748
23735
|
staticPipeline: play.staticPipeline ?? null,
|
|
23749
|
-
runtimeLimit: play.runtimeLimit ?? null,
|
|
23750
|
-
activeScheduledPlays: play.activeScheduledPlays ?? null,
|
|
23751
23736
|
note: "Named/prebuilt play contract is available. No run was started."
|
|
23752
23737
|
};
|
|
23753
23738
|
if (options.jsonOutput) {
|
|
@@ -23756,13 +23741,6 @@ async function handlePlayCheck(args) {
|
|
|
23756
23741
|
} else {
|
|
23757
23742
|
console.log(`\u2713 ${result.reference} passed named play contract check`);
|
|
23758
23743
|
console.log(" no run started; no Deepline credits spent");
|
|
23759
|
-
const runtimeLimit = formatPlayRuntimeLimit(result.runtimeLimit);
|
|
23760
|
-
if (runtimeLimit) {
|
|
23761
|
-
console.log(
|
|
23762
|
-
` Runtime limit: ${runtimeLimit} (${result.runtimeLimit?.source ?? "live"})`
|
|
23763
|
-
);
|
|
23764
|
-
}
|
|
23765
|
-
printScheduledPlayCapacity(result.activeScheduledPlays);
|
|
23766
23744
|
if (play.runCommand) console.log(` run: ${play.runCommand}`);
|
|
23767
23745
|
}
|
|
23768
23746
|
return 0;
|
|
@@ -25279,13 +25257,6 @@ function printPlayDescription(play) {
|
|
|
25279
25257
|
if (play.triggerStatus?.blockedReason) {
|
|
25280
25258
|
console.log(` Trigger issue: ${play.triggerStatus.blockedReason}`);
|
|
25281
25259
|
}
|
|
25282
|
-
const runtimeLimit = formatPlayRuntimeLimit(play.runtimeLimit);
|
|
25283
|
-
if (runtimeLimit) {
|
|
25284
|
-
console.log(
|
|
25285
|
-
` Runtime limit: ${runtimeLimit} (${play.runtimeLimit?.source ?? "live"})`
|
|
25286
|
-
);
|
|
25287
|
-
}
|
|
25288
|
-
printScheduledPlayCapacity(play.activeScheduledPlays);
|
|
25289
25260
|
console.log(` Describe: deepline plays describe ${reference} --json`);
|
|
25290
25261
|
console.log(` Run: ${play.runCommand}`);
|
|
25291
25262
|
const cloneEditStarter = play.cloneEditStarter ?? buildCloneEditStarter(play);
|
package/dist/index.d.mts
CHANGED
|
@@ -1072,22 +1072,6 @@ interface PlayRevisionSummary {
|
|
|
1072
1072
|
/** True when this is the newest saved working revision. */
|
|
1073
1073
|
isWorking?: boolean;
|
|
1074
1074
|
}
|
|
1075
|
-
/** Effective runtime limits stored with the selected immutable Play revision. */
|
|
1076
|
-
interface PlayRuntimeLimit {
|
|
1077
|
-
timeoutSeconds: number;
|
|
1078
|
-
memoryGiB: number;
|
|
1079
|
-
cpu: number;
|
|
1080
|
-
diskGiB: number;
|
|
1081
|
-
/** `live` is what named runs execute; `working` is shown only before first publish. */
|
|
1082
|
-
source: 'live' | 'working';
|
|
1083
|
-
}
|
|
1084
|
-
/** Read-only scheduled-Play capacity guidance for a Play with a cron trigger. */
|
|
1085
|
-
interface PlayScheduledCapacity {
|
|
1086
|
-
used: number;
|
|
1087
|
-
limit: number;
|
|
1088
|
-
remaining: number;
|
|
1089
|
-
approachingLimit: boolean;
|
|
1090
|
-
}
|
|
1091
1075
|
/**
|
|
1092
1076
|
* Aggregate row-processing stats for a play's sheet.
|
|
1093
1077
|
*/
|
|
@@ -1184,10 +1168,6 @@ interface PlayDefinitionDetail {
|
|
|
1184
1168
|
liveRevision?: PlayRevisionSummary | null;
|
|
1185
1169
|
/** `true` if the working revision differs from the live revision. */
|
|
1186
1170
|
isDraftDirty?: boolean;
|
|
1187
|
-
/** Effective sandbox limit from the live revision, or the working draft before first publish. */
|
|
1188
|
-
runtimeLimit?: PlayRuntimeLimit | null;
|
|
1189
|
-
/** Present for a Play with a cron trigger. Advisory only; publish remains authoritative. */
|
|
1190
|
-
activeScheduledPlays?: PlayScheduledCapacity | null;
|
|
1191
1171
|
/** Compatibility field for older readers. */
|
|
1192
1172
|
currentPublishedVersion?: number | null;
|
|
1193
1173
|
}
|
|
@@ -1312,10 +1292,6 @@ interface PlayDescription {
|
|
|
1312
1292
|
};
|
|
1313
1293
|
isDraftDirty?: boolean;
|
|
1314
1294
|
latestRunId?: string | null;
|
|
1315
|
-
/** Effective sandbox limit from the revision named runs use. */
|
|
1316
|
-
runtimeLimit?: PlayRuntimeLimit | null;
|
|
1317
|
-
/** Present for a Play with a cron trigger. Advisory only; publish remains authoritative. */
|
|
1318
|
-
activeScheduledPlays?: PlayScheduledCapacity | null;
|
|
1319
1295
|
}
|
|
1320
1296
|
/**
|
|
1321
1297
|
* Complete play detail including definition, recent runs, and sheet state.
|
|
@@ -3542,7 +3518,6 @@ declare class DeeplineClient {
|
|
|
3542
3518
|
*/
|
|
3543
3519
|
getPlay(name: string, options?: {
|
|
3544
3520
|
source?: 'working' | 'live' | `version:${number}`;
|
|
3545
|
-
guidance?: boolean;
|
|
3546
3521
|
}): Promise<PlayDetail>;
|
|
3547
3522
|
/**
|
|
3548
3523
|
* Get a normalized play description suitable for agents and CLIs.
|
package/dist/index.d.ts
CHANGED
|
@@ -1072,22 +1072,6 @@ interface PlayRevisionSummary {
|
|
|
1072
1072
|
/** True when this is the newest saved working revision. */
|
|
1073
1073
|
isWorking?: boolean;
|
|
1074
1074
|
}
|
|
1075
|
-
/** Effective runtime limits stored with the selected immutable Play revision. */
|
|
1076
|
-
interface PlayRuntimeLimit {
|
|
1077
|
-
timeoutSeconds: number;
|
|
1078
|
-
memoryGiB: number;
|
|
1079
|
-
cpu: number;
|
|
1080
|
-
diskGiB: number;
|
|
1081
|
-
/** `live` is what named runs execute; `working` is shown only before first publish. */
|
|
1082
|
-
source: 'live' | 'working';
|
|
1083
|
-
}
|
|
1084
|
-
/** Read-only scheduled-Play capacity guidance for a Play with a cron trigger. */
|
|
1085
|
-
interface PlayScheduledCapacity {
|
|
1086
|
-
used: number;
|
|
1087
|
-
limit: number;
|
|
1088
|
-
remaining: number;
|
|
1089
|
-
approachingLimit: boolean;
|
|
1090
|
-
}
|
|
1091
1075
|
/**
|
|
1092
1076
|
* Aggregate row-processing stats for a play's sheet.
|
|
1093
1077
|
*/
|
|
@@ -1184,10 +1168,6 @@ interface PlayDefinitionDetail {
|
|
|
1184
1168
|
liveRevision?: PlayRevisionSummary | null;
|
|
1185
1169
|
/** `true` if the working revision differs from the live revision. */
|
|
1186
1170
|
isDraftDirty?: boolean;
|
|
1187
|
-
/** Effective sandbox limit from the live revision, or the working draft before first publish. */
|
|
1188
|
-
runtimeLimit?: PlayRuntimeLimit | null;
|
|
1189
|
-
/** Present for a Play with a cron trigger. Advisory only; publish remains authoritative. */
|
|
1190
|
-
activeScheduledPlays?: PlayScheduledCapacity | null;
|
|
1191
1171
|
/** Compatibility field for older readers. */
|
|
1192
1172
|
currentPublishedVersion?: number | null;
|
|
1193
1173
|
}
|
|
@@ -1312,10 +1292,6 @@ interface PlayDescription {
|
|
|
1312
1292
|
};
|
|
1313
1293
|
isDraftDirty?: boolean;
|
|
1314
1294
|
latestRunId?: string | null;
|
|
1315
|
-
/** Effective sandbox limit from the revision named runs use. */
|
|
1316
|
-
runtimeLimit?: PlayRuntimeLimit | null;
|
|
1317
|
-
/** Present for a Play with a cron trigger. Advisory only; publish remains authoritative. */
|
|
1318
|
-
activeScheduledPlays?: PlayScheduledCapacity | null;
|
|
1319
1295
|
}
|
|
1320
1296
|
/**
|
|
1321
1297
|
* Complete play detail including definition, recent runs, and sheet state.
|
|
@@ -3542,7 +3518,6 @@ declare class DeeplineClient {
|
|
|
3542
3518
|
*/
|
|
3543
3519
|
getPlay(name: string, options?: {
|
|
3544
3520
|
source?: 'working' | 'live' | `version:${number}`;
|
|
3545
|
-
guidance?: boolean;
|
|
3546
3521
|
}): Promise<PlayDetail>;
|
|
3547
3522
|
/**
|
|
3548
3523
|
* Get a normalized play description suitable for agents and CLIs.
|
package/dist/index.js
CHANGED
|
@@ -778,7 +778,7 @@ var SDK_RELEASE = {
|
|
|
778
778
|
// 0.3.0 introduces raw-v2: complete scrubbed provider responses are
|
|
779
779
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
780
780
|
// getters keep their established compatibility behavior.
|
|
781
|
-
version: "0.3.
|
|
781
|
+
version: "0.3.29",
|
|
782
782
|
updateSummary: "New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.",
|
|
783
783
|
contracts: {
|
|
784
784
|
api: {
|
|
@@ -4530,9 +4530,7 @@ var DeeplineClient = class {
|
|
|
4530
4530
|
return {
|
|
4531
4531
|
...this.summarizePlayListItem(play, options),
|
|
4532
4532
|
currentPublishedVersion: play.currentPublishedVersion ?? play.liveRevision?.version ?? null,
|
|
4533
|
-
latestRunId: play.latestRunId ?? detail.latestRuns[0]?.workflowId ?? null
|
|
4534
|
-
...play.runtimeLimit ? { runtimeLimit: play.runtimeLimit } : {},
|
|
4535
|
-
...play.activeScheduledPlays ? { activeScheduledPlays: play.activeScheduledPlays } : {}
|
|
4533
|
+
latestRunId: play.latestRunId ?? detail.latestRuns[0]?.workflowId ?? null
|
|
4536
4534
|
};
|
|
4537
4535
|
}
|
|
4538
4536
|
// ——————————————————————————————————————————————————————————
|
|
@@ -6169,7 +6167,7 @@ var DeeplineClient = class {
|
|
|
6169
6167
|
*/
|
|
6170
6168
|
async getPlay(name, options) {
|
|
6171
6169
|
const encodedName = encodeURIComponent(name);
|
|
6172
|
-
const query = options?.source ? `?include=source&revision=${encodeURIComponent(options.source)}` :
|
|
6170
|
+
const query = options?.source ? `?include=source&revision=${encodeURIComponent(options.source)}` : "";
|
|
6173
6171
|
return this.http.get(`/api/v2/plays/${encodedName}${query}`);
|
|
6174
6172
|
}
|
|
6175
6173
|
/**
|
|
@@ -6179,7 +6177,7 @@ var DeeplineClient = class {
|
|
|
6179
6177
|
* guidance, revision state, and latest run metadata when available.
|
|
6180
6178
|
*/
|
|
6181
6179
|
async describePlay(name, options) {
|
|
6182
|
-
const detail = await this.getPlay(name
|
|
6180
|
+
const detail = await this.getPlay(name);
|
|
6183
6181
|
return this.summarizePlayDetail(detail, options);
|
|
6184
6182
|
}
|
|
6185
6183
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -701,7 +701,7 @@ var SDK_RELEASE = {
|
|
|
701
701
|
// 0.3.0 introduces raw-v2: complete scrubbed provider responses are
|
|
702
702
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
703
703
|
// getters keep their established compatibility behavior.
|
|
704
|
-
version: "0.3.
|
|
704
|
+
version: "0.3.29",
|
|
705
705
|
updateSummary: "New raw-v2 tool responses preserve complete scrubbed provider envelopes at toolResponse.rawV2, including JSON:API included resources, links, cursors, and totals. Existing toolResponse.raw and declared getters keep working unchanged.",
|
|
706
706
|
contracts: {
|
|
707
707
|
api: {
|
|
@@ -4453,9 +4453,7 @@ var DeeplineClient = class {
|
|
|
4453
4453
|
return {
|
|
4454
4454
|
...this.summarizePlayListItem(play, options),
|
|
4455
4455
|
currentPublishedVersion: play.currentPublishedVersion ?? play.liveRevision?.version ?? null,
|
|
4456
|
-
latestRunId: play.latestRunId ?? detail.latestRuns[0]?.workflowId ?? null
|
|
4457
|
-
...play.runtimeLimit ? { runtimeLimit: play.runtimeLimit } : {},
|
|
4458
|
-
...play.activeScheduledPlays ? { activeScheduledPlays: play.activeScheduledPlays } : {}
|
|
4456
|
+
latestRunId: play.latestRunId ?? detail.latestRuns[0]?.workflowId ?? null
|
|
4459
4457
|
};
|
|
4460
4458
|
}
|
|
4461
4459
|
// ——————————————————————————————————————————————————————————
|
|
@@ -6092,7 +6090,7 @@ var DeeplineClient = class {
|
|
|
6092
6090
|
*/
|
|
6093
6091
|
async getPlay(name, options) {
|
|
6094
6092
|
const encodedName = encodeURIComponent(name);
|
|
6095
|
-
const query = options?.source ? `?include=source&revision=${encodeURIComponent(options.source)}` :
|
|
6093
|
+
const query = options?.source ? `?include=source&revision=${encodeURIComponent(options.source)}` : "";
|
|
6096
6094
|
return this.http.get(`/api/v2/plays/${encodedName}${query}`);
|
|
6097
6095
|
}
|
|
6098
6096
|
/**
|
|
@@ -6102,7 +6100,7 @@ var DeeplineClient = class {
|
|
|
6102
6100
|
* guidance, revision state, and latest run metadata when available.
|
|
6103
6101
|
*/
|
|
6104
6102
|
async describePlay(name, options) {
|
|
6105
|
-
const detail = await this.getPlay(name
|
|
6103
|
+
const detail = await this.getPlay(name);
|
|
6106
6104
|
return this.summarizePlayDetail(detail, options);
|
|
6107
6105
|
}
|
|
6108
6106
|
/**
|