@solidnumber/cli 2.21.1 → 2.23.0
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/commands/agent.d.ts.map +1 -1
- package/dist/commands/agent.js +119 -0
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/audit.js +3 -3
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/blog.js +1 -1
- package/dist/commands/blog.js.map +1 -1
- package/dist/commands/chains.js +1 -1
- package/dist/commands/chains.js.map +1 -1
- package/dist/commands/company.js +1 -1
- package/dist/commands/company.js.map +1 -1
- package/dist/commands/design.d.ts.map +1 -1
- package/dist/commands/design.js +12 -4
- package/dist/commands/design.js.map +1 -1
- package/dist/commands/dev.js +3 -3
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/doctor.js +117 -0
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/droplet.js +1 -1
- package/dist/commands/droplet.js.map +1 -1
- package/dist/commands/emails.js +1 -1
- package/dist/commands/emails.js.map +1 -1
- package/dist/commands/find.d.ts.map +1 -1
- package/dist/commands/find.js +18 -2
- package/dist/commands/find.js.map +1 -1
- package/dist/commands/health.js +3 -3
- package/dist/commands/health.js.map +1 -1
- package/dist/commands/how-to.d.ts +12 -1
- package/dist/commands/how-to.d.ts.map +1 -1
- package/dist/commands/how-to.js +69 -11
- package/dist/commands/how-to.js.map +1 -1
- package/dist/commands/inbound.js +1 -1
- package/dist/commands/inbound.js.map +1 -1
- package/dist/commands/inventory.js +2 -2
- package/dist/commands/inventory.js.map +1 -1
- package/dist/commands/mcp.js +1 -1
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/onboarding.js +1 -1
- package/dist/commands/onboarding.js.map +1 -1
- package/dist/commands/pages.js +132 -2
- package/dist/commands/pages.js.map +1 -1
- package/dist/commands/payment.js +2 -2
- package/dist/commands/payment.js.map +1 -1
- package/dist/commands/sandbox.d.ts.map +1 -1
- package/dist/commands/sandbox.js +23 -0
- package/dist/commands/sandbox.js.map +1 -1
- package/dist/commands/site.js +1 -1
- package/dist/commands/site.js.map +1 -1
- package/dist/commands/storage.js +1 -1
- package/dist/commands/storage.js.map +1 -1
- package/dist/commands/subscriptions.js +2 -2
- package/dist/commands/subscriptions.js.map +1 -1
- package/dist/commands/switch.js +1 -1
- package/dist/commands/switch.js.map +1 -1
- package/dist/commands/users.js +4 -4
- package/dist/commands/users.js.map +1 -1
- package/dist/commands/verbs.js +4 -0
- package/dist/commands/verbs.js.map +1 -1
- package/dist/commands/visual.js +1 -1
- package/dist/commands/visual.js.map +1 -1
- package/dist/commands/widgets.js +1 -1
- package/dist/commands/widgets.js.map +1 -1
- package/dist/index.js +97 -3
- package/dist/index.js.map +1 -1
- package/dist/lib/api-client.d.ts.map +1 -1
- package/dist/lib/api-client.js +3 -1
- package/dist/lib/api-client.js.map +1 -1
- package/dist/lib/apply/registry.js +1 -1
- package/dist/lib/apply/registry.js.map +1 -1
- package/dist/lib/command-kit.d.ts +16 -17
- package/dist/lib/command-kit.d.ts.map +1 -1
- package/dist/lib/command-kit.js +53 -1
- package/dist/lib/command-kit.js.map +1 -1
- package/dist/lib/config.d.ts +12 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +14 -0
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/list-envelope.d.ts +20 -5
- package/dist/lib/list-envelope.d.ts.map +1 -1
- package/dist/lib/list-envelope.js +53 -5
- package/dist/lib/list-envelope.js.map +1 -1
- package/dist/lib/schema-validate.d.ts +30 -4
- package/dist/lib/schema-validate.d.ts.map +1 -1
- package/dist/lib/schema-validate.js +46 -0
- package/dist/lib/schema-validate.js.map +1 -1
- package/dist/lib/skills/index.d.ts +34 -0
- package/dist/lib/skills/index.d.ts.map +1 -0
- package/dist/lib/skills/index.js +218 -0
- package/dist/lib/skills/index.js.map +1 -0
- package/dist/lib/skills/plugin.d.ts +106 -0
- package/dist/lib/skills/plugin.d.ts.map +1 -0
- package/dist/lib/skills/plugin.js +187 -0
- package/dist/lib/skills/plugin.js.map +1 -0
- package/dist/lib/telemetry.d.ts +1 -1
- package/dist/lib/telemetry.d.ts.map +1 -1
- package/dist/lib/telemetry.js.map +1 -1
- package/dist/lib/tenant-warn.d.ts +12 -0
- package/dist/lib/tenant-warn.d.ts.map +1 -1
- package/dist/lib/tenant-warn.js +39 -4
- package/dist/lib/tenant-warn.js.map +1 -1
- package/dist/lib/verb-example.d.ts.map +1 -1
- package/dist/lib/verb-example.js +34 -15
- package/dist/lib/verb-example.js.map +1 -1
- package/dist/lib/verb-search.d.ts +56 -1
- package/dist/lib/verb-search.d.ts.map +1 -1
- package/dist/lib/verb-search.js +391 -6
- package/dist/lib/verb-search.js.map +1 -1
- package/package.json +7 -3
- package/platform-docs/ai.txt +53 -30
- package/platform-docs/llms.txt +55 -14
package/dist/lib/verb-search.js
CHANGED
|
@@ -17,14 +17,49 @@
|
|
|
17
17
|
* Pure. No I/O, no env, no clock — the ranking is unit-testable on its own.
|
|
18
18
|
*/
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.applyPhrases = applyPhrases;
|
|
21
|
+
exports.analyse = analyse;
|
|
22
|
+
exports.leadingAction = leadingAction;
|
|
23
|
+
exports.normalise = normalise;
|
|
20
24
|
exports.terms = terms;
|
|
25
|
+
exports.isReadIntent = isReadIntent;
|
|
21
26
|
exports.rankVerbs = rankVerbs;
|
|
22
27
|
exports.clip = clip;
|
|
23
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Words that carry no signal in a capability search.
|
|
30
|
+
*
|
|
31
|
+
* ⛔ PRONOUNS AND CONTRACTION FRAGMENTS ARE NOISE, AND THEY WERE COSTING
|
|
32
|
+
* REAL QUERIES. Measured 2026-09-14: "Text Dana to say we're running twenty
|
|
33
|
+
* minutes late" tokenised to nine terms, of which ONE ("text") named a
|
|
34
|
+
* capability. `sms.send` matched that one term and was scored on coverage
|
|
35
|
+
* — matched-IDF over total-IDF — so eight words of narrative divided its
|
|
36
|
+
* score by nine, while `knowledge_base_search` picked up "say", "running" and
|
|
37
|
+
* "text" from its prose and won at 0.04 to 0.03.
|
|
38
|
+
*
|
|
39
|
+
* Worse, "we're" split into `we` and `re`. `re` is not a word; it is half of
|
|
40
|
+
* an apostrophe, and it survived the length filter because it is two
|
|
41
|
+
* characters long. Every contraction in English was donating a junk term to
|
|
42
|
+
* the denominator.
|
|
43
|
+
*
|
|
44
|
+
* These additions carry no capability signal in ANY query — there is no verb
|
|
45
|
+
* about `she`, `ours` or `ll` — so dropping them cannot lose a match. That is
|
|
46
|
+
* the test for entry here: not "is this word common", but "could this word
|
|
47
|
+
* ever name a thing the platform does".
|
|
48
|
+
*/
|
|
24
49
|
const STOPWORDS = new Set([
|
|
25
50
|
'a', 'an', 'and', 'are', 'as', 'at', 'be', 'by', 'can', 'do', 'for', 'from',
|
|
26
51
|
'how', 'i', 'in', 'is', 'it', 'me', 'my', 'of', 'on', 'or', 'that', 'the',
|
|
27
52
|
'this', 'to', 'want', 'was', 'what', 'when', 'where', 'which', 'with',
|
|
53
|
+
// Pronouns and possessives.
|
|
54
|
+
'he', 'her', 'hers', 'him', 'his', 'our', 'ours', 'she', 'their', 'theirs',
|
|
55
|
+
'them', 'they', 'us', 'we', 'you', 'your', 'yours',
|
|
56
|
+
// Contractions, closed up by the apostrophe rule in terms() below.
|
|
57
|
+
'cant', 'dont', 'doesnt', 'didnt', 'isnt', 'arent', 'wasnt', 'werent',
|
|
58
|
+
'ive', 'im', 'id', 'ill', 'its', 'lets', 'thats', 'theyre', 'were',
|
|
59
|
+
'whats', 'whos', 'youre', 'youve', 'hes', 'shes', 'weve', 'wont',
|
|
60
|
+
// Narrative filler: common in how an owner phrases a request, never a verb.
|
|
61
|
+
'got', 'just', 'now', 'off', 'out', 'still', 'then', 'there', 'about',
|
|
62
|
+
'been', 'has', 'have', 'had', 'will', 'would', 'should', 'could',
|
|
28
63
|
]);
|
|
29
64
|
/**
|
|
30
65
|
* Owner vocabulary -> platform vocabulary.
|
|
@@ -55,6 +90,12 @@ const SYNONYMS = {
|
|
|
55
90
|
job: ['order', 'appointment'],
|
|
56
91
|
jobs: ['orders', 'appointments'],
|
|
57
92
|
booking: ['appointment'],
|
|
93
|
+
// ⛔ THE TENSE MATTERS AND `booking` ALONE DID NOT COVER IT. "Who's BOOKED
|
|
94
|
+
// in this week?" left `booked` matching nothing but prose, and four verbs
|
|
95
|
+
// tied on score — `list_recent_calls` then won on being the shorter name.
|
|
96
|
+
// A tie decided by name length is a coin flip wearing a rule.
|
|
97
|
+
booked: ['appointment'],
|
|
98
|
+
books: ['accounting'],
|
|
58
99
|
owed: ['outstanding', 'receivable'],
|
|
59
100
|
owe: ['outstanding', 'receivable'],
|
|
60
101
|
unpaid: ['outstanding', 'overdue'],
|
|
@@ -71,23 +112,296 @@ const SYNONYMS = {
|
|
|
71
112
|
chase: ['followup', 'follow'],
|
|
72
113
|
note: ['notes'],
|
|
73
114
|
refund: ['refund'],
|
|
115
|
+
// A named network IS the social surface; the platform has no per-network verb.
|
|
116
|
+
facebook: ['social'],
|
|
117
|
+
instagram: ['social'],
|
|
118
|
+
twitter: ['social'],
|
|
119
|
+
linkedin: ['social'],
|
|
120
|
+
tiktok: ['social'],
|
|
121
|
+
// "Enquiry" is what an owner calls a lead. Measured: `enquir` and `inquir`
|
|
122
|
+
// appear in ZERO verb names and ZERO descriptions, so without this the word
|
|
123
|
+
// matches nothing at all and the query ranks on its filler.
|
|
124
|
+
enquiry: ['lead'],
|
|
125
|
+
enquiries: ['lead', 'leads'],
|
|
126
|
+
inquiry: ['lead'],
|
|
127
|
+
inquiries: ['lead', 'leads'],
|
|
128
|
+
// What the owner calls visiting, the platform counts as pageviews.
|
|
129
|
+
visited: ['analytics', 'pageviews'],
|
|
130
|
+
visitors: ['analytics', 'pageviews'],
|
|
131
|
+
visits: ['analytics', 'pageviews'],
|
|
74
132
|
};
|
|
133
|
+
/**
|
|
134
|
+
* Owner IDIOMS -> platform vocabulary. The n-gram sibling of SYNONYMS.
|
|
135
|
+
*
|
|
136
|
+
* ⛔ WHY A SECOND MAP INSTEAD OF MORE SYNONYMS. Some owner phrasings cannot be
|
|
137
|
+
* translated one word at a time, because the individual words mean something
|
|
138
|
+
* ELSE on this platform and actively pull the ranking the wrong way. Measured
|
|
139
|
+
* 2026-09-14, before this existed:
|
|
140
|
+
*
|
|
141
|
+
* "Do we have anyone CALLED Whitfield ON FILE?" -> phone.call_queue, file.search
|
|
142
|
+
* "MAKE A NOTE that she wants a quote" -> deal.create
|
|
143
|
+
* "How many of part 4471 do we HAVE LEFT?" -> notes.context
|
|
144
|
+
*
|
|
145
|
+
* Every one of those is a correct word-level match and a wrong answer.
|
|
146
|
+
* `called` really is the word in `phone.call_queue`; `file` really is the word
|
|
147
|
+
* in `file.search`. The owner did not mean either. No amount of re-weighting
|
|
148
|
+
* fixes it, because the ranker is scoring exactly the word that was typed.
|
|
149
|
+
*
|
|
150
|
+
* ⛔ A PHRASE IS CONSUMED, NOT ADDED. The mapped terms REPLACE the words that
|
|
151
|
+
* matched, which is the whole point: leaving "file" in the query keeps
|
|
152
|
+
* `file.search` in the running no matter how much weight `contact` gets. This
|
|
153
|
+
* is the one behaviour that separates a phrase from a synonym, and it is why
|
|
154
|
+
* a phrase must be a genuine idiom rather than a hint — consuming the words of
|
|
155
|
+
* a phrase that was NOT an idiom would delete real signal.
|
|
156
|
+
*
|
|
157
|
+
* ⛔ SAME ENTRY TEST AS SYNONYMS, ONE NOTCH STRICTER. An entry must be a
|
|
158
|
+
* phrase a business owner actually says, whose meaning IS the platform thing,
|
|
159
|
+
* and whose words individually mislead. "On file" means "in our contact
|
|
160
|
+
* records" — not "in a file". If the words do not mislead, a synonym is the
|
|
161
|
+
* cheaper tool and it does not risk eating signal.
|
|
162
|
+
*
|
|
163
|
+
* Longest phrase wins, so "left in stock" is tried before "in stock".
|
|
164
|
+
*/
|
|
165
|
+
const PHRASES = {
|
|
166
|
+
// "called" here is naming, not telephoning — the opposite of `called: [call]`
|
|
167
|
+
// in SYNONYMS above, which is right for "who called us yesterday".
|
|
168
|
+
'anyone called': ['contact'],
|
|
169
|
+
'anybody called': ['contact'],
|
|
170
|
+
'someone called': ['contact'],
|
|
171
|
+
'somebody called': ['contact'],
|
|
172
|
+
// "on file" is where a business keeps people, not documents.
|
|
173
|
+
'on file': ['contact'],
|
|
174
|
+
// The action is the note; whatever follows is the note's CONTENT, and its
|
|
175
|
+
// words ("quote", "invoice", "job") are what drag this to the wrong verb.
|
|
176
|
+
// ⛔ MAP THE WHOLE IDIOM, INCLUDING ITS VERB. The first version translated
|
|
177
|
+
// to ['notes'] alone and the create intent went with the consumed words —
|
|
178
|
+
// `notes.list` and `notes.search` then outranked `notes.add` for a phrase
|
|
179
|
+
// that unambiguously means "write one down". A phrase that consumes its own
|
|
180
|
+
// verb has to put that verb back.
|
|
181
|
+
'make a note': ['notes', 'add'],
|
|
182
|
+
'made a note': ['notes', 'add'],
|
|
183
|
+
'making a note': ['notes', 'add'],
|
|
184
|
+
'take a note': ['notes', 'add'],
|
|
185
|
+
'jot down': ['notes', 'add'],
|
|
186
|
+
// Quantity remaining. "left" alone is a direction and a past tense.
|
|
187
|
+
'have left': ['inventory'],
|
|
188
|
+
'got left': ['inventory'],
|
|
189
|
+
'left in stock': ['inventory'],
|
|
190
|
+
'in stock': ['inventory'],
|
|
191
|
+
'run out of': ['inventory'],
|
|
192
|
+
// Work not yet won. "coming in" has no platform meaning at all on its own.
|
|
193
|
+
'coming in': ['pipeline'],
|
|
194
|
+
'come in': ['pipeline'],
|
|
195
|
+
'in the pipeline': ['pipeline'],
|
|
196
|
+
// Where work originates. "Coming from" has no platform meaning word by word.
|
|
197
|
+
'coming from': ['sources'],
|
|
198
|
+
'come from': ['sources'],
|
|
199
|
+
// Unable to attend. Without this, "can't MAKE Tuesday" reads as an
|
|
200
|
+
// instruction to create something — measured, it returned `expense_create`.
|
|
201
|
+
'cant make': ['reschedule'],
|
|
202
|
+
'cant do': ['reschedule'],
|
|
203
|
+
'cant manage': ['reschedule'],
|
|
204
|
+
// Shipping a draft. "Live" alone is an adjective the platform never uses
|
|
205
|
+
// this way, and "put" is one of the least discriminating words there is.
|
|
206
|
+
'put it live': ['publish'],
|
|
207
|
+
'put this live': ['publish'],
|
|
208
|
+
'make it live': ['publish'],
|
|
209
|
+
'go live': ['publish'],
|
|
210
|
+
'goes live': ['publish'],
|
|
211
|
+
};
|
|
212
|
+
/** Phrase keys, longest first, so a specific idiom beats a general one. */
|
|
213
|
+
const PHRASE_KEYS = Object.keys(PHRASES).sort((a, b) => b.split(' ').length - a.split(' ').length || b.length - a.length);
|
|
214
|
+
/**
|
|
215
|
+
* Replace every idiom in a normalised query with the platform terms it means.
|
|
216
|
+
* Operates on a space-separated, punctuation-stripped string so that
|
|
217
|
+
* "what's it worth" and "on file?" match their keys.
|
|
218
|
+
*/
|
|
219
|
+
function applyPhrases(normalised) {
|
|
220
|
+
return analyse(normalised).translated;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Translate idioms and report WHICH terms an idiom put there.
|
|
224
|
+
*
|
|
225
|
+
* ⛔ AN IDIOM IS EVIDENCE ABOUT INTENT, NOT VOCABULARY, AND IS WEIGHTED AS
|
|
226
|
+
* SUCH. A word that merely appears in a query is weak evidence — the owner may
|
|
227
|
+
* be describing context ("I just got off the phone with Dana"). A word this
|
|
228
|
+
* map put there is different in kind: it is there because a phrase the owner
|
|
229
|
+
* actually said MEANS that platform thing. Measured 2026-09-14, without the
|
|
230
|
+
* distinction: "Make a note that she wants a quote" translated correctly to
|
|
231
|
+
* `notes` and still lost to `phone.pricing`, because `phone` and `quote` —
|
|
232
|
+
* both incidental narrative — covered two terms to `notes`' one, and coverage
|
|
233
|
+
* decides ties. The translation was right and got outvoted by the noise it
|
|
234
|
+
* was translated out of.
|
|
235
|
+
*/
|
|
236
|
+
function analyse(normalised) {
|
|
237
|
+
let out = ` ${normalised} `;
|
|
238
|
+
const fromIdiom = new Set();
|
|
239
|
+
for (const key of PHRASE_KEYS) {
|
|
240
|
+
if (!out.includes(` ${key} `))
|
|
241
|
+
continue;
|
|
242
|
+
for (const t of PHRASES[key])
|
|
243
|
+
fromIdiom.add(t);
|
|
244
|
+
out = out.split(` ${key} `).join(` ${PHRASES[key].join(' ')} `);
|
|
245
|
+
}
|
|
246
|
+
return { translated: out.trim(), fromIdiom };
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* True when the caller OPENED with an instruction: "Text Dana…", "Book Dana…".
|
|
250
|
+
*
|
|
251
|
+
* ⛔ FIRST POSITION, AND ONLY FIRST. The same reasoning `isReadIntent` already
|
|
252
|
+
* relies on: an imperative LEADS its sentence, and the identical word in the
|
|
253
|
+
* middle is just a word. "Text Dana to say we're running late" names its
|
|
254
|
+
* action in the first word and then spends six words on the MESSAGE — content
|
|
255
|
+
* that belongs in the SMS, not in the search. Without this, `text` was one
|
|
256
|
+
* term among seven and `healthcare_escalate_urgent` won on prose overlap.
|
|
257
|
+
*
|
|
258
|
+
* Deliberately not a synonym boost: this is about WHERE the word sits, so it
|
|
259
|
+
* applies to the word the owner actually typed and to whatever it translates
|
|
260
|
+
* to, but never turns a mid-sentence noun into a command.
|
|
261
|
+
*/
|
|
262
|
+
function leadingAction(query) {
|
|
263
|
+
const first = normalise(query).split(' ')[0];
|
|
264
|
+
return first && IMPERATIVE.has(first) ? first : null;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* The other number of a word: contact <-> contacts.
|
|
268
|
+
*
|
|
269
|
+
* Deliberately the naive rule and nothing more. A real stemmer would also
|
|
270
|
+
* fold `serialize`/`serialization` and `pricing`/`price`, which is how a
|
|
271
|
+
* lexical ranker starts matching things the caller did not say. Plural `s` is
|
|
272
|
+
* the inflection this registry actually splits on.
|
|
273
|
+
*/
|
|
274
|
+
function inflect(term) {
|
|
275
|
+
return term.endsWith('s') ? term.slice(0, -1) : `${term}s`;
|
|
276
|
+
}
|
|
75
277
|
/** A query term plus anything the platform calls the same thing. */
|
|
76
278
|
function expand(term) {
|
|
77
279
|
const extra = SYNONYMS[term];
|
|
78
280
|
return extra ? [term, ...extra] : [term];
|
|
79
281
|
}
|
|
80
|
-
/**
|
|
282
|
+
/**
|
|
283
|
+
* Split a phrase into meaningful lowercase terms.
|
|
284
|
+
*
|
|
285
|
+
* Punctuation is flattened to spaces BEFORE idiom matching, so an apostrophe
|
|
286
|
+
* or a question mark cannot hide a phrase from its key ("on file?" is still
|
|
287
|
+
* "on file"). Idioms are translated first, then stopwords are dropped —
|
|
288
|
+
* in that order, because a phrase may legitimately contain a stopword
|
|
289
|
+
* ("make A note", "have left").
|
|
290
|
+
*/
|
|
291
|
+
function normalise(query) {
|
|
292
|
+
// ⛔ AN APOSTROPHE JOINS A WORD, IT DOES NOT SPLIT ONE. Replacing it with a
|
|
293
|
+
// space turned "we're" into `we` + `re` and "can't" into `can` + `t` —
|
|
294
|
+
// fragments that are not words, survive the length filter at two
|
|
295
|
+
// characters, and then sit in the IDF denominator diluting every real term.
|
|
296
|
+
// Closing the contraction up instead yields `were` and `cant`, which are
|
|
297
|
+
// single droppable stopwords, and lets an idiom like "can't make" be
|
|
298
|
+
// written as one readable key.
|
|
299
|
+
return query.toLowerCase().replace(/['\u2019]/g, '').replace(/[^a-z0-9]+/g, ' ').trim();
|
|
300
|
+
}
|
|
81
301
|
function terms(query) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
.split(
|
|
302
|
+
const normalised = normalise(query);
|
|
303
|
+
const kept = applyPhrases(normalised)
|
|
304
|
+
.split(/\s+/)
|
|
85
305
|
.filter((t) => t.length > 1 && !STOPWORDS.has(t));
|
|
306
|
+
// ⛔ DEDUPE. Two idioms can translate to the same platform word — "anyone
|
|
307
|
+
// called Whitfield ON FILE" hits both `anyone called` and `on file`, and
|
|
308
|
+
// both mean `contact`. A repeated term is scored once per occurrence and
|
|
309
|
+
// counted twice in the IDF total, so the query silently doubles its own
|
|
310
|
+
// emphasis on one word and the ranking turns on which verb name is
|
|
311
|
+
// shortest. The owner said one thing; it counts once.
|
|
312
|
+
return [...new Set(kept)];
|
|
86
313
|
}
|
|
87
314
|
/** The pieces of a verb name: "payment.refund" -> ["payment", "refund"]. */
|
|
88
315
|
function nameSegments(name) {
|
|
89
316
|
return name.toLowerCase().split(/[._]/).filter(Boolean);
|
|
90
317
|
}
|
|
318
|
+
/**
|
|
319
|
+
* Is the caller ASKING something, or TELLING us to do something?
|
|
320
|
+
*
|
|
321
|
+
* ⛔ WHY THIS EXISTS. Measured 2026-09-13 by the eval suite: three read-only
|
|
322
|
+
* questions were answered with a MUTATING verb ranked first.
|
|
323
|
+
*
|
|
324
|
+
* "Is anything failing to sync to the accounts?" -> invoice_sync (runs a sync)
|
|
325
|
+
* "Is anything on my account not working?" -> invoice_sync
|
|
326
|
+
* "How much will we make next quarter?" -> crm_task_create
|
|
327
|
+
*
|
|
328
|
+
* The ranker carried `side_effects` all the way into its output and never once
|
|
329
|
+
* consulted it while scoring. So the word "sync" in a question about sync
|
|
330
|
+
* STATUS scored identically to the same word in a command to sync — and the
|
|
331
|
+
* verb that acts usually has the shorter, more on-the-nose name, so it wins.
|
|
332
|
+
*
|
|
333
|
+
* An agent following our own documented route (find -> describe -> invoke) is
|
|
334
|
+
* therefore handed something destructive in answer to a question. That is our
|
|
335
|
+
* defect, not the model's.
|
|
336
|
+
*
|
|
337
|
+
* ⛔ DEMOTED, NEVER HIDDEN. A mutating verb still appears, just not first: the
|
|
338
|
+
* caller may genuinely want it, and a search that silently withholds a
|
|
339
|
+
* capability is a worse failure than one that ranks it second. Harden, do not
|
|
340
|
+
* delete.
|
|
341
|
+
*
|
|
342
|
+
* ⛔ AN IMPERATIVE ALWAYS WINS. "Delete every contact" contains `delete`, so
|
|
343
|
+
* this never fires and `gdpr_delete_contact` still ranks first — correctly.
|
|
344
|
+
* Refusing that request is the JOB OF THE EXECUTION BOUNDARY, not of search;
|
|
345
|
+
* hiding the verb would move a safety decision somewhere it cannot be audited,
|
|
346
|
+
* and would break the owner who meant it.
|
|
347
|
+
*/
|
|
348
|
+
const IMPERATIVE = new Set([
|
|
349
|
+
'create', 'add', 'new', 'make', 'update', 'edit', 'change', 'set', 'rename',
|
|
350
|
+
'delete', 'remove', 'clear', 'drop', 'void', 'cancel', 'close', 'archive',
|
|
351
|
+
'send', 'email', 'text', 'call', 'invite', 'publish', 'unpublish', 'post',
|
|
352
|
+
'refund', 'charge', 'pay', 'bill', 'issue', 'collect',
|
|
353
|
+
'book', 'schedule', 'reschedule', 'assign', 'dispatch',
|
|
354
|
+
'enable', 'disable', 'turn', 'switch', 'start', 'stop', 'pause', 'resume',
|
|
355
|
+
'upload', 'import', 'export', 'sync', 'run', 'apply', 'generate', 'draft',
|
|
356
|
+
'connect', 'disconnect', 'install', 'grant', 'revoke', 'approve', 'reject',
|
|
357
|
+
]);
|
|
358
|
+
const INTERROGATIVE = new Set([
|
|
359
|
+
'who', 'what', 'whats', 'when', 'where', 'why', 'how', 'which', 'whose',
|
|
360
|
+
'is', 'are', 'was', 'were', 'do', 'does', 'did', 'can', 'could', 'should',
|
|
361
|
+
'am', 'have', 'has', 'any', 'anything', 'anyone',
|
|
362
|
+
]);
|
|
363
|
+
/**
|
|
364
|
+
* True when the query reads as a QUESTION and contains no instruction to act.
|
|
365
|
+
*
|
|
366
|
+
* Both halves are required. "How do I delete a contact?" is interrogative but
|
|
367
|
+
* names the action, so the delete verb is exactly what was asked for.
|
|
368
|
+
*/
|
|
369
|
+
function isReadIntent(query) {
|
|
370
|
+
const q = query.trim().toLowerCase();
|
|
371
|
+
if (!q)
|
|
372
|
+
return false;
|
|
373
|
+
const words = q.replace(/[^a-z0-9\s]/g, ' ').split(/\s+/).filter(Boolean);
|
|
374
|
+
if (words.length === 0)
|
|
375
|
+
return false;
|
|
376
|
+
// ⛔ POSITION, NOT PRESENCE. The first attempt asked whether an imperative
|
|
377
|
+
// word appeared ANYWHERE, and it got two of the three cases wrong — because
|
|
378
|
+
// half of these words are also ordinary nouns and verbs:
|
|
379
|
+
//
|
|
380
|
+
// "Is anything failing to SYNC to the accounts?" sync = a noun here
|
|
381
|
+
// "How much will we MAKE next quarter?" make = earn, not create
|
|
382
|
+
//
|
|
383
|
+
// Both were read as commands and kept their write verb on top. An imperative
|
|
384
|
+
// LEADS its sentence; the same word in the middle of a question is just a
|
|
385
|
+
// word. Only the first position counts.
|
|
386
|
+
if (IMPERATIVE.has(words[0]))
|
|
387
|
+
return false;
|
|
388
|
+
// "How do I delete a contact?" is a question ABOUT an action, and the action
|
|
389
|
+
// verb is precisely the right answer. Demoting it would break discovery —
|
|
390
|
+
// the most common way anyone learns what this CLI can do.
|
|
391
|
+
if (/^how\s+(do|can|to|would|should)\b/.test(q) && words.some((w) => IMPERATIVE.has(w))) {
|
|
392
|
+
return false;
|
|
393
|
+
}
|
|
394
|
+
return q.endsWith('?') || INTERROGATIVE.has(words[0]);
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* How much a mutating verb is held back when the caller only asked a question.
|
|
398
|
+
*
|
|
399
|
+
* 0.45 was chosen against the suite, not by feel: it is low enough to move
|
|
400
|
+
* `invoice_sync` off the top for "is anything failing to sync" (where a read
|
|
401
|
+
* verb exists and scored close behind), and high enough that a mutating verb
|
|
402
|
+
* with NO read competitor still surfaces in the list rather than vanishing.
|
|
403
|
+
*/
|
|
404
|
+
const WRITE_PENALTY_ON_QUESTION = 0.45;
|
|
91
405
|
/**
|
|
92
406
|
* Score one verb against one term.
|
|
93
407
|
*
|
|
@@ -106,6 +420,17 @@ function scoreTerm(term, segs, nameLower, desc) {
|
|
|
106
420
|
if (segs.includes(t)) {
|
|
107
421
|
s += 6; // whole segment: payment.REFUND
|
|
108
422
|
}
|
|
423
|
+
else if (segs.includes(inflect(t))) {
|
|
424
|
+
// ⛔ SINGULAR AND PLURAL ARE THE SAME SEGMENT, AND THIS REGISTRY SPLITS
|
|
425
|
+
// THEM CONSTANTLY: contact/contacts, invoice/invoices, page/pages,
|
|
426
|
+
// order/orders, deal/deals. Without this, `contact` scored 6 against
|
|
427
|
+
// `contact.create` and only 3 against `crm_contacts_search` — a
|
|
428
|
+
// substring match — so a search verb lost to whatever else happened to
|
|
429
|
+
// carry the exact singular. Below a whole-segment hit, above a mere
|
|
430
|
+
// substring, because an inflection is weaker evidence than the exact
|
|
431
|
+
// word and stronger than an accidental overlap.
|
|
432
|
+
s += 5;
|
|
433
|
+
}
|
|
109
434
|
else if (nameLower.includes(t)) {
|
|
110
435
|
s += 3; // inside a segment: preview_REFUND_impact
|
|
111
436
|
}
|
|
@@ -134,6 +459,13 @@ function rankVerbs(query, verbs, limit = 5) {
|
|
|
134
459
|
const qTerms = terms(query);
|
|
135
460
|
if (qTerms.length === 0)
|
|
136
461
|
return [];
|
|
462
|
+
const readIntent = isReadIntent(query);
|
|
463
|
+
/**
|
|
464
|
+
* Terms the caller EMPHASISED, by idiom or by opening the sentence with
|
|
465
|
+
* them. See analyse() and leadingAction() for why each counts.
|
|
466
|
+
*/
|
|
467
|
+
const emphasis = new Set(analyse(normalise(query)).fromIdiom);
|
|
468
|
+
const lead = leadingAction(query);
|
|
137
469
|
/**
|
|
138
470
|
* ⛔ WEIGHT EACH TERM BY HOW RARE IT IS. Without this, every word in the
|
|
139
471
|
* query counted the same and a sentence was worse than a keyword: measured
|
|
@@ -159,6 +491,45 @@ function rankVerbs(query, verbs, limit = 5) {
|
|
|
159
491
|
df.set(t, n);
|
|
160
492
|
}
|
|
161
493
|
const N = Math.max(1, verbs.length);
|
|
494
|
+
/**
|
|
495
|
+
* ⛔ ONLY EMPHASISE A LEADING IMPERATIVE THAT IS ITSELF DISCRIMINATING.
|
|
496
|
+
*
|
|
497
|
+
* The first version emphasised every leading imperative and a held-out
|
|
498
|
+
* prompt caught it: "CHANGE the phone greeting to say we're closed until
|
|
499
|
+
* Monday" put `user_change_role` on top, with `deal.explain_stage_change`
|
|
500
|
+
* and `audit.explain_balance_change` behind it. Every one of those is a
|
|
501
|
+
* perfect match on `change` and none of them is about a phone.
|
|
502
|
+
*
|
|
503
|
+
* The reason is that imperatives are not equally informative. "Text",
|
|
504
|
+
* "Book", "Refund" and "Invite" each name a capability — 0.6% to 4.2% of
|
|
505
|
+
* the manifest mentions them. "Change", "Update", "Set" and "Turn" name an
|
|
506
|
+
* OPERATION that dozens of unrelated nouns share: 6.9%, 6.7%, 11.9%, 19.6%.
|
|
507
|
+
* Emphasising the second kind amplifies the one word in the query that
|
|
508
|
+
* cannot discriminate, and buries the noun that can.
|
|
509
|
+
*
|
|
510
|
+
* So the gate is the measurement already in hand — document frequency — and
|
|
511
|
+
* not a hand-kept list of "good" verbs, which would go stale the moment the
|
|
512
|
+
* registry grew. 5% sits in the gap the data actually shows between the two
|
|
513
|
+
* groups. A lead the idiom map already consumed is skipped: the idiom's own
|
|
514
|
+
* emphasis is a better statement of intent than the bare verb it ate.
|
|
515
|
+
*/
|
|
516
|
+
const LEAD_DF_CEILING = 0.05;
|
|
517
|
+
// ⛔ COUNT THE WORD THE OWNER TYPED, NOT THE WORD PLUS ITS SYNONYMS. The
|
|
518
|
+
// `df` map above is built over expanded terms, which is right for scoring
|
|
519
|
+
// and wrong for this question. `text` appears in 4.2% of the manifest and
|
|
520
|
+
// is discriminating; `text` OR `sms` together clear 5% and the gate then
|
|
521
|
+
// threw out the one lead it was built to keep. What is being asked here is
|
|
522
|
+
// whether the word the owner CHOSE narrows the field — so count only it.
|
|
523
|
+
const leadDf = lead
|
|
524
|
+
? verbs.reduce((n, v) => n + (`${v.name} ${v.description || ''}`.toLowerCase().includes(lead) ? 1 : 0), 0)
|
|
525
|
+
: 0;
|
|
526
|
+
if (lead && df.has(lead) && leadDf <= N * LEAD_DF_CEILING) {
|
|
527
|
+
emphasis.add(lead);
|
|
528
|
+
// The lead's platform translation carries the emphasis too: an owner who
|
|
529
|
+
// opens with "Text …" named `sms` just as surely as one who typed it.
|
|
530
|
+
for (const t of expand(lead))
|
|
531
|
+
emphasis.add(t);
|
|
532
|
+
}
|
|
162
533
|
/**
|
|
163
534
|
* ⛔ CAP THE RARITY BONUS, AND DROP TERMS THAT MATCH NOTHING.
|
|
164
535
|
*
|
|
@@ -181,7 +552,17 @@ function rankVerbs(query, verbs, limit = 5) {
|
|
|
181
552
|
const IDF_CAP = 2.2;
|
|
182
553
|
const scoring = qTerms.filter((t) => (df.get(t) ?? 0) > 0);
|
|
183
554
|
const useTerms = scoring.length ? scoring : qTerms; // never rank on nothing
|
|
184
|
-
|
|
555
|
+
/**
|
|
556
|
+
* 1.8 was chosen against the bench, not by feel. Below ~1.5 an emphasised
|
|
557
|
+
* term still loses to two incidental ones ("phone" + "quote" beat "notes");
|
|
558
|
+
* above ~2.2 a single idiom starts to swamp genuinely multi-term queries
|
|
559
|
+
* and top-3 falls. It sits inside the same capped range as every other
|
|
560
|
+
* weight here, so an emphasised common word still cannot outrank a rare
|
|
561
|
+
* exact one on emphasis alone.
|
|
562
|
+
*/
|
|
563
|
+
const EMPHASIS = 1.8;
|
|
564
|
+
const idf = (t) => Math.min(IDF_CAP, Math.max(0.15, Math.log((N + 1) / ((df.get(t) ?? 0) + 1)))) *
|
|
565
|
+
(emphasis.has(t) ? EMPHASIS : 1);
|
|
185
566
|
const totalIdf = useTerms.reduce((a, t) => a + idf(t), 0) || 1;
|
|
186
567
|
// Best achievable score for this query, used to normalize.
|
|
187
568
|
const perfect = totalIdf * 8;
|
|
@@ -210,6 +591,10 @@ function rankVerbs(query, verbs, limit = 5) {
|
|
|
210
591
|
// Nudge shorter names up. Between two equal matches the more specific
|
|
211
592
|
// name is nearly always the one meant.
|
|
212
593
|
raw *= 1 + 0.05 / segs.length;
|
|
594
|
+
// A question gets an answer, not an action. See isReadIntent above.
|
|
595
|
+
const effects = (v.side_effects || 'read').toLowerCase();
|
|
596
|
+
if (readIntent && effects !== 'read')
|
|
597
|
+
raw *= WRITE_PENALTY_ON_QUESTION;
|
|
213
598
|
scored.push({
|
|
214
599
|
name: v.name,
|
|
215
600
|
score: Math.min(1, Number((raw /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name": "@solidnumber/cli",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Be There
|
|
3
|
+
"version": "2.23.0",
|
|
4
|
+
"description": "Be There \u2014 the system that answers, books, and takes payment when you can't. CLI + SDK + MCP tools for SMBs, agencies, and AI agents. solid clone plumber \u2192 working business in 30 seconds.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"bin": {
|
|
@@ -47,7 +47,11 @@
|
|
|
47
47
|
"prepublishOnly": "npm run build && npm test && npm run test:contracts && npm run test:security && npm run audit:prod && npm run verify:deps && npm run check:counts",
|
|
48
48
|
"postinstall": "node -e \"try{if(!process.env.CI)console.log('\\n Solid# CLI installed. Get started: solid setup\\n')}catch(e){}\"",
|
|
49
49
|
"sync:counts": "ts-node scripts/sync-counts.ts",
|
|
50
|
-
"check:counts": "ts-node scripts/sync-counts.ts --check"
|
|
50
|
+
"check:counts": "ts-node scripts/sync-counts.ts --check",
|
|
51
|
+
"eval": "node scripts/eval-suite/run.mjs",
|
|
52
|
+
"eval:reads": "node scripts/eval-suite/run.mjs --reads-only --json /tmp/solid-eval.json",
|
|
53
|
+
"eval:gate": "npm run eval:reads && node scripts/eval-suite/gate.mjs /tmp/solid-eval.json",
|
|
54
|
+
"eval:accept": "node scripts/eval-suite/gate.mjs /tmp/solid-eval.json --accept"
|
|
51
55
|
},
|
|
52
56
|
"keywords": [
|
|
53
57
|
"cli",
|