deepline 0.2.4 → 0.2.6

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.
@@ -3717,9 +3717,17 @@ export class DeeplineClient {
3717
3717
  * Current share status for a play: the public page (if any), the published
3718
3718
  * copy, and the revision picker. Read-only.
3719
3719
  */
3720
- async getSharePage(name: string): Promise<SharePageStatus> {
3720
+ async getSharePage(
3721
+ name: string,
3722
+ options: { revisionId?: string } = {},
3723
+ ): Promise<SharePageStatus> {
3721
3724
  const encodedName = encodeURIComponent(name);
3722
- return this.http.get<SharePageStatus>(`/api/v2/plays/${encodedName}/share`);
3725
+ const revisionQuery = options.revisionId
3726
+ ? `?revisionId=${encodeURIComponent(options.revisionId)}`
3727
+ : '';
3728
+ return this.http.get<SharePageStatus>(
3729
+ `/api/v2/plays/${encodedName}/share${revisionQuery}`,
3730
+ );
3723
3731
  }
3724
3732
 
3725
3733
  /**
@@ -160,7 +160,7 @@ export const SDK_RELEASE = {
160
160
  // 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
161
161
  // exposed storage-dependent synchronous access. This deliberate minor
162
162
  // release keeps lazy paging semantics independent of row residency.
163
- version: '0.2.4',
163
+ version: '0.2.6',
164
164
  contracts: {
165
165
  api: {
166
166
  name: 'sdk-http-api',
@@ -1418,7 +1418,11 @@ export interface SharePageRevisionOption {
1418
1418
  createdAt: number;
1419
1419
  }
1420
1420
 
1421
- /** Status payload from `GET/POST/PATCH /api/v2/plays/:name/share`. */
1421
+ /**
1422
+ * Status payload from `GET/POST/PATCH /api/v2/plays/:name/share`.
1423
+ * The revision picker is bounded to recent and state-bearing revisions. Pass a
1424
+ * selected revision id to `getSharePage` to retain any older selection.
1425
+ */
1422
1426
  export interface SharePageStatus {
1423
1427
  playName: string;
1424
1428
  share: SharePageOwnerView | null;
@@ -134,15 +134,21 @@ export function createRuntimeSandboxPlacementBackend(input: {
134
134
  ) {
135
135
  throw error;
136
136
  }
137
- console.warn('[play-runner.sandbox_provider_fallback]', {
138
- runId: config.context.runId ?? null,
139
- workflowId: config.context.workflowId ?? null,
140
- policyId: input.policy.id,
141
- from: provider,
142
- to: nextProvider,
143
- stage: 'acquisition',
144
- reason,
145
- });
137
+ // Keep this one-line JSON event parseable by the lifecycle gate. It
138
+ // is the durable proof that a completed Modal run was an allowed
139
+ // pre-code Daytona transition, rather than a direct Modal launch.
140
+ console.warn(
141
+ '[play-runner.sandbox_provider_fallback]',
142
+ JSON.stringify({
143
+ runId: config.context.runId ?? null,
144
+ workflowId: config.context.workflowId ?? null,
145
+ policyId: input.policy.id,
146
+ from: provider,
147
+ to: nextProvider,
148
+ stage: 'acquisition',
149
+ reason,
150
+ }),
151
+ );
146
152
  }
147
153
  }
148
154
  throw new Error(
package/dist/cli/index.js CHANGED
@@ -1040,7 +1040,7 @@ var SDK_RELEASE = {
1040
1040
  // 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
1041
1041
  // exposed storage-dependent synchronous access. This deliberate minor
1042
1042
  // release keeps lazy paging semantics independent of row residency.
1043
- version: "0.2.4",
1043
+ version: "0.2.6",
1044
1044
  contracts: {
1045
1045
  api: {
1046
1046
  name: "sdk-http-api",
@@ -5446,9 +5446,12 @@ var DeeplineClient = class {
5446
5446
  * Current share status for a play: the public page (if any), the published
5447
5447
  * copy, and the revision picker. Read-only.
5448
5448
  */
5449
- async getSharePage(name) {
5449
+ async getSharePage(name, options = {}) {
5450
5450
  const encodedName = encodeURIComponent(name);
5451
- return this.http.get(`/api/v2/plays/${encodedName}/share`);
5451
+ const revisionQuery = options.revisionId ? `?revisionId=${encodeURIComponent(options.revisionId)}` : "";
5452
+ return this.http.get(
5453
+ `/api/v2/plays/${encodedName}/share${revisionQuery}`
5454
+ );
5452
5455
  }
5453
5456
  /**
5454
5457
  * Publish (or repoint) the play's public share page to a revision. Requires
@@ -1025,7 +1025,7 @@ var SDK_RELEASE = {
1025
1025
  // 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
1026
1026
  // exposed storage-dependent synchronous access. This deliberate minor
1027
1027
  // release keeps lazy paging semantics independent of row residency.
1028
- version: "0.2.4",
1028
+ version: "0.2.6",
1029
1029
  contracts: {
1030
1030
  api: {
1031
1031
  name: "sdk-http-api",
@@ -5431,9 +5431,12 @@ var DeeplineClient = class {
5431
5431
  * Current share status for a play: the public page (if any), the published
5432
5432
  * copy, and the revision picker. Read-only.
5433
5433
  */
5434
- async getSharePage(name) {
5434
+ async getSharePage(name, options = {}) {
5435
5435
  const encodedName = encodeURIComponent(name);
5436
- return this.http.get(`/api/v2/plays/${encodedName}/share`);
5436
+ const revisionQuery = options.revisionId ? `?revisionId=${encodeURIComponent(options.revisionId)}` : "";
5437
+ return this.http.get(
5438
+ `/api/v2/plays/${encodedName}/share${revisionQuery}`
5439
+ );
5437
5440
  }
5438
5441
  /**
5439
5442
  * Publish (or repoint) the play's public share page to a revision. Requires
package/dist/index.d.mts CHANGED
@@ -1467,7 +1467,11 @@ interface SharePageRevisionOption {
1467
1467
  hasCard: boolean;
1468
1468
  createdAt: number;
1469
1469
  }
1470
- /** Status payload from `GET/POST/PATCH /api/v2/plays/:name/share`. */
1470
+ /**
1471
+ * Status payload from `GET/POST/PATCH /api/v2/plays/:name/share`.
1472
+ * The revision picker is bounded to recent and state-bearing revisions. Pass a
1473
+ * selected revision id to `getSharePage` to retain any older selection.
1474
+ */
1471
1475
  interface SharePageStatus {
1472
1476
  playName: string;
1473
1477
  share: SharePageOwnerView | null;
@@ -3013,7 +3017,9 @@ declare class DeeplineClient {
3013
3017
  * Current share status for a play: the public page (if any), the published
3014
3018
  * copy, and the revision picker. Read-only.
3015
3019
  */
3016
- getSharePage(name: string): Promise<SharePageStatus>;
3020
+ getSharePage(name: string, options?: {
3021
+ revisionId?: string;
3022
+ }): Promise<SharePageStatus>;
3017
3023
  /**
3018
3024
  * Publish (or repoint) the play's public share page to a revision. Requires
3019
3025
  * `acknowledgedUnlisted: true` — the page is publicly viewable. Org-admin only.
package/dist/index.d.ts CHANGED
@@ -1467,7 +1467,11 @@ interface SharePageRevisionOption {
1467
1467
  hasCard: boolean;
1468
1468
  createdAt: number;
1469
1469
  }
1470
- /** Status payload from `GET/POST/PATCH /api/v2/plays/:name/share`. */
1470
+ /**
1471
+ * Status payload from `GET/POST/PATCH /api/v2/plays/:name/share`.
1472
+ * The revision picker is bounded to recent and state-bearing revisions. Pass a
1473
+ * selected revision id to `getSharePage` to retain any older selection.
1474
+ */
1471
1475
  interface SharePageStatus {
1472
1476
  playName: string;
1473
1477
  share: SharePageOwnerView | null;
@@ -3013,7 +3017,9 @@ declare class DeeplineClient {
3013
3017
  * Current share status for a play: the public page (if any), the published
3014
3018
  * copy, and the revision picker. Read-only.
3015
3019
  */
3016
- getSharePage(name: string): Promise<SharePageStatus>;
3020
+ getSharePage(name: string, options?: {
3021
+ revisionId?: string;
3022
+ }): Promise<SharePageStatus>;
3017
3023
  /**
3018
3024
  * Publish (or repoint) the play's public share page to a revision. Requires
3019
3025
  * `acknowledgedUnlisted: true` — the page is publicly viewable. Org-admin only.
package/dist/index.js CHANGED
@@ -763,7 +763,7 @@ var SDK_RELEASE = {
763
763
  // 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
764
764
  // exposed storage-dependent synchronous access. This deliberate minor
765
765
  // release keeps lazy paging semantics independent of row residency.
766
- version: "0.2.4",
766
+ version: "0.2.6",
767
767
  contracts: {
768
768
  api: {
769
769
  name: "sdk-http-api",
@@ -5169,9 +5169,12 @@ var DeeplineClient = class {
5169
5169
  * Current share status for a play: the public page (if any), the published
5170
5170
  * copy, and the revision picker. Read-only.
5171
5171
  */
5172
- async getSharePage(name) {
5172
+ async getSharePage(name, options = {}) {
5173
5173
  const encodedName = encodeURIComponent(name);
5174
- return this.http.get(`/api/v2/plays/${encodedName}/share`);
5174
+ const revisionQuery = options.revisionId ? `?revisionId=${encodeURIComponent(options.revisionId)}` : "";
5175
+ return this.http.get(
5176
+ `/api/v2/plays/${encodedName}/share${revisionQuery}`
5177
+ );
5175
5178
  }
5176
5179
  /**
5177
5180
  * Publish (or repoint) the play's public share page to a revision. Requires
package/dist/index.mjs CHANGED
@@ -689,7 +689,7 @@ var SDK_RELEASE = {
689
689
  // 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
690
690
  // exposed storage-dependent synchronous access. This deliberate minor
691
691
  // release keeps lazy paging semantics independent of row residency.
692
- version: "0.2.4",
692
+ version: "0.2.6",
693
693
  contracts: {
694
694
  api: {
695
695
  name: "sdk-http-api",
@@ -5095,9 +5095,12 @@ var DeeplineClient = class {
5095
5095
  * Current share status for a play: the public page (if any), the published
5096
5096
  * copy, and the revision picker. Read-only.
5097
5097
  */
5098
- async getSharePage(name) {
5098
+ async getSharePage(name, options = {}) {
5099
5099
  const encodedName = encodeURIComponent(name);
5100
- return this.http.get(`/api/v2/plays/${encodedName}/share`);
5100
+ const revisionQuery = options.revisionId ? `?revisionId=${encodeURIComponent(options.revisionId)}` : "";
5101
+ return this.http.get(
5102
+ `/api/v2/plays/${encodedName}/share${revisionQuery}`
5103
+ );
5101
5104
  }
5102
5105
  /**
5103
5106
  * Publish (or repoint) the play's public share page to a revision. Requires
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Deepline SDK + CLI — B2B data enrichment powered by durable cloud execution",
5
5
  "license": "MIT",
6
6
  "repository": {