deepline 0.3.493 → 0.3.495
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 +12 -0
- 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/execution-capabilities.ts +8 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +2 -2
- 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-B2YUNFQ6.mjs} +5 -5
- package/dist/cli/auth-GAOWVOK4.js +43 -0
- package/dist/cli/{billing-FSB4BBBO.js → billing-2Q7TMNRE.js} +79 -79
- package/dist/cli/{billing-SBWQCC7B.mjs → billing-5TR7ZBZM.mjs} +6 -6
- package/dist/cli/{chunk-3RGWTKK3.mjs → chunk-2GEYN3H4.mjs} +89 -3
- package/dist/cli/{chunk-IRDYBMA7.mjs → chunk-2HCZHIMT.mjs} +21 -0
- package/dist/cli/{chunk-WCZFCOMZ.js → chunk-5OKQPDYJ.js} +11 -10
- package/dist/cli/{chunk-DYP27IWC.mjs → chunk-7LLUJQM5.mjs} +4 -4
- package/dist/cli/{chunk-IJOHWGPF.js → chunk-7OGADAAA.js} +6 -6
- package/dist/cli/{chunk-2BRTYIAH.mjs → chunk-7YNZRALI.mjs} +3 -3
- package/dist/cli/{chunk-MLEUOTEQ.js → chunk-ACVT5LPN.js} +53 -53
- package/dist/cli/{chunk-IOMEJKGK.js → chunk-B3ROCZ5Y.js} +2 -2
- package/dist/cli/{chunk-NPZBE64X.js → chunk-BLMB4N63.js} +89 -3
- package/dist/cli/{chunk-KGDDQMI7.mjs → chunk-C5R3UH5V.mjs} +28 -1
- package/dist/cli/{chunk-QTPS5RLG.js → chunk-CAWE3MS2.js} +45 -13
- package/dist/cli/{chunk-NALJJTPS.mjs → chunk-CKLJAQIV.mjs} +5 -5
- package/dist/cli/{chunk-NPNAEPY4.js → chunk-CTFR52JC.js} +26 -26
- package/dist/cli/{chunk-KKSKYZO4.mjs → chunk-DFK5IJMT.mjs} +2 -2
- package/dist/cli/{chunk-4NIGNT7X.mjs → chunk-FC4JGTFC.mjs} +1 -1
- package/dist/cli/{chunk-TNQOR6XQ.mjs → chunk-FLJSK32S.mjs} +1 -1
- package/dist/cli/{chunk-TIFRRLZT.js → chunk-GBICEYUA.js} +6 -6
- package/dist/cli/{chunk-ZQH4TXM2.mjs → chunk-H5L2Q2GI.mjs} +2 -2
- package/dist/cli/{chunk-Y3NN2UAF.mjs → chunk-HJ5LYO6U.mjs} +2 -2
- package/dist/cli/{chunk-C2MRDPA5.js → chunk-I42EOZKQ.js} +32 -5
- package/dist/cli/{chunk-3QGUWB6E.mjs → chunk-I66IWCY4.mjs} +8 -7
- package/dist/cli/{chunk-VFHIYWMC.mjs → chunk-JRBQC6L4.mjs} +2 -2
- package/dist/cli/{chunk-67ZG7XZV.mjs → chunk-KG2FUYWB.mjs} +2 -2
- package/dist/cli/{chunk-5WOPBX3H.mjs → chunk-KSHAFYYG.mjs} +1 -1
- package/dist/cli/{chunk-SXD2EYAH.mjs → chunk-L5ZXEYTQ.mjs} +37 -5
- package/dist/cli/{chunk-KCDZWS2B.js → chunk-LQKZG5RN.js} +231 -231
- package/dist/cli/{chunk-2I7VN65H.js → chunk-MAMEKGLI.js} +7 -7
- package/dist/cli/{chunk-2IHGVAGT.mjs → chunk-MG3WST3Z.mjs} +2 -2
- package/dist/cli/{chunk-DWJ4RXSA.js → chunk-N3T3L3WW.js} +21 -0
- package/dist/cli/{chunk-5DIZ2G74.mjs → chunk-OFBDI5S3.mjs} +2 -2
- package/dist/cli/{chunk-UCMY2SO2.js → chunk-PEIOQKTA.js} +3 -3
- package/dist/cli/{chunk-NWIDPT7H.js → chunk-PHO53W67.js} +4 -4
- package/dist/cli/{chunk-E5ILCMKQ.mjs → chunk-RBBOUPME.mjs} +1 -1
- package/dist/cli/{chunk-HLM2UFQ5.mjs → chunk-S2QARJLX.mjs} +1 -1
- package/dist/cli/{chunk-GSC35TPZ.mjs → chunk-SC5GHGFD.mjs} +2 -2
- package/dist/cli/{chunk-ZVW7EWTC.mjs → chunk-SR6VS5PG.mjs} +184 -184
- package/dist/cli/{chunk-EFO5GVYS.js → chunk-T4PGA6UD.js} +2 -2
- package/dist/cli/{chunk-AGTXL6LZ.js → chunk-TCNILHMS.js} +5 -5
- package/dist/cli/{chunk-ZVXB7OU7.mjs → chunk-TFMV3NKL.mjs} +1 -1
- package/dist/cli/{chunk-4IJFQV3O.mjs → chunk-TMO7W4P2.mjs} +1 -1
- package/dist/cli/{chunk-WTFI7BVH.mjs → chunk-TSKVPEVZ.mjs} +8 -1
- package/dist/cli/{chunk-HTUSTPP4.js → chunk-TUAEM76Y.js} +14 -7
- package/dist/cli/{chunk-EYG336YV.js → chunk-UDFO2MWA.js} +41 -41
- package/dist/cli/{chunk-2NGIBJM2.js → chunk-UKGOZOTT.js} +8 -8
- package/dist/cli/{chunk-7HABWOMB.js → chunk-UMFZQREB.js} +259 -259
- package/dist/cli/{chunk-XLE7KXE7.js → chunk-WVL5HGUG.js} +2 -2
- package/dist/cli/{chunk-XQX476QK.js → chunk-XAOLMEN5.js} +9 -9
- package/dist/cli/{chunk-AWMCZAUR.js → chunk-XKYQR3QK.js} +3 -3
- package/dist/cli/{chunk-IJJ6D5WL.mjs → chunk-XR6RCBB3.mjs} +11 -11
- package/dist/cli/{chunk-IOBPR2VO.js → chunk-XX6PRYFI.js} +16 -16
- package/dist/cli/{chunk-LGTZYI5B.js → chunk-Y2DUGUUU.js} +21 -21
- package/dist/cli/{chunk-2H4OFVR5.js → chunk-Z33PZUWG.js} +5 -5
- package/dist/cli/{chunk-EBAS3UT2.mjs → chunk-ZB6UYG5I.mjs} +5 -5
- package/dist/cli/{chunk-JO2JZUBR.js → chunk-ZBQBH4IT.js} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-XR22YQXT.mjs → csv-5UQXKWLE.mjs} +4 -4
- package/dist/cli/{csv-DKYZE2KM.js → csv-DZQ77T67.js} +13 -13
- package/dist/cli/{db-EOKG36YN.mjs → db-F62BVFTP.mjs} +6 -6
- package/dist/cli/{db-RNYRTCMV.js → db-JIPLUHA6.js} +27 -27
- package/dist/cli/describe-BA4RAZ7J.js +50 -0
- package/dist/cli/{describe-ICFXOQBW.mjs → describe-J7KYHONJ.mjs} +20 -20
- 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-XB4F2KZD.mjs} +6 -6
- package/dist/cli/{executions-OBWPSWH7.js → executions-XQ4FNJ27.js} +8 -8
- package/dist/cli/{feedback-6EQRVBKF.mjs → feedback-5CR4CJ6W.mjs} +4 -4
- package/dist/cli/{feedback-6GPEUBLF.js → feedback-Q6JRCMDV.js} +8 -8
- package/dist/cli/git-EAO432S2.js +25 -0
- package/dist/cli/{git-CVQ24DTR.mjs → git-P5WBBUT3.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-EJAB6III.js} +8 -8
- package/dist/cli/{legacy-noops-QULJZYNH.mjs → legacy-noops-H5JJVYZ2.mjs} +5 -5
- package/dist/cli/{monitors-OJ4CMREE.js → monitors-7DOGM7RO.js} +91 -91
- package/dist/cli/{monitors-AFT5YJPZ.mjs → monitors-QPFAT2J5.mjs} +7 -7
- package/dist/cli/{org-WHKNXANG.mjs → org-BH7ATDIJ.mjs} +6 -6
- package/dist/cli/{org-RKT52CSL.js → org-QOBB4IN3.js} +72 -72
- package/dist/cli/{pages-EEAQFGVD.mjs → pages-PJH2TXZQ.mjs} +20 -6
- package/dist/cli/{pages-SOE3R667.js → pages-PLTE54KM.js} +32 -18
- package/dist/cli/{play-LXFWHUBP.mjs → play-ULTJ3LPA.mjs} +17 -17
- package/dist/cli/{play-OTJJ4E4T.js → play-XZAPTF3T.js} +314 -314
- package/dist/cli/{providers-U3CPKTMM.mjs → providers-6NUTRVE4.mjs} +6 -6
- package/dist/cli/{providers-RU4HIAT3.js → providers-SKXLW7M3.js} +9 -9
- package/dist/cli/{quickstart-75AO2AJC.mjs → quickstart-5HMJMXVT.mjs} +4 -4
- package/dist/cli/{quickstart-N72IVA2Y.js → quickstart-JFCIIGII.js} +6 -6
- package/dist/cli/{run-IGWFL6WH.mjs → run-2BJZPY4K.mjs} +25 -25
- package/dist/cli/{run-MMYES3IW.js → run-BRAXLCBC.js} +40 -40
- package/dist/cli/search-4MU2G6HV.js +32 -0
- package/dist/cli/{search-FIYESBLZ.mjs → search-IDXSB2CV.mjs} +7 -7
- package/dist/cli/{search-output-3I5KSW36.mjs → search-output-AATMH4QG.mjs} +4 -4
- package/dist/cli/{search-output-2FXN4ZWD.js → search-output-CJ4TNYF7.js} +6 -6
- package/dist/cli/{secrets-HCZQ6JNP.js → secrets-6SMKTBFT.js} +15 -15
- package/dist/cli/{secrets-O7IUQ3VT.mjs → secrets-UQNEJSNG.mjs} +6 -6
- package/dist/cli/{sessions-KY7A3EZO.mjs → sessions-MHTUVPSR.mjs} +5 -5
- package/dist/cli/{sessions-5AYTT4IW.js → sessions-W3KU4Q4X.js} +6 -6
- package/dist/cli/{settings-P4VFYWJK.js → settings-BA52NEU5.js} +78 -78
- package/dist/cli/{settings-WSMRR2GS.mjs → settings-KNYJ6GXK.mjs} +11 -11
- package/dist/cli/{setup-J7CA3EJL.js → setup-D5HCJAVU.js} +49 -49
- package/dist/cli/{setup-YTVKVQC7.mjs → setup-TLTZ2YCO.mjs} +9 -9
- package/dist/cli/{skills-W5WY764N.mjs → skills-DPLM4EGS.mjs} +7 -7
- package/dist/cli/skills-SVUWVXCE.js +36 -0
- package/dist/cli/{tools-YECI6N3N.mjs → tools-I4ZOJV23.mjs} +18 -18
- package/dist/cli/tools-RJSP76HX.js +57 -0
- package/dist/cli/{update-BIFBIEII.mjs → update-VIFS7IK5.mjs} +9 -9
- package/dist/cli/update-YT6JPIC6.js +34 -0
- package/dist/cli/{workflow-D2TUFFH6.js → workflow-7REPOHXM.js} +17 -17
- package/dist/cli/{workflow-XZVDNARC.mjs → workflow-TAQBNDV7.mjs} +7 -7
- package/dist/{client-CNzJ1LTF.d.mts → client-BDT_LwuM.d.mts} +1 -1
- package/dist/{client-BDB_VbE4.d.ts → client-CKVH6tmp.d.ts} +1 -1
- package/dist/{client-core-CSv3DlPD.d.mts → client-core-CEixe_C0.d.mts} +10 -5
- package/dist/{client-core-xEa9x3pl.d.ts → client-core-RS-d-vtY.d.ts} +10 -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
|
@@ -2807,6 +2807,7 @@ export type HostedPage = {
|
|
|
2807
2807
|
name: string;
|
|
2808
2808
|
url: string;
|
|
2809
2809
|
description: string | null;
|
|
2810
|
+
allowed_origins?: string[];
|
|
2810
2811
|
public: boolean;
|
|
2811
2812
|
state: 'active' | 'deleting';
|
|
2812
2813
|
has_document: boolean;
|
|
@@ -3151,6 +3152,17 @@ export class DeeplineClient {
|
|
|
3151
3152
|
);
|
|
3152
3153
|
}
|
|
3153
3154
|
|
|
3155
|
+
/** Replace the origins allowed to read this page in a browser when public. */
|
|
3156
|
+
async setPageAllowedOrigins(
|
|
3157
|
+
name: string,
|
|
3158
|
+
origins: string[],
|
|
3159
|
+
): Promise<{ allowed_origins: string[] }> {
|
|
3160
|
+
return await this.http.put<{ allowed_origins: string[] }>(
|
|
3161
|
+
`/api/v2/pages/${encodeURIComponent(name)}/origins`,
|
|
3162
|
+
{ allowed_origins: origins },
|
|
3163
|
+
);
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3154
3166
|
/** The explicit way to change who can see an existing page. */
|
|
3155
3167
|
async setPageVisibility(
|
|
3156
3168
|
name: string,
|
|
@@ -205,7 +205,7 @@ export const SDK_RELEASE = {
|
|
|
205
205
|
// getters keep their established compatibility behavior.
|
|
206
206
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
207
207
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
208
|
-
version: '0.3.
|
|
208
|
+
version: '0.3.495',
|
|
209
209
|
updateSummary: {
|
|
210
210
|
introducedIn: '0.3.90',
|
|
211
211
|
summary:
|
|
@@ -260,7 +260,7 @@ export const SDK_RELEASE = {
|
|
|
260
260
|
command: 'search',
|
|
261
261
|
introducedIn: '0.3.287',
|
|
262
262
|
reason:
|
|
263
|
-
'deepline search was added in SDK CLI 0.3.287 as the one search across tools, monitors, and
|
|
263
|
+
'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.',
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
266
|
command: 'notifications',
|
|
@@ -571,7 +571,8 @@ export type SearchType =
|
|
|
571
571
|
| 'plays'
|
|
572
572
|
| 'monitors'
|
|
573
573
|
| 'prebuilts'
|
|
574
|
-
| 'custom'
|
|
574
|
+
| 'custom'
|
|
575
|
+
| 'docs';
|
|
575
576
|
|
|
576
577
|
/** Options for {@link DeeplineClient.search}. */
|
|
577
578
|
export interface SearchOptions extends ToolSearchOptions {
|
|
@@ -583,15 +584,15 @@ export interface SearchOptions extends ToolSearchOptions {
|
|
|
583
584
|
|
|
584
585
|
/** One ranked search result; `kind` says which fields accompany it. */
|
|
585
586
|
export interface SearchResultItem {
|
|
586
|
-
/** Tool id for tools and monitor types,
|
|
587
|
+
/** Tool id for tools and monitor types, play reference, or `docs/<path>`. */
|
|
587
588
|
id: string;
|
|
588
|
-
kind: 'tool' | 'monitor_type' | 'prebuilt_play' | 'custom_play';
|
|
589
|
+
kind: 'tool' | 'monitor_type' | 'prebuilt_play' | 'custom_play' | 'doc';
|
|
589
590
|
displayName?: string;
|
|
590
591
|
description?: string;
|
|
591
592
|
[field: string]: unknown;
|
|
592
593
|
}
|
|
593
594
|
|
|
594
|
-
/** Ranked results across tools, monitor types, and
|
|
595
|
+
/** Ranked results across tools, monitor types, plays, and docs. */
|
|
595
596
|
export interface SearchResult extends Omit<
|
|
596
597
|
ToolSearchResult,
|
|
597
598
|
'tools' | 'omitted_plays_hint' | 'commandTemplates'
|
|
@@ -95,8 +95,7 @@ export type RuntimeAuthorityDescriptor = {
|
|
|
95
95
|
* Readers reject a token naming a capability they do not know, and the release
|
|
96
96
|
* canary mints with a new app against the deployed gateway. So a new capability
|
|
97
97
|
* ships known-but-withheld here, and joins the defaults only once every reader
|
|
98
|
-
* that verifies these tokens has deployed it.
|
|
99
|
-
* then; Play page writes fail closed (PAGES_UNAVAILABLE) meanwhile.
|
|
98
|
+
* that verifies these tokens has deployed it.
|
|
100
99
|
*/
|
|
101
100
|
const WITHHELD_FROM_DEFAULT_CAPABILITIES = new Set<RuntimeExecutionCapability>([
|
|
102
101
|
'run.ledger.project',
|
|
@@ -109,9 +108,15 @@ export const DEFAULT_RUNTIME_EXECUTION_CAPABILITIES = [
|
|
|
109
108
|
),
|
|
110
109
|
] as const satisfies readonly RuntimeExecutionCapability[];
|
|
111
110
|
|
|
111
|
+
/** Page writes are granted at Play admission, not by generic token minting. */
|
|
112
|
+
export const PLAY_RUNTIME_EXECUTION_CAPABILITIES = [
|
|
113
|
+
...DEFAULT_RUNTIME_EXECUTION_CAPABILITIES,
|
|
114
|
+
'page.write',
|
|
115
|
+
] as const satisfies readonly RuntimeExecutionCapability[];
|
|
116
|
+
|
|
112
117
|
/** Daytona receives these safe-to-steal capabilities, never raw DB access. */
|
|
113
118
|
export const DAYTONA_RUNTIME_EXECUTION_CAPABILITIES =
|
|
114
|
-
|
|
119
|
+
PLAY_RUNTIME_EXECUTION_CAPABILITIES.filter(
|
|
115
120
|
(capability) => capability !== 'db.session',
|
|
116
121
|
);
|
|
117
122
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PlayAuthoringRunActor } from '../plays/authoring-contract';
|
|
2
2
|
import { mintWorkflowExecutorToken } from './/workflow-executor-auth';
|
|
3
3
|
import {
|
|
4
|
-
DEFAULT_RUNTIME_EXECUTION_CAPABILITIES,
|
|
5
4
|
normalizeRuntimeExecutionCapabilities,
|
|
5
|
+
PLAY_RUNTIME_EXECUTION_CAPABILITIES,
|
|
6
6
|
type ExecutionOperationPolicy,
|
|
7
7
|
type RuntimeAuthorityDescriptor,
|
|
8
8
|
type RuntimeExecutionCapability,
|
|
@@ -138,7 +138,7 @@ export async function mintPlayRunRuntimeAuthority(input: {
|
|
|
138
138
|
schedulerSchema: input.schedulerSchema ?? null,
|
|
139
139
|
docflowEnabled: input.docflowEnabled === true,
|
|
140
140
|
capabilities: normalizeRuntimeExecutionCapabilities(
|
|
141
|
-
|
|
141
|
+
PLAY_RUNTIME_EXECUTION_CAPABILITIES,
|
|
142
142
|
),
|
|
143
143
|
};
|
|
144
144
|
return await mintPlayRunRuntimeAuthorityDescriptor({
|
|
@@ -1153,10 +1153,25 @@ function applyExtractorTransforms(
|
|
|
1153
1153
|
if (transform === 'jobChange') return normalizeJobChange(current);
|
|
1154
1154
|
if (transform === 'jobChangeStatus')
|
|
1155
1155
|
return normalizeJobChangeStatus(current);
|
|
1156
|
+
if (transform === 'linkedin.profileUrl') return linkedinUrl(current, 'in');
|
|
1157
|
+
if (transform === 'linkedin.companyUrl')
|
|
1158
|
+
return linkedinUrl(current, 'company');
|
|
1156
1159
|
return current;
|
|
1157
1160
|
}, value);
|
|
1158
1161
|
}
|
|
1159
1162
|
|
|
1163
|
+
/**
|
|
1164
|
+
* A LinkedIn URL from a URL or the identifier at its end (`ada-lovelace`, a
|
|
1165
|
+
* numeric company id). Anything else is left as it is.
|
|
1166
|
+
*/
|
|
1167
|
+
function linkedinUrl(value: unknown, kind: 'in' | 'company'): unknown {
|
|
1168
|
+
if (typeof value !== 'string') return value;
|
|
1169
|
+
const trimmed = value.trim();
|
|
1170
|
+
return /^[A-Za-z0-9%_-]+$/.test(trimmed)
|
|
1171
|
+
? `https://www.linkedin.com/${kind}/${trimmed}`
|
|
1172
|
+
: value;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1160
1175
|
function coerceToEnum(
|
|
1161
1176
|
value: unknown,
|
|
1162
1177
|
descriptor: ToolResultExtractorDescriptor,
|
|
@@ -44,6 +44,23 @@ type Group = {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
const value = (description: string): Leaf => ({ type: 'string', description });
|
|
47
|
+
const count = (description: string): Leaf => ({ type: 'number', description });
|
|
48
|
+
const date = (description: string): Leaf => ({
|
|
49
|
+
type: 'string',
|
|
50
|
+
description: `${description} An ISO 8601 date.`,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
// Where something is. Without a kind, a location in some form.
|
|
54
|
+
const LOCATION: Group = {
|
|
55
|
+
description: 'Where it is. Without a kind, a location in some form.',
|
|
56
|
+
leaves: { value: value('The location.') },
|
|
57
|
+
kinds: {
|
|
58
|
+
country: 'The country.',
|
|
59
|
+
region: 'The state, province or region.',
|
|
60
|
+
city: 'The city.',
|
|
61
|
+
address: 'The full street address.',
|
|
62
|
+
},
|
|
63
|
+
};
|
|
47
64
|
|
|
48
65
|
const SOURCE: Leaf = {
|
|
49
66
|
type: 'string',
|
|
@@ -73,6 +90,11 @@ export const FIELD_CATALOG = {
|
|
|
73
90
|
type: 'EmailStatus',
|
|
74
91
|
description: 'The validation verdict and its signals.',
|
|
75
92
|
},
|
|
93
|
+
available: {
|
|
94
|
+
type: 'boolean',
|
|
95
|
+
description:
|
|
96
|
+
'Whether the provider has an address it could reveal, without the address itself.',
|
|
97
|
+
},
|
|
76
98
|
source: SOURCE,
|
|
77
99
|
},
|
|
78
100
|
kinds: {
|
|
@@ -92,6 +114,11 @@ export const FIELD_CATALOG = {
|
|
|
92
114
|
type: '"valid" | "invalid" | "unknown"',
|
|
93
115
|
description: 'The validation verdict.',
|
|
94
116
|
},
|
|
117
|
+
available: {
|
|
118
|
+
type: 'boolean',
|
|
119
|
+
description:
|
|
120
|
+
'Whether the provider has a number it could reveal, without the number itself.',
|
|
121
|
+
},
|
|
95
122
|
line_type: value('Mobile, landline, VoIP and so on.'),
|
|
96
123
|
carrier: value('The carrier serving the number.'),
|
|
97
124
|
source: SOURCE,
|
|
@@ -130,8 +157,16 @@ export const FIELD_CATALOG = {
|
|
|
130
157
|
type: 'JobChangeStatus',
|
|
131
158
|
description: 'The job-change verdict alone.',
|
|
132
159
|
},
|
|
160
|
+
seniority: value('How senior the role is, such as director or VP.'),
|
|
161
|
+
department: value('The department or function, such as sales.'),
|
|
162
|
+
started_at: date('When they started the role.'),
|
|
133
163
|
},
|
|
134
164
|
},
|
|
165
|
+
location: LOCATION,
|
|
166
|
+
skills: {
|
|
167
|
+
description: 'Skills the person lists. Usually several: read `.values`.',
|
|
168
|
+
leaves: { value: value('One skill.') },
|
|
169
|
+
},
|
|
135
170
|
record: {
|
|
136
171
|
description: "A provider's own record of the person.",
|
|
137
172
|
leaves: { id: value("The provider's id for the person.") },
|
|
@@ -153,7 +188,10 @@ export const FIELD_CATALOG = {
|
|
|
153
188
|
},
|
|
154
189
|
linkedin: {
|
|
155
190
|
description: "The company's LinkedIn page.",
|
|
156
|
-
leaves: {
|
|
191
|
+
leaves: {
|
|
192
|
+
url: value('The page URL.'),
|
|
193
|
+
id: value("LinkedIn's numeric id or public identifier for the page."),
|
|
194
|
+
},
|
|
157
195
|
},
|
|
158
196
|
phone: {
|
|
159
197
|
description: 'A phone number for the company.',
|
|
@@ -163,6 +201,42 @@ export const FIELD_CATALOG = {
|
|
|
163
201
|
description: 'The industry the company is in.',
|
|
164
202
|
leaves: { value: value('The industry.') },
|
|
165
203
|
},
|
|
204
|
+
description: {
|
|
205
|
+
description: "What the company does, in its own or a provider's words.",
|
|
206
|
+
leaves: { value: value('The description.') },
|
|
207
|
+
},
|
|
208
|
+
location: LOCATION,
|
|
209
|
+
headcount: {
|
|
210
|
+
description:
|
|
211
|
+
'How many people work there. Without a kind, a count in some form.',
|
|
212
|
+
leaves: { value: value('The headcount.') },
|
|
213
|
+
kinds: {
|
|
214
|
+
exact: 'A single number of employees.',
|
|
215
|
+
range: 'A range such as 51-200.',
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
funding: {
|
|
219
|
+
description: 'Money the company has raised.',
|
|
220
|
+
groups: {
|
|
221
|
+
total: {
|
|
222
|
+
description: 'Everything raised to date.',
|
|
223
|
+
leaves: { value: count('The total, in US dollars.') },
|
|
224
|
+
},
|
|
225
|
+
last_round: {
|
|
226
|
+
description: 'The most recent funding round.',
|
|
227
|
+
leaves: {
|
|
228
|
+
type: value('The round type, such as Series A.'),
|
|
229
|
+
amount: count('The amount raised, in US dollars.'),
|
|
230
|
+
date: date('When it was announced.'),
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
technologies: {
|
|
236
|
+
description:
|
|
237
|
+
'Technologies the company uses. Usually several: read `.values`.',
|
|
238
|
+
leaves: { value: value('One technology.') },
|
|
239
|
+
},
|
|
166
240
|
record: {
|
|
167
241
|
description: "A provider's own record of the company.",
|
|
168
242
|
leaves: { id: value("The provider's id for the company.") },
|
|
@@ -171,11 +245,17 @@ export const FIELD_CATALOG = {
|
|
|
171
245
|
job: {
|
|
172
246
|
posting: {
|
|
173
247
|
description: 'A job posting.',
|
|
248
|
+
leaves: { url: value("The posting's page.") },
|
|
174
249
|
groups: {
|
|
175
250
|
title: {
|
|
176
251
|
description: "The posting's title. Not a person's job title.",
|
|
177
252
|
leaves: { value: value('The title.') },
|
|
178
253
|
},
|
|
254
|
+
location: LOCATION,
|
|
255
|
+
posted_at: {
|
|
256
|
+
description: 'When the posting was published.',
|
|
257
|
+
leaves: { value: date('The date.') },
|
|
258
|
+
},
|
|
179
259
|
},
|
|
180
260
|
},
|
|
181
261
|
},
|
|
@@ -190,6 +270,10 @@ export const FIELD_CATALOG = {
|
|
|
190
270
|
},
|
|
191
271
|
},
|
|
192
272
|
post: {
|
|
273
|
+
url: {
|
|
274
|
+
description: "A social or business post's own page.",
|
|
275
|
+
leaves: { value: value('The URL.') },
|
|
276
|
+
},
|
|
193
277
|
title: {
|
|
194
278
|
description: "A social or business post's title.",
|
|
195
279
|
leaves: { value: value('The title.') },
|
|
@@ -209,6 +293,10 @@ export const FIELD_CATALOG = {
|
|
|
209
293
|
description: "A web page's title.",
|
|
210
294
|
leaves: { value: value('The title.') },
|
|
211
295
|
},
|
|
296
|
+
url: {
|
|
297
|
+
description: "A web page's address, when it is not a known profile.",
|
|
298
|
+
leaves: { value: value('The URL.') },
|
|
299
|
+
},
|
|
212
300
|
},
|
|
213
301
|
// Some entity's value, when a tool cannot say whether it is a person's or a
|
|
214
302
|
// company's. Each field here is answered by the same field of either.
|
|
@@ -397,12 +485,20 @@ export function fieldOfName(
|
|
|
397
485
|
if (declared === undefined) {
|
|
398
486
|
return meanings.length === 1 ? meanings[0] : undefined;
|
|
399
487
|
}
|
|
488
|
+
// The tool's own word for an output says nothing by itself, so it is
|
|
489
|
+
// whatever field it declares.
|
|
490
|
+
if (!isSharedName(name)) return isFieldId(declared) ? declared : undefined;
|
|
400
491
|
return isOtherThing(declared) ||
|
|
401
492
|
meanings.some((meaning) => relatedFields(declared, meaning))
|
|
402
493
|
? declared
|
|
403
494
|
: undefined;
|
|
404
495
|
}
|
|
405
496
|
|
|
497
|
+
/** Whether `name` is one of the shared output names with catalog meanings. */
|
|
498
|
+
function isSharedName(name: string): boolean {
|
|
499
|
+
return Object.hasOwn(EXTRACTOR_TARGET_FIELDS, name);
|
|
500
|
+
}
|
|
501
|
+
|
|
406
502
|
function nameMeanings(name: string): readonly string[] {
|
|
407
503
|
return EXTRACTOR_TARGET_FIELDS[name as DeeplineExtractorTarget] ?? [];
|
|
408
504
|
}
|
|
@@ -480,9 +576,11 @@ export function resolveFieldName(
|
|
|
480
576
|
if (isFieldId(name)) return viaId(name);
|
|
481
577
|
const own = bindings.find((binding) => binding.name === name);
|
|
482
578
|
// `company_name` that is declared as a podcast's name is not a company name,
|
|
483
|
-
// so it is read by its id, never by a name that says something else.
|
|
579
|
+
// so it is read by its id, never by a name that says something else. The
|
|
580
|
+
// tool's own word (`headcount`) means only what it declares.
|
|
484
581
|
if (own) {
|
|
485
|
-
return
|
|
582
|
+
return !isSharedName(name) ||
|
|
583
|
+
nameMeanings(name).some((id) => relatedFields(own.id, id))
|
|
486
584
|
? byId.get(own.id)
|
|
487
585
|
: undefined;
|
|
488
586
|
}
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
reportSetupCompleted,
|
|
15
15
|
resolvePendingAuthClaimForResume,
|
|
16
16
|
statusBannerLine
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-7YNZRALI.mjs";
|
|
18
|
+
import "./chunk-JRBQC6L4.mjs";
|
|
19
|
+
import "./chunk-FC4JGTFC.mjs";
|
|
20
|
+
import "./chunk-FLJSK32S.mjs";
|
|
21
21
|
import "./chunk-4QF2K7TM.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
23
|
import "./chunk-HBL4PM5Q.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-DFK5IJMT.mjs";
|
|
25
25
|
import "./chunk-WZYKRD7T.mjs";
|
|
26
26
|
import "./chunk-KRD6H754.mjs";
|
|
27
27
|
export {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunkACVT5LPNjs = require('./chunk-ACVT5LPN.js');
|
|
18
|
+
require('./chunk-MAMEKGLI.js');
|
|
19
|
+
require('./chunk-ZBQBH4IT.js');
|
|
20
|
+
require('./chunk-PHO53W67.js');
|
|
21
|
+
require('./chunk-ALJJRZNJ.js');
|
|
22
|
+
require('./chunk-XNYIZMNQ.js');
|
|
23
|
+
require('./chunk-DIAWYWT5.js');
|
|
24
|
+
require('./chunk-T4PGA6UD.js');
|
|
25
|
+
require('./chunk-OG64RBAC.js');
|
|
26
|
+
require('./chunk-COGTRVWW.js');
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
exports.EXIT_WORKSPACE_MISMATCH = _chunkACVT5LPNjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkACVT5LPNjs.authStatusLine; exports.clearPendingClaim = _chunkACVT5LPNjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkACVT5LPNjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkACVT5LPNjs.handleRegister; exports.handleStatus = _chunkACVT5LPNjs.handleStatus; exports.handleWait = _chunkACVT5LPNjs.handleWait; exports.httpJson = _chunkACVT5LPNjs.httpJson; exports.readPendingAuthClaim = _chunkACVT5LPNjs.readPendingAuthClaim; exports.readStatusBanner = _chunkACVT5LPNjs.readStatusBanner; exports.registerAuthCommands = _chunkACVT5LPNjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkACVT5LPNjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkACVT5LPNjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkACVT5LPNjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkACVT5LPNjs.statusBannerLine;
|