deepline 0.3.138 → 0.3.140
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/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +7 -0
- package/dist/cli/index.js +4 -2
- package/dist/cli/index.mjs +4 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +1 -1
- package/dist/release.mjs +1 -1
- package/dist/viewer/viewer.css +20 -0
- package/dist/viewer/viewer.js +20 -2
- package/package.json +1 -1
|
@@ -200,7 +200,7 @@ export const SDK_RELEASE = {
|
|
|
200
200
|
// getters keep their established compatibility behavior.
|
|
201
201
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
202
202
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
203
|
-
version: '0.3.
|
|
203
|
+
version: '0.3.140',
|
|
204
204
|
updateSummary:
|
|
205
205
|
'Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.',
|
|
206
206
|
packageCapabilities: {
|
|
@@ -304,6 +304,13 @@ function formatInsufficientCreditsMessage(input: {
|
|
|
304
304
|
: billingUrl
|
|
305
305
|
? ` Add credits at ${billingUrl}.`
|
|
306
306
|
: '';
|
|
307
|
+
const minimum = input.billing.minimum_balance_credits;
|
|
308
|
+
if (
|
|
309
|
+
typeof minimum === 'number' &&
|
|
310
|
+
input.billing.required_credits === minimum
|
|
311
|
+
) {
|
|
312
|
+
return `Workspace balance ${balance} is below the ${formatCreditAmount(minimum)}-credit workspace minimum for starting a billable call (${operation}); this is a workspace-wide minimum, separate from the tool's own price.${addSuffix}`;
|
|
313
|
+
}
|
|
307
314
|
return `Workspace balance ${balance} < required ${required} for ${operation}.${addSuffix}`;
|
|
308
315
|
}
|
|
309
316
|
|
package/dist/cli/index.js
CHANGED
|
@@ -3068,7 +3068,7 @@ var SDK_RELEASE = {
|
|
|
3068
3068
|
// getters keep their established compatibility behavior.
|
|
3069
3069
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
3070
3070
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
3071
|
-
version: "0.3.
|
|
3071
|
+
version: "0.3.140",
|
|
3072
3072
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
3073
3073
|
packageCapabilities: {
|
|
3074
3074
|
updatePreferences: 1
|
|
@@ -24673,7 +24673,9 @@ function formatInsufficientCreditsMessage(input2) {
|
|
|
24673
24673
|
const workspaceSuffix = workspace ? ` (workspace=${workspace})` : "";
|
|
24674
24674
|
const recovery = insufficientCreditsRecoveryCommands(input2.billing);
|
|
24675
24675
|
const addSuffix = billingUrl && recommended !== "-" ? ` Add >=${recommended} at ${billingUrl}.` : billingUrl ? ` Add credits at ${billingUrl}.` : "";
|
|
24676
|
-
|
|
24676
|
+
const minimum = input2.billing.minimum_balance_credits;
|
|
24677
|
+
const shortfall = typeof minimum === "number" && input2.billing.required_credits === minimum ? `Workspace balance ${balance} is below the ${formatCreditAmount(minimum)}-credit workspace minimum for starting a billable call (${operation}${workspaceSuffix}); this is a workspace-wide minimum, separate from the tool's own price.` : `Workspace balance ${balance} < required ${required} for ${operation}${workspaceSuffix}.`;
|
|
24678
|
+
return `${shortfall}${addSuffix} Ask the user if they want to add Deepline credits. If they approve, run: ${recovery.topUp}. If checkout is required, run: ${recovery.checkout}.`;
|
|
24677
24679
|
}
|
|
24678
24680
|
function buildInsufficientCreditsSummaryLines(input2) {
|
|
24679
24681
|
const progress = input2.status.progress;
|
package/dist/cli/index.mjs
CHANGED
|
@@ -3063,7 +3063,7 @@ var SDK_RELEASE = {
|
|
|
3063
3063
|
// getters keep their established compatibility behavior.
|
|
3064
3064
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
3065
3065
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
3066
|
-
version: "0.3.
|
|
3066
|
+
version: "0.3.140",
|
|
3067
3067
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
3068
3068
|
packageCapabilities: {
|
|
3069
3069
|
updatePreferences: 1
|
|
@@ -24745,7 +24745,9 @@ function formatInsufficientCreditsMessage(input2) {
|
|
|
24745
24745
|
const workspaceSuffix = workspace ? ` (workspace=${workspace})` : "";
|
|
24746
24746
|
const recovery = insufficientCreditsRecoveryCommands(input2.billing);
|
|
24747
24747
|
const addSuffix = billingUrl && recommended !== "-" ? ` Add >=${recommended} at ${billingUrl}.` : billingUrl ? ` Add credits at ${billingUrl}.` : "";
|
|
24748
|
-
|
|
24748
|
+
const minimum = input2.billing.minimum_balance_credits;
|
|
24749
|
+
const shortfall = typeof minimum === "number" && input2.billing.required_credits === minimum ? `Workspace balance ${balance} is below the ${formatCreditAmount(minimum)}-credit workspace minimum for starting a billable call (${operation}${workspaceSuffix}); this is a workspace-wide minimum, separate from the tool's own price.` : `Workspace balance ${balance} < required ${required} for ${operation}${workspaceSuffix}.`;
|
|
24750
|
+
return `${shortfall}${addSuffix} Ask the user if they want to add Deepline credits. If they approve, run: ${recovery.topUp}. If checkout is required, run: ${recovery.checkout}.`;
|
|
24749
24751
|
}
|
|
24750
24752
|
function buildInsufficientCreditsSummaryLines(input2) {
|
|
24751
24753
|
const progress = input2.status.progress;
|
package/dist/index.js
CHANGED
|
@@ -864,7 +864,7 @@ var SDK_RELEASE = {
|
|
|
864
864
|
// getters keep their established compatibility behavior.
|
|
865
865
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
866
866
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
867
|
-
version: "0.3.
|
|
867
|
+
version: "0.3.140",
|
|
868
868
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
869
869
|
packageCapabilities: {
|
|
870
870
|
updatePreferences: 1
|
package/dist/index.mjs
CHANGED
|
@@ -768,7 +768,7 @@ var SDK_RELEASE = {
|
|
|
768
768
|
// getters keep their established compatibility behavior.
|
|
769
769
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
770
770
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
771
|
-
version: "0.3.
|
|
771
|
+
version: "0.3.140",
|
|
772
772
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
773
773
|
packageCapabilities: {
|
|
774
774
|
updatePreferences: 1
|
package/dist/release.d.mts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.140";
|
|
153
153
|
readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
|
|
154
154
|
readonly packageCapabilities: {
|
|
155
155
|
readonly updatePreferences: 1;
|
package/dist/release.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.140";
|
|
153
153
|
readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
|
|
154
154
|
readonly packageCapabilities: {
|
|
155
155
|
readonly updatePreferences: 1;
|
package/dist/release.js
CHANGED
|
@@ -74,7 +74,7 @@ var SDK_RELEASE = {
|
|
|
74
74
|
// getters keep their established compatibility behavior.
|
|
75
75
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
76
76
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
77
|
-
version: "0.3.
|
|
77
|
+
version: "0.3.140",
|
|
78
78
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
79
79
|
packageCapabilities: {
|
|
80
80
|
updatePreferences: 1
|
package/dist/release.mjs
CHANGED
|
@@ -48,7 +48,7 @@ var SDK_RELEASE = {
|
|
|
48
48
|
// getters keep their established compatibility behavior.
|
|
49
49
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
50
50
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
51
|
-
version: "0.3.
|
|
51
|
+
version: "0.3.140",
|
|
52
52
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
53
53
|
packageCapabilities: {
|
|
54
54
|
updatePreferences: 1
|
package/dist/viewer/viewer.css
CHANGED
|
@@ -110,6 +110,26 @@ body {
|
|
|
110
110
|
letter-spacing: 0.09em;
|
|
111
111
|
text-transform: uppercase;
|
|
112
112
|
}
|
|
113
|
+
.rail-toggle {
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
gap: 8px;
|
|
117
|
+
position: sticky;
|
|
118
|
+
top: 0;
|
|
119
|
+
z-index: 2;
|
|
120
|
+
width: 100%;
|
|
121
|
+
min-height: 44px;
|
|
122
|
+
padding: 0 14px;
|
|
123
|
+
border: 0;
|
|
124
|
+
border-bottom: 1px solid var(--viewer-border);
|
|
125
|
+
background: var(--bg-secondary);
|
|
126
|
+
color: var(--text);
|
|
127
|
+
font: inherit;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
}
|
|
130
|
+
.rail-toggle:hover { background: var(--bg-tertiary); }
|
|
131
|
+
.sidebar.rail-collapsed, .run-sidebar.rail-collapsed { width: 44px; }
|
|
132
|
+
.rail-collapsed .rail-content, .rail-collapsed .rail-toggle-label { display: none; }
|
|
113
133
|
.rail-heading strong {
|
|
114
134
|
border: 1px solid var(--viewer-border);
|
|
115
135
|
border-radius: var(--viewer-radius-control);
|
package/dist/viewer/viewer.js
CHANGED
|
@@ -1644,6 +1644,22 @@ function init() {
|
|
|
1644
1644
|
}
|
|
1645
1645
|
}
|
|
1646
1646
|
|
|
1647
|
+
const collapsedRails = new Set();
|
|
1648
|
+
|
|
1649
|
+
function railToggle(id, label) {
|
|
1650
|
+
const collapsed = collapsedRails.has(id);
|
|
1651
|
+
return `<button class="rail-toggle" aria-controls="${id}" aria-expanded="${!collapsed}" aria-label="${collapsed ? 'Expand' : 'Collapse'} ${label}" title="${collapsed ? 'Expand' : 'Collapse'} ${label}" onclick="toggleRail('${id}')"><span aria-hidden="true">${collapsed ? '»' : '«'}</span><span class="rail-toggle-label">${label}</span></button>`;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
function toggleRail(id) {
|
|
1655
|
+
if (collapsedRails.has(id)) collapsedRails.delete(id);
|
|
1656
|
+
else collapsedRails.add(id);
|
|
1657
|
+
const rail = document.getElementById(id);
|
|
1658
|
+
rail.classList.toggle('rail-collapsed', collapsedRails.has(id));
|
|
1659
|
+
rail.querySelector('.rail-toggle').outerHTML = railToggle(id, id === 'sidebar' ? 'Evaluations' : 'Compare setup');
|
|
1660
|
+
rail.querySelector('.rail-toggle').focus();
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1647
1663
|
function renderSidebar() {
|
|
1648
1664
|
const el = document.getElementById('sidebar');
|
|
1649
1665
|
el.classList.remove('hidden');
|
|
@@ -1657,7 +1673,8 @@ function renderSidebar() {
|
|
|
1657
1673
|
<span class="sub">${runs} run${runs === 1 ? '' : 's'} · ${sessions.length} session${sessions.length === 1 ? '' : 's'}</span>
|
|
1658
1674
|
</button>`;
|
|
1659
1675
|
}).join('');
|
|
1660
|
-
el.
|
|
1676
|
+
el.classList.toggle('rail-collapsed', collapsedRails.has('sidebar'));
|
|
1677
|
+
el.innerHTML = railToggle('sidebar', 'Evaluations') + '<div class="rail-content">' + html + '</div>';
|
|
1661
1678
|
}
|
|
1662
1679
|
|
|
1663
1680
|
function ensureRunSidebar() {
|
|
@@ -1692,7 +1709,8 @@ function renderRunSidebar() {
|
|
|
1692
1709
|
<span class="run-skill">${sliceBy === 'none' ? 'single transcript' : 'compare ' + esc(sliceBy)}</span>
|
|
1693
1710
|
</button>`;
|
|
1694
1711
|
}).join('');
|
|
1695
|
-
el.
|
|
1712
|
+
el.classList.toggle('rail-collapsed', collapsedRails.has('run-sidebar'));
|
|
1713
|
+
el.innerHTML = railToggle('run-sidebar', 'Compare setup') + '<div class="rail-content">' + html + '</div>';
|
|
1696
1714
|
}
|
|
1697
1715
|
|
|
1698
1716
|
function switchEval(index) {
|