deepline 0.2.69 → 0.2.71
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 +50 -12
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +23 -5
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/enrich-play-compiler.ts +13 -3
- package/dist/bundling-sources/shared_libs/plays/tool-category-descriptions.ts +12 -0
- package/dist/cli/index.js +265 -38
- package/dist/cli/index.mjs +265 -38
- package/dist/index.d.mts +35 -7
- package/dist/index.d.ts +35 -7
- package/dist/index.js +33 -13
- package/dist/index.mjs +33 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -780,7 +780,7 @@ var SDK_RELEASE = {
|
|
|
780
780
|
// 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
|
|
781
781
|
// exposed storage-dependent synchronous access. This deliberate minor
|
|
782
782
|
// release keeps lazy paging semantics independent of row residency.
|
|
783
|
-
version: "0.2.
|
|
783
|
+
version: "0.2.71",
|
|
784
784
|
contracts: {
|
|
785
785
|
api: {
|
|
786
786
|
name: "sdk-http-api",
|
|
@@ -3719,16 +3719,9 @@ function isPrebuiltPlayDescription(play) {
|
|
|
3719
3719
|
return play.origin === "prebuilt" || play.ownerType === "deepline";
|
|
3720
3720
|
}
|
|
3721
3721
|
function preferPrebuiltPlayDescriptions(plays) {
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
if (isPrebuiltPlayDescription(play)) {
|
|
3726
|
-
prebuilt.push(play);
|
|
3727
|
-
} else {
|
|
3728
|
-
owned.push(play);
|
|
3729
|
-
}
|
|
3730
|
-
}
|
|
3731
|
-
return [...prebuilt, ...owned];
|
|
3722
|
+
return plays.map((play, index) => ({ play, index })).sort(
|
|
3723
|
+
(left, right) => Number(right.play.pinned) - Number(left.play.pinned) || Number(isPrebuiltPlayDescription(right.play)) - Number(isPrebuiltPlayDescription(left.play)) || left.index - right.index
|
|
3724
|
+
).map(({ play }) => play);
|
|
3732
3725
|
}
|
|
3733
3726
|
function isPlayRunPackage(value) {
|
|
3734
3727
|
return Boolean(
|
|
@@ -4075,6 +4068,8 @@ var DeeplineClient = class {
|
|
|
4075
4068
|
...play.reference ? { reference: play.reference } : {},
|
|
4076
4069
|
...play.displayName ? { displayName: play.displayName } : {},
|
|
4077
4070
|
...description ? { description } : {},
|
|
4071
|
+
pinned: Boolean(play.pinned),
|
|
4072
|
+
toolCategories: play.toolCategories ?? [],
|
|
4078
4073
|
origin: play.origin,
|
|
4079
4074
|
ownerType: play.ownerType,
|
|
4080
4075
|
canEdit: play.canEdit,
|
|
@@ -5573,6 +5568,16 @@ var DeeplineClient = class {
|
|
|
5573
5568
|
async listPlays(options) {
|
|
5574
5569
|
const params = new URLSearchParams();
|
|
5575
5570
|
if (options?.origin) params.set("origin", options.origin);
|
|
5571
|
+
if (options?.categories) {
|
|
5572
|
+
params.set(
|
|
5573
|
+
"categories",
|
|
5574
|
+
Array.isArray(options.categories) ? options.categories.join(",") : options.categories
|
|
5575
|
+
);
|
|
5576
|
+
}
|
|
5577
|
+
if (options?.categories || options?.includeToolCategories) {
|
|
5578
|
+
params.set("include_tool_categories", "1");
|
|
5579
|
+
}
|
|
5580
|
+
if (options?.includeArchived) params.set("include_archived", "1");
|
|
5576
5581
|
if (options?.grep?.trim()) {
|
|
5577
5582
|
params.set("grep", options.grep.trim());
|
|
5578
5583
|
params.set("grep_mode", options.grepMode ?? "all");
|
|
@@ -5584,6 +5589,12 @@ var DeeplineClient = class {
|
|
|
5584
5589
|
);
|
|
5585
5590
|
return response.plays ?? [];
|
|
5586
5591
|
}
|
|
5592
|
+
/** Set whether an org-owned Play sorts before unpinned Plays. */
|
|
5593
|
+
async setPlayPinned(playName, pinned) {
|
|
5594
|
+
return this.http.post(`/api/v2/plays/${encodeURIComponent(playName)}/pin`, {
|
|
5595
|
+
pinned
|
|
5596
|
+
});
|
|
5597
|
+
}
|
|
5587
5598
|
/** Read product-notification destinations, subscriptions, event catalog, and DLQ health. */
|
|
5588
5599
|
async getNotificationSettings() {
|
|
5589
5600
|
return this.http.get("/api/v2/settings/notifications");
|
|
@@ -5786,13 +5797,22 @@ var DeeplineClient = class {
|
|
|
5786
5797
|
);
|
|
5787
5798
|
}
|
|
5788
5799
|
/**
|
|
5789
|
-
*
|
|
5790
|
-
*
|
|
5800
|
+
* Move an org-owned play to Trash. This disables its active triggers while
|
|
5801
|
+
* retaining its revisions and run history so it can be restored. Deepline
|
|
5802
|
+
* prebuilt plays are read-only.
|
|
5791
5803
|
*/
|
|
5792
5804
|
async deletePlay(name) {
|
|
5793
5805
|
const encodedName = encodeURIComponent(name);
|
|
5794
5806
|
return this.http.delete(`/api/v2/plays/${encodedName}`);
|
|
5795
5807
|
}
|
|
5808
|
+
/** Restore an org-owned play that was previously moved to Trash. */
|
|
5809
|
+
async restorePlay(name) {
|
|
5810
|
+
const encodedName = encodeURIComponent(name);
|
|
5811
|
+
return this.http.post(
|
|
5812
|
+
`/api/v2/plays/${encodedName}/restore`,
|
|
5813
|
+
{}
|
|
5814
|
+
);
|
|
5815
|
+
}
|
|
5796
5816
|
// ——————————————————————————————————————————————————————————
|
|
5797
5817
|
// Plays — public share pages
|
|
5798
5818
|
// ——————————————————————————————————————————————————————————
|
package/dist/index.mjs
CHANGED
|
@@ -703,7 +703,7 @@ var SDK_RELEASE = {
|
|
|
703
703
|
// 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
|
|
704
704
|
// exposed storage-dependent synchronous access. This deliberate minor
|
|
705
705
|
// release keeps lazy paging semantics independent of row residency.
|
|
706
|
-
version: "0.2.
|
|
706
|
+
version: "0.2.71",
|
|
707
707
|
contracts: {
|
|
708
708
|
api: {
|
|
709
709
|
name: "sdk-http-api",
|
|
@@ -3642,16 +3642,9 @@ function isPrebuiltPlayDescription(play) {
|
|
|
3642
3642
|
return play.origin === "prebuilt" || play.ownerType === "deepline";
|
|
3643
3643
|
}
|
|
3644
3644
|
function preferPrebuiltPlayDescriptions(plays) {
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
if (isPrebuiltPlayDescription(play)) {
|
|
3649
|
-
prebuilt.push(play);
|
|
3650
|
-
} else {
|
|
3651
|
-
owned.push(play);
|
|
3652
|
-
}
|
|
3653
|
-
}
|
|
3654
|
-
return [...prebuilt, ...owned];
|
|
3645
|
+
return plays.map((play, index) => ({ play, index })).sort(
|
|
3646
|
+
(left, right) => Number(right.play.pinned) - Number(left.play.pinned) || Number(isPrebuiltPlayDescription(right.play)) - Number(isPrebuiltPlayDescription(left.play)) || left.index - right.index
|
|
3647
|
+
).map(({ play }) => play);
|
|
3655
3648
|
}
|
|
3656
3649
|
function isPlayRunPackage(value) {
|
|
3657
3650
|
return Boolean(
|
|
@@ -3998,6 +3991,8 @@ var DeeplineClient = class {
|
|
|
3998
3991
|
...play.reference ? { reference: play.reference } : {},
|
|
3999
3992
|
...play.displayName ? { displayName: play.displayName } : {},
|
|
4000
3993
|
...description ? { description } : {},
|
|
3994
|
+
pinned: Boolean(play.pinned),
|
|
3995
|
+
toolCategories: play.toolCategories ?? [],
|
|
4001
3996
|
origin: play.origin,
|
|
4002
3997
|
ownerType: play.ownerType,
|
|
4003
3998
|
canEdit: play.canEdit,
|
|
@@ -5496,6 +5491,16 @@ var DeeplineClient = class {
|
|
|
5496
5491
|
async listPlays(options) {
|
|
5497
5492
|
const params = new URLSearchParams();
|
|
5498
5493
|
if (options?.origin) params.set("origin", options.origin);
|
|
5494
|
+
if (options?.categories) {
|
|
5495
|
+
params.set(
|
|
5496
|
+
"categories",
|
|
5497
|
+
Array.isArray(options.categories) ? options.categories.join(",") : options.categories
|
|
5498
|
+
);
|
|
5499
|
+
}
|
|
5500
|
+
if (options?.categories || options?.includeToolCategories) {
|
|
5501
|
+
params.set("include_tool_categories", "1");
|
|
5502
|
+
}
|
|
5503
|
+
if (options?.includeArchived) params.set("include_archived", "1");
|
|
5499
5504
|
if (options?.grep?.trim()) {
|
|
5500
5505
|
params.set("grep", options.grep.trim());
|
|
5501
5506
|
params.set("grep_mode", options.grepMode ?? "all");
|
|
@@ -5507,6 +5512,12 @@ var DeeplineClient = class {
|
|
|
5507
5512
|
);
|
|
5508
5513
|
return response.plays ?? [];
|
|
5509
5514
|
}
|
|
5515
|
+
/** Set whether an org-owned Play sorts before unpinned Plays. */
|
|
5516
|
+
async setPlayPinned(playName, pinned) {
|
|
5517
|
+
return this.http.post(`/api/v2/plays/${encodeURIComponent(playName)}/pin`, {
|
|
5518
|
+
pinned
|
|
5519
|
+
});
|
|
5520
|
+
}
|
|
5510
5521
|
/** Read product-notification destinations, subscriptions, event catalog, and DLQ health. */
|
|
5511
5522
|
async getNotificationSettings() {
|
|
5512
5523
|
return this.http.get("/api/v2/settings/notifications");
|
|
@@ -5709,13 +5720,22 @@ var DeeplineClient = class {
|
|
|
5709
5720
|
);
|
|
5710
5721
|
}
|
|
5711
5722
|
/**
|
|
5712
|
-
*
|
|
5713
|
-
*
|
|
5723
|
+
* Move an org-owned play to Trash. This disables its active triggers while
|
|
5724
|
+
* retaining its revisions and run history so it can be restored. Deepline
|
|
5725
|
+
* prebuilt plays are read-only.
|
|
5714
5726
|
*/
|
|
5715
5727
|
async deletePlay(name) {
|
|
5716
5728
|
const encodedName = encodeURIComponent(name);
|
|
5717
5729
|
return this.http.delete(`/api/v2/plays/${encodedName}`);
|
|
5718
5730
|
}
|
|
5731
|
+
/** Restore an org-owned play that was previously moved to Trash. */
|
|
5732
|
+
async restorePlay(name) {
|
|
5733
|
+
const encodedName = encodeURIComponent(name);
|
|
5734
|
+
return this.http.post(
|
|
5735
|
+
`/api/v2/plays/${encodedName}/restore`,
|
|
5736
|
+
{}
|
|
5737
|
+
);
|
|
5738
|
+
}
|
|
5719
5739
|
// ——————————————————————————————————————————————————————————
|
|
5720
5740
|
// Plays — public share pages
|
|
5721
5741
|
// ——————————————————————————————————————————————————————————
|