deepline 0.3.463 → 0.3.464
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/play.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +16 -2
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +98 -0
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +353 -52
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +63 -3
- package/dist/cli/{auth-LZLBR4C3.mjs → auth-GMSI6QWR.mjs} +5 -5
- package/dist/cli/auth-P4E7M3AV.js +41 -0
- package/dist/cli/{billing-OTOP5RE4.mjs → billing-6G2RFLM7.mjs} +6 -6
- package/dist/cli/{billing-6TJPNJQD.js → billing-MGH36CNP.js} +77 -77
- package/dist/cli/{chunk-5DRNNC72.js → chunk-2RFTOESC.js} +5 -5
- package/dist/cli/{chunk-NDHJR2WZ.js → chunk-3AIMFE3Z.js} +36 -36
- package/dist/cli/{chunk-S4XQCFES.mjs → chunk-3MKRAI6R.mjs} +5 -5
- package/dist/cli/{chunk-NTLI6P6Y.mjs → chunk-44BEFU62.mjs} +2 -2
- package/dist/cli/{chunk-3BOIOCNX.js → chunk-4XNXFHG6.js} +1 -1
- package/dist/cli/{chunk-F2RHUPVH.mjs → chunk-5CKIO7KA.mjs} +1 -1
- package/dist/cli/{chunk-2ZIRCBYG.js → chunk-5XIGEYYK.js} +6 -6
- package/dist/cli/{chunk-WUMIYOXQ.mjs → chunk-6A7OH2PV.mjs} +2 -2
- package/dist/cli/{chunk-3BVLLJ3H.mjs → chunk-6COF5LIE.mjs} +2 -2
- package/dist/cli/{chunk-O3BJYD6D.mjs → chunk-6E2KNNTD.mjs} +2 -2
- package/dist/cli/{chunk-UIURR26V.mjs → chunk-6KDOO7IM.mjs} +4 -4
- package/dist/cli/{chunk-5LEAXRHV.js → chunk-6P4OYABU.js} +54 -226
- package/dist/cli/chunk-7YDN6AEK.mjs +649 -0
- package/dist/cli/{chunk-UROQDCVW.js → chunk-ACZLDP7L.js} +3 -3
- package/dist/cli/{chunk-UC4SFYNU.js → chunk-BMUDQMYE.js} +6 -6
- package/dist/cli/{chunk-DHXCBITQ.mjs → chunk-CUZVOPPY.mjs} +3 -3
- package/dist/cli/{chunk-CTQ56DXP.mjs → chunk-DO3FSI4C.mjs} +1 -1
- package/dist/cli/{chunk-2NISBXMN.js → chunk-E4QJKJH6.js} +51 -51
- package/dist/cli/{chunk-WUZS2HK6.js → chunk-EQNJUG3N.js} +53 -53
- package/dist/cli/{chunk-CBZP6J3V.js → chunk-FEWZT4RV.js} +21 -21
- package/dist/cli/{chunk-NAPTMYTY.js → chunk-FVAB2JRO.js} +8 -8
- package/dist/cli/{chunk-BGNWI3KH.js → chunk-GVJVBBGV.js} +3 -3
- package/dist/cli/{chunk-GUT7CLOL.mjs → chunk-HGUHBLX5.mjs} +3 -3
- package/dist/cli/{chunk-6PMCRYDA.js → chunk-HIMV32ZX.js} +6 -4
- package/dist/cli/{chunk-MSY22NQW.mjs → chunk-I2TCWIW2.mjs} +44 -216
- package/dist/cli/{chunk-XDWS2JJT.mjs → chunk-J327QVQV.mjs} +1 -1
- package/dist/cli/chunk-JLZKF7EY.js +649 -0
- package/dist/cli/{chunk-FK2HNDCN.js → chunk-K3BARC72.js} +2 -2
- package/dist/cli/{chunk-TIRBDQ3W.js → chunk-K4DVRQTY.js} +16 -16
- package/dist/cli/{chunk-XQCTG5OO.js → chunk-L3U44YVO.js} +5 -5
- package/dist/cli/{chunk-XW2JIYG7.mjs → chunk-M4QVY6RW.mjs} +2 -2
- package/dist/cli/{chunk-I624J4H5.mjs → chunk-MP3O4ISC.mjs} +1 -1
- package/dist/cli/{chunk-3U5EAP6E.mjs → chunk-MQNBOSQP.mjs} +5 -5
- package/dist/cli/{chunk-TKAQR3IB.mjs → chunk-MUQAKLBP.mjs} +1 -1
- package/dist/cli/{chunk-YGGIZ3VT.js → chunk-NI3QFUK7.js} +4 -4
- package/dist/cli/{chunk-BAPTQDLF.mjs → chunk-O4AOYLZE.mjs} +2 -2
- package/dist/cli/{chunk-5LHXOIPT.js → chunk-O4ZMADW4.js} +7 -7
- package/dist/cli/{chunk-7D6X7IXW.mjs → chunk-OA7IIOLW.mjs} +4 -4
- package/dist/cli/{chunk-VPHN2HAL.mjs → chunk-OGCAGZXO.mjs} +6 -4
- package/dist/cli/{chunk-C25QE4CH.mjs → chunk-PPQL5F4P.mjs} +1 -1
- package/dist/cli/{chunk-4YZKBBLZ.mjs → chunk-RFOQRCMW.mjs} +5 -5
- package/dist/cli/{chunk-LYFKBLJI.mjs → chunk-TMVBBGSK.mjs} +1 -1
- package/dist/cli/{chunk-PVY4DPPF.js → chunk-TU3M7UXJ.js} +13 -13
- package/dist/cli/{chunk-VDGTTH7K.mjs → chunk-UM363DQF.mjs} +2 -2
- package/dist/cli/{chunk-VY2GBNTX.js → chunk-UOAHDEAI.js} +9 -9
- package/dist/cli/{chunk-RD6IQ2JY.mjs → chunk-VQHEMZ33.mjs} +1 -1
- package/dist/cli/{chunk-IKWRUNAP.mjs → chunk-VYDOPASG.mjs} +1 -1
- package/dist/cli/{chunk-JVDKZJUH.js → chunk-VZX4P5FT.js} +258 -258
- package/dist/cli/{chunk-ALZBANZI.js → chunk-WLIFUH6W.js} +8 -8
- package/dist/cli/{chunk-7FCYPAPP.js → chunk-X3XJ6ZSJ.js} +2 -2
- package/dist/cli/{chunk-CVQ7N5CV.mjs → chunk-XMDBN2K7.mjs} +11 -11
- package/dist/cli/{chunk-RGOUCIIZ.js → chunk-ZAB6KCZW.js} +3 -3
- package/dist/cli/{chunk-SKU6ECIY.js → chunk-ZIMCLWEW.js} +5 -5
- package/dist/cli/{chunk-7XYDDCQ2.js → chunk-ZQERHPZA.js} +26 -26
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-OK45Z5XQ.mjs → csv-4ZVMBOCK.mjs} +4 -4
- package/dist/cli/{csv-EH5QWR4O.js → csv-W2JPV57R.js} +13 -13
- package/dist/cli/{db-3ESJKETS.js → db-6YNFDHEW.js} +27 -27
- package/dist/cli/{db-6Z5E4HKN.mjs → db-TVK6BLRB.mjs} +6 -6
- package/dist/cli/describe-APW5TWBT.js +48 -0
- package/dist/cli/{describe-PNDQB7YS.mjs → describe-JFN4ECPO.mjs} +20 -20
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-2NTWQFEG.mjs → executions-2FK4FFKE.mjs} +6 -6
- package/dist/cli/{executions-KUOBRX5V.js → executions-J4CAN7RB.js} +8 -8
- package/dist/cli/{feedback-7RPRMSGY.mjs → feedback-EYRRLA2P.mjs} +4 -4
- package/dist/cli/{feedback-UPHAZJ4C.js → feedback-NOO4OM4U.js} +8 -8
- package/dist/cli/{git-SCYP6WSZ.mjs → git-D3Q4JKBC.mjs} +5 -5
- package/dist/cli/git-FPF6DT43.js +25 -0
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-7XMFCVRG.js → legacy-noops-5ZGRKSN3.js} +8 -8
- package/dist/cli/{legacy-noops-A4KYAGI6.mjs → legacy-noops-SUFJWBLZ.mjs} +5 -5
- package/dist/cli/{monitors-NZV6IX5H.js → monitors-3QFJZA6Z.js} +91 -91
- package/dist/cli/{monitors-FLC5J7RI.mjs → monitors-IRDIIR6J.mjs} +7 -7
- package/dist/cli/{org-IZ7UP3XF.js → org-275OJJ7W.js} +68 -68
- package/dist/cli/{org-LUETJ7Z5.mjs → org-2VA2FSMG.mjs} +6 -6
- package/dist/cli/{pages-22ML3O7O.js → pages-SPRBOZRA.js} +17 -17
- package/dist/cli/{pages-EUX5EAGF.mjs → pages-WCUEBFYU.mjs} +6 -6
- package/dist/cli/{play-CDHPAKKM.mjs → play-7UL5H6QU.mjs} +18 -18
- package/dist/cli/{play-USJBQADG.js → play-NMHUWBET.js} +305 -305
- package/dist/cli/{providers-WFEUNPGC.js → providers-72LUJEAT.js} +9 -9
- package/dist/cli/{providers-CCXZ3SQF.mjs → providers-WSCKV557.mjs} +6 -6
- package/dist/cli/{quickstart-ZUULI635.mjs → quickstart-K4LAKJKJ.mjs} +4 -4
- package/dist/cli/{quickstart-O4JSUORZ.js → quickstart-XSUUAE2Y.js} +6 -6
- package/dist/cli/{run-ISDJYJMU.js → run-MLV2CLW7.js} +40 -40
- package/dist/cli/{run-QJ4NX5F5.mjs → run-R2MOXXHH.mjs} +25 -25
- package/dist/cli/search-AYFUV6YV.js +32 -0
- package/dist/cli/{search-IX3XKZJ3.mjs → search-WHJZNWKE.mjs} +7 -7
- package/dist/cli/{secrets-ELQSNCTR.js → secrets-7PXFBOFY.js} +15 -15
- package/dist/cli/{secrets-7VUDXTUZ.mjs → secrets-YGVOFLI5.mjs} +6 -6
- package/dist/cli/{sessions-A3FG3AZX.js → sessions-ASXXZI42.js} +6 -6
- package/dist/cli/{sessions-VOIQ62GB.mjs → sessions-G7I54W4L.mjs} +5 -5
- package/dist/cli/{settings-S6N6EFBG.mjs → settings-4GFO6JYO.mjs} +11 -11
- package/dist/cli/{settings-ZTXQEMZI.js → settings-RTEBMDPC.js} +78 -78
- package/dist/cli/{setup-AYPIK4JE.mjs → setup-4RJGKSDC.mjs} +9 -9
- package/dist/cli/{setup-Y3WOIFLS.js → setup-A6V2MJK7.js} +44 -44
- package/dist/cli/{skills-5SF5QWNI.mjs → skills-432W6EGS.mjs} +7 -7
- package/dist/cli/skills-GOQECD7H.js +31 -0
- package/dist/cli/tools-JXYN7WOE.js +55 -0
- package/dist/cli/{tools-3XNZ4J64.mjs → tools-SABREK3C.mjs} +18 -18
- package/dist/cli/update-BSB4TJER.js +33 -0
- package/dist/cli/{update-3U4OVX5R.mjs → update-F7NO5RDW.mjs} +9 -9
- package/dist/cli/{workflow-2M5JP7SA.mjs → workflow-F4N7CFUX.mjs} +7 -7
- package/dist/cli/{workflow-RM7H7555.js → workflow-TF6YDWTM.js} +17 -17
- package/dist/{client-DTwnz_AW.d.mts → client-ADFHNtFM.d.mts} +1 -1
- package/dist/{client-DS2IWYZF.d.ts → client-BClp2yrq.d.ts} +1 -1
- package/dist/{client-core-B_6HAIBy.d.ts → client-core-BFU73Ttw.d.ts} +1 -1
- package/dist/{client-core-DzBSlY1U.d.mts → client-core-DWLmmJWo.d.mts} +1 -1
- package/dist/{compiler-manifest-Dcyd3-Zd.d.ts → compiler-manifest-Cs17yO-H.d.mts} +321 -3
- package/dist/{compiler-manifest-Dcyd3-Zd.d.mts → compiler-manifest-Cs17yO-H.d.ts} +321 -3
- package/dist/{errors-yQwfgrcX.d.ts → errors-Dee-QpVS.d.ts} +1 -1
- package/dist/{errors-d-sTrZhe.d.mts → errors-qNfvQuRB.d.mts} +1 -1
- package/dist/{index-C6oXchjN.d.mts → index-BTqNNXmC.d.mts} +1 -1
- package/dist/{index-P56zy_z5.d.ts → index-DXTh1Lxe.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +80 -13
- package/dist/index.mjs +76 -9
- package/dist/install-integrity.json +114 -114
- 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 +1 -1
- package/dist/release.d.ts +1 -1
- 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-XPGKBJKB.js +0 -41
- package/dist/cli/chunk-NA4T3B62.js +0 -286
- package/dist/cli/chunk-TXZVVBQZ.mjs +0 -286
- package/dist/cli/describe-QUF7VTTR.js +0 -48
- package/dist/cli/git-UH653WHV.js +0 -25
- package/dist/cli/search-TIFNLRPM.js +0 -32
- package/dist/cli/skills-MWFRMG3H.js +0 -31
- package/dist/cli/tools-XEC4OD3R.js +0 -55
- package/dist/cli/update-DWYEYTZE.js +0 -33
|
@@ -15,180 +15,8 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var _chunkNA4T3B62js = require('./chunk-NA4T3B62.js');
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
var value = (description) => ({ type: "string", description });
|
|
22
|
-
var SOURCE = {
|
|
23
|
-
type: "string",
|
|
24
|
-
description: "The provider or step that found it."
|
|
25
|
-
};
|
|
26
|
-
var FIELD_CATALOG = {
|
|
27
|
-
person: {
|
|
28
|
-
name: {
|
|
29
|
-
description: "The person's name.",
|
|
30
|
-
leaves: {
|
|
31
|
-
value: value("Full name."),
|
|
32
|
-
first: value("First (given) name."),
|
|
33
|
-
last: value("Last (family) name.")
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
email: {
|
|
37
|
-
description: "An email address for the person.",
|
|
38
|
-
leaves: {
|
|
39
|
-
value: value("The address."),
|
|
40
|
-
validated: {
|
|
41
|
-
type: "boolean",
|
|
42
|
-
description: "Whether the address passed validation."
|
|
43
|
-
},
|
|
44
|
-
status: {
|
|
45
|
-
type: "EmailStatus",
|
|
46
|
-
description: "The validation verdict and its signals."
|
|
47
|
-
},
|
|
48
|
-
source: SOURCE
|
|
49
|
-
},
|
|
50
|
-
kinds: {
|
|
51
|
-
work: "At their employer.",
|
|
52
|
-
personal: "Their own, not tied to an employer."
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
phone: {
|
|
56
|
-
description: "A phone number for the person.",
|
|
57
|
-
leaves: {
|
|
58
|
-
value: value("The number."),
|
|
59
|
-
validated: {
|
|
60
|
-
type: "boolean",
|
|
61
|
-
description: "Whether the number passed validation."
|
|
62
|
-
},
|
|
63
|
-
status: {
|
|
64
|
-
type: '"valid" | "invalid" | "unknown"',
|
|
65
|
-
description: "The validation verdict."
|
|
66
|
-
},
|
|
67
|
-
line_type: value("Mobile, landline, VoIP and so on."),
|
|
68
|
-
carrier: value("The carrier serving the number."),
|
|
69
|
-
source: SOURCE
|
|
70
|
-
},
|
|
71
|
-
kinds: {
|
|
72
|
-
mobile: "Their mobile.",
|
|
73
|
-
work: "A direct line at their employer."
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
linkedin: {
|
|
77
|
-
description: "The person's LinkedIn profile.",
|
|
78
|
-
leaves: { url: value("The profile URL.") }
|
|
79
|
-
},
|
|
80
|
-
job: {
|
|
81
|
-
description: "The person's current role.",
|
|
82
|
-
leaves: {
|
|
83
|
-
title: value("Job title."),
|
|
84
|
-
change: {
|
|
85
|
-
type: "JobChange",
|
|
86
|
-
description: "Whether they changed jobs, and to what."
|
|
87
|
-
},
|
|
88
|
-
change_status: {
|
|
89
|
-
type: "JobChangeStatus",
|
|
90
|
-
description: "The job-change verdict alone."
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
record: {
|
|
95
|
-
description: "A provider's own record of the person.",
|
|
96
|
-
leaves: { id: value("The provider's id for the person.") }
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
company: {
|
|
100
|
-
name: {
|
|
101
|
-
description: "The company's name.",
|
|
102
|
-
leaves: { value: value("The name.") },
|
|
103
|
-
kinds: { legal: "As registered with a government." }
|
|
104
|
-
},
|
|
105
|
-
domain: {
|
|
106
|
-
description: "The company's web domain.",
|
|
107
|
-
leaves: { value: value("The bare domain, such as example.com.") }
|
|
108
|
-
},
|
|
109
|
-
website: {
|
|
110
|
-
description: "The company's website.",
|
|
111
|
-
leaves: { url: value("The site URL.") }
|
|
112
|
-
},
|
|
113
|
-
linkedin: {
|
|
114
|
-
description: "The company's LinkedIn page.",
|
|
115
|
-
leaves: { url: value("The page URL.") }
|
|
116
|
-
},
|
|
117
|
-
phone: {
|
|
118
|
-
description: "A phone number for the company.",
|
|
119
|
-
leaves: { value: value("The number.") }
|
|
120
|
-
},
|
|
121
|
-
industry: {
|
|
122
|
-
description: "The industry the company is in.",
|
|
123
|
-
leaves: { value: value("The industry.") }
|
|
124
|
-
},
|
|
125
|
-
record: {
|
|
126
|
-
description: "A provider's own record of the company.",
|
|
127
|
-
leaves: { id: value("The provider's id for the company.") }
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
function catalogFields() {
|
|
132
|
-
return Object.entries(FIELD_CATALOG).flatMap(
|
|
133
|
-
([entity, groups]) => Object.entries(groups).flatMap(
|
|
134
|
-
([group, definition]) => [void 0, ...Object.keys(_nullishCoalesce(definition.kinds, () => ( {})))].flatMap(
|
|
135
|
-
(kind) => Object.entries(definition.leaves).map(([leaf, described]) => ({
|
|
136
|
-
...described,
|
|
137
|
-
id: [entity, group, kind, leaf].filter(Boolean).join("."),
|
|
138
|
-
entity,
|
|
139
|
-
group,
|
|
140
|
-
...kind ? { kind } : {},
|
|
141
|
-
leaf
|
|
142
|
-
}))
|
|
143
|
-
)
|
|
144
|
-
)
|
|
145
|
-
);
|
|
146
|
-
}
|
|
147
|
-
var FIELDS_BY_ID = new Map(catalogFields().map((field) => [field.id, field]));
|
|
148
|
-
function generalField(id) {
|
|
149
|
-
const field = FIELDS_BY_ID.get(id);
|
|
150
|
-
return _optionalChain([field, 'optionalAccess', _ => _.kind]) ? [field.entity, field.group, field.leaf].join(".") : null;
|
|
151
|
-
}
|
|
152
|
-
function fieldSatisfies(offered, wanted) {
|
|
153
|
-
return offered === wanted || generalField(offered) === wanted;
|
|
154
|
-
}
|
|
155
|
-
var EXTRACTOR_TARGET_FIELDS = {
|
|
156
|
-
email: ["person.email.value"],
|
|
157
|
-
personal_email: ["person.email.personal.value"],
|
|
158
|
-
email_status: ["person.email.status"],
|
|
159
|
-
phone: ["person.phone.value", "company.phone.value"],
|
|
160
|
-
phone_status: ["person.phone.status"],
|
|
161
|
-
first_name: ["person.name.first"],
|
|
162
|
-
last_name: ["person.name.last"],
|
|
163
|
-
full_name: ["person.name.value"],
|
|
164
|
-
// Also used for a list name, a channel title and a search suggestion.
|
|
165
|
-
name: ["person.name.value", "company.name.value"],
|
|
166
|
-
linkedin: ["person.linkedin.url", "company.linkedin.url"],
|
|
167
|
-
linkedin_url: ["person.linkedin.url"],
|
|
168
|
-
title: ["person.job.title"],
|
|
169
|
-
job_change: ["person.job.change"],
|
|
170
|
-
job_change_status: ["person.job.change_status"],
|
|
171
|
-
company: ["company.name.value"],
|
|
172
|
-
company_name: ["company.name.value"],
|
|
173
|
-
organization_name: ["company.name.value"],
|
|
174
|
-
company_domain: ["company.domain.value"],
|
|
175
|
-
domain: ["company.domain.value"],
|
|
176
|
-
company_website: ["company.website.url"],
|
|
177
|
-
// Also used for a podcast URL.
|
|
178
|
-
website: ["company.website.url"],
|
|
179
|
-
company_linkedin_url: ["company.linkedin.url"],
|
|
180
|
-
industry: ["company.industry.value"],
|
|
181
|
-
id: ["person.record.id", "company.record.id"],
|
|
182
|
-
// Used for unrelated provider statuses; none is a catalog field.
|
|
183
|
-
status: []
|
|
184
|
-
};
|
|
185
|
-
function fieldOfName(name, declared) {
|
|
186
|
-
const meanings = _nullishCoalesce(EXTRACTOR_TARGET_FIELDS[name], () => ( []));
|
|
187
|
-
if (declared === void 0) {
|
|
188
|
-
return meanings.length === 1 ? meanings[0] : void 0;
|
|
189
|
-
}
|
|
190
|
-
return meanings.some((meaning) => fieldSatisfies(declared, meaning)) ? declared : void 0;
|
|
191
|
-
}
|
|
19
|
+
var _chunkJLZKF7EYjs = require('./chunk-JLZKF7EY.js');
|
|
192
20
|
|
|
193
21
|
// src/cli/described-tool.ts
|
|
194
22
|
function isPlayLikeTool(tool) {
|
|
@@ -333,15 +161,15 @@ function schemaNodeAt(schema, path) {
|
|
|
333
161
|
return node;
|
|
334
162
|
}
|
|
335
163
|
var NAMED_VALUE_SHAPES = {
|
|
336
|
-
email_status: { shape: "EmailStatus", schema:
|
|
337
|
-
job_change: { shape: "JobChange", schema:
|
|
164
|
+
email_status: { shape: "EmailStatus", schema: _chunkJLZKF7EYjs.EMAIL_STATUS_JSON_SCHEMA },
|
|
165
|
+
job_change: { shape: "JobChange", schema: _chunkJLZKF7EYjs.JOB_CHANGE_JSON_SCHEMA }
|
|
338
166
|
};
|
|
339
167
|
function extractorValueType(name) {
|
|
340
|
-
if (!
|
|
341
|
-
const definition =
|
|
168
|
+
if (!_chunkJLZKF7EYjs.isDeeplineExtractorTarget.call(void 0, name)) return void 0;
|
|
169
|
+
const definition = _chunkJLZKF7EYjs.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS[name];
|
|
342
170
|
if (definition.enum) {
|
|
343
171
|
return {
|
|
344
|
-
type: definition.enum.map((
|
|
172
|
+
type: definition.enum.map((value) => JSON.stringify(value)).join(" | ")
|
|
345
173
|
};
|
|
346
174
|
}
|
|
347
175
|
const named = NAMED_VALUE_SHAPES[definition.valueKind];
|
|
@@ -424,7 +252,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
424
252
|
const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
|
|
425
253
|
const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
|
|
426
254
|
const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
|
|
427
|
-
const means = kind === "extractedValues" ? fieldOfName(
|
|
255
|
+
const means = kind === "extractedValues" ? _chunkJLZKF7EYjs.fieldOfName.call(void 0,
|
|
428
256
|
name,
|
|
429
257
|
stringField(_nullishCoalesce(declared[name], () => ( {})), "means") || void 0
|
|
430
258
|
) : void 0;
|
|
@@ -433,7 +261,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
433
261
|
...means ? { means } : {},
|
|
434
262
|
// A normalized value has a named type instead of the response's
|
|
435
263
|
// shape; a normalized object is spelled out once under Types.
|
|
436
|
-
..._optionalChain([deepline, 'optionalAccess',
|
|
264
|
+
..._optionalChain([deepline, 'optionalAccess', _ => _.shape]) ? deepline : valueType ? { type: valueType } : known ? known : fields ? { fields } : {},
|
|
437
265
|
// A list's row columns that matter are value getters of their own.
|
|
438
266
|
...kind === "extractedLists" && fields ? { summarized: true } : {},
|
|
439
267
|
read: playResultExpression(entry),
|
|
@@ -446,18 +274,18 @@ function describedTool(tool, requestedToolId) {
|
|
|
446
274
|
const lists = declaredLists.some(({ node }) => node) ? declaredLists.filter(({ node }) => node) : declaredLists;
|
|
447
275
|
const values = getterOutputs("extractedValues", [
|
|
448
276
|
outputSchema,
|
|
449
|
-
...lists.map(({ node }) => _optionalChain([node, 'optionalAccess',
|
|
450
|
-
]).map((
|
|
451
|
-
if (!lists.length || !
|
|
452
|
-
const within =
|
|
277
|
+
...lists.map(({ node }) => _optionalChain([node, 'optionalAccess', _2 => _2.items]))
|
|
278
|
+
]).map((value) => {
|
|
279
|
+
if (!lists.length || !value.field.paths) return value;
|
|
280
|
+
const within = value.field.paths.map(
|
|
453
281
|
(path) => path.replace(/^toolResponse\.raw\./, "")
|
|
454
282
|
);
|
|
455
283
|
const list = _nullishCoalesce(lists.find(
|
|
456
|
-
({ node }) => within.some((path) => isRecord(schemaNodeAt(_optionalChain([node, 'optionalAccess',
|
|
284
|
+
({ node }) => within.some((path) => isRecord(schemaNodeAt(_optionalChain([node, 'optionalAccess', _3 => _3.items]), path)))
|
|
457
285
|
), () => ( lists[0]));
|
|
458
286
|
return {
|
|
459
|
-
...
|
|
460
|
-
field: { ...
|
|
287
|
+
...value,
|
|
288
|
+
field: { ...value.field, in: list.field.name, paths: within }
|
|
461
289
|
};
|
|
462
290
|
});
|
|
463
291
|
const playReference = isPlayLikeTool(tool) ? playReferenceForTool(tool) : null;
|
|
@@ -593,7 +421,7 @@ function usageGuidanceWithAccessDefaults(usageGuidance) {
|
|
|
593
421
|
return {
|
|
594
422
|
...usageGuidance,
|
|
595
423
|
prefer: [
|
|
596
|
-
"
|
|
424
|
+
"Read each declared output with the expression listed below: toolExecutionResult.fields.<name>.value for a list or a value whose meaning is known, otherwise extractedValues.<name>.get().",
|
|
597
425
|
"Use toolExecutionResult.toolResponse.rawV2 for the complete tool response, preserving the nesting shown in the response example.",
|
|
598
426
|
"Schemas declare field shapes; examples illustrate input values and full Deepline execution responses."
|
|
599
427
|
],
|
|
@@ -646,9 +474,9 @@ function toolInputFieldsForDisplay(inputSchema) {
|
|
|
646
474
|
);
|
|
647
475
|
return fields.map((field) => {
|
|
648
476
|
const jsonSchemaField = typeof field.name === "string" ? jsonSchemaFields.get(field.name) : void 0;
|
|
649
|
-
const minItems = typeof field.minItems === "number" ? field.minItems : _optionalChain([jsonSchemaField, 'optionalAccess',
|
|
650
|
-
const maxItems = typeof field.maxItems === "number" ? field.maxItems : _optionalChain([jsonSchemaField, 'optionalAccess',
|
|
651
|
-
const items = isRecord(field.items) ? field.items : _optionalChain([jsonSchemaField, 'optionalAccess',
|
|
477
|
+
const minItems = typeof field.minItems === "number" ? field.minItems : _optionalChain([jsonSchemaField, 'optionalAccess', _4 => _4.minItems]);
|
|
478
|
+
const maxItems = typeof field.maxItems === "number" ? field.maxItems : _optionalChain([jsonSchemaField, 'optionalAccess', _5 => _5.maxItems]);
|
|
479
|
+
const items = isRecord(field.items) ? field.items : _optionalChain([jsonSchemaField, 'optionalAccess', _6 => _6.items]);
|
|
652
480
|
return {
|
|
653
481
|
...field,
|
|
654
482
|
...isRecord(items) ? { items } : {},
|
|
@@ -660,8 +488,8 @@ function toolInputFieldsForDisplay(inputSchema) {
|
|
|
660
488
|
const jsonSchema = isRecord(inputSchema.jsonSchema) ? inputSchema.jsonSchema : inputSchema;
|
|
661
489
|
const properties = isRecord(jsonSchema.properties) ? jsonSchema.properties : {};
|
|
662
490
|
const required = Array.isArray(jsonSchema.required) ? new Set(jsonSchema.required.map(String)) : /* @__PURE__ */ new Set();
|
|
663
|
-
return Object.entries(properties).map(([name,
|
|
664
|
-
const property = isRecord(
|
|
491
|
+
return Object.entries(properties).map(([name, value]) => {
|
|
492
|
+
const property = isRecord(value) ? value : {};
|
|
665
493
|
return {
|
|
666
494
|
name,
|
|
667
495
|
type: typeof property.type === "string" ? property.type : "unknown",
|
|
@@ -703,11 +531,11 @@ function publicToolInputSchemaForDescribe(inputSchema) {
|
|
|
703
531
|
withoutDeeplineCredits
|
|
704
532
|
) || /\b(?:additional|extra)\s+charges?\b/i.test(withoutDeeplineCredits) || /\bcharg(?:e|ed)\s+(?:double|per)\b/i.test(withoutDeeplineCredits) || /\bpricing page\b/i.test(withoutDeeplineCredits);
|
|
705
533
|
};
|
|
706
|
-
const stripDescriptions = (
|
|
707
|
-
if (Array.isArray(
|
|
708
|
-
if (!isRecord(
|
|
534
|
+
const stripDescriptions = (value) => {
|
|
535
|
+
if (Array.isArray(value)) return value.map(stripDescriptions);
|
|
536
|
+
if (!isRecord(value)) return value;
|
|
709
537
|
return Object.fromEntries(
|
|
710
|
-
Object.entries(
|
|
538
|
+
Object.entries(value).flatMap(([key, nested]) => {
|
|
711
539
|
if (key === "description" && typeof nested === "string" && exposesProviderSpend(nested)) {
|
|
712
540
|
return [];
|
|
713
541
|
}
|
|
@@ -721,16 +549,16 @@ function recursiveToolInputFieldsForDisplay(inputSchema) {
|
|
|
721
549
|
const root = canonicalToolJsonSchema(inputSchema);
|
|
722
550
|
const fields = /* @__PURE__ */ new Map();
|
|
723
551
|
const schemasById = /* @__PURE__ */ new Map();
|
|
724
|
-
const collectSchemaIds = (
|
|
725
|
-
if (Array.isArray(
|
|
726
|
-
for (const item of
|
|
552
|
+
const collectSchemaIds = (value) => {
|
|
553
|
+
if (Array.isArray(value)) {
|
|
554
|
+
for (const item of value) collectSchemaIds(item);
|
|
727
555
|
return;
|
|
728
556
|
}
|
|
729
|
-
if (!isRecord(
|
|
730
|
-
if (typeof
|
|
731
|
-
schemasById.set(
|
|
557
|
+
if (!isRecord(value)) return;
|
|
558
|
+
if (typeof value.$id === "string" && value.$id.trim()) {
|
|
559
|
+
schemasById.set(value.$id.trim(), value);
|
|
732
560
|
}
|
|
733
|
-
for (const nested of Object.values(
|
|
561
|
+
for (const nested of Object.values(value)) collectSchemaIds(nested);
|
|
734
562
|
};
|
|
735
563
|
collectSchemaIds(root);
|
|
736
564
|
const resolveRef = (schema) => {
|
|
@@ -775,10 +603,10 @@ function recursiveToolInputFieldsForDisplay(inputSchema) {
|
|
|
775
603
|
const requiredNames = new Set(
|
|
776
604
|
Array.isArray(schema.required) ? schema.required.map(String) : []
|
|
777
605
|
);
|
|
778
|
-
for (const [name,
|
|
779
|
-
if (!isRecord(
|
|
606
|
+
for (const [name, value] of Object.entries(properties)) {
|
|
607
|
+
if (!isRecord(value)) continue;
|
|
780
608
|
visit(
|
|
781
|
-
|
|
609
|
+
value,
|
|
782
610
|
path ? `${path}.${name}` : name,
|
|
783
611
|
requiredNames.has(name),
|
|
784
612
|
nextActiveRefs
|
|
@@ -812,27 +640,27 @@ function inputFieldJsonForDescribe(field) {
|
|
|
812
640
|
...Object.prototype.hasOwnProperty.call(field, "default") ? { default: field.default } : {}
|
|
813
641
|
};
|
|
814
642
|
}
|
|
815
|
-
function isRecord(
|
|
816
|
-
return Boolean(
|
|
643
|
+
function isRecord(value) {
|
|
644
|
+
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
817
645
|
}
|
|
818
646
|
function stringField(source, ...keys) {
|
|
819
647
|
for (const key of keys) {
|
|
820
|
-
const
|
|
821
|
-
if (typeof
|
|
648
|
+
const value = source[key];
|
|
649
|
+
if (typeof value === "string" && value.trim()) return value.trim();
|
|
822
650
|
}
|
|
823
651
|
return "";
|
|
824
652
|
}
|
|
825
653
|
function arrayField(source, ...keys) {
|
|
826
654
|
for (const key of keys) {
|
|
827
|
-
const
|
|
828
|
-
if (Array.isArray(
|
|
655
|
+
const value = source[key];
|
|
656
|
+
if (Array.isArray(value)) return value;
|
|
829
657
|
}
|
|
830
658
|
return [];
|
|
831
659
|
}
|
|
832
660
|
function recordField(source, ...keys) {
|
|
833
661
|
for (const key of keys) {
|
|
834
|
-
const
|
|
835
|
-
if (isRecord(
|
|
662
|
+
const value = source[key];
|
|
663
|
+
if (isRecord(value)) return value;
|
|
836
664
|
}
|
|
837
665
|
return {};
|
|
838
666
|
}
|
|
@@ -861,7 +689,7 @@ function formatModelDescription(description) {
|
|
|
861
689
|
);
|
|
862
690
|
if (contextWindow !== null) lines.push(`Context: ${contextWindow}`);
|
|
863
691
|
const tags = arrayField2(description.modelMetadata, "tags").filter(
|
|
864
|
-
(
|
|
692
|
+
(value) => typeof value === "string"
|
|
865
693
|
);
|
|
866
694
|
if (tags.length) lines.push(`Tags: ${tags.join(", ")}`);
|
|
867
695
|
lines.push("");
|
|
@@ -886,25 +714,25 @@ function formatModelDescription(description) {
|
|
|
886
714
|
function appendNamespace(lines, namespace) {
|
|
887
715
|
lines.push(`- ${namespace.provider} (${namespace.sourceSymbol})`);
|
|
888
716
|
for (const field of namespace.fields) {
|
|
889
|
-
const values = _optionalChain([field, 'access',
|
|
717
|
+
const values = _optionalChain([field, 'access', _7 => _7.enumValues, 'optionalAccess', _8 => _8.length]) ? ` (${field.enumValues.map((value) => JSON.stringify(value)).join(" | ")})` : "";
|
|
890
718
|
lines.push(
|
|
891
719
|
` - ${field.name}: ${field.type}${values} - ${field.description}`
|
|
892
720
|
);
|
|
893
721
|
}
|
|
894
722
|
}
|
|
895
|
-
function stringField2(
|
|
896
|
-
if (!
|
|
897
|
-
const candidate =
|
|
723
|
+
function stringField2(value, key) {
|
|
724
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return null;
|
|
725
|
+
const candidate = value[key];
|
|
898
726
|
return typeof candidate === "string" && candidate.trim() ? candidate.trim() : null;
|
|
899
727
|
}
|
|
900
|
-
function numberField(
|
|
901
|
-
if (!
|
|
902
|
-
const candidate =
|
|
728
|
+
function numberField(value, key) {
|
|
729
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return null;
|
|
730
|
+
const candidate = value[key];
|
|
903
731
|
return typeof candidate === "number" ? candidate : null;
|
|
904
732
|
}
|
|
905
|
-
function arrayField2(
|
|
906
|
-
if (!
|
|
907
|
-
const candidate =
|
|
733
|
+
function arrayField2(value, key) {
|
|
734
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return [];
|
|
735
|
+
const candidate = value[key];
|
|
908
736
|
return Array.isArray(candidate) ? candidate : [];
|
|
909
737
|
}
|
|
910
738
|
|