deepline 0.3.84 → 0.3.86
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/cli/index.js +25 -14
- package/dist/cli/index.mjs +25 -14
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -199,7 +199,7 @@ export const SDK_RELEASE = {
|
|
|
199
199
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
200
200
|
// getters keep their established compatibility behavior.
|
|
201
201
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
202
|
-
version: '0.3.
|
|
202
|
+
version: '0.3.86',
|
|
203
203
|
updateSummary:
|
|
204
204
|
'Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.',
|
|
205
205
|
packageCapabilities: {
|
package/dist/cli/index.js
CHANGED
|
@@ -184,7 +184,7 @@ configureProxyFromEnv();
|
|
|
184
184
|
var import_promises11 = require("fs/promises");
|
|
185
185
|
var import_node_path29 = require("path");
|
|
186
186
|
var import_node_os18 = require("os");
|
|
187
|
-
var
|
|
187
|
+
var import_commander5 = require("commander");
|
|
188
188
|
|
|
189
189
|
// src/config.ts
|
|
190
190
|
var import_node_fs = require("fs");
|
|
@@ -1225,7 +1225,7 @@ var SDK_RELEASE = {
|
|
|
1225
1225
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
1226
1226
|
// getters keep their established compatibility behavior.
|
|
1227
1227
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
1228
|
-
version: "0.3.
|
|
1228
|
+
version: "0.3.86",
|
|
1229
1229
|
updateSummary: "Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.",
|
|
1230
1230
|
packageCapabilities: {
|
|
1231
1231
|
updatePreferences: 1
|
|
@@ -8458,6 +8458,7 @@ var EXIT_OK = 0;
|
|
|
8458
8458
|
var EXIT_AUTH = 3;
|
|
8459
8459
|
var EXIT_SERVER = 5;
|
|
8460
8460
|
var AUTH_HTTP_TIMEOUT_MS = 1e4;
|
|
8461
|
+
var AUTH_REGISTER_HTTP_TIMEOUT_MS = 3e4;
|
|
8461
8462
|
function statusBannerLine(value) {
|
|
8462
8463
|
if (!value || typeof value !== "object" || Array.isArray(value)) return null;
|
|
8463
8464
|
const banner = value;
|
|
@@ -8610,7 +8611,7 @@ function activeOrgEnvValues(data) {
|
|
|
8610
8611
|
[ACTIVE_ORG_NAME_ENV]: orgName
|
|
8611
8612
|
};
|
|
8612
8613
|
}
|
|
8613
|
-
async function httpJson(method, url, apiKey, body) {
|
|
8614
|
+
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
8614
8615
|
const headers = {
|
|
8615
8616
|
"Content-Type": "application/json",
|
|
8616
8617
|
"User-Agent": `deepline-ts-sdk/${SDK_VERSION}`,
|
|
@@ -8631,7 +8632,7 @@ async function httpJson(method, url, apiKey, body) {
|
|
|
8631
8632
|
const timeout = setTimeout(() => {
|
|
8632
8633
|
requestTimedOut = true;
|
|
8633
8634
|
controller.abort();
|
|
8634
|
-
},
|
|
8635
|
+
}, timeoutMs);
|
|
8635
8636
|
try {
|
|
8636
8637
|
const response = await fetch(candidateUrl, {
|
|
8637
8638
|
method,
|
|
@@ -8790,7 +8791,8 @@ async function handleRegister(args) {
|
|
|
8790
8791
|
"POST",
|
|
8791
8792
|
`${baseUrl}/api/v2/auth/cli/register`,
|
|
8792
8793
|
null,
|
|
8793
|
-
payload
|
|
8794
|
+
payload,
|
|
8795
|
+
AUTH_REGISTER_HTTP_TIMEOUT_MS
|
|
8794
8796
|
);
|
|
8795
8797
|
if (status >= 400) {
|
|
8796
8798
|
console.error(`Auth register failed (status ${status}).`);
|
|
@@ -30819,6 +30821,7 @@ function registerEnrichCommand(program) {
|
|
|
30819
30821
|
}
|
|
30820
30822
|
|
|
30821
30823
|
// src/cli/commands/feedback.ts
|
|
30824
|
+
var import_commander3 = require("commander");
|
|
30822
30825
|
var import_node_fs13 = require("fs");
|
|
30823
30826
|
async function handleFeedback(text, options) {
|
|
30824
30827
|
const message = resolveFeedbackText(text, options.file);
|
|
@@ -30828,7 +30831,8 @@ async function handleFeedback(text, options) {
|
|
|
30828
30831
|
requested: options.requested === true,
|
|
30829
30832
|
environment: collectLocalEnvInfo(),
|
|
30830
30833
|
...options.command ? { command: options.command } : {},
|
|
30831
|
-
...options.payload ? { payload: options.payload } : {}
|
|
30834
|
+
...options.payload ? { payload: options.payload } : {},
|
|
30835
|
+
...options.errorOutcome ? { error_outcome: options.errorOutcome } : {}
|
|
30832
30836
|
});
|
|
30833
30837
|
printCommandEnvelope(
|
|
30834
30838
|
{
|
|
@@ -30878,10 +30882,12 @@ function registerFeedbackCommands(program) {
|
|
|
30878
30882
|
Notes:
|
|
30879
30883
|
Sends the feedback text plus local CLI environment info to Deepline support.
|
|
30880
30884
|
Use --command and --payload to attach a reproducible command shape.
|
|
30881
|
-
|
|
30885
|
+
For error reports, use --error-outcome to record whether the error stopped the
|
|
30886
|
+
task or work continued. Agents should pass --requested when the user asked them
|
|
30887
|
+
to submit the report.
|
|
30882
30888
|
|
|
30883
30889
|
Examples:
|
|
30884
|
-
deepline feedback send "plays run failed after upload" --command "deepline plays run my.play.ts --watch"
|
|
30890
|
+
deepline feedback send "plays run failed after upload" --command "deepline plays run my.play.ts --watch" --error-outcome terminal
|
|
30885
30891
|
deepline feedback send "unexpected billing output" --payload '{"command":"billing usage"}' --json
|
|
30886
30892
|
`
|
|
30887
30893
|
);
|
|
@@ -30893,9 +30899,14 @@ Examples:
|
|
|
30893
30899
|
deepline feedback send --file incident.md --requested --json
|
|
30894
30900
|
cat incident.md | deepline feedback send --requested --json
|
|
30895
30901
|
deepline feedback send "tools search returned stale results" --requested --json
|
|
30896
|
-
deepline feedback send "plays run failed after upload" --command "deepline plays run my.play.ts --watch"
|
|
30902
|
+
deepline feedback send "plays run failed after upload" --command "deepline plays run my.play.ts --watch" --error-outcome terminal
|
|
30897
30903
|
`
|
|
30898
|
-
).argument("[text]", "Feedback text").option("--file <path>", "Read feedback text from a file, or - for stdin").option("--command <command>", "Command that reproduced the issue").option("--payload <payload>", "JSON or plain-text payload for the repro").
|
|
30904
|
+
).argument("[text]", "Feedback text").option("--file <path>", "Read feedback text from a file, or - for stdin").option("--command <command>", "Command that reproduced the issue").option("--payload <payload>", "JSON or plain-text payload for the repro").addOption(
|
|
30905
|
+
new import_commander3.Option(
|
|
30906
|
+
"--error-outcome <outcome>",
|
|
30907
|
+
"Error impact on the task: terminal or continued"
|
|
30908
|
+
).choices(["terminal", "continued"])
|
|
30909
|
+
).option(
|
|
30899
30910
|
"--requested",
|
|
30900
30911
|
"Mark the report as explicitly requested by the user"
|
|
30901
30912
|
).option("--json", "Emit JSON output").action(handleFeedback);
|
|
@@ -40135,7 +40146,7 @@ chooses the connected Slack channel or member and the events it receives.
|
|
|
40135
40146
|
}
|
|
40136
40147
|
|
|
40137
40148
|
// src/cli/commands/tools.ts
|
|
40138
|
-
var
|
|
40149
|
+
var import_commander4 = require("commander");
|
|
40139
40150
|
var import_node_fs25 = require("fs");
|
|
40140
40151
|
var import_node_os17 = require("os");
|
|
40141
40152
|
var import_node_path27 = require("path");
|
|
@@ -41192,12 +41203,12 @@ Examples:
|
|
|
41192
41203
|
"--examples-only",
|
|
41193
41204
|
"Only print runnable examples and sample payloads"
|
|
41194
41205
|
).option("--getters-only", "Only print extracted list/value getters").addOption(
|
|
41195
|
-
new
|
|
41206
|
+
new import_commander4.Option(
|
|
41196
41207
|
"--compact",
|
|
41197
41208
|
"Compatibility alias for the default compact view"
|
|
41198
41209
|
).hideHelp()
|
|
41199
41210
|
).addOption(
|
|
41200
|
-
new
|
|
41211
|
+
new import_commander4.Option(
|
|
41201
41212
|
"--contract-json",
|
|
41202
41213
|
"Compatibility alias for compact contract JSON"
|
|
41203
41214
|
).hideHelp()
|
|
@@ -43849,7 +43860,7 @@ async function main() {
|
|
|
43849
43860
|
if (printStartupPhase) {
|
|
43850
43861
|
progress?.phase("loading deepline cli");
|
|
43851
43862
|
}
|
|
43852
|
-
const program = new
|
|
43863
|
+
const program = new import_commander5.Command();
|
|
43853
43864
|
program.name("deepline").description(
|
|
43854
43865
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
43855
43866
|
).version(SDK_VERSION, "-v, --version", "Show version").exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
package/dist/cli/index.mjs
CHANGED
|
@@ -161,7 +161,7 @@ configureProxyFromEnv();
|
|
|
161
161
|
import { mkdtemp as mkdtemp2, rm as rm2, writeFile as writeFile6 } from "fs/promises";
|
|
162
162
|
import { join as join24 } from "path";
|
|
163
163
|
import { tmpdir as tmpdir6 } from "os";
|
|
164
|
-
import { Command as
|
|
164
|
+
import { Command as Command5 } from "commander";
|
|
165
165
|
|
|
166
166
|
// src/config.ts
|
|
167
167
|
import {
|
|
@@ -1210,7 +1210,7 @@ var SDK_RELEASE = {
|
|
|
1210
1210
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
1211
1211
|
// getters keep their established compatibility behavior.
|
|
1212
1212
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
1213
|
-
version: "0.3.
|
|
1213
|
+
version: "0.3.86",
|
|
1214
1214
|
updateSummary: "Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.",
|
|
1215
1215
|
packageCapabilities: {
|
|
1216
1216
|
updatePreferences: 1
|
|
@@ -8455,6 +8455,7 @@ var EXIT_OK = 0;
|
|
|
8455
8455
|
var EXIT_AUTH = 3;
|
|
8456
8456
|
var EXIT_SERVER = 5;
|
|
8457
8457
|
var AUTH_HTTP_TIMEOUT_MS = 1e4;
|
|
8458
|
+
var AUTH_REGISTER_HTTP_TIMEOUT_MS = 3e4;
|
|
8458
8459
|
function statusBannerLine(value) {
|
|
8459
8460
|
if (!value || typeof value !== "object" || Array.isArray(value)) return null;
|
|
8460
8461
|
const banner = value;
|
|
@@ -8607,7 +8608,7 @@ function activeOrgEnvValues(data) {
|
|
|
8607
8608
|
[ACTIVE_ORG_NAME_ENV]: orgName
|
|
8608
8609
|
};
|
|
8609
8610
|
}
|
|
8610
|
-
async function httpJson(method, url, apiKey, body) {
|
|
8611
|
+
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
8611
8612
|
const headers = {
|
|
8612
8613
|
"Content-Type": "application/json",
|
|
8613
8614
|
"User-Agent": `deepline-ts-sdk/${SDK_VERSION}`,
|
|
@@ -8628,7 +8629,7 @@ async function httpJson(method, url, apiKey, body) {
|
|
|
8628
8629
|
const timeout = setTimeout(() => {
|
|
8629
8630
|
requestTimedOut = true;
|
|
8630
8631
|
controller.abort();
|
|
8631
|
-
},
|
|
8632
|
+
}, timeoutMs);
|
|
8632
8633
|
try {
|
|
8633
8634
|
const response = await fetch(candidateUrl, {
|
|
8634
8635
|
method,
|
|
@@ -8787,7 +8788,8 @@ async function handleRegister(args) {
|
|
|
8787
8788
|
"POST",
|
|
8788
8789
|
`${baseUrl}/api/v2/auth/cli/register`,
|
|
8789
8790
|
null,
|
|
8790
|
-
payload
|
|
8791
|
+
payload,
|
|
8792
|
+
AUTH_REGISTER_HTTP_TIMEOUT_MS
|
|
8791
8793
|
);
|
|
8792
8794
|
if (status >= 400) {
|
|
8793
8795
|
console.error(`Auth register failed (status ${status}).`);
|
|
@@ -30881,6 +30883,7 @@ function registerEnrichCommand(program) {
|
|
|
30881
30883
|
}
|
|
30882
30884
|
|
|
30883
30885
|
// src/cli/commands/feedback.ts
|
|
30886
|
+
import { Option as Option2 } from "commander";
|
|
30884
30887
|
import { readFileSync as readFileSync9 } from "fs";
|
|
30885
30888
|
async function handleFeedback(text, options) {
|
|
30886
30889
|
const message = resolveFeedbackText(text, options.file);
|
|
@@ -30890,7 +30893,8 @@ async function handleFeedback(text, options) {
|
|
|
30890
30893
|
requested: options.requested === true,
|
|
30891
30894
|
environment: collectLocalEnvInfo(),
|
|
30892
30895
|
...options.command ? { command: options.command } : {},
|
|
30893
|
-
...options.payload ? { payload: options.payload } : {}
|
|
30896
|
+
...options.payload ? { payload: options.payload } : {},
|
|
30897
|
+
...options.errorOutcome ? { error_outcome: options.errorOutcome } : {}
|
|
30894
30898
|
});
|
|
30895
30899
|
printCommandEnvelope(
|
|
30896
30900
|
{
|
|
@@ -30940,10 +30944,12 @@ function registerFeedbackCommands(program) {
|
|
|
30940
30944
|
Notes:
|
|
30941
30945
|
Sends the feedback text plus local CLI environment info to Deepline support.
|
|
30942
30946
|
Use --command and --payload to attach a reproducible command shape.
|
|
30943
|
-
|
|
30947
|
+
For error reports, use --error-outcome to record whether the error stopped the
|
|
30948
|
+
task or work continued. Agents should pass --requested when the user asked them
|
|
30949
|
+
to submit the report.
|
|
30944
30950
|
|
|
30945
30951
|
Examples:
|
|
30946
|
-
deepline feedback send "plays run failed after upload" --command "deepline plays run my.play.ts --watch"
|
|
30952
|
+
deepline feedback send "plays run failed after upload" --command "deepline plays run my.play.ts --watch" --error-outcome terminal
|
|
30947
30953
|
deepline feedback send "unexpected billing output" --payload '{"command":"billing usage"}' --json
|
|
30948
30954
|
`
|
|
30949
30955
|
);
|
|
@@ -30955,9 +30961,14 @@ Examples:
|
|
|
30955
30961
|
deepline feedback send --file incident.md --requested --json
|
|
30956
30962
|
cat incident.md | deepline feedback send --requested --json
|
|
30957
30963
|
deepline feedback send "tools search returned stale results" --requested --json
|
|
30958
|
-
deepline feedback send "plays run failed after upload" --command "deepline plays run my.play.ts --watch"
|
|
30964
|
+
deepline feedback send "plays run failed after upload" --command "deepline plays run my.play.ts --watch" --error-outcome terminal
|
|
30959
30965
|
`
|
|
30960
|
-
).argument("[text]", "Feedback text").option("--file <path>", "Read feedback text from a file, or - for stdin").option("--command <command>", "Command that reproduced the issue").option("--payload <payload>", "JSON or plain-text payload for the repro").
|
|
30966
|
+
).argument("[text]", "Feedback text").option("--file <path>", "Read feedback text from a file, or - for stdin").option("--command <command>", "Command that reproduced the issue").option("--payload <payload>", "JSON or plain-text payload for the repro").addOption(
|
|
30967
|
+
new Option2(
|
|
30968
|
+
"--error-outcome <outcome>",
|
|
30969
|
+
"Error impact on the task: terminal or continued"
|
|
30970
|
+
).choices(["terminal", "continued"])
|
|
30971
|
+
).option(
|
|
30961
30972
|
"--requested",
|
|
30962
30973
|
"Mark the report as explicitly requested by the user"
|
|
30963
30974
|
).option("--json", "Emit JSON output").action(handleFeedback);
|
|
@@ -40252,7 +40263,7 @@ chooses the connected Slack channel or member and the events it receives.
|
|
|
40252
40263
|
}
|
|
40253
40264
|
|
|
40254
40265
|
// src/cli/commands/tools.ts
|
|
40255
|
-
import { Option as
|
|
40266
|
+
import { Option as Option3 } from "commander";
|
|
40256
40267
|
import {
|
|
40257
40268
|
chmodSync,
|
|
40258
40269
|
existsSync as existsSync19,
|
|
@@ -41321,12 +41332,12 @@ Examples:
|
|
|
41321
41332
|
"--examples-only",
|
|
41322
41333
|
"Only print runnable examples and sample payloads"
|
|
41323
41334
|
).option("--getters-only", "Only print extracted list/value getters").addOption(
|
|
41324
|
-
new
|
|
41335
|
+
new Option3(
|
|
41325
41336
|
"--compact",
|
|
41326
41337
|
"Compatibility alias for the default compact view"
|
|
41327
41338
|
).hideHelp()
|
|
41328
41339
|
).addOption(
|
|
41329
|
-
new
|
|
41340
|
+
new Option3(
|
|
41330
41341
|
"--contract-json",
|
|
41331
41342
|
"Compatibility alias for compact contract JSON"
|
|
41332
41343
|
).hideHelp()
|
|
@@ -43978,7 +43989,7 @@ async function main() {
|
|
|
43978
43989
|
if (printStartupPhase) {
|
|
43979
43990
|
progress?.phase("loading deepline cli");
|
|
43980
43991
|
}
|
|
43981
|
-
const program = new
|
|
43992
|
+
const program = new Command5();
|
|
43982
43993
|
program.name("deepline").description(
|
|
43983
43994
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
43984
43995
|
).version(SDK_VERSION, "-v, --version", "Show version").exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
package/dist/index.js
CHANGED
|
@@ -832,7 +832,7 @@ var SDK_RELEASE = {
|
|
|
832
832
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
833
833
|
// getters keep their established compatibility behavior.
|
|
834
834
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
835
|
-
version: "0.3.
|
|
835
|
+
version: "0.3.86",
|
|
836
836
|
updateSummary: "Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.",
|
|
837
837
|
packageCapabilities: {
|
|
838
838
|
updatePreferences: 1
|
package/dist/index.mjs
CHANGED
|
@@ -744,7 +744,7 @@ var SDK_RELEASE = {
|
|
|
744
744
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
745
745
|
// getters keep their established compatibility behavior.
|
|
746
746
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
747
|
-
version: "0.3.
|
|
747
|
+
version: "0.3.86",
|
|
748
748
|
updateSummary: "Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.",
|
|
749
749
|
packageCapabilities: {
|
|
750
750
|
updatePreferences: 1
|