@koda-sl/baker-cli 0.297.0 → 0.298.0-dev.fd66d4f19
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/cli.js
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
ulid,
|
|
59
59
|
validateCanvasDeep,
|
|
60
60
|
ytDlpBlockSignal
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-HVITCN7H.js";
|
|
62
62
|
import {
|
|
63
63
|
csvOrJson,
|
|
64
64
|
daysAgoIso,
|
|
@@ -7339,7 +7339,16 @@ var SURFACE_RULES = [
|
|
|
7339
7339
|
/\bhotjar\b/i,
|
|
7340
7340
|
/\bgtm\s+snippet\b/i,
|
|
7341
7341
|
/\bcapi\b/i,
|
|
7342
|
-
/\b(?:install|add|remove|swap|instalar|colocar)\b[\s\S]*\b(?:snippet|script|
|
|
7342
|
+
/\b(?:install|add|remove|swap|instalar|colocar|poner|anadir|agregar)\b[\s\S]*\b(?:snippet|script|tags?|etiquetas?|pixel)\b/i,
|
|
7343
|
+
// The product's own word for this object, in both languages. A tracking
|
|
7344
|
+
// script named in Spanish ("el código de seguimiento de HubSpot", "una
|
|
7345
|
+
// etiqueta tipo hubspot") matched none of the signals above, so the one
|
|
7346
|
+
// Task that most needed the redirect — file it, or show the form? — was
|
|
7347
|
+
// filed. `tag-manager` is evaluated first and still claims the container.
|
|
7348
|
+
/\btracking\s+(?:code|script|snippet|tag)\b/i,
|
|
7349
|
+
/\bcodigos?\s+de\s+seguimiento\b/i,
|
|
7350
|
+
/\bscripts?\s+de\s+seguimiento\b/i,
|
|
7351
|
+
/\betiquetas?\s+(?:de\s+seguimiento|de\s+medicion|tipo\s+\w+)\b/i
|
|
7343
7352
|
],
|
|
7344
7353
|
// Two vetoes. A structured snippet is a Google Ads extension, not a script
|
|
7345
7354
|
// on the page — `ads-write` claims it above, and this stops both rules
|
|
@@ -57832,6 +57841,12 @@ function renderEffectiveEntry(entry) {
|
|
|
57832
57841
|
return configLines.length > 0 ? `${header}
|
|
57833
57842
|
${configLines.join("\n")}` : header;
|
|
57834
57843
|
}
|
|
57844
|
+
function tagsListHints() {
|
|
57845
|
+
return [
|
|
57846
|
+
"To create, edit or delete a tag, call the `request_tag_input` approval form (tool `mcp__baker_ui__request_tag_input`, server `baker_ui`) \u2014 it is attached to every turn of this chat and collects any secret values itself.",
|
|
57847
|
+
"Do NOT conclude the form is unavailable from your tool list: call it, and report what it returns. And never file a tag change as a Task \u2014 a Task hands the user work this chat can stage in one call."
|
|
57848
|
+
];
|
|
57849
|
+
}
|
|
57835
57850
|
|
|
57836
57851
|
// src/commands/tags/index.ts
|
|
57837
57852
|
registerSchema({
|
|
@@ -57845,16 +57860,21 @@ async function listTags(json) {
|
|
|
57845
57860
|
try {
|
|
57846
57861
|
const chatId = requireChatId();
|
|
57847
57862
|
const response = await apiPost("/api/tags/list", { chatId });
|
|
57863
|
+
const hints2 = tagsListHints();
|
|
57848
57864
|
if (json) {
|
|
57849
|
-
writeJson({ ok: true, data: response });
|
|
57865
|
+
writeJson({ ok: true, data: response, hints: hints2 });
|
|
57850
57866
|
return;
|
|
57851
57867
|
}
|
|
57852
57868
|
if (response.tags.length === 0) {
|
|
57853
|
-
process.stdout.write("No tags configured
|
|
57854
|
-
|
|
57869
|
+
process.stdout.write("No tags configured.\n");
|
|
57870
|
+
} else {
|
|
57871
|
+
process.stdout.write(`${response.tags.map(renderEffectiveEntry).join("\n")}
|
|
57872
|
+
`);
|
|
57855
57873
|
}
|
|
57856
|
-
|
|
57874
|
+
for (const hint of hints2) {
|
|
57875
|
+
process.stderr.write(`${hint}
|
|
57857
57876
|
`);
|
|
57877
|
+
}
|
|
57858
57878
|
} catch (err) {
|
|
57859
57879
|
failApi3(err);
|
|
57860
57880
|
}
|
|
@@ -57876,7 +57896,7 @@ async function listDraft4(chat) {
|
|
|
57876
57896
|
try {
|
|
57877
57897
|
const chatId = resolveChatId(chat);
|
|
57878
57898
|
const response = await apiPost("/api/tags/draft", { chatId });
|
|
57879
|
-
writeJson({ ok: true, data: response });
|
|
57899
|
+
writeJson({ ok: true, data: response, hints: tagsListHints() });
|
|
57880
57900
|
} catch (err) {
|
|
57881
57901
|
failApi3(err);
|
|
57882
57902
|
}
|