deepline 0.3.493 → 0.3.494
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 +2 -2
- package/dist/bundling-sources/sdk/src/types.ts +5 -4
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +15 -0
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +101 -3
- package/dist/cli/{auth-3NAY3AST.mjs → auth-6X5YXMFN.mjs} +5 -5
- package/dist/cli/auth-RWLCLMDY.js +43 -0
- package/dist/cli/{billing-FSB4BBBO.js → billing-5F5PZB77.js} +79 -79
- package/dist/cli/{billing-SBWQCC7B.mjs → billing-IN74SDSC.mjs} +6 -6
- package/dist/cli/{chunk-3RGWTKK3.mjs → chunk-2GEYN3H4.mjs} +89 -3
- package/dist/cli/{chunk-MLEUOTEQ.js → chunk-3KVFOKPR.js} +53 -53
- package/dist/cli/{chunk-IOBPR2VO.js → chunk-4A5WXQJK.js} +16 -16
- package/dist/cli/{chunk-NALJJTPS.mjs → chunk-4RWH4LRQ.mjs} +5 -5
- package/dist/cli/{chunk-UCMY2SO2.js → chunk-4ZKZS43N.js} +3 -3
- package/dist/cli/{chunk-IJOHWGPF.js → chunk-5WYH2LAP.js} +6 -6
- package/dist/cli/{chunk-2BRTYIAH.mjs → chunk-65NMOP4T.mjs} +3 -3
- package/dist/cli/{chunk-VFHIYWMC.mjs → chunk-6DMLWM7L.mjs} +2 -2
- package/dist/cli/{chunk-3QGUWB6E.mjs → chunk-6XZR2642.mjs} +8 -7
- package/dist/cli/{chunk-XQX476QK.js → chunk-7B7A36XZ.js} +9 -9
- package/dist/cli/{chunk-DWJ4RXSA.js → chunk-AARXOBVD.js} +1 -0
- package/dist/cli/{chunk-ZVW7EWTC.mjs → chunk-BLHQRETG.mjs} +184 -184
- package/dist/cli/{chunk-NPZBE64X.js → chunk-BLMB4N63.js} +89 -3
- package/dist/cli/{chunk-LGTZYI5B.js → chunk-BNI653WN.js} +21 -21
- package/dist/cli/{chunk-2H4OFVR5.js → chunk-BU5Y7HOD.js} +5 -5
- package/dist/cli/{chunk-KGDDQMI7.mjs → chunk-C5R3UH5V.mjs} +28 -1
- package/dist/cli/{chunk-NPNAEPY4.js → chunk-CAWOSHEC.js} +26 -26
- package/dist/cli/{chunk-HTUSTPP4.js → chunk-CK5MA6S6.js} +7 -7
- package/dist/cli/{chunk-EBAS3UT2.mjs → chunk-DKKAJ3U2.mjs} +5 -5
- package/dist/cli/{chunk-4IJFQV3O.mjs → chunk-EG3OSUBO.mjs} +1 -1
- package/dist/cli/{chunk-TNQOR6XQ.mjs → chunk-FAT6CUZK.mjs} +1 -1
- package/dist/cli/{chunk-TIFRRLZT.js → chunk-GBICEYUA.js} +6 -6
- package/dist/cli/{chunk-XLE7KXE7.js → chunk-GDNQXLBM.js} +2 -2
- package/dist/cli/{chunk-AWMCZAUR.js → chunk-GLDBMKTV.js} +3 -3
- package/dist/cli/{chunk-GSC35TPZ.mjs → chunk-GNSGDIA4.mjs} +2 -2
- package/dist/cli/{chunk-7HABWOMB.js → chunk-GSCCDGGT.js} +259 -259
- package/dist/cli/{chunk-IRDYBMA7.mjs → chunk-H46X7YDU.mjs} +1 -0
- package/dist/cli/{chunk-NWIDPT7H.js → chunk-HINVMRGQ.js} +4 -4
- package/dist/cli/{chunk-C2MRDPA5.js → chunk-I42EOZKQ.js} +32 -5
- package/dist/cli/{chunk-HLM2UFQ5.mjs → chunk-IPWYDANJ.mjs} +1 -1
- package/dist/cli/{chunk-5DIZ2G74.mjs → chunk-IZJSX3SZ.mjs} +2 -2
- package/dist/cli/{chunk-WTFI7BVH.mjs → chunk-J2HOVZOE.mjs} +1 -1
- package/dist/cli/{chunk-IOMEJKGK.js → chunk-J3UHNUWI.js} +2 -2
- package/dist/cli/{chunk-4NIGNT7X.mjs → chunk-KR2XEI5T.mjs} +1 -1
- package/dist/cli/{chunk-5WOPBX3H.mjs → chunk-KSHAFYYG.mjs} +1 -1
- package/dist/cli/{chunk-DYP27IWC.mjs → chunk-KVCQL6SP.mjs} +4 -4
- package/dist/cli/{chunk-SXD2EYAH.mjs → chunk-L2P2XRPO.mjs} +37 -5
- package/dist/cli/{chunk-67ZG7XZV.mjs → chunk-L4QPBQUX.mjs} +2 -2
- package/dist/cli/{chunk-QTPS5RLG.js → chunk-L6KA4ENU.js} +45 -13
- package/dist/cli/{chunk-ZQH4TXM2.mjs → chunk-L6L57RSG.mjs} +2 -2
- package/dist/cli/{chunk-Y3NN2UAF.mjs → chunk-MWZNMWR2.mjs} +2 -2
- package/dist/cli/{chunk-2IHGVAGT.mjs → chunk-ODWTFVE4.mjs} +2 -2
- package/dist/cli/{chunk-KKSKYZO4.mjs → chunk-QOEI42IU.mjs} +2 -2
- package/dist/cli/{chunk-WCZFCOMZ.js → chunk-QSRWBOPV.js} +11 -10
- package/dist/cli/{chunk-E5ILCMKQ.mjs → chunk-RPFNIMUO.mjs} +1 -1
- package/dist/cli/{chunk-EFO5GVYS.js → chunk-S3XQH7DW.js} +2 -2
- package/dist/cli/{chunk-IJJ6D5WL.mjs → chunk-TLQXN4ZZ.mjs} +11 -11
- package/dist/cli/{chunk-KCDZWS2B.js → chunk-USWLB4KV.js} +231 -231
- package/dist/cli/{chunk-2NGIBJM2.js → chunk-VMPM2FKT.js} +8 -8
- package/dist/cli/{chunk-ZVXB7OU7.mjs → chunk-WCZBIE5L.mjs} +1 -1
- package/dist/cli/{chunk-EYG336YV.js → chunk-WP45PUPW.js} +41 -41
- package/dist/cli/{chunk-AGTXL6LZ.js → chunk-X6HIIHQO.js} +5 -5
- package/dist/cli/{chunk-JO2JZUBR.js → chunk-Y4GRL533.js} +3 -3
- package/dist/cli/{chunk-2I7VN65H.js → chunk-ZZD245Z2.js} +7 -7
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-DKYZE2KM.js → csv-QD7JJGSP.js} +13 -13
- package/dist/cli/{csv-XR22YQXT.mjs → csv-UBW4ID5D.mjs} +4 -4
- package/dist/cli/{db-RNYRTCMV.js → db-AARR3WYD.js} +27 -27
- package/dist/cli/{db-EOKG36YN.mjs → db-QFDXKIVD.mjs} +6 -6
- package/dist/cli/{describe-ICFXOQBW.mjs → describe-OBVIAC2H.mjs} +20 -20
- package/dist/cli/describe-RYJ6HDYD.js +50 -0
- package/dist/cli/describe-core.d.mts +5 -11
- package/dist/cli/describe-core.d.ts +5 -11
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-3RAOACNS.mjs → executions-IZYUDYTZ.mjs} +6 -6
- package/dist/cli/{executions-OBWPSWH7.js → executions-KXY7KMZY.js} +8 -8
- package/dist/cli/{feedback-6GPEUBLF.js → feedback-3334HBPD.js} +8 -8
- package/dist/cli/{feedback-6EQRVBKF.mjs → feedback-IVCVBERN.mjs} +4 -4
- package/dist/cli/git-4VLYFHNU.js +25 -0
- package/dist/cli/{git-CVQ24DTR.mjs → git-JHNVET5A.mjs} +5 -5
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-XPOATG5V.js → legacy-noops-DBA32JCV.js} +8 -8
- package/dist/cli/{legacy-noops-QULJZYNH.mjs → legacy-noops-WGVBUOCC.mjs} +5 -5
- package/dist/cli/{monitors-OJ4CMREE.js → monitors-GHWZ5AZS.js} +91 -91
- package/dist/cli/{monitors-AFT5YJPZ.mjs → monitors-ZGANC7JY.mjs} +7 -7
- package/dist/cli/{org-WHKNXANG.mjs → org-CUS42N2T.mjs} +6 -6
- package/dist/cli/{org-RKT52CSL.js → org-S7JWP264.js} +72 -72
- package/dist/cli/{pages-EEAQFGVD.mjs → pages-IH56T6L6.mjs} +6 -6
- package/dist/cli/{pages-SOE3R667.js → pages-QXRZDEJW.js} +17 -17
- package/dist/cli/{play-OTJJ4E4T.js → play-4C5PYS62.js} +314 -314
- package/dist/cli/{play-LXFWHUBP.mjs → play-Z65ZFOQH.mjs} +17 -17
- package/dist/cli/{providers-U3CPKTMM.mjs → providers-FSZSJX4Z.mjs} +6 -6
- package/dist/cli/{providers-RU4HIAT3.js → providers-XYQGYF3O.js} +9 -9
- package/dist/cli/{quickstart-75AO2AJC.mjs → quickstart-DHWVE32I.mjs} +4 -4
- package/dist/cli/{quickstart-N72IVA2Y.js → quickstart-ZA25RJT3.js} +6 -6
- package/dist/cli/{run-MMYES3IW.js → run-5MP6LEHM.js} +40 -40
- package/dist/cli/{run-IGWFL6WH.mjs → run-WRPPEPLG.mjs} +25 -25
- package/dist/cli/search-4SQFVNTB.js +32 -0
- package/dist/cli/{search-FIYESBLZ.mjs → search-A6NVJPKX.mjs} +7 -7
- package/dist/cli/{search-output-3I5KSW36.mjs → search-output-PAOUMVXY.mjs} +4 -4
- package/dist/cli/{search-output-2FXN4ZWD.js → search-output-YA6TXWGO.js} +6 -6
- package/dist/cli/{secrets-HCZQ6JNP.js → secrets-AZYOGH3I.js} +15 -15
- package/dist/cli/{secrets-O7IUQ3VT.mjs → secrets-ZGF7JOBI.mjs} +6 -6
- package/dist/cli/{sessions-5AYTT4IW.js → sessions-GCIN5VXT.js} +6 -6
- package/dist/cli/{sessions-KY7A3EZO.mjs → sessions-RNEAXZPV.mjs} +5 -5
- package/dist/cli/{settings-P4VFYWJK.js → settings-LMEZNLBB.js} +78 -78
- package/dist/cli/{settings-WSMRR2GS.mjs → settings-NO5KXQJF.mjs} +11 -11
- package/dist/cli/{setup-YTVKVQC7.mjs → setup-GCYB4IFS.mjs} +9 -9
- package/dist/cli/{setup-J7CA3EJL.js → setup-XKTZPYYH.js} +49 -49
- package/dist/cli/{skills-W5WY764N.mjs → skills-TY4HHIKH.mjs} +7 -7
- package/dist/cli/skills-V4APQA2I.js +36 -0
- package/dist/cli/tools-HKQLQ7HT.js +57 -0
- package/dist/cli/{tools-YECI6N3N.mjs → tools-RDTHHYJ3.mjs} +18 -18
- package/dist/cli/{update-BIFBIEII.mjs → update-BRLLTTCS.mjs} +9 -9
- package/dist/cli/update-Z4MUAHWM.js +34 -0
- package/dist/cli/{workflow-XZVDNARC.mjs → workflow-F72EVZWM.mjs} +7 -7
- package/dist/cli/{workflow-D2TUFFH6.js → workflow-YHA4WE3K.js} +17 -17
- package/dist/{client-BDB_VbE4.d.ts → client-97yTcdLl.d.ts} +1 -1
- package/dist/{client-CNzJ1LTF.d.mts → client-CFo9qalW.d.mts} +1 -1
- package/dist/{client-core-xEa9x3pl.d.ts → client-core-BRZrY13B.d.ts} +5 -5
- package/dist/{client-core-CSv3DlPD.d.mts → client-core-Dl6xgfLq.d.mts} +5 -5
- package/dist/{compiler-manifest-BFTwq1HI.d.ts → compiler-manifest-CPEF48NM.d.mts} +91 -0
- package/dist/{compiler-manifest-BFTwq1HI.d.mts → compiler-manifest-CPEF48NM.d.ts} +91 -0
- package/dist/{errors-c3pMsylw.d.ts → errors-B-PJXveg.d.ts} +1 -1
- package/dist/{errors-w31ybrQM.d.mts → errors-BWbPzqwo.d.mts} +1 -1
- package/dist/{index-DvNtxucX.d.mts → index-BJ8AA1F9.d.mts} +1 -1
- package/dist/{index-CQ-15-QL.d.ts → index-CvVxPpE8.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +26 -18
- package/dist/index.mjs +15 -7
- package/dist/install-integrity.json +116 -116
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +2 -2
- package/dist/release.d.ts +2 -2
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-KYQLDI6V.js +0 -43
- package/dist/cli/describe-RS75I33X.js +0 -50
- package/dist/cli/git-DEFE4SSB.js +0 -25
- package/dist/cli/search-EQURI7SZ.js +0 -32
- package/dist/cli/skills-KKPEGLAR.js +0 -36
- package/dist/cli/tools-65Y4QTW6.js +0 -57
- package/dist/cli/update-WDG7VFOW.js +0 -34
|
@@ -388,6 +388,7 @@ Examples:
|
|
|
388
388
|
deepline search "50 company domains -> each one's lead investors"
|
|
389
389
|
deepline search "company domain -> contacts in sales leadership" --type plays
|
|
390
390
|
deepline search "upload a contact list as a Meta ads audience"
|
|
391
|
+
deepline search "how do webhooks trigger a play" --type docs
|
|
391
392
|
]]
|
|
392
393
|
[[mcp:
|
|
393
394
|
query "first name, last name and company domain -> verified work email"
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkS3XQH7DWjs = require('./chunk-S3XQH7DW.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunkS3XQH7DWjs.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunkS3XQH7DWjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkS3XQH7DWjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGBICEYUAjs = require('./chunk-GBICEYUA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -31,7 +31,7 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunkGBICEYUAjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
@@ -82,6 +82,13 @@ async function describeFeature(tool, feature, value, dependencies) {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
// src/cli/describe-core.ts
|
|
85
|
+
var DOCS_URL = "https://deepline.com/docs";
|
|
86
|
+
var SKILLS_URL = "https://code.deepline.com/.well-known/skills";
|
|
87
|
+
function docUrl(path) {
|
|
88
|
+
if (!path.startsWith("skills/")) return `${DOCS_URL}/${path}`;
|
|
89
|
+
const skillPath = path.slice("skills/".length);
|
|
90
|
+
return skillPath.includes("/") ? `${SKILLS_URL}/${skillPath}.md` : `${SKILLS_URL}/${skillPath}/SKILL.md`;
|
|
91
|
+
}
|
|
85
92
|
var FILTER_OF = {
|
|
86
93
|
tool: "tools",
|
|
87
94
|
monitor_type: "monitors",
|
|
@@ -102,6 +109,16 @@ async function found(lookup) {
|
|
|
102
109
|
function describeLookupsFor(client) {
|
|
103
110
|
return {
|
|
104
111
|
play: (reference) => found(client.describePlay(reference)),
|
|
112
|
+
doc: async (url) => {
|
|
113
|
+
const markdownUrl = url.endsWith(".md") ? url : `${url}.md`;
|
|
114
|
+
const response = await fetch(markdownUrl);
|
|
115
|
+
if (response.status === 404) return null;
|
|
116
|
+
if (!response.ok)
|
|
117
|
+
throw new Error(
|
|
118
|
+
`Could not read ${markdownUrl}: HTTP ${response.status}`
|
|
119
|
+
);
|
|
120
|
+
return response.text();
|
|
121
|
+
},
|
|
105
122
|
tool: (name) => found(client.getTool(name)),
|
|
106
123
|
describeModel: (model) => client.describeModel(model),
|
|
107
124
|
baseUrl: client.baseUrl
|
|
@@ -131,18 +148,18 @@ async function findNamed(reference, options, lookups) {
|
|
|
131
148
|
const features = toolFeatures(record);
|
|
132
149
|
return {
|
|
133
150
|
described: {
|
|
134
|
-
...
|
|
151
|
+
..._chunkGBICEYUAjs.describedTool.call(void 0, record, name),
|
|
135
152
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
136
153
|
// it is a feature, described with --feature byok.
|
|
137
154
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
138
155
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
139
156
|
},
|
|
140
|
-
record:
|
|
157
|
+
record: _chunkGBICEYUAjs.toolMetadataJsonForDescribe.call(void 0,
|
|
141
158
|
record,
|
|
142
159
|
name,
|
|
143
160
|
lookups.seedStarterScript
|
|
144
161
|
),
|
|
145
|
-
schemas:
|
|
162
|
+
schemas: _chunkGBICEYUAjs.publicToolSchemas.call(void 0, record),
|
|
146
163
|
feature: (featureName, value) => {
|
|
147
164
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
148
165
|
return feature ? describeFeature(record, feature, value, {
|
|
@@ -168,6 +185,16 @@ async function findNamed(reference, options, lookups) {
|
|
|
168
185
|
return { chosen, shadowed };
|
|
169
186
|
}
|
|
170
187
|
async function describeName(name, options, lookups) {
|
|
188
|
+
if (name.startsWith("docs/") && !options.kinds) {
|
|
189
|
+
const url = docUrl(name.slice("docs/".length));
|
|
190
|
+
const markdown = await lookups.doc(url);
|
|
191
|
+
if (markdown === null) return { status: "missing" };
|
|
192
|
+
return {
|
|
193
|
+
status: "described",
|
|
194
|
+
envelope: { kind: "doc", id: name, url, markdown },
|
|
195
|
+
lines: [`${name} [doc]`, url, "", markdown]
|
|
196
|
+
};
|
|
197
|
+
}
|
|
171
198
|
const { chosen, shadowed } = await findNamed(name, options, lookups);
|
|
172
199
|
if (!chosen) return { status: "missing" };
|
|
173
200
|
const { described, record } = chosen;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J2HOVZOE.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KR2XEI5T.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkZZD245Z2js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BLHQRETG.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6DMLWM7L.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KR2XEI5T.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FAT6CUZK.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -1,27 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TLQXN4ZZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IPWYDANJ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
10
10
|
findNamed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-C5R3UH5V.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SCHEMA_LINE_LIMIT
|
|
14
14
|
} from "./chunk-SAW3FBCA.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GNSGDIA4.mjs";
|
|
18
|
+
import {
|
|
19
|
+
failureReportHeaders,
|
|
20
|
+
isFailureReportingDisabled
|
|
21
|
+
} from "./chunk-BLHQRETG.mjs";
|
|
18
22
|
import {
|
|
19
23
|
printCommandEnvelope
|
|
20
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6DMLWM7L.mjs";
|
|
25
|
+
import {
|
|
26
|
+
autoDetectBaseUrl,
|
|
27
|
+
resolveApiKeyForBaseUrl
|
|
28
|
+
} from "./chunk-KR2XEI5T.mjs";
|
|
21
29
|
|
|
22
30
|
// src/cli/commands/describe.ts
|
|
23
31
|
import { writeFileSync } from "fs";
|
|
24
32
|
import { resolve } from "path";
|
|
33
|
+
|
|
34
|
+
// src/cli/doc-read-reporting.ts
|
|
35
|
+
var REPORT_TIMEOUT_MS = 1e3;
|
|
36
|
+
async function reportDocRead(docId) {
|
|
37
|
+
if (isFailureReportingDisabled()) return;
|
|
38
|
+
try {
|
|
39
|
+
const baseUrl = autoDetectBaseUrl().replace(/\/$/, "");
|
|
40
|
+
const apiKey = resolveApiKeyForBaseUrl(baseUrl);
|
|
41
|
+
if (!apiKey) return;
|
|
42
|
+
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
43
|
+
method: "POST",
|
|
44
|
+
headers: failureReportHeaders(apiKey),
|
|
45
|
+
body: JSON.stringify({ doc_id: docId }),
|
|
46
|
+
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
47
|
+
});
|
|
48
|
+
} catch {
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// src/cli/commands/describe.ts
|
|
25
53
|
function nothingNamed(name) {
|
|
26
54
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
27
55
|
}
|
|
@@ -46,6 +74,7 @@ async function describeAnything(name, options, onMissing) {
|
|
|
46
74
|
console.error(outcome.message);
|
|
47
75
|
return outcome.exitCode;
|
|
48
76
|
}
|
|
77
|
+
if (outcome.envelope.kind === "doc") await reportDocRead(name);
|
|
49
78
|
return deliver(outcome.envelope, outcome.lines, {
|
|
50
79
|
json: options.json === true,
|
|
51
80
|
out: options.out
|
|
@@ -80,6 +109,8 @@ What you can describe:
|
|
|
80
109
|
Any id deepline search returns: a tool id, a monitor type id, or a play name
|
|
81
110
|
or reference. You do not say which kind it is; tool ids, monitor type ids
|
|
82
111
|
and prebuilt play names never overlap.
|
|
112
|
+
A docs/<path> id prints that documentation page as Markdown, and
|
|
113
|
+
docs/skills/<name> prints that skill.
|
|
83
114
|
|
|
84
115
|
When a name is taken twice:
|
|
85
116
|
A play your workspace created is shown instead of a Deepline tool, monitor
|
|
@@ -135,6 +166,7 @@ Older commands:
|
|
|
135
166
|
Examples:
|
|
136
167
|
deepline describe hunter_email_verifier
|
|
137
168
|
deepline describe person-linkedin-to-email
|
|
169
|
+
deepline describe docs/sdk-v2/reference
|
|
138
170
|
deepline describe my-play --prebuilt
|
|
139
171
|
deepline describe ai_ark_people_search --full-schema
|
|
140
172
|
deepline describe prebuilt/person-to-email-batch --web-url
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J2HOVZOE.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-DVQHG6AM.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6DMLWM7L.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1,41 +1,69 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGSCCDGGTjs = require('./chunk-GSCCDGGT.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4ZKZS43Njs = require('./chunk-4ZKZS43N.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkI42EOZKQjs = require('./chunk-I42EOZKQ.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkBU5Y7HODjs = require('./chunk-BU5Y7HOD.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
var _chunkUSWLB4KVjs = require('./chunk-USWLB4KV.js');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
var _chunkY4GRL533js = require('./chunk-Y4GRL533.js');
|
|
21
29
|
|
|
22
30
|
// src/cli/commands/describe.ts
|
|
23
31
|
var _fs = require('fs');
|
|
24
32
|
var _path = require('path');
|
|
33
|
+
|
|
34
|
+
// src/cli/doc-read-reporting.ts
|
|
35
|
+
var REPORT_TIMEOUT_MS = 1e3;
|
|
36
|
+
async function reportDocRead(docId) {
|
|
37
|
+
if (_chunkUSWLB4KVjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
38
|
+
try {
|
|
39
|
+
const baseUrl = _chunkY4GRL533js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
40
|
+
const apiKey = _chunkY4GRL533js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
41
|
+
if (!apiKey) return;
|
|
42
|
+
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
43
|
+
method: "POST",
|
|
44
|
+
headers: _chunkUSWLB4KVjs.failureReportHeaders.call(void 0, apiKey),
|
|
45
|
+
body: JSON.stringify({ doc_id: docId }),
|
|
46
|
+
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
47
|
+
});
|
|
48
|
+
} catch (e) {
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// src/cli/commands/describe.ts
|
|
25
53
|
function nothingNamed(name) {
|
|
26
54
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
27
55
|
}
|
|
28
56
|
function findNamed2(name, options) {
|
|
29
|
-
return
|
|
57
|
+
return _chunkI42EOZKQjs.findNamed.call(void 0, name, options, _chunkI42EOZKQjs.describeLookupsFor.call(void 0, new (0, _chunkBU5Y7HODjs.DeeplineClient)()));
|
|
30
58
|
}
|
|
31
59
|
async function describeAnything(name, options, onMissing) {
|
|
32
|
-
const client = new (0,
|
|
33
|
-
const lookups =
|
|
34
|
-
const outcome = await
|
|
60
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
61
|
+
const lookups = _chunkI42EOZKQjs.describeLookupsFor.call(void 0, client);
|
|
62
|
+
const outcome = await _chunkI42EOZKQjs.describeName.call(void 0, name, options, {
|
|
35
63
|
...lookups,
|
|
36
64
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
37
65
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
38
|
-
seedStarterScript:
|
|
66
|
+
seedStarterScript: _chunkGSCCDGGTjs.seedToolListScript
|
|
39
67
|
});
|
|
40
68
|
if (outcome.status === "missing") {
|
|
41
69
|
if (onMissing) return onMissing();
|
|
@@ -46,6 +74,7 @@ async function describeAnything(name, options, onMissing) {
|
|
|
46
74
|
console.error(outcome.message);
|
|
47
75
|
return outcome.exitCode;
|
|
48
76
|
}
|
|
77
|
+
if (outcome.envelope.kind === "doc") await reportDocRead(name);
|
|
49
78
|
return deliver(outcome.envelope, outcome.lines, {
|
|
50
79
|
json: options.json === true,
|
|
51
80
|
out: options.out
|
|
@@ -60,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
60
89
|
` : text;
|
|
61
90
|
_fs.writeFileSync.call(void 0, path, content);
|
|
62
91
|
const bytes = Buffer.byteLength(content);
|
|
63
|
-
|
|
92
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
64
93
|
{ path, bytes },
|
|
65
94
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
66
95
|
` }
|
|
67
96
|
);
|
|
68
97
|
return 0;
|
|
69
98
|
}
|
|
70
|
-
|
|
99
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
71
100
|
return 0;
|
|
72
101
|
}
|
|
73
102
|
function registerDescribeCommand(program) {
|
|
74
|
-
|
|
103
|
+
_chunk4ZKZS43Njs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
75
104
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
76
105
|
).addHelpText(
|
|
77
106
|
"after",
|
|
@@ -80,6 +109,8 @@ What you can describe:
|
|
|
80
109
|
Any id deepline search returns: a tool id, a monitor type id, or a play name
|
|
81
110
|
or reference. You do not say which kind it is; tool ids, monitor type ids
|
|
82
111
|
and prebuilt play names never overlap.
|
|
112
|
+
A docs/<path> id prints that documentation page as Markdown, and
|
|
113
|
+
docs/skills/<name> prints that skill.
|
|
83
114
|
|
|
84
115
|
When a name is taken twice:
|
|
85
116
|
A play your workspace created is shown instead of a Deepline tool, monitor
|
|
@@ -135,6 +166,7 @@ Older commands:
|
|
|
135
166
|
Examples:
|
|
136
167
|
deepline describe hunter_email_verifier
|
|
137
168
|
deepline describe person-linkedin-to-email
|
|
169
|
+
deepline describe docs/sdk-v2/reference
|
|
138
170
|
deepline describe my-play --prebuilt
|
|
139
171
|
deepline describe ai_ark_people_search --full-schema
|
|
140
172
|
deepline describe prebuilt/person-to-email-batch --web-url
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WCZBIE5L.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BLHQRETG.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6DMLWM7L.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KR2XEI5T.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6DMLWM7L.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FAT6CUZK.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.494",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "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."
|
|
@@ -100,7 +100,7 @@ var SDK_RELEASE = {
|
|
|
100
100
|
{
|
|
101
101
|
command: "search",
|
|
102
102
|
introducedIn: "0.3.287",
|
|
103
|
-
reason: "deepline search was added in SDK CLI 0.3.287 as the one search across tools, monitors, and
|
|
103
|
+
reason: "deepline search was added in SDK CLI 0.3.287 as the one search across tools, monitors, plays, and docs. On an older version run deepline tools search or deepline plays search, or update."
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
command: "notifications",
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBU5Y7HODjs = require('./chunk-BU5Y7HOD.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkY4GRL533js = require('./chunk-Y4GRL533.js');
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
var _commander = require('commander');
|
|
@@ -20,7 +20,7 @@ var _fs = require('fs');
|
|
|
20
20
|
var _path = require('path');
|
|
21
21
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
22
22
|
function lastSearchPath() {
|
|
23
|
-
return _path.join.call(void 0,
|
|
23
|
+
return _path.join.call(void 0, _chunkY4GRL533js.sdkCliStateDirPath.call(void 0, _chunkY4GRL533js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
24
24
|
}
|
|
25
25
|
function rememberSearchRef(searchRef) {
|
|
26
26
|
try {
|
|
@@ -48,7 +48,8 @@ var SEARCH_TYPES = [
|
|
|
48
48
|
"plays",
|
|
49
49
|
"monitors",
|
|
50
50
|
"prebuilts",
|
|
51
|
-
"custom"
|
|
51
|
+
"custom",
|
|
52
|
+
"docs"
|
|
52
53
|
];
|
|
53
54
|
var USAGE = 'Usage: deepline search "<task>" [--type <types>] [--json]';
|
|
54
55
|
function parseTypes(flag, raw) {
|
|
@@ -118,7 +119,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
118
119
|
console.error("--summary-width must be an integer of at least 2.");
|
|
119
120
|
return 1;
|
|
120
121
|
}
|
|
121
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
122
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().search({
|
|
122
123
|
query,
|
|
123
124
|
types,
|
|
124
125
|
exclude,
|
|
@@ -132,8 +133,8 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
132
133
|
});
|
|
133
134
|
if (searchRef) rememberSearchRef(searchRef);
|
|
134
135
|
pointAtDescribe(result);
|
|
135
|
-
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
136
|
-
|
|
136
|
+
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-YA6TXWGO.js")));
|
|
137
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, result, {
|
|
137
138
|
json: options.json === true,
|
|
138
139
|
text: renderSearchResults(result, summaryWidth)
|
|
139
140
|
});
|
|
@@ -164,10 +165,10 @@ Examples:
|
|
|
164
165
|
function registerSearchCommand(program) {
|
|
165
166
|
addSearchOptions(
|
|
166
167
|
program.command("search [task]").description(
|
|
167
|
-
"Search tools, monitors, and
|
|
168
|
+
"Search tools, monitors, plays, and docs together, ranked by intent."
|
|
168
169
|
).option(
|
|
169
170
|
"--type <types>",
|
|
170
|
-
"Only these kinds, comma-separated: tools, plays, monitors",
|
|
171
|
+
"Only these kinds, comma-separated: tools, plays, monitors, docs",
|
|
171
172
|
appendCsv
|
|
172
173
|
).option(
|
|
173
174
|
"--exclude <types>",
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.494",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "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."
|
|
@@ -100,7 +100,7 @@ var SDK_RELEASE = {
|
|
|
100
100
|
{
|
|
101
101
|
command: "search",
|
|
102
102
|
introducedIn: "0.3.287",
|
|
103
|
-
reason: "deepline search was added in SDK CLI 0.3.287 as the one search across tools, monitors, and
|
|
103
|
+
reason: "deepline search was added in SDK CLI 0.3.287 as the one search across tools, monitors, plays, and docs. On an older version run deepline tools search or deepline plays search, or update."
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
command: "notifications",
|