deepline 0.1.272 → 0.1.273
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/README.md +4 -2
- package/dist/bundling-sources/sdk/src/play.ts +2 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +9 -0
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -113,7 +113,7 @@ surfaces we exercise in CI:
|
|
|
113
113
|
- `client.runs.list({ play: name })`
|
|
114
114
|
- `client.runs.tail(runId)`
|
|
115
115
|
- `client.runs.stop(runId, { reason })`
|
|
116
|
-
3.
|
|
116
|
+
3. Connected SDK context (outside a running play)
|
|
117
117
|
- `ctx.play(name).run(...)`
|
|
118
118
|
- `ctx.play(name).runSync(...)`
|
|
119
119
|
- `ctx.runPlay(name, input)`
|
|
@@ -122,7 +122,9 @@ surfaces we exercise in CI:
|
|
|
122
122
|
- `GET /api/v2/runs/:runId`
|
|
123
123
|
- `GET /api/v2/runs/:runId/tail`
|
|
124
124
|
5. In-play composition
|
|
125
|
-
- `ctx.runPlay(
|
|
125
|
+
- `ctx.runPlay(key, playRef, input, { description })`
|
|
126
|
+
- Org-owned `playRef` accepts a bare name, `self/<play>`, or the canonical
|
|
127
|
+
`<orgSlug>/<play>` returned by `plays get`.
|
|
126
128
|
|
|
127
129
|
Internal / advanced only:
|
|
128
130
|
|
|
@@ -117,7 +117,7 @@ import type { ToolExecution } from './client.js';
|
|
|
117
117
|
export type PlayCallExecution = 'inline' | 'child-workflow';
|
|
118
118
|
|
|
119
119
|
export interface PlayCallOptions {
|
|
120
|
-
description
|
|
120
|
+
description: string;
|
|
121
121
|
execution?: PlayCallExecution;
|
|
122
122
|
}
|
|
123
123
|
|
|
@@ -903,7 +903,7 @@ export interface DeeplinePlayRuntimeContext {
|
|
|
903
903
|
key: string,
|
|
904
904
|
playRef: string | PlayReferenceLike,
|
|
905
905
|
input: Record<string, unknown>,
|
|
906
|
-
options
|
|
906
|
+
options: PlayCallOptions,
|
|
907
907
|
): Promise<TOutput>;
|
|
908
908
|
|
|
909
909
|
/**
|
|
@@ -155,7 +155,7 @@ export const SDK_RELEASE = {
|
|
|
155
155
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
156
156
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
157
157
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
158
|
-
version: '0.1.
|
|
158
|
+
version: '0.1.273',
|
|
159
159
|
contracts: {
|
|
160
160
|
api: {
|
|
161
161
|
name: 'sdk-http-api',
|
|
@@ -6731,6 +6731,15 @@ export class PlayContextImpl {
|
|
|
6731
6731
|
): Promise<TOutput> {
|
|
6732
6732
|
assertNoSecretTaint(input, 'ctx.runPlay input');
|
|
6733
6733
|
const normalizedKey = this.normalizeContextKey(key, 'runPlay');
|
|
6734
|
+
if (
|
|
6735
|
+
arguments.length === 3 &&
|
|
6736
|
+
typeof playRef === 'object' &&
|
|
6737
|
+
playRef !== null
|
|
6738
|
+
) {
|
|
6739
|
+
throw new Error(
|
|
6740
|
+
'ctx.runPlay(...) signature is ctx.runPlay(key, playRef, input, { description }). Add a stable call key as the first argument.',
|
|
6741
|
+
);
|
|
6742
|
+
}
|
|
6734
6743
|
const resolvedName =
|
|
6735
6744
|
typeof playRef === 'string'
|
|
6736
6745
|
? playRef
|
package/dist/cli/index.js
CHANGED
|
@@ -718,7 +718,7 @@ var SDK_RELEASE = {
|
|
|
718
718
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
719
719
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
720
720
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
721
|
-
version: "0.1.
|
|
721
|
+
version: "0.1.273",
|
|
722
722
|
contracts: {
|
|
723
723
|
api: {
|
|
724
724
|
name: "sdk-http-api",
|
package/dist/cli/index.mjs
CHANGED
|
@@ -703,7 +703,7 @@ var SDK_RELEASE = {
|
|
|
703
703
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
704
704
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
705
705
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
706
|
-
version: "0.1.
|
|
706
|
+
version: "0.1.273",
|
|
707
707
|
contracts: {
|
|
708
708
|
api: {
|
|
709
709
|
name: "sdk-http-api",
|
package/dist/index.d.mts
CHANGED
|
@@ -3595,7 +3595,7 @@ type PreviousCell<Value = unknown> = {
|
|
|
3595
3595
|
|
|
3596
3596
|
type PlayCallExecution = 'inline' | 'child-workflow';
|
|
3597
3597
|
interface PlayCallOptions {
|
|
3598
|
-
description
|
|
3598
|
+
description: string;
|
|
3599
3599
|
execution?: PlayCallExecution;
|
|
3600
3600
|
}
|
|
3601
3601
|
/**
|
|
@@ -4231,7 +4231,7 @@ interface DeeplinePlayRuntimeContext {
|
|
|
4231
4231
|
*
|
|
4232
4232
|
* @sdkReference runtime 140 ctx.runPlay(key, playRef, input, options)
|
|
4233
4233
|
*/
|
|
4234
|
-
runPlay<TOutput = unknown>(key: string, playRef: string | PlayReferenceLike, input: Record<string, unknown>, options
|
|
4234
|
+
runPlay<TOutput = unknown>(key: string, playRef: string | PlayReferenceLike, input: Record<string, unknown>, options: PlayCallOptions): Promise<TOutput>;
|
|
4235
4235
|
/**
|
|
4236
4236
|
* Emit a log line visible in `play tail` and the play's progress logs.
|
|
4237
4237
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -3595,7 +3595,7 @@ type PreviousCell<Value = unknown> = {
|
|
|
3595
3595
|
|
|
3596
3596
|
type PlayCallExecution = 'inline' | 'child-workflow';
|
|
3597
3597
|
interface PlayCallOptions {
|
|
3598
|
-
description
|
|
3598
|
+
description: string;
|
|
3599
3599
|
execution?: PlayCallExecution;
|
|
3600
3600
|
}
|
|
3601
3601
|
/**
|
|
@@ -4231,7 +4231,7 @@ interface DeeplinePlayRuntimeContext {
|
|
|
4231
4231
|
*
|
|
4232
4232
|
* @sdkReference runtime 140 ctx.runPlay(key, playRef, input, options)
|
|
4233
4233
|
*/
|
|
4234
|
-
runPlay<TOutput = unknown>(key: string, playRef: string | PlayReferenceLike, input: Record<string, unknown>, options
|
|
4234
|
+
runPlay<TOutput = unknown>(key: string, playRef: string | PlayReferenceLike, input: Record<string, unknown>, options: PlayCallOptions): Promise<TOutput>;
|
|
4235
4235
|
/**
|
|
4236
4236
|
* Emit a log line visible in `play tail` and the play's progress logs.
|
|
4237
4237
|
*
|
package/dist/index.js
CHANGED
|
@@ -438,7 +438,7 @@ var SDK_RELEASE = {
|
|
|
438
438
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
439
439
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
440
440
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
441
|
-
version: "0.1.
|
|
441
|
+
version: "0.1.273",
|
|
442
442
|
contracts: {
|
|
443
443
|
api: {
|
|
444
444
|
name: "sdk-http-api",
|
package/dist/index.mjs
CHANGED
|
@@ -367,7 +367,7 @@ var SDK_RELEASE = {
|
|
|
367
367
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
368
368
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
369
369
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
370
|
-
version: "0.1.
|
|
370
|
+
version: "0.1.273",
|
|
371
371
|
contracts: {
|
|
372
372
|
api: {
|
|
373
373
|
name: "sdk-http-api",
|