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 CHANGED
@@ -216,8 +216,8 @@ function resolveConfig(options) {
216
216
  }
217
217
 
218
218
  // src/version.ts
219
- var SDK_VERSION = "0.1.39";
220
- var SDK_API_CONTRACT = "2026-05-v2-play-live-definition";
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 query = options.query.trim().toLowerCase();
1384
- const terms = query.split(/\s+/).filter(Boolean);
1385
- const plays = await this.listPlays();
1386
- return plays.filter((play) => {
1387
- if (options.origin && (play.origin ?? "owned") !== options.origin) {
1388
- return false;
1389
- }
1390
- const haystack = [
1391
- play.name,
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.
@@ -193,8 +193,8 @@ function resolveConfig(options) {
193
193
  }
194
194
 
195
195
  // src/version.ts
196
- var SDK_VERSION = "0.1.39";
197
- var SDK_API_CONTRACT = "2026-05-v2-play-live-definition";
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 query = options.query.trim().toLowerCase();
1361
- const terms = query.split(/\s+/).filter(Boolean);
1362
- const plays = await this.listPlays();
1363
- return plays.filter((play) => {
1364
- if (options.origin && (play.origin ?? "owned") !== options.origin) {
1365
- return false;
1366
- }
1367
- const haystack = [
1368
- play.name,
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.39";
1481
- declare const SDK_API_CONTRACT = "2026-05-v2-play-live-definition";
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.39";
1481
- declare const SDK_API_CONTRACT = "2026-05-v2-play-live-definition";
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.39";
219
- var SDK_API_CONTRACT = "2026-05-v2-play-live-definition";
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 query = options.query.trim().toLowerCase();
1383
- const terms = query.split(/\s+/).filter(Boolean);
1384
- const plays = await this.listPlays();
1385
- return plays.filter((play) => {
1386
- if (options.origin && (play.origin ?? "owned") !== options.origin) {
1387
- return false;
1388
- }
1389
- const haystack = [
1390
- play.name,
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.39";
173
- var SDK_API_CONTRACT = "2026-05-v2-play-live-definition";
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 query = options.query.trim().toLowerCase();
1337
- const terms = query.split(/\s+/).filter(Boolean);
1338
- const plays = await this.listPlays();
1339
- return plays.filter((play) => {
1340
- if (options.origin && (play.origin ?? "owned") !== options.origin) {
1341
- return false;
1342
- }
1343
- const haystack = [
1344
- play.name,
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 query = options.query.trim().toLowerCase();
1381
- const terms = query.split(/\s+/).filter(Boolean);
1382
- const plays = await this.listPlays();
1383
- return plays
1384
- .filter((play) => {
1385
- if (options.origin && (play.origin ?? 'owned') !== options.origin) {
1386
- return false;
1387
- }
1388
- const haystack = [
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.39";
2
- export const SDK_API_CONTRACT = "2026-05-v2-play-live-definition";
1
+ export const SDK_VERSION = "0.1.40";
2
+ export const SDK_API_CONTRACT = "2026-05-cloud-play-search";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "description": "Deepline SDK + CLI — B2B data enrichment powered by durable cloud execution",
5
5
  "license": "MIT",
6
6
  "repository": {