deepline 0.3.395 → 0.3.397
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/plays/play-description.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +2 -2
- package/dist/cli/{auth-NMQXZRS7.mjs → auth-AZJFXGKP.mjs} +5 -4
- package/dist/cli/auth-CZJQU7B5.js +40 -0
- package/dist/cli/{billing-Z4JTGUU3.js → billing-MQV5AGDJ.js} +77 -76
- package/dist/cli/{billing-5MVXZRS6.mjs → billing-MZAAUHGH.mjs} +6 -5
- package/dist/cli/{chunk-6D7A2FSL.mjs → chunk-2LDADJNO.mjs} +7 -107
- package/dist/cli/{chunk-UKU6JM3S.js → chunk-3VP34TAU.js} +8 -8
- package/dist/cli/{chunk-7XAM7KDW.mjs → chunk-4D745XZO.mjs} +21 -108
- package/dist/cli/chunk-7DRPTGCK.js +930 -0
- package/dist/cli/{chunk-ZMVJSS6N.js → chunk-BQR6UN3C.js} +62 -78
- package/dist/cli/{chunk-HRWUQJ4K.js → chunk-DQ65ZVHN.js} +6 -6
- package/dist/cli/{chunk-5VCZ3WRH.mjs → chunk-EIMG75BT.mjs} +1 -0
- package/dist/cli/{chunk-EFLQHJZ6.mjs → chunk-F3BUFYKE.mjs} +182 -1031
- package/dist/cli/chunk-FIVKWNMT.mjs +210 -0
- package/dist/cli/{describe-DBRY5BNK.mjs → chunk-HFYQBC2D.mjs} +51 -171
- package/dist/cli/chunk-HGFFYVXN.js +210 -0
- package/dist/cli/{chunk-VB6KECLU.mjs → chunk-IHG7UAHD.mjs} +63 -79
- package/dist/cli/{chunk-TO2MWPGR.js → chunk-IZ74ABSX.js} +1 -1
- package/dist/cli/{chunk-G4IWGRMK.mjs → chunk-J7ABTQQ7.mjs} +5 -3
- package/dist/cli/{chunk-LZLBR2SF.js → chunk-K33MXVXQ.js} +323 -1172
- package/dist/cli/{chunk-DRM3CMHL.js → chunk-KXMNM4AQ.js} +2 -1
- package/dist/cli/chunk-LJ5747UC.mjs +107 -0
- package/dist/cli/{chunk-BON3DRC6.mjs → chunk-MRXMMERY.mjs} +1 -1
- package/dist/cli/{chunk-7MVWUXOD.mjs → chunk-MV7QRALK.mjs} +3 -3
- package/dist/cli/{chunk-WCCKMLHL.mjs → chunk-MYPH2LUU.mjs} +2 -2
- package/dist/cli/{chunk-RDXFGPJU.js → chunk-NA4T3B62.js} +64 -272
- package/dist/cli/{chunk-BLYL3KOC.mjs → chunk-NOX2TCBP.mjs} +1 -1
- package/dist/cli/chunk-OSDXE27V.mjs +88 -0
- package/dist/cli/{chunk-R4XZO6Z5.js → chunk-PSGEDGLT.js} +28 -115
- package/dist/cli/chunk-Q2E4E4FJ.js +112 -0
- package/dist/cli/chunk-RFG3MRAC.js +286 -0
- package/dist/cli/{chunk-47M6HPGP.mjs → chunk-RNSWDKBM.mjs} +1 -1
- package/dist/cli/{chunk-56IFFVIB.js → chunk-RYW4HPSM.js} +21 -121
- package/dist/cli/{chunk-K5T3EN6D.js → chunk-SO7RUVTY.js} +26 -26
- package/dist/cli/{chunk-KZZC33PY.mjs → chunk-TXZVVBQZ.mjs} +63 -271
- package/dist/cli/{chunk-36ML3YKA.js → chunk-UVXBVUZQ.js} +15 -13
- package/dist/cli/{chunk-PZ5BZ76S.js → chunk-VTF4RRWJ.js} +50 -50
- package/dist/cli/{chunk-3TRY7KAC.mjs → chunk-W3HMGKMI.mjs} +2 -2
- package/dist/cli/{chunk-ZWH2TFA7.mjs → chunk-WM2QEHZL.mjs} +2 -2
- package/dist/cli/chunk-YHPYUZZX.mjs +112 -0
- package/dist/cli/chunk-YHZUZO3U.mjs +930 -0
- package/dist/cli/{chunk-UCXK2DS4.js → chunk-YLRME7MK.js} +15 -15
- package/dist/cli/{chunk-MYIBHORT.js → chunk-YSVORIEW.js} +2 -2
- package/dist/cli/{chunk-OCSG6X67.mjs → chunk-YUDKBQUD.mjs} +4 -4
- package/dist/cli/chunk-ZAAKSJAS.js +88 -0
- package/dist/cli/{chunk-VYLJJQ7Y.js → chunk-ZHUMDMOS.js} +65 -65
- package/dist/cli/chunk-ZM2YPJQJ.js +107 -0
- package/dist/cli/{csv-HTS5ZYQ4.js → csv-AQBQ5O3I.js} +13 -12
- package/dist/cli/{csv-SVOD5UBH.mjs → csv-MB7PJMYQ.mjs} +4 -3
- package/dist/cli/{db-7AP4P52N.js → db-JPUYC5RB.js} +31 -30
- package/dist/cli/{db-7QLNI3Q4.mjs → db-L5IEI2AU.mjs} +6 -5
- package/dist/cli/describe-6WT74AOR.js +164 -0
- package/dist/cli/describe-S6BFANVI.mjs +164 -0
- package/dist/cli/describe-core.d.mts +100 -0
- package/dist/cli/describe-core.d.ts +100 -0
- package/dist/cli/describe-core.js +18 -0
- package/dist/cli/describe-core.mjs +18 -0
- package/dist/cli/{executions-GRQXTB2P.js → executions-6TMQTFP4.js} +8 -7
- package/dist/cli/{executions-QNZTPNG4.mjs → executions-L7I2ZW4Z.mjs} +6 -5
- package/dist/cli/{feedback-JMCSR624.mjs → feedback-DSJ63HK6.mjs} +4 -3
- package/dist/cli/{feedback-ZOLA2KY7.js → feedback-XF7CQGMD.js} +8 -7
- package/dist/cli/{git-LJGL2IHS.mjs → git-C3ENM67D.mjs} +5 -4
- package/dist/cli/git-HYDZK2QR.js +24 -0
- package/dist/cli/index.js +96 -94
- package/dist/cli/index.mjs +41 -39
- package/dist/cli/{legacy-noops-YSCIR2SD.js → legacy-noops-B2NHWIVD.js} +8 -7
- package/dist/cli/{legacy-noops-F23PKVBN.mjs → legacy-noops-VFG2K6HK.mjs} +5 -4
- package/dist/cli/{monitors-WMZ6HJZX.js → monitors-ORFWOVZB.js} +87 -86
- package/dist/cli/{monitors-S4LOEL7W.mjs → monitors-TCEDBDGY.mjs} +6 -5
- package/dist/cli/{org-U3WA2NQM.mjs → org-45KREIKZ.mjs} +6 -5
- package/dist/cli/{org-PFHM5ZLY.js → org-T74CJESN.js} +66 -65
- package/dist/cli/{chunk-XMAPE2KH.mjs → play-MU7MYBIM.mjs} +78 -131
- package/dist/cli/{chunk-4KLCLLTO.js → play-XHK2LPON.js} +273 -326
- package/dist/cli/{providers-XYMHLKCA.js → providers-4MGQKYFD.js} +9 -8
- package/dist/cli/{providers-QBBRFBOH.mjs → providers-VYCXIJT5.mjs} +6 -5
- package/dist/cli/{quickstart-IYGD6ZY3.js → quickstart-47G3VEOT.js} +6 -5
- package/dist/cli/{quickstart-5JTDGISY.mjs → quickstart-H724EFM2.mjs} +4 -3
- package/dist/cli/search-3356ENLD.js +30 -0
- package/dist/cli/{search-X6W6GRHS.mjs → search-VQHXEFQ4.mjs} +8 -6
- package/dist/cli/{secrets-UHG6OQFD.js → secrets-ALLKCU35.js} +15 -14
- package/dist/cli/{secrets-N55B67H6.mjs → secrets-CPBNGA44.mjs} +6 -5
- package/dist/cli/{sessions-JTRSTDSS.mjs → sessions-7RSQB7IX.mjs} +5 -4
- package/dist/cli/sessions-FKGAY7WQ.js +16 -0
- package/dist/cli/{settings-Q24HRAQI.mjs → settings-UYSGV4IC.mjs} +9 -8
- package/dist/cli/{settings-ATX4U5AS.js → settings-Y5BI42P7.js} +76 -75
- package/dist/cli/{setup-77ZWLVHT.mjs → setup-L3ZBBTS4.mjs} +7 -6
- package/dist/cli/{setup-EJCNOUCE.js → setup-VXQPEU3E.js} +42 -41
- package/dist/cli/skills-DUZQTDTE.js +29 -0
- package/dist/cli/{skills-XIS5AWQI.mjs → skills-QHVDLSFE.mjs} +5 -4
- package/dist/cli/{tools-WCKLYEGQ.mjs → tools-LSCEK4K2.mjs} +16 -19
- package/dist/cli/tools-YWU5QOQ5.js +39 -0
- package/dist/cli/update-5LYQAI55.js +29 -0
- package/dist/cli/{update-UT5WANMV.mjs → update-CU22OTBM.mjs} +7 -6
- package/dist/cli/{workflow-226QYUN2.js → workflow-ERFLTRNX.js} +17 -16
- package/dist/cli/{workflow-ZMX3L4ML.mjs → workflow-KQARK5BZ.mjs} +7 -6
- package/dist/{client-hdFtwhTm.d.mts → client-D0j-_aaa.d.mts} +2 -1
- package/dist/{client-CivP-PAI.d.ts → client-DflfVyj6.d.ts} +2 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -11
- package/dist/index.mjs +19 -15
- package/dist/install-integrity.json +94 -80
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/play-description.js +4 -2
- package/dist/plays/play-description.mjs +3 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +6 -1
- package/dist/cli/auth-UYCOBAL5.js +0 -39
- package/dist/cli/describe-YKOE54ZO.js +0 -406
- package/dist/cli/git-EJQLRK27.js +0 -23
- package/dist/cli/play-AGSECQFN.mjs +0 -159
- package/dist/cli/play-BR2LWGXK.js +0 -159
- package/dist/cli/search-ZVSYH5GY.js +0 -28
- package/dist/cli/sessions-57L5MGHN.js +0 -15
- package/dist/cli/skills-SPXUBLII.js +0 -28
- package/dist/cli/tools-DBHUUZJX.js +0 -42
- package/dist/cli/update-VSNFXRHJ.js +0 -28
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
4
4
|
|
|
5
|
+
|
|
6
|
+
var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
|
|
7
|
+
|
|
5
8
|
// src/cli/described.ts
|
|
6
9
|
var SHAPE = "{}";
|
|
7
10
|
var RECORD = "Record<string, ";
|
|
@@ -617,87 +620,68 @@ function describedJson(described, view) {
|
|
|
617
620
|
...hidden.length ? { hidden } : {}
|
|
618
621
|
};
|
|
619
622
|
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
const path = process.env.DEEPLINE_EXECUTION_OBSERVATION_PATH;
|
|
625
|
-
const invocationId = process.env.DEEPLINE_EXECUTION_OBSERVATION_ID;
|
|
626
|
-
if (!path || !invocationId) return;
|
|
627
|
-
const pending = `${path}.pending`;
|
|
628
|
-
_fs.writeFileSync.call(void 0,
|
|
629
|
-
pending,
|
|
630
|
-
JSON.stringify({
|
|
631
|
-
schema_version: 1,
|
|
632
|
-
invocation_id: invocationId,
|
|
633
|
-
...observation
|
|
634
|
-
}),
|
|
635
|
-
{ mode: 384 }
|
|
636
|
-
);
|
|
637
|
-
_fs.renameSync.call(void 0, pending, path);
|
|
638
|
-
}
|
|
639
|
-
function recordApiResponse(observation) {
|
|
640
|
-
writeObservation({
|
|
641
|
-
kind: "api_response",
|
|
642
|
-
received_at_ms: observation.receivedAtMs,
|
|
643
|
-
state: observation.state,
|
|
644
|
-
http_status: observation.httpStatus
|
|
645
|
-
});
|
|
623
|
+
function buildPlayDashboardUrl(baseUrl, playName) {
|
|
624
|
+
const trimmedBase = baseUrl.replace(/\/$/, "");
|
|
625
|
+
const encodedPlayName = encodeURIComponent(playName);
|
|
626
|
+
return `${trimmedBase}/dashboard/plays/${encodedPlayName}`;
|
|
646
627
|
}
|
|
647
|
-
function
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
628
|
+
function describedPlay(play) {
|
|
629
|
+
const reference = play.reference || play.name;
|
|
630
|
+
const starter = _nullishCoalesce(play.cloneEditStarter, () => ( _chunkKXMNM4AQjs.cloneEditStarter.call(void 0, play)));
|
|
631
|
+
const csv = _nullishCoalesce(play.csvInput, () => ( {}));
|
|
632
|
+
const csvField = typeof csv.inputField === "string" ? csv.inputField : "csv";
|
|
633
|
+
const alongside = /* @__PURE__ */ new Set([
|
|
634
|
+
csvField,
|
|
635
|
+
"columns",
|
|
636
|
+
...Array.isArray(csv.runLevelControlFields) ? csv.runLevelControlFields.map(String) : []
|
|
637
|
+
]);
|
|
638
|
+
const declared = schemaFields(play.inputSchema).map((field) => field.name);
|
|
639
|
+
const rowNames = schemaFields(csv.rowInputSchema).map((field) => field.name);
|
|
640
|
+
const replaced = play.csvInput ? (rowNames.length > 0 ? rowNames : declared).filter(
|
|
641
|
+
(name) => declared.includes(name) && !alongside.has(name)
|
|
642
|
+
) : [];
|
|
643
|
+
const exclusive = replaced.length ? { field: csvField, with: replaced } : void 0;
|
|
644
|
+
const headers = isRecord(csv.defaultColumns) ? csv.defaultColumns : {};
|
|
645
|
+
const rowInputs = schemaFields(csv.rowInputSchema).map((field) => {
|
|
646
|
+
const header = [headers[field.name]].flat().filter((name) => name && name !== field.name).join(" or ");
|
|
647
|
+
return header ? {
|
|
648
|
+
...field,
|
|
649
|
+
description: [field.description, `CSV header: ${header}`].filter(Boolean).join(" - ")
|
|
650
|
+
} : field;
|
|
655
651
|
});
|
|
652
|
+
const rowOutput = _nullishCoalesce(play.rowOutputSchema, () => ( {}));
|
|
653
|
+
const added = isRecord(rowOutput.addedColumns) ? rowOutput.addedColumns : {};
|
|
654
|
+
const rowOutputs = schemaFields(
|
|
655
|
+
Object.keys(added).length ? { properties: added } : rowOutput
|
|
656
|
+
).map((field) => ({ ...field, required: true }));
|
|
657
|
+
return {
|
|
658
|
+
kind: play.ownerType === "deepline" ? "prebuilt_play" : "custom_play",
|
|
659
|
+
id: reference,
|
|
660
|
+
...play.displayName && play.displayName !== play.name ? { displayName: play.displayName } : {},
|
|
661
|
+
...play.description ? { description: play.description } : {},
|
|
662
|
+
...play.observedCost ? { cost: play.observedCost.displayText } : {},
|
|
663
|
+
guidance: [],
|
|
664
|
+
inputs: schemaFields(play.inputSchema),
|
|
665
|
+
outputs: schemaFields(play.outputSchema),
|
|
666
|
+
...rowInputs.length ? { rowInputs } : {},
|
|
667
|
+
...typeof csv.inputField === "string" ? { csvInput: csv.inputField } : {},
|
|
668
|
+
...rowOutputs.length ? {
|
|
669
|
+
rowOutputs,
|
|
670
|
+
rowOutputsAddToSource: Object.keys(added).length > 0 || rowOutput.preservesSourceColumns === true
|
|
671
|
+
} : {},
|
|
672
|
+
runner: {
|
|
673
|
+
via: "play",
|
|
674
|
+
reference,
|
|
675
|
+
// A CSV play's run command is built by the server around its columns.
|
|
676
|
+
...play.csvInput ? { cli: play.runCommand } : {}
|
|
677
|
+
},
|
|
678
|
+
...starter ? { source: starter.command } : {},
|
|
679
|
+
...exclusive ? { exclusive } : {},
|
|
680
|
+
// A prebuilt's cost is what its recent runs were charged; there is no rate.
|
|
681
|
+
..._optionalChain([play, 'access', _12 => _12.observedCost, 'optionalAccess', _13 => _13.displayText]) ? { cost: play.observedCost.displayText } : {}
|
|
682
|
+
};
|
|
656
683
|
}
|
|
657
684
|
|
|
658
|
-
// src/cli/describe-options.ts
|
|
659
|
-
function addDescribeOptions(command, options = {}) {
|
|
660
|
-
command.option(
|
|
661
|
-
"--prebuilt",
|
|
662
|
-
"Show the Deepline tool or play, not a play your workspace created under the same name"
|
|
663
|
-
).option("--tool", "Same as --prebuilt").option(
|
|
664
|
-
"--verbose",
|
|
665
|
-
"Show secondary fields, and fill in every input and read every output in the examples"
|
|
666
|
-
).option(
|
|
667
|
-
"--cli-example",
|
|
668
|
-
"Show only the CLI example, and explain how it takes inputs and returns outputs"
|
|
669
|
-
).option(
|
|
670
|
-
"--play-example",
|
|
671
|
-
"Show only the in-play example, and explain how it takes inputs and returns outputs"
|
|
672
|
-
).option("--no-example", "Hide the run examples").option(
|
|
673
|
-
"--full-schema",
|
|
674
|
-
`Print every field: a long schema unfolded (over ${SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
|
|
675
|
-
).option(
|
|
676
|
-
"--fields <names>",
|
|
677
|
-
"Show only these fields, comma-separated, plus every required input"
|
|
678
|
-
).option(
|
|
679
|
-
"--feature <name[=value]>",
|
|
680
|
-
"Describe one feature of a tool, such as a model: --feature model=openai/gpt-5.6-luna. A tool lists its features."
|
|
681
|
-
).option(
|
|
682
|
-
"-o, --out <path>",
|
|
683
|
-
"Save the output to this file instead of printing it"
|
|
684
|
-
);
|
|
685
|
-
if (options.schemaOnly !== false) {
|
|
686
|
-
command.option(
|
|
687
|
-
"--schema-only",
|
|
688
|
-
"Print only the schema, with every field, and nothing else"
|
|
689
|
-
);
|
|
690
|
-
}
|
|
691
|
-
if (options.json !== false) {
|
|
692
|
-
command.option(
|
|
693
|
-
"--json",
|
|
694
|
-
"Print JSON instead of text; with --schema-only, only the input and output JSON Schemas"
|
|
695
|
-
);
|
|
696
|
-
}
|
|
697
|
-
return command;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
|
|
701
685
|
|
|
702
686
|
|
|
703
687
|
|
|
@@ -711,4 +695,4 @@ function addDescribeOptions(command, options = {}) {
|
|
|
711
695
|
|
|
712
696
|
|
|
713
697
|
|
|
714
|
-
exports.byokLines = byokLines; exports.SCHEMA_LINE_LIMIT = SCHEMA_LINE_LIMIT; exports.schemaField = schemaField; exports.schemaFields = schemaFields; exports.rateLimitSummary = rateLimitSummary; exports.schemaLines = schemaLines; exports.examples = examples; exports.describedLines = describedLines; exports.topLevelField = topLevelField; exports.describedJson = describedJson; exports.
|
|
698
|
+
exports.byokLines = byokLines; exports.SCHEMA_LINE_LIMIT = SCHEMA_LINE_LIMIT; exports.schemaField = schemaField; exports.schemaFields = schemaFields; exports.rateLimitSummary = rateLimitSummary; exports.schemaLines = schemaLines; exports.examples = examples; exports.describedLines = describedLines; exports.topLevelField = topLevelField; exports.describedJson = describedJson; exports.buildPlayDashboardUrl = buildPlayDashboardUrl; exports.describedPlay = describedPlay;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkRYW4HPSMjs = require('./chunk-RYW4HPSM.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -226,8 +226,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
226
226
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
227
227
|
var defaultBrowserCommandRunner = childProcess;
|
|
228
228
|
function getAuthedHttpClient() {
|
|
229
|
-
const config =
|
|
230
|
-
return { config, http: new (0,
|
|
229
|
+
const config = _chunkRYW4HPSMjs.resolveConfig.call(void 0, );
|
|
230
|
+
return { config, http: new (0, _chunkRYW4HPSMjs.HttpClient)(config) };
|
|
231
231
|
}
|
|
232
232
|
function stableOsUserId() {
|
|
233
233
|
try {
|
|
@@ -567,7 +567,7 @@ function collectLocalEnvInfo() {
|
|
|
567
567
|
os: `${process.platform} ${process.arch}`,
|
|
568
568
|
node_version: process.version,
|
|
569
569
|
home_dir: homeDir,
|
|
570
|
-
agent_runtime:
|
|
570
|
+
agent_runtime: _chunkRYW4HPSMjs.detectAgentRuntime.call(void 0, )
|
|
571
571
|
};
|
|
572
572
|
const env = process.env;
|
|
573
573
|
const optional = {
|
|
@@ -814,9 +814,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
814
814
|
}
|
|
815
815
|
function withAgentCommandContext(value) {
|
|
816
816
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
817
|
-
return
|
|
817
|
+
return _chunkRYW4HPSMjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
818
818
|
...valueRecord,
|
|
819
|
-
command_context:
|
|
819
|
+
command_context: _chunkRYW4HPSMjs.resolveCliCommandContext.call(void 0, )
|
|
820
820
|
} : value;
|
|
821
821
|
}
|
|
822
822
|
function printJson(value, fields) {
|