deepline 0.3.492 → 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/client-core.ts +11 -5
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +2 -2
- package/dist/bundling-sources/sdk/src/types.ts +11 -4
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +25 -9
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +5 -4
- package/dist/bundling-sources/shared_libs/play-runtime/crustdata-company-identify-batching.ts +162 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +19 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/receipt-sql.ts +17 -23
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +28 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +75 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +412 -59
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +38 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +19 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +165 -12
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +101 -3
- package/dist/cli/{auth-4I6QY5WX.mjs → auth-6X5YXMFN.mjs} +5 -5
- package/dist/cli/auth-RWLCLMDY.js +43 -0
- package/dist/cli/{billing-2H4GOJZY.js → billing-5F5PZB77.js} +80 -80
- package/dist/cli/{billing-4F6L4JSI.mjs → billing-IN74SDSC.mjs} +7 -7
- package/dist/cli/{chunk-3RGWTKK3.mjs → chunk-2GEYN3H4.mjs} +89 -3
- package/dist/cli/{chunk-JJAHWKJ2.js → chunk-3KVFOKPR.js} +73 -59
- package/dist/cli/{chunk-NBL6JMIY.js → chunk-4A5WXQJK.js} +17 -17
- package/dist/cli/{chunk-YOCEY4EI.mjs → chunk-4RWH4LRQ.mjs} +5 -5
- package/dist/cli/{chunk-OGNIB64W.js → chunk-4ZKZS43N.js} +23 -15
- package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
- package/dist/cli/{chunk-3TISK5RQ.js → chunk-5WYH2LAP.js} +6 -6
- package/dist/cli/{chunk-MQ2LQOAM.mjs → chunk-65NMOP4T.mjs} +23 -9
- package/dist/cli/{chunk-O65HDVA7.mjs → chunk-6DMLWM7L.mjs} +5 -5
- package/dist/cli/{chunk-OTUT3XTX.mjs → chunk-6XZR2642.mjs} +8 -7
- package/dist/cli/{chunk-Q3CCCTRQ.js → chunk-7B7A36XZ.js} +14 -14
- package/dist/cli/{chunk-O3K22ZC7.js → chunk-AARXOBVD.js} +35 -11
- package/dist/cli/{chunk-DVGCPOEA.mjs → chunk-BLHQRETG.mjs} +187 -187
- package/dist/cli/{chunk-NPZBE64X.js → chunk-BLMB4N63.js} +89 -3
- package/dist/cli/{chunk-OTDX4A4W.js → chunk-BNI653WN.js} +21 -21
- package/dist/cli/{chunk-E47VAVAR.js → chunk-BU5Y7HOD.js} +5 -5
- package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-C5R3UH5V.mjs} +29 -2
- package/dist/cli/{chunk-HFEJ7JJT.js → chunk-CAWOSHEC.js} +26 -26
- package/dist/cli/{chunk-TVUE4CPW.js → chunk-CK5MA6S6.js} +32 -32
- package/dist/cli/{chunk-Y7QCMOGZ.mjs → chunk-DKKAJ3U2.mjs} +6 -6
- package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
- package/dist/cli/{chunk-3BRDP4UP.mjs → chunk-EG3OSUBO.mjs} +1 -1
- package/dist/cli/{chunk-ZCKUNXXR.mjs → chunk-FAT6CUZK.mjs} +1 -1
- package/dist/cli/{chunk-YNWET57Z.js → chunk-GBICEYUA.js} +13 -13
- package/dist/cli/{chunk-42Z6VC2Q.js → chunk-GDNQXLBM.js} +2 -2
- package/dist/cli/{chunk-SE23YSBK.js → chunk-GLDBMKTV.js} +3 -3
- package/dist/cli/{chunk-OKHBAAJG.mjs → chunk-GNSGDIA4.mjs} +2 -2
- package/dist/cli/{chunk-W4FEX5ZF.js → chunk-GSCCDGGT.js} +261 -261
- package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-H46X7YDU.mjs} +35 -11
- package/dist/cli/{chunk-3IBKEOL4.js → chunk-HINVMRGQ.js} +4 -4
- package/dist/cli/{chunk-HHTVRICE.js → chunk-I42EOZKQ.js} +44 -17
- package/dist/cli/{chunk-MPITIXW4.mjs → chunk-IPWYDANJ.mjs} +13 -5
- package/dist/cli/{chunk-YVOYZPMY.mjs → chunk-IZJSX3SZ.mjs} +2 -2
- package/dist/cli/{chunk-FFOJRD53.mjs → chunk-J2HOVZOE.mjs} +3 -3
- package/dist/cli/{chunk-EFFHRXKB.js → chunk-J3UHNUWI.js} +2 -2
- package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
- package/dist/cli/{chunk-PIC6M4X3.mjs → chunk-KR2XEI5T.mjs} +1 -1
- package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-KSHAFYYG.mjs} +2 -2
- package/dist/cli/{chunk-6YO4OJPM.mjs → chunk-KVCQL6SP.mjs} +99 -24
- package/dist/cli/{chunk-RC366IJS.mjs → chunk-L2P2XRPO.mjs} +38 -6
- package/dist/cli/{chunk-R5MP3CIY.mjs → chunk-L4QPBQUX.mjs} +3 -3
- package/dist/cli/{chunk-4RB74KJX.js → chunk-L6KA4ENU.js} +47 -15
- package/dist/cli/{chunk-MJFVF5AW.mjs → chunk-L6L57RSG.mjs} +2 -2
- package/dist/cli/{chunk-F6EQWY4E.mjs → chunk-MWZNMWR2.mjs} +2 -2
- package/dist/cli/{chunk-LCCFGSV7.mjs → chunk-ODWTFVE4.mjs} +2 -2
- package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
- package/dist/cli/{chunk-UUH4GQRL.mjs → chunk-QOEI42IU.mjs} +2 -2
- package/dist/cli/{chunk-JHBRJDUC.js → chunk-QSRWBOPV.js} +11 -10
- package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
- package/dist/cli/{chunk-EANFUHRM.mjs → chunk-RPFNIMUO.mjs} +1 -1
- package/dist/cli/{chunk-DJOLMS2A.js → chunk-S3XQH7DW.js} +2 -2
- package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
- package/dist/cli/{chunk-GDSZWTJK.mjs → chunk-TLQXN4ZZ.mjs} +12 -12
- package/dist/cli/{chunk-O2FB42N2.js → chunk-USWLB4KV.js} +234 -234
- package/dist/cli/{chunk-BDUFZSUL.js → chunk-VMPM2FKT.js} +8 -8
- package/dist/cli/{chunk-4GJIJHRQ.mjs → chunk-WCZBIE5L.mjs} +1 -1
- package/dist/cli/{chunk-NF7NUKWF.js → chunk-WP45PUPW.js} +132 -57
- package/dist/cli/{chunk-FPLN7PHP.js → chunk-X6HIIHQO.js} +5 -5
- package/dist/cli/{chunk-B2JE3HD6.js → chunk-Y4GRL533.js} +3 -3
- package/dist/cli/{chunk-ZDTPSVGF.js → chunk-ZZD245Z2.js} +10 -10
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-JGJNDRSA.js → csv-QD7JJGSP.js} +13 -13
- package/dist/cli/{csv-VGXGV7YM.mjs → csv-UBW4ID5D.mjs} +4 -4
- package/dist/cli/{db-W52WJ6E5.js → db-AARR3WYD.js} +28 -28
- package/dist/cli/{db-OYG27ZBM.mjs → db-QFDXKIVD.mjs} +7 -7
- package/dist/cli/describe-OBVIAC2H.mjs +50 -0
- 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 +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-EVE4KUGL.mjs → executions-IZYUDYTZ.mjs} +7 -7
- package/dist/cli/{executions-LAJHZGPY.js → executions-KXY7KMZY.js} +9 -9
- package/dist/cli/{feedback-ZABCN7RT.js → feedback-3334HBPD.js} +8 -8
- package/dist/cli/{feedback-75QB7KVG.mjs → feedback-IVCVBERN.mjs} +4 -4
- package/dist/cli/getting-started.d.mts +12 -10
- package/dist/cli/getting-started.d.ts +12 -10
- package/dist/cli/getting-started.js +4 -2
- package/dist/cli/getting-started.mjs +3 -1
- package/dist/cli/git-4VLYFHNU.js +25 -0
- package/dist/cli/{git-QIFEYQGY.mjs → git-JHNVET5A.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-2TBIAMCM.js → legacy-noops-DBA32JCV.js} +8 -8
- package/dist/cli/{legacy-noops-PNTWBBGY.mjs → legacy-noops-WGVBUOCC.mjs} +5 -5
- package/dist/cli/{monitors-UKBOEGBS.js → monitors-GHWZ5AZS.js} +169 -129
- package/dist/cli/{monitors-LOHUYJEI.mjs → monitors-ZGANC7JY.mjs} +49 -9
- package/dist/cli/{org-JRUKUOUF.mjs → org-CUS42N2T.mjs} +7 -7
- package/dist/cli/{org-E7A6QLBW.js → org-S7JWP264.js} +73 -73
- package/dist/cli/{pages-K76HA473.mjs → pages-IH56T6L6.mjs} +7 -7
- package/dist/cli/{pages-EUDFFLLD.js → pages-QXRZDEJW.js} +18 -18
- package/dist/cli/{play-UWHNUJRA.js → play-4C5PYS62.js} +661 -566
- package/dist/cli/{play-DG2N66SV.mjs → play-Z65ZFOQH.mjs} +147 -52
- package/dist/cli/{providers-RUTTPUZD.mjs → providers-FSZSJX4Z.mjs} +7 -7
- package/dist/cli/{providers-DZX6TTC6.js → providers-XYQGYF3O.js} +10 -10
- package/dist/cli/{quickstart-RGZZN2YE.mjs → quickstart-DHWVE32I.mjs} +5 -5
- package/dist/cli/{quickstart-U4NMD7KX.js → quickstart-ZA25RJT3.js} +13 -13
- package/dist/cli/{run-5UNF4FHG.js → run-5MP6LEHM.js} +45 -44
- package/dist/cli/{run-MOJWQYFQ.mjs → run-WRPPEPLG.mjs} +30 -29
- package/dist/cli/search-4SQFVNTB.js +32 -0
- package/dist/cli/{search-5B3ZDU7H.mjs → search-A6NVJPKX.mjs} +8 -8
- package/dist/cli/{search-output-QS4IWWHA.mjs → search-output-PAOUMVXY.mjs} +7 -4
- package/dist/cli/{search-output-VQWJS3FN.js → search-output-YA6TXWGO.js} +9 -6
- package/dist/cli/{secrets-S3PJMEAC.js → secrets-AZYOGH3I.js} +16 -16
- package/dist/cli/{secrets-V5XVDBIS.mjs → secrets-ZGF7JOBI.mjs} +7 -7
- package/dist/cli/{sessions-Y5QMEZ3D.js → sessions-GCIN5VXT.js} +6 -6
- package/dist/cli/{sessions-5V3X24XI.mjs → sessions-RNEAXZPV.mjs} +5 -5
- package/dist/cli/{settings-3U6RRO5F.js → settings-LMEZNLBB.js} +80 -80
- package/dist/cli/{settings-LHZYY5PT.mjs → settings-NO5KXQJF.mjs} +13 -13
- package/dist/cli/{setup-AJLWXYAN.mjs → setup-GCYB4IFS.mjs} +13 -13
- package/dist/cli/{setup-MLLIGO2S.js → setup-XKTZPYYH.js} +57 -57
- package/dist/cli/{skills-5O2MUWKK.mjs → skills-TY4HHIKH.mjs} +10 -10
- package/dist/cli/skills-V4APQA2I.js +36 -0
- package/dist/cli/tools-HKQLQ7HT.js +57 -0
- package/dist/cli/{tools-PWNMI5CD.mjs → tools-RDTHHYJ3.mjs} +21 -21
- package/dist/cli/{update-SXT4QW7S.mjs → update-BRLLTTCS.mjs} +10 -10
- package/dist/cli/update-Z4MUAHWM.js +34 -0
- package/dist/cli/{workflow-KPRM6ARO.mjs → workflow-F72EVZWM.mjs} +8 -8
- package/dist/cli/{workflow-3WTF5IYT.js → workflow-YHA4WE3K.js} +18 -18
- package/dist/{client-Cb1ej1Vr.d.ts → client-97yTcdLl.d.ts} +1 -1
- package/dist/{client-vWpbLNCB.d.mts → client-CFo9qalW.d.mts} +1 -1
- package/dist/{client-core-BmVs6SP0.d.ts → client-core-BRZrY13B.d.ts} +15 -8
- package/dist/{client-core-CoBTvsXG.d.mts → client-core-Dl6xgfLq.d.mts} +15 -8
- package/dist/{compiler-manifest-BFTwq1HI.d.mts → compiler-manifest-CPEF48NM.d.mts} +91 -0
- package/dist/{compiler-manifest-BFTwq1HI.d.ts → 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 +27 -19
- package/dist/index.mjs +16 -8
- package/dist/install-integrity.json +123 -122
- 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/plays/run-request.js +2 -2
- package/dist/plays/run-request.mjs +1 -1
- 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 +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-7BCLZU6K.js +0 -43
- package/dist/cli/describe-FIXCRO5N.mjs +0 -50
- package/dist/cli/describe-G3O6OUBG.js +0 -50
- package/dist/cli/git-QBAR46NW.js +0 -25
- package/dist/cli/search-3DAEJL6S.js +0 -32
- package/dist/cli/skills-BBLIML5M.js +0 -36
- package/dist/cli/tools-X5SQXUMM.js +0 -57
- package/dist/cli/update-AEJ2ZSZQ.js +0 -34
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RPFNIMUO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
sdkCliStateDirPath,
|
|
13
13
|
skillsAgentPathSegment,
|
|
14
14
|
writeSdkSkillsLocalVersion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KR2XEI5T.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SDK_API_CONTRACT,
|
|
18
18
|
SDK_API_MAJOR,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
agentSessionIdFromEnvironment,
|
|
21
21
|
deploymentProtectionHeaders,
|
|
22
22
|
detectAgentRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FAT6CUZK.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError
|
|
26
26
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
27
27
|
import {
|
|
28
28
|
SDK_RELEASE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QOEI42IU.mjs";
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -294,181 +294,6 @@ function enforceSdkCompatibilityResponse(response, options = {}) {
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
// contracts/install-commands.json
|
|
298
|
-
var install_commands_default = {
|
|
299
|
-
skills: {
|
|
300
|
-
index_path: "/.well-known/skills/index.json",
|
|
301
|
-
default_agents: [
|
|
302
|
-
"codex",
|
|
303
|
-
"claude-code",
|
|
304
|
-
"cursor",
|
|
305
|
-
"gemini-cli",
|
|
306
|
-
"antigravity"
|
|
307
|
-
],
|
|
308
|
-
npx_binary: "npx",
|
|
309
|
-
npx_add_args_template: [
|
|
310
|
-
"--yes",
|
|
311
|
-
"skills@1.5.15",
|
|
312
|
-
"add",
|
|
313
|
-
"{skills_source_url}",
|
|
314
|
-
"--agent",
|
|
315
|
-
"{agents}",
|
|
316
|
-
"--global",
|
|
317
|
-
"--yes",
|
|
318
|
-
"--skill",
|
|
319
|
-
"{skill_name}",
|
|
320
|
-
"--full-depth"
|
|
321
|
-
]
|
|
322
|
-
},
|
|
323
|
-
cli: {
|
|
324
|
-
sdk_npm_global: "npm install -g deepline@latest"
|
|
325
|
-
}
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
// src/cli/install-commands.ts
|
|
329
|
-
var INSTALL_COMMANDS = install_commands_default;
|
|
330
|
-
var skillsNpxPackage = INSTALL_COMMANDS.skills.npx_add_args_template.find(
|
|
331
|
-
(arg) => /^skills@\d+\.\d+\.\d+$/.test(arg)
|
|
332
|
-
);
|
|
333
|
-
if (!skillsNpxPackage) {
|
|
334
|
-
throw new Error(
|
|
335
|
-
"shared_libs/cli/install-commands.json must pin an exact skills package version."
|
|
336
|
-
);
|
|
337
|
-
}
|
|
338
|
-
var SKILLS_NPX_PACKAGE = skillsNpxPackage;
|
|
339
|
-
var DEFAULT_V1_SKILL_NAMES = [
|
|
340
|
-
"deepline-org-chart",
|
|
341
|
-
"build-tam",
|
|
342
|
-
"clay-to-deepline",
|
|
343
|
-
"deepline-analytics",
|
|
344
|
-
"deepline-engine",
|
|
345
|
-
// Retired: its guidance lives in `feedback send --help` and `sessions send
|
|
346
|
-
// --help`. Kept as a stub because installed CLIs list it and refuse to
|
|
347
|
-
// sync any skill when the published index lacks a listed name. Move to
|
|
348
|
-
// LEGACY_SKILL_NAMES_TO_REMOVE once those CLIs are out of the field.
|
|
349
|
-
"deepline-feedback",
|
|
350
|
-
"deepline-gtm",
|
|
351
|
-
"deepline-start",
|
|
352
|
-
"deepline-plays",
|
|
353
|
-
"deepline-quickstart",
|
|
354
|
-
"deepline-research",
|
|
355
|
-
"deepline-scoring",
|
|
356
|
-
"find-qualified-titles",
|
|
357
|
-
// Retired recipe shortcut: lookup guidance is now one rule in `deepline-gtm`.
|
|
358
|
-
// Kept as a stub because installed CLIs list it and refuse to sync any skill
|
|
359
|
-
// when the published index lacks a listed name. Move to
|
|
360
|
-
// LEGACY_SKILL_NAMES_TO_REMOVE once those CLIs are out of the field.
|
|
361
|
-
"linkedin-url-lookup",
|
|
362
|
-
// Deprecated alias for `deepline-scoring`, kept installable so saved prompts
|
|
363
|
-
// and scripts using `/niche-signal-discovery` keep routing to the renamed
|
|
364
|
-
// skill. Move to LEGACY_SKILL_NAMES_TO_REMOVE once the window closes.
|
|
365
|
-
"niche-signal-discovery",
|
|
366
|
-
"portfolio-prospecting"
|
|
367
|
-
];
|
|
368
|
-
var DEFAULT_SDK_SKILL_NAMES = [...DEFAULT_V1_SKILL_NAMES];
|
|
369
|
-
var LEGACY_SKILL_NAMES_TO_REMOVE = [
|
|
370
|
-
"deepline-plays-feedback",
|
|
371
|
-
"deepline-plays-quickstart",
|
|
372
|
-
"workflow-hello-world"
|
|
373
|
-
];
|
|
374
|
-
function normalizeBaseUrl(baseUrl) {
|
|
375
|
-
return baseUrl.replace(/\/$/, "");
|
|
376
|
-
}
|
|
377
|
-
function renderTemplate(template, values) {
|
|
378
|
-
return template.replace(/\{([a-z_]+)\}/g, (match, key) => {
|
|
379
|
-
return values[key] ?? match;
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
function skillsIndexUrl(baseUrl) {
|
|
383
|
-
return `${normalizeBaseUrl(baseUrl)}${INSTALL_COMMANDS.skills.index_path}`;
|
|
384
|
-
}
|
|
385
|
-
function skillsSourceUrl(baseUrl) {
|
|
386
|
-
return normalizeBaseUrl(baseUrl);
|
|
387
|
-
}
|
|
388
|
-
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
389
|
-
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
390
|
-
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
391
|
-
const agents = options.agents ?? DEFAULT_SKILL_AGENTS;
|
|
392
|
-
const values = {
|
|
393
|
-
skills_index_url: skillsIndexUrl(baseUrl),
|
|
394
|
-
skills_source_url: skillsSourceUrl(baseUrl),
|
|
395
|
-
agents: agents.join(" "),
|
|
396
|
-
skill_name: firstSkillName ?? ""
|
|
397
|
-
};
|
|
398
|
-
const rendered = INSTALL_COMMANDS.skills.npx_add_args_template.flatMap(
|
|
399
|
-
(arg, index) => {
|
|
400
|
-
const next = index === 0 && options.firstArg ? options.firstArg : arg;
|
|
401
|
-
const value = renderTemplate(next, values);
|
|
402
|
-
if (arg === "{agents}") {
|
|
403
|
-
return agents;
|
|
404
|
-
}
|
|
405
|
-
if (arg === "{skill_name}") {
|
|
406
|
-
return [
|
|
407
|
-
value,
|
|
408
|
-
...extraSkillNames.flatMap((name) => ["--skill", name])
|
|
409
|
-
];
|
|
410
|
-
}
|
|
411
|
-
return value;
|
|
412
|
-
}
|
|
413
|
-
);
|
|
414
|
-
return rendered;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
// src/cli/windows-arg-escape.ts
|
|
418
|
-
import { statSync } from "fs";
|
|
419
|
-
import { win32 } from "path";
|
|
420
|
-
var CMD_META_CHARS = /([()\][%!^"`<>&|;, *?])/g;
|
|
421
|
-
function escapeCmdArgument(arg, forBatchFile = true) {
|
|
422
|
-
let escaped = arg.replace(/(\\*)"/g, '$1$1\\"');
|
|
423
|
-
escaped = escaped.replace(/(\\*)$/, "$1$1");
|
|
424
|
-
escaped = `"${escaped}"`;
|
|
425
|
-
escaped = escaped.replace(CMD_META_CHARS, "^$1");
|
|
426
|
-
return forBatchFile ? escaped.replace(CMD_META_CHARS, "^$1") : escaped;
|
|
427
|
-
}
|
|
428
|
-
function escapeCmdCommand(command) {
|
|
429
|
-
return command.replace(CMD_META_CHARS, "^$1");
|
|
430
|
-
}
|
|
431
|
-
function resolveShellSpawn(command, args, platform2 = process.platform, env = process.env, cwd = process.cwd()) {
|
|
432
|
-
if (platform2 !== "win32") {
|
|
433
|
-
return { command, args: [...args], shell: false };
|
|
434
|
-
}
|
|
435
|
-
const resolved = resolveWindowsExecutable(command, env, cwd);
|
|
436
|
-
const executable = resolved ?? command;
|
|
437
|
-
const batchFile = /\.(cmd|bat)$/i.test(executable) || !resolved && /^(npm|npx|pnpm)$/i.test(command);
|
|
438
|
-
if (!batchFile) {
|
|
439
|
-
if (/^bunx(?:\.exe)?$/i.test(win32.basename(executable))) {
|
|
440
|
-
const bun = resolveWindowsExecutable("bun", env, cwd);
|
|
441
|
-
if (bun && /\.exe$/i.test(bun)) {
|
|
442
|
-
return { command: bun, args: ["x", ...args], shell: false };
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
return { command: executable, args: [...args], shell: false };
|
|
446
|
-
}
|
|
447
|
-
return {
|
|
448
|
-
command: escapeCmdCommand(executable),
|
|
449
|
-
args: args.map((arg) => escapeCmdArgument(arg)),
|
|
450
|
-
shell: true
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
function resolveWindowsExecutable(command, env, cwd) {
|
|
454
|
-
const extensions = win32.extname(command) ? [""] : (env.PATHEXT ?? ".COM;.EXE;.BAT;.CMD").split(";").filter(Boolean);
|
|
455
|
-
const directories = /[\\/]/.test(command) ? [""] : [cwd, ...(env.PATH ?? "").split(";")];
|
|
456
|
-
for (const directory of directories) {
|
|
457
|
-
for (const extension of extensions) {
|
|
458
|
-
const candidate = directory ? win32.resolve(
|
|
459
|
-
cwd,
|
|
460
|
-
directory.replace(/^"|"$/g, ""),
|
|
461
|
-
command + extension
|
|
462
|
-
) : win32.resolve(cwd, command + extension);
|
|
463
|
-
try {
|
|
464
|
-
if (statSync(candidate).isFile()) return candidate;
|
|
465
|
-
} catch {
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
return void 0;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
297
|
// src/cli/failure-reporting.ts
|
|
473
298
|
import { hostname, platform, release } from "os";
|
|
474
299
|
var FAILURE_REPORT_DISABLE_ENV = "DEEPLINE_DISABLE_FAILURE_REPORTING";
|
|
@@ -851,6 +676,181 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
851
676
|
});
|
|
852
677
|
}
|
|
853
678
|
|
|
679
|
+
// contracts/install-commands.json
|
|
680
|
+
var install_commands_default = {
|
|
681
|
+
skills: {
|
|
682
|
+
index_path: "/.well-known/skills/index.json",
|
|
683
|
+
default_agents: [
|
|
684
|
+
"codex",
|
|
685
|
+
"claude-code",
|
|
686
|
+
"cursor",
|
|
687
|
+
"gemini-cli",
|
|
688
|
+
"antigravity"
|
|
689
|
+
],
|
|
690
|
+
npx_binary: "npx",
|
|
691
|
+
npx_add_args_template: [
|
|
692
|
+
"--yes",
|
|
693
|
+
"skills@1.5.15",
|
|
694
|
+
"add",
|
|
695
|
+
"{skills_source_url}",
|
|
696
|
+
"--agent",
|
|
697
|
+
"{agents}",
|
|
698
|
+
"--global",
|
|
699
|
+
"--yes",
|
|
700
|
+
"--skill",
|
|
701
|
+
"{skill_name}",
|
|
702
|
+
"--full-depth"
|
|
703
|
+
]
|
|
704
|
+
},
|
|
705
|
+
cli: {
|
|
706
|
+
sdk_npm_global: "npm install -g deepline@latest"
|
|
707
|
+
}
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
// src/cli/install-commands.ts
|
|
711
|
+
var INSTALL_COMMANDS = install_commands_default;
|
|
712
|
+
var skillsNpxPackage = INSTALL_COMMANDS.skills.npx_add_args_template.find(
|
|
713
|
+
(arg) => /^skills@\d+\.\d+\.\d+$/.test(arg)
|
|
714
|
+
);
|
|
715
|
+
if (!skillsNpxPackage) {
|
|
716
|
+
throw new Error(
|
|
717
|
+
"shared_libs/cli/install-commands.json must pin an exact skills package version."
|
|
718
|
+
);
|
|
719
|
+
}
|
|
720
|
+
var SKILLS_NPX_PACKAGE = skillsNpxPackage;
|
|
721
|
+
var DEFAULT_V1_SKILL_NAMES = [
|
|
722
|
+
"deepline-org-chart",
|
|
723
|
+
"build-tam",
|
|
724
|
+
"clay-to-deepline",
|
|
725
|
+
"deepline-analytics",
|
|
726
|
+
"deepline-engine",
|
|
727
|
+
// Retired: its guidance lives in `feedback send --help` and `sessions send
|
|
728
|
+
// --help`. Kept as a stub because installed CLIs list it and refuse to
|
|
729
|
+
// sync any skill when the published index lacks a listed name. Move to
|
|
730
|
+
// LEGACY_SKILL_NAMES_TO_REMOVE once those CLIs are out of the field.
|
|
731
|
+
"deepline-feedback",
|
|
732
|
+
"deepline-gtm",
|
|
733
|
+
"deepline-start",
|
|
734
|
+
"deepline-plays",
|
|
735
|
+
"deepline-quickstart",
|
|
736
|
+
"deepline-research",
|
|
737
|
+
"deepline-scoring",
|
|
738
|
+
"find-qualified-titles",
|
|
739
|
+
// Retired recipe shortcut: lookup guidance is now one rule in `deepline-gtm`.
|
|
740
|
+
// Kept as a stub because installed CLIs list it and refuse to sync any skill
|
|
741
|
+
// when the published index lacks a listed name. Move to
|
|
742
|
+
// LEGACY_SKILL_NAMES_TO_REMOVE once those CLIs are out of the field.
|
|
743
|
+
"linkedin-url-lookup",
|
|
744
|
+
// Deprecated alias for `deepline-scoring`, kept installable so saved prompts
|
|
745
|
+
// and scripts using `/niche-signal-discovery` keep routing to the renamed
|
|
746
|
+
// skill. Move to LEGACY_SKILL_NAMES_TO_REMOVE once the window closes.
|
|
747
|
+
"niche-signal-discovery",
|
|
748
|
+
"portfolio-prospecting"
|
|
749
|
+
];
|
|
750
|
+
var DEFAULT_SDK_SKILL_NAMES = [...DEFAULT_V1_SKILL_NAMES];
|
|
751
|
+
var LEGACY_SKILL_NAMES_TO_REMOVE = [
|
|
752
|
+
"deepline-plays-feedback",
|
|
753
|
+
"deepline-plays-quickstart",
|
|
754
|
+
"workflow-hello-world"
|
|
755
|
+
];
|
|
756
|
+
function normalizeBaseUrl(baseUrl) {
|
|
757
|
+
return baseUrl.replace(/\/$/, "");
|
|
758
|
+
}
|
|
759
|
+
function renderTemplate(template, values) {
|
|
760
|
+
return template.replace(/\{([a-z_]+)\}/g, (match, key) => {
|
|
761
|
+
return values[key] ?? match;
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
function skillsIndexUrl(baseUrl) {
|
|
765
|
+
return `${normalizeBaseUrl(baseUrl)}${INSTALL_COMMANDS.skills.index_path}`;
|
|
766
|
+
}
|
|
767
|
+
function skillsSourceUrl(baseUrl) {
|
|
768
|
+
return normalizeBaseUrl(baseUrl);
|
|
769
|
+
}
|
|
770
|
+
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
771
|
+
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
772
|
+
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
773
|
+
const agents = options.agents ?? DEFAULT_SKILL_AGENTS;
|
|
774
|
+
const values = {
|
|
775
|
+
skills_index_url: skillsIndexUrl(baseUrl),
|
|
776
|
+
skills_source_url: skillsSourceUrl(baseUrl),
|
|
777
|
+
agents: agents.join(" "),
|
|
778
|
+
skill_name: firstSkillName ?? ""
|
|
779
|
+
};
|
|
780
|
+
const rendered = INSTALL_COMMANDS.skills.npx_add_args_template.flatMap(
|
|
781
|
+
(arg, index) => {
|
|
782
|
+
const next = index === 0 && options.firstArg ? options.firstArg : arg;
|
|
783
|
+
const value = renderTemplate(next, values);
|
|
784
|
+
if (arg === "{agents}") {
|
|
785
|
+
return agents;
|
|
786
|
+
}
|
|
787
|
+
if (arg === "{skill_name}") {
|
|
788
|
+
return [
|
|
789
|
+
value,
|
|
790
|
+
...extraSkillNames.flatMap((name) => ["--skill", name])
|
|
791
|
+
];
|
|
792
|
+
}
|
|
793
|
+
return value;
|
|
794
|
+
}
|
|
795
|
+
);
|
|
796
|
+
return rendered;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
// src/cli/windows-arg-escape.ts
|
|
800
|
+
import { statSync } from "fs";
|
|
801
|
+
import { win32 } from "path";
|
|
802
|
+
var CMD_META_CHARS = /([()\][%!^"`<>&|;, *?])/g;
|
|
803
|
+
function escapeCmdArgument(arg, forBatchFile = true) {
|
|
804
|
+
let escaped = arg.replace(/(\\*)"/g, '$1$1\\"');
|
|
805
|
+
escaped = escaped.replace(/(\\*)$/, "$1$1");
|
|
806
|
+
escaped = `"${escaped}"`;
|
|
807
|
+
escaped = escaped.replace(CMD_META_CHARS, "^$1");
|
|
808
|
+
return forBatchFile ? escaped.replace(CMD_META_CHARS, "^$1") : escaped;
|
|
809
|
+
}
|
|
810
|
+
function escapeCmdCommand(command) {
|
|
811
|
+
return command.replace(CMD_META_CHARS, "^$1");
|
|
812
|
+
}
|
|
813
|
+
function resolveShellSpawn(command, args, platform2 = process.platform, env = process.env, cwd = process.cwd()) {
|
|
814
|
+
if (platform2 !== "win32") {
|
|
815
|
+
return { command, args: [...args], shell: false };
|
|
816
|
+
}
|
|
817
|
+
const resolved = resolveWindowsExecutable(command, env, cwd);
|
|
818
|
+
const executable = resolved ?? command;
|
|
819
|
+
const batchFile = /\.(cmd|bat)$/i.test(executable) || !resolved && /^(npm|npx|pnpm)$/i.test(command);
|
|
820
|
+
if (!batchFile) {
|
|
821
|
+
if (/^bunx(?:\.exe)?$/i.test(win32.basename(executable))) {
|
|
822
|
+
const bun = resolveWindowsExecutable("bun", env, cwd);
|
|
823
|
+
if (bun && /\.exe$/i.test(bun)) {
|
|
824
|
+
return { command: bun, args: ["x", ...args], shell: false };
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
return { command: executable, args: [...args], shell: false };
|
|
828
|
+
}
|
|
829
|
+
return {
|
|
830
|
+
command: escapeCmdCommand(executable),
|
|
831
|
+
args: args.map((arg) => escapeCmdArgument(arg)),
|
|
832
|
+
shell: true
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
function resolveWindowsExecutable(command, env, cwd) {
|
|
836
|
+
const extensions = win32.extname(command) ? [""] : (env.PATHEXT ?? ".COM;.EXE;.BAT;.CMD").split(";").filter(Boolean);
|
|
837
|
+
const directories = /[\\/]/.test(command) ? [""] : [cwd, ...(env.PATH ?? "").split(";")];
|
|
838
|
+
for (const directory of directories) {
|
|
839
|
+
for (const extension of extensions) {
|
|
840
|
+
const candidate = directory ? win32.resolve(
|
|
841
|
+
cwd,
|
|
842
|
+
directory.replace(/^"|"$/g, ""),
|
|
843
|
+
command + extension
|
|
844
|
+
) : win32.resolve(cwd, command + extension);
|
|
845
|
+
try {
|
|
846
|
+
if (statSync(candidate).isFile()) return candidate;
|
|
847
|
+
} catch {
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
return void 0;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
854
|
// src/cli/skills-sync.ts
|
|
855
855
|
import { spawn, spawnSync } from "child_process";
|
|
856
856
|
import { createHash, randomUUID as randomUUID2 } from "crypto";
|
|
@@ -1040,7 +1040,7 @@ function claimAndSpawnDetachedSkillsSync(baseUrl, agents, remoteVersion, spawnDe
|
|
|
1040
1040
|
baseUrl,
|
|
1041
1041
|
agents
|
|
1042
1042
|
)(
|
|
1043
|
-
"Deepline skills refresh failed to start; run `deepline skills` to retry."
|
|
1043
|
+
"Deepline skills refresh failed to start; run `deepline skills install` to retry."
|
|
1044
1044
|
);
|
|
1045
1045
|
});
|
|
1046
1046
|
return { state: "claimed" };
|
|
@@ -1055,7 +1055,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
};
|
|
1057
1057
|
function writeSkillsStateUnavailableNotice(baseUrl, agents, error) {
|
|
1058
|
-
const retry = agents.length === 1 ? `deepline skills --agent ${agents[0]}` : "deepline skills";
|
|
1058
|
+
const retry = agents.length === 1 ? `deepline skills install --agent ${agents[0]}` : "deepline skills install";
|
|
1059
1059
|
writeSdkSkillsStatusLine(
|
|
1060
1060
|
`Automatic skills update skipped. ${new SkillsStateUnavailableError(baseUrl, error).message}. Your command will continue. Resolve this filesystem error, then run: ${retry}`
|
|
1061
1061
|
);
|
|
@@ -1660,7 +1660,7 @@ async function runSkillsInstall(installs, agents, notice = writeSdkSkillsStatusL
|
|
|
1660
1660
|
${attemptedCommands}
|
|
1661
1661
|
` : "") + (details ? `Installer output:
|
|
1662
1662
|
${details}
|
|
1663
|
-
` : "") + (retryAgent ? `To retry with full installer output: deepline skills --agent ${retryAgent}
|
|
1663
|
+
` : "") + (retryAgent ? `To retry with full installer output: deepline skills install --agent ${retryAgent}
|
|
1664
1664
|
` : "") + `To temporarily suppress automatic skills sync: ${temporarySkillsSyncSkipCommand()}`
|
|
1665
1665
|
);
|
|
1666
1666
|
return {
|
|
@@ -1950,17 +1950,17 @@ export {
|
|
|
1950
1950
|
checkSdkCompatibility,
|
|
1951
1951
|
isCiEnvironment,
|
|
1952
1952
|
enforceSdkCompatibilityResponse,
|
|
1953
|
-
SKILLS_NPX_PACKAGE,
|
|
1954
|
-
DEFAULT_SDK_SKILL_NAMES,
|
|
1955
|
-
LEGACY_SKILL_NAMES_TO_REMOVE,
|
|
1956
|
-
skillsSourceUrl,
|
|
1957
|
-
resolveShellSpawn,
|
|
1958
1953
|
isFailureReportingDisabled,
|
|
1959
1954
|
redactFailureText,
|
|
1960
1955
|
sanitizeCommand,
|
|
1961
1956
|
failureReportHeaders,
|
|
1962
1957
|
resolveSdkCliFailureExitCode,
|
|
1963
1958
|
maybeReportSdkCliFailure,
|
|
1959
|
+
SKILLS_NPX_PACKAGE,
|
|
1960
|
+
DEFAULT_SDK_SKILL_NAMES,
|
|
1961
|
+
LEGACY_SKILL_NAMES_TO_REMOVE,
|
|
1962
|
+
skillsSourceUrl,
|
|
1963
|
+
resolveShellSpawn,
|
|
1964
1964
|
SkillsStateUnavailableError,
|
|
1965
1965
|
acquireSkillsInstallLease,
|
|
1966
1966
|
skillsInstallLeasePath,
|
|
@@ -276,6 +276,21 @@ function buildEmailStatus({
|
|
|
276
276
|
|
|
277
277
|
// ../plays/field-catalog.ts
|
|
278
278
|
var value = (description) => ({ type: "string", description });
|
|
279
|
+
var count = (description) => ({ type: "number", description });
|
|
280
|
+
var date = (description) => ({
|
|
281
|
+
type: "string",
|
|
282
|
+
description: `${description} An ISO 8601 date.`
|
|
283
|
+
});
|
|
284
|
+
var LOCATION = {
|
|
285
|
+
description: "Where it is. Without a kind, a location in some form.",
|
|
286
|
+
leaves: { value: value("The location.") },
|
|
287
|
+
kinds: {
|
|
288
|
+
country: "The country.",
|
|
289
|
+
region: "The state, province or region.",
|
|
290
|
+
city: "The city.",
|
|
291
|
+
address: "The full street address."
|
|
292
|
+
}
|
|
293
|
+
};
|
|
279
294
|
var SOURCE = {
|
|
280
295
|
type: "string",
|
|
281
296
|
description: "The provider or step that found it."
|
|
@@ -303,6 +318,10 @@ var FIELD_CATALOG = {
|
|
|
303
318
|
type: "EmailStatus",
|
|
304
319
|
description: "The validation verdict and its signals."
|
|
305
320
|
},
|
|
321
|
+
available: {
|
|
322
|
+
type: "boolean",
|
|
323
|
+
description: "Whether the provider has an address it could reveal, without the address itself."
|
|
324
|
+
},
|
|
306
325
|
source: SOURCE
|
|
307
326
|
},
|
|
308
327
|
kinds: {
|
|
@@ -322,6 +341,10 @@ var FIELD_CATALOG = {
|
|
|
322
341
|
type: '"valid" | "invalid" | "unknown"',
|
|
323
342
|
description: "The validation verdict."
|
|
324
343
|
},
|
|
344
|
+
available: {
|
|
345
|
+
type: "boolean",
|
|
346
|
+
description: "Whether the provider has a number it could reveal, without the number itself."
|
|
347
|
+
},
|
|
325
348
|
line_type: value("Mobile, landline, VoIP and so on."),
|
|
326
349
|
carrier: value("The carrier serving the number."),
|
|
327
350
|
source: SOURCE
|
|
@@ -358,9 +381,17 @@ var FIELD_CATALOG = {
|
|
|
358
381
|
change_status: {
|
|
359
382
|
type: "JobChangeStatus",
|
|
360
383
|
description: "The job-change verdict alone."
|
|
361
|
-
}
|
|
384
|
+
},
|
|
385
|
+
seniority: value("How senior the role is, such as director or VP."),
|
|
386
|
+
department: value("The department or function, such as sales."),
|
|
387
|
+
started_at: date("When they started the role.")
|
|
362
388
|
}
|
|
363
389
|
},
|
|
390
|
+
location: LOCATION,
|
|
391
|
+
skills: {
|
|
392
|
+
description: "Skills the person lists. Usually several: read `.values`.",
|
|
393
|
+
leaves: { value: value("One skill.") }
|
|
394
|
+
},
|
|
364
395
|
record: {
|
|
365
396
|
description: "A provider's own record of the person.",
|
|
366
397
|
leaves: { id: value("The provider's id for the person.") }
|
|
@@ -382,7 +413,10 @@ var FIELD_CATALOG = {
|
|
|
382
413
|
},
|
|
383
414
|
linkedin: {
|
|
384
415
|
description: "The company's LinkedIn page.",
|
|
385
|
-
leaves: {
|
|
416
|
+
leaves: {
|
|
417
|
+
url: value("The page URL."),
|
|
418
|
+
id: value("LinkedIn's numeric id or public identifier for the page.")
|
|
419
|
+
}
|
|
386
420
|
},
|
|
387
421
|
phone: {
|
|
388
422
|
description: "A phone number for the company.",
|
|
@@ -392,6 +426,40 @@ var FIELD_CATALOG = {
|
|
|
392
426
|
description: "The industry the company is in.",
|
|
393
427
|
leaves: { value: value("The industry.") }
|
|
394
428
|
},
|
|
429
|
+
description: {
|
|
430
|
+
description: "What the company does, in its own or a provider's words.",
|
|
431
|
+
leaves: { value: value("The description.") }
|
|
432
|
+
},
|
|
433
|
+
location: LOCATION,
|
|
434
|
+
headcount: {
|
|
435
|
+
description: "How many people work there. Without a kind, a count in some form.",
|
|
436
|
+
leaves: { value: value("The headcount.") },
|
|
437
|
+
kinds: {
|
|
438
|
+
exact: "A single number of employees.",
|
|
439
|
+
range: "A range such as 51-200."
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
funding: {
|
|
443
|
+
description: "Money the company has raised.",
|
|
444
|
+
groups: {
|
|
445
|
+
total: {
|
|
446
|
+
description: "Everything raised to date.",
|
|
447
|
+
leaves: { value: count("The total, in US dollars.") }
|
|
448
|
+
},
|
|
449
|
+
last_round: {
|
|
450
|
+
description: "The most recent funding round.",
|
|
451
|
+
leaves: {
|
|
452
|
+
type: value("The round type, such as Series A."),
|
|
453
|
+
amount: count("The amount raised, in US dollars."),
|
|
454
|
+
date: date("When it was announced.")
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
technologies: {
|
|
460
|
+
description: "Technologies the company uses. Usually several: read `.values`.",
|
|
461
|
+
leaves: { value: value("One technology.") }
|
|
462
|
+
},
|
|
395
463
|
record: {
|
|
396
464
|
description: "A provider's own record of the company.",
|
|
397
465
|
leaves: { id: value("The provider's id for the company.") }
|
|
@@ -400,10 +468,16 @@ var FIELD_CATALOG = {
|
|
|
400
468
|
job: {
|
|
401
469
|
posting: {
|
|
402
470
|
description: "A job posting.",
|
|
471
|
+
leaves: { url: value("The posting's page.") },
|
|
403
472
|
groups: {
|
|
404
473
|
title: {
|
|
405
474
|
description: "The posting's title. Not a person's job title.",
|
|
406
475
|
leaves: { value: value("The title.") }
|
|
476
|
+
},
|
|
477
|
+
location: LOCATION,
|
|
478
|
+
posted_at: {
|
|
479
|
+
description: "When the posting was published.",
|
|
480
|
+
leaves: { value: date("The date.") }
|
|
407
481
|
}
|
|
408
482
|
}
|
|
409
483
|
}
|
|
@@ -419,6 +493,10 @@ var FIELD_CATALOG = {
|
|
|
419
493
|
}
|
|
420
494
|
},
|
|
421
495
|
post: {
|
|
496
|
+
url: {
|
|
497
|
+
description: "A social or business post's own page.",
|
|
498
|
+
leaves: { value: value("The URL.") }
|
|
499
|
+
},
|
|
422
500
|
title: {
|
|
423
501
|
description: "A social or business post's title.",
|
|
424
502
|
leaves: { value: value("The title.") }
|
|
@@ -437,6 +515,10 @@ var FIELD_CATALOG = {
|
|
|
437
515
|
title: {
|
|
438
516
|
description: "A web page's title.",
|
|
439
517
|
leaves: { value: value("The title.") }
|
|
518
|
+
},
|
|
519
|
+
url: {
|
|
520
|
+
description: "A web page's address, when it is not a known profile.",
|
|
521
|
+
leaves: { value: value("The URL.") }
|
|
440
522
|
}
|
|
441
523
|
},
|
|
442
524
|
// Some entity's value, when a tool cannot say whether it is a person's or a
|
|
@@ -551,8 +633,12 @@ function fieldOfName(name, declared) {
|
|
|
551
633
|
if (declared === void 0) {
|
|
552
634
|
return meanings.length === 1 ? meanings[0] : void 0;
|
|
553
635
|
}
|
|
636
|
+
if (!isSharedName(name)) return isFieldId(declared) ? declared : void 0;
|
|
554
637
|
return isOtherThing(declared) || meanings.some((meaning) => relatedFields(declared, meaning)) ? declared : void 0;
|
|
555
638
|
}
|
|
639
|
+
function isSharedName(name) {
|
|
640
|
+
return Object.hasOwn(EXTRACTOR_TARGET_FIELDS, name);
|
|
641
|
+
}
|
|
556
642
|
function nameMeanings(name) {
|
|
557
643
|
return _nullishCoalesce(EXTRACTOR_TARGET_FIELDS[name], () => ( []));
|
|
558
644
|
}
|
|
@@ -590,7 +676,7 @@ function resolveFieldName(name, bindings, outputs = []) {
|
|
|
590
676
|
if (isFieldId(name)) return viaId(name);
|
|
591
677
|
const own = bindings.find((binding) => binding.name === name);
|
|
592
678
|
if (own) {
|
|
593
|
-
return nameMeanings(name).some((id) => relatedFields(own.id, id)) ? byId.get(own.id) : void 0;
|
|
679
|
+
return !isSharedName(name) || nameMeanings(name).some((id) => relatedFields(own.id, id)) ? byId.get(own.id) : void 0;
|
|
594
680
|
}
|
|
595
681
|
if (outputs.includes(name)) return void 0;
|
|
596
682
|
const found = nameMeanings(name).flatMap((id) => {
|