deepline 0.3.70 → 0.3.72
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 +54 -4
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +162 -62
- package/dist/bundling-sources/shared_libs/play-runtime/log-provenance.ts +116 -4
- package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +4 -1
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +10 -5
- package/dist/cli/index.js +669 -331
- package/dist/cli/index.mjs +625 -281
- package/dist/{compiler-manifest-IkyvsUO-.d.mts → compiler-manifest-CMNgA_JQ.d.mts} +7 -1
- package/dist/{compiler-manifest-IkyvsUO-.d.ts → compiler-manifest-CMNgA_JQ.d.ts} +7 -1
- package/dist/index.d.mts +32 -7
- package/dist/index.d.ts +32 -7
- package/dist/index.js +54 -3
- package/dist/index.mjs +54 -3
- package/dist/install-integrity.json +2 -2
- package/dist/plays/bundle-play-file.d.mts +2 -2
- package/dist/plays/bundle-play-file.d.ts +2 -2
- package/dist/plays/bundle-play-file.mjs +1 -1
- package/package.json +1 -1
|
@@ -1233,6 +1233,29 @@ export type BillingPlansResult = {
|
|
|
1233
1233
|
metrics: BillingMetricEntry[];
|
|
1234
1234
|
};
|
|
1235
1235
|
|
|
1236
|
+
export type WorkspaceCreateResult = {
|
|
1237
|
+
org_id: string;
|
|
1238
|
+
org_name: string;
|
|
1239
|
+
org_slug: string;
|
|
1240
|
+
plan_sku: 'payg-v1';
|
|
1241
|
+
rate_policy_ref: 'payg-rates-v2';
|
|
1242
|
+
operation: {
|
|
1243
|
+
id: string;
|
|
1244
|
+
state: 'completed';
|
|
1245
|
+
replayed: boolean;
|
|
1246
|
+
};
|
|
1247
|
+
request_id?: string;
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
/** Deliberate workspace lifecycle operations. */
|
|
1251
|
+
export type WorkspacesNamespace = {
|
|
1252
|
+
/** Create an additional workspace and provision its active PAYG Contract. */
|
|
1253
|
+
create: (options: {
|
|
1254
|
+
name: string;
|
|
1255
|
+
idempotencyKey: string;
|
|
1256
|
+
}) => Promise<WorkspaceCreateResult>;
|
|
1257
|
+
};
|
|
1258
|
+
|
|
1236
1259
|
/**
|
|
1237
1260
|
* Public billing namespace exposed as `client.billing`.
|
|
1238
1261
|
*
|
|
@@ -1796,10 +1819,7 @@ function playRunStatusFromState(state: PlayLiveStatusState): PlayStatus {
|
|
|
1796
1819
|
}
|
|
1797
1820
|
|
|
1798
1821
|
/**
|
|
1799
|
-
* Low-level client
|
|
1800
|
-
*
|
|
1801
|
-
* Provides typed methods for every API endpoint: tools, plays, auth, and health.
|
|
1802
|
-
* Handles authentication, retries, and localhost failover automatically.
|
|
1822
|
+
* Low-level typed REST client with authentication, retries, and localhost failover.
|
|
1803
1823
|
*
|
|
1804
1824
|
* @example
|
|
1805
1825
|
* ```typescript
|
|
@@ -1826,6 +1846,8 @@ export class DeeplineClient {
|
|
|
1826
1846
|
readonly db: DbNamespace;
|
|
1827
1847
|
/** Billing namespace: subscription status/cancel and invoice history. */
|
|
1828
1848
|
readonly billing: BillingNamespace;
|
|
1849
|
+
/** Workspace lifecycle namespace. */
|
|
1850
|
+
readonly workspaces: WorkspacesNamespace;
|
|
1829
1851
|
/** Monitors namespace: access, catalog, deploy/check, and lifecycle. */
|
|
1830
1852
|
readonly monitors: MonitorsNamespace;
|
|
1831
1853
|
|
|
@@ -1875,6 +1897,9 @@ export class DeeplineClient {
|
|
|
1875
1897
|
transitionPlan: (options) => this.transitionTargetBillingPlan(options),
|
|
1876
1898
|
portalSession: () => this.createTargetBillingPortalSession(),
|
|
1877
1899
|
};
|
|
1900
|
+
this.workspaces = {
|
|
1901
|
+
create: (options) => this.createWorkspace(options),
|
|
1902
|
+
};
|
|
1878
1903
|
this.monitors = {
|
|
1879
1904
|
status: () => this.getMonitorsAccess(),
|
|
1880
1905
|
available: (toolIdOrOptions, options) =>
|
|
@@ -4765,6 +4790,31 @@ export class DeeplineClient {
|
|
|
4765
4790
|
return response.data;
|
|
4766
4791
|
}
|
|
4767
4792
|
|
|
4793
|
+
/** Create an additional workspace through the durable PAYG workflow. */
|
|
4794
|
+
async createWorkspace(options: {
|
|
4795
|
+
name: string;
|
|
4796
|
+
idempotencyKey: string;
|
|
4797
|
+
}): Promise<WorkspaceCreateResult> {
|
|
4798
|
+
const idempotencyKey = requireTargetBillingIdempotencyKey(
|
|
4799
|
+
options.idempotencyKey,
|
|
4800
|
+
);
|
|
4801
|
+
const response = await this.http.post<{
|
|
4802
|
+
data: Omit<WorkspaceCreateResult, 'operation' | 'request_id'>;
|
|
4803
|
+
operation: WorkspaceCreateResult['operation'];
|
|
4804
|
+
request_id?: string;
|
|
4805
|
+
}>(
|
|
4806
|
+
'/api/v2/workspaces',
|
|
4807
|
+
{ name: options.name },
|
|
4808
|
+
{ 'Idempotency-Key': idempotencyKey },
|
|
4809
|
+
{ maxRetries: 0, exactUrlOnly: true },
|
|
4810
|
+
);
|
|
4811
|
+
return {
|
|
4812
|
+
...response.data,
|
|
4813
|
+
operation: response.operation,
|
|
4814
|
+
...(response.request_id ? { request_id: response.request_id } : {}),
|
|
4815
|
+
};
|
|
4816
|
+
}
|
|
4817
|
+
|
|
4768
4818
|
// ——————————————————————————————————————————————————————————
|
|
4769
4819
|
// Monitors
|
|
4770
4820
|
// ——————————————————————————————————————————————————————————
|
|
@@ -199,7 +199,7 @@ export const SDK_RELEASE = {
|
|
|
199
199
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
200
200
|
// getters keep their established compatibility behavior.
|
|
201
201
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
202
|
-
version: '0.3.
|
|
202
|
+
version: '0.3.72',
|
|
203
203
|
updateSummary:
|
|
204
204
|
'Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.',
|
|
205
205
|
packageCapabilities: {
|