deepline 0.1.39 → 0.1.40
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/cli/index.js +11 -19
- package/dist/cli/index.mjs +11 -19
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -19
- package/dist/index.mjs +11 -19
- package/dist/repo/sdk/src/client.ts +9 -22
- package/dist/repo/sdk/src/version.ts +2 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -216,8 +216,8 @@ function resolveConfig(options) {
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
// src/version.ts
|
|
219
|
-
var SDK_VERSION = "0.1.
|
|
220
|
-
var SDK_API_CONTRACT = "2026-05-
|
|
219
|
+
var SDK_VERSION = "0.1.40";
|
|
220
|
+
var SDK_API_CONTRACT = "2026-05-cloud-play-search";
|
|
221
221
|
|
|
222
222
|
// ../shared_libs/play-runtime/coordinator-headers.ts
|
|
223
223
|
var COORDINATOR_INTERNAL_TOKEN_HEADER = "x-deepline-internal-token";
|
|
@@ -1380,23 +1380,15 @@ var DeeplineClient = class {
|
|
|
1380
1380
|
return response.plays ?? [];
|
|
1381
1381
|
}
|
|
1382
1382
|
async searchPlays(options) {
|
|
1383
|
-
const
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
play.reference,
|
|
1393
|
-
play.displayName,
|
|
1394
|
-
play.origin,
|
|
1395
|
-
...play.aliases ?? [],
|
|
1396
|
-
play.inputSchema ? JSON.stringify(play.inputSchema) : ""
|
|
1397
|
-
].filter(Boolean).join(" ").toLowerCase();
|
|
1398
|
-
return terms.every((term) => haystack.includes(term));
|
|
1399
|
-
}).map((play) => this.summarizePlayListItem(play, options));
|
|
1383
|
+
const params = new URLSearchParams();
|
|
1384
|
+
params.set("search", options.query.trim());
|
|
1385
|
+
if (options.origin) params.set("origin", options.origin);
|
|
1386
|
+
const response = await this.http.get(
|
|
1387
|
+
`/api/v2/plays?${params.toString()}`
|
|
1388
|
+
);
|
|
1389
|
+
return (response.plays ?? []).map(
|
|
1390
|
+
(play) => this.summarizePlayListItem(play, options)
|
|
1391
|
+
);
|
|
1400
1392
|
}
|
|
1401
1393
|
/**
|
|
1402
1394
|
* Get the full definition and state of a named play.
|
package/dist/cli/index.mjs
CHANGED
|
@@ -193,8 +193,8 @@ function resolveConfig(options) {
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
// src/version.ts
|
|
196
|
-
var SDK_VERSION = "0.1.
|
|
197
|
-
var SDK_API_CONTRACT = "2026-05-
|
|
196
|
+
var SDK_VERSION = "0.1.40";
|
|
197
|
+
var SDK_API_CONTRACT = "2026-05-cloud-play-search";
|
|
198
198
|
|
|
199
199
|
// ../shared_libs/play-runtime/coordinator-headers.ts
|
|
200
200
|
var COORDINATOR_INTERNAL_TOKEN_HEADER = "x-deepline-internal-token";
|
|
@@ -1357,23 +1357,15 @@ var DeeplineClient = class {
|
|
|
1357
1357
|
return response.plays ?? [];
|
|
1358
1358
|
}
|
|
1359
1359
|
async searchPlays(options) {
|
|
1360
|
-
const
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
play.reference,
|
|
1370
|
-
play.displayName,
|
|
1371
|
-
play.origin,
|
|
1372
|
-
...play.aliases ?? [],
|
|
1373
|
-
play.inputSchema ? JSON.stringify(play.inputSchema) : ""
|
|
1374
|
-
].filter(Boolean).join(" ").toLowerCase();
|
|
1375
|
-
return terms.every((term) => haystack.includes(term));
|
|
1376
|
-
}).map((play) => this.summarizePlayListItem(play, options));
|
|
1360
|
+
const params = new URLSearchParams();
|
|
1361
|
+
params.set("search", options.query.trim());
|
|
1362
|
+
if (options.origin) params.set("origin", options.origin);
|
|
1363
|
+
const response = await this.http.get(
|
|
1364
|
+
`/api/v2/plays?${params.toString()}`
|
|
1365
|
+
);
|
|
1366
|
+
return (response.plays ?? []).map(
|
|
1367
|
+
(play) => this.summarizePlayListItem(play, options)
|
|
1368
|
+
);
|
|
1377
1369
|
}
|
|
1378
1370
|
/**
|
|
1379
1371
|
* Get the full definition and state of a named play.
|
package/dist/index.d.mts
CHANGED
|
@@ -1477,8 +1477,8 @@ declare class DeeplineClient {
|
|
|
1477
1477
|
}>;
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
|
-
declare const SDK_VERSION = "0.1.
|
|
1481
|
-
declare const SDK_API_CONTRACT = "2026-05-
|
|
1480
|
+
declare const SDK_VERSION = "0.1.40";
|
|
1481
|
+
declare const SDK_API_CONTRACT = "2026-05-cloud-play-search";
|
|
1482
1482
|
|
|
1483
1483
|
/**
|
|
1484
1484
|
* Base error class for all Deepline SDK errors.
|
package/dist/index.d.ts
CHANGED
|
@@ -1477,8 +1477,8 @@ declare class DeeplineClient {
|
|
|
1477
1477
|
}>;
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
|
-
declare const SDK_VERSION = "0.1.
|
|
1481
|
-
declare const SDK_API_CONTRACT = "2026-05-
|
|
1480
|
+
declare const SDK_VERSION = "0.1.40";
|
|
1481
|
+
declare const SDK_API_CONTRACT = "2026-05-cloud-play-search";
|
|
1482
1482
|
|
|
1483
1483
|
/**
|
|
1484
1484
|
* Base error class for all Deepline SDK errors.
|
package/dist/index.js
CHANGED
|
@@ -215,8 +215,8 @@ function resolveConfig(options) {
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
// src/version.ts
|
|
218
|
-
var SDK_VERSION = "0.1.
|
|
219
|
-
var SDK_API_CONTRACT = "2026-05-
|
|
218
|
+
var SDK_VERSION = "0.1.40";
|
|
219
|
+
var SDK_API_CONTRACT = "2026-05-cloud-play-search";
|
|
220
220
|
|
|
221
221
|
// ../shared_libs/play-runtime/coordinator-headers.ts
|
|
222
222
|
var COORDINATOR_INTERNAL_TOKEN_HEADER = "x-deepline-internal-token";
|
|
@@ -1379,23 +1379,15 @@ var DeeplineClient = class {
|
|
|
1379
1379
|
return response.plays ?? [];
|
|
1380
1380
|
}
|
|
1381
1381
|
async searchPlays(options) {
|
|
1382
|
-
const
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
play.reference,
|
|
1392
|
-
play.displayName,
|
|
1393
|
-
play.origin,
|
|
1394
|
-
...play.aliases ?? [],
|
|
1395
|
-
play.inputSchema ? JSON.stringify(play.inputSchema) : ""
|
|
1396
|
-
].filter(Boolean).join(" ").toLowerCase();
|
|
1397
|
-
return terms.every((term) => haystack.includes(term));
|
|
1398
|
-
}).map((play) => this.summarizePlayListItem(play, options));
|
|
1382
|
+
const params = new URLSearchParams();
|
|
1383
|
+
params.set("search", options.query.trim());
|
|
1384
|
+
if (options.origin) params.set("origin", options.origin);
|
|
1385
|
+
const response = await this.http.get(
|
|
1386
|
+
`/api/v2/plays?${params.toString()}`
|
|
1387
|
+
);
|
|
1388
|
+
return (response.plays ?? []).map(
|
|
1389
|
+
(play) => this.summarizePlayListItem(play, options)
|
|
1390
|
+
);
|
|
1399
1391
|
}
|
|
1400
1392
|
/**
|
|
1401
1393
|
* Get the full definition and state of a named play.
|
package/dist/index.mjs
CHANGED
|
@@ -169,8 +169,8 @@ function resolveConfig(options) {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
// src/version.ts
|
|
172
|
-
var SDK_VERSION = "0.1.
|
|
173
|
-
var SDK_API_CONTRACT = "2026-05-
|
|
172
|
+
var SDK_VERSION = "0.1.40";
|
|
173
|
+
var SDK_API_CONTRACT = "2026-05-cloud-play-search";
|
|
174
174
|
|
|
175
175
|
// ../shared_libs/play-runtime/coordinator-headers.ts
|
|
176
176
|
var COORDINATOR_INTERNAL_TOKEN_HEADER = "x-deepline-internal-token";
|
|
@@ -1333,23 +1333,15 @@ var DeeplineClient = class {
|
|
|
1333
1333
|
return response.plays ?? [];
|
|
1334
1334
|
}
|
|
1335
1335
|
async searchPlays(options) {
|
|
1336
|
-
const
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
play.reference,
|
|
1346
|
-
play.displayName,
|
|
1347
|
-
play.origin,
|
|
1348
|
-
...play.aliases ?? [],
|
|
1349
|
-
play.inputSchema ? JSON.stringify(play.inputSchema) : ""
|
|
1350
|
-
].filter(Boolean).join(" ").toLowerCase();
|
|
1351
|
-
return terms.every((term) => haystack.includes(term));
|
|
1352
|
-
}).map((play) => this.summarizePlayListItem(play, options));
|
|
1336
|
+
const params = new URLSearchParams();
|
|
1337
|
+
params.set("search", options.query.trim());
|
|
1338
|
+
if (options.origin) params.set("origin", options.origin);
|
|
1339
|
+
const response = await this.http.get(
|
|
1340
|
+
`/api/v2/plays?${params.toString()}`
|
|
1341
|
+
);
|
|
1342
|
+
return (response.plays ?? []).map(
|
|
1343
|
+
(play) => this.summarizePlayListItem(play, options)
|
|
1344
|
+
);
|
|
1353
1345
|
}
|
|
1354
1346
|
/**
|
|
1355
1347
|
* Get the full definition and state of a named play.
|
|
@@ -1377,28 +1377,15 @@ export class DeeplineClient {
|
|
|
1377
1377
|
origin?: 'prebuilt' | 'owned';
|
|
1378
1378
|
compact?: boolean;
|
|
1379
1379
|
}): Promise<PlayDescription[]> {
|
|
1380
|
-
const
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
.
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
play.name,
|
|
1390
|
-
play.reference,
|
|
1391
|
-
play.displayName,
|
|
1392
|
-
play.origin,
|
|
1393
|
-
...(play.aliases ?? []),
|
|
1394
|
-
play.inputSchema ? JSON.stringify(play.inputSchema) : '',
|
|
1395
|
-
]
|
|
1396
|
-
.filter(Boolean)
|
|
1397
|
-
.join(' ')
|
|
1398
|
-
.toLowerCase();
|
|
1399
|
-
return terms.every((term) => haystack.includes(term));
|
|
1400
|
-
})
|
|
1401
|
-
.map((play) => this.summarizePlayListItem(play, options));
|
|
1380
|
+
const params = new URLSearchParams();
|
|
1381
|
+
params.set('search', options.query.trim());
|
|
1382
|
+
if (options.origin) params.set('origin', options.origin);
|
|
1383
|
+
const response = await this.http.get<{ plays: PlayListItem[] }>(
|
|
1384
|
+
`/api/v2/plays?${params.toString()}`,
|
|
1385
|
+
);
|
|
1386
|
+
return (response.plays ?? []).map((play) =>
|
|
1387
|
+
this.summarizePlayListItem(play, options),
|
|
1388
|
+
);
|
|
1402
1389
|
}
|
|
1403
1390
|
|
|
1404
1391
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.1.
|
|
2
|
-
export const SDK_API_CONTRACT = "2026-05-
|
|
1
|
+
export const SDK_VERSION = "0.1.40";
|
|
2
|
+
export const SDK_API_CONTRACT = "2026-05-cloud-play-search";
|