@koda-sl/baker-cli 0.528.0 → 0.530.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/README.md +21 -0
- package/dist/{ads-6ESCXPHK.js → ads-7TEPA4KZ.js} +3 -3
- package/dist/{analytics-OUNKG2FW.js → analytics-XDWBEY57.js} +13 -13
- package/dist/{chunk-4VSD4NSZ.js → chunk-7HH4F2KX.js} +3 -3
- package/dist/{chunk-WSYQ6LWB.js → chunk-BTVK3CU7.js} +3 -1
- package/dist/chunk-BTVK3CU7.js.map +1 -0
- package/dist/{chunk-Z4ZYFIDQ.js → chunk-CKTVRR3D.js} +2 -2
- package/dist/{chunk-SXML3LQN.js → chunk-IHZUSAUX.js} +2 -2
- package/dist/{chunk-EIDJCUMM.js → chunk-OYNBUT5X.js} +2 -2
- package/dist/{chunk-B65WCT6M.js → chunk-PILLZPNC.js} +38 -2
- package/dist/chunk-PILLZPNC.js.map +1 -0
- package/dist/{chunk-ZL5YETKR.js → chunk-TE4ASZSC.js} +2 -2
- package/dist/{chunk-OXARC5HH.js → chunk-UXZZ5AEO.js} +2 -2
- package/dist/cli.js +52 -7
- package/dist/cli.js.map +1 -1
- package/dist/{create-UI2YG2KA.js → create-LPD3JAIW.js} +3 -3
- package/dist/{delete-4CUEJZ2Z.js → delete-FK3A36WP.js} +3 -3
- package/dist/{funnel-LKF6D7AA.js → funnel-XIZROHV7.js} +3 -3
- package/dist/{get-TB52FVNV.js → get-25KJJTO6.js} +3 -3
- package/dist/{google-FZVOB7HW.js → google-5JV7OMOH.js} +2 -2
- package/dist/{history-SJJX6EXI.js → history-DTQVPVFA.js} +3 -3
- package/dist/lead-routes-WVXWVG62.js +733 -0
- package/dist/lead-routes-WVXWVG62.js.map +1 -0
- package/dist/{list-PT4DVD4U.js → list-6PIJGN4M.js} +3 -3
- package/dist/{lookup-IUQWU346.js → lookup-K57ITJWF.js} +4 -4
- package/dist/{performance-6XFKDJGY.js → performance-MHJDRLEK.js} +2 -2
- package/dist/{plan-VHMWZU7F.js → plan-JYSHKPZQ.js} +3 -3
- package/dist/{questionnaire-32BQ4ZUX.js → questionnaire-Y37I64FO.js} +3 -3
- package/dist/{run-MRC4UVHU.js → run-CIXOJA3K.js} +3 -3
- package/dist/{scheduled-agents-EPPP4SCZ.js → scheduled-agents-BGMWNCAU.js} +11 -11
- package/dist/{schema-5Q6VO5MW.js → schema-NCJTDRRV.js} +2 -2
- package/dist/{sends-43FU3SJN.js → sends-MZKHZZGJ.js} +3 -3
- package/dist/{sources-PUZ4WV4Q.js → sources-ZM7LEIMM.js} +4 -4
- package/dist/{targets-3WIBMP4B.js → targets-KZBMOZUE.js} +3 -3
- package/dist/{triggers-6EXLTW35.js → triggers-35UVEDXF.js} +3 -3
- package/dist/{unstage-YSVQ6DLB.js → unstage-AVLORZLW.js} +3 -3
- package/dist/{unstage-KEMVI37X.js → unstage-E2257FEP.js} +3 -3
- package/dist/{update-USKR3UOC.js → update-GTXZRINC.js} +3 -3
- package/dist/{url-options-6MFRIDNA.js → url-options-DJZV3ADK.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-B65WCT6M.js.map +0 -1
- package/dist/chunk-WSYQ6LWB.js.map +0 -1
- /package/dist/{ads-6ESCXPHK.js.map → ads-7TEPA4KZ.js.map} +0 -0
- /package/dist/{analytics-OUNKG2FW.js.map → analytics-XDWBEY57.js.map} +0 -0
- /package/dist/{chunk-4VSD4NSZ.js.map → chunk-7HH4F2KX.js.map} +0 -0
- /package/dist/{chunk-Z4ZYFIDQ.js.map → chunk-CKTVRR3D.js.map} +0 -0
- /package/dist/{chunk-SXML3LQN.js.map → chunk-IHZUSAUX.js.map} +0 -0
- /package/dist/{chunk-EIDJCUMM.js.map → chunk-OYNBUT5X.js.map} +0 -0
- /package/dist/{chunk-ZL5YETKR.js.map → chunk-TE4ASZSC.js.map} +0 -0
- /package/dist/{chunk-OXARC5HH.js.map → chunk-UXZZ5AEO.js.map} +0 -0
- /package/dist/{create-UI2YG2KA.js.map → create-LPD3JAIW.js.map} +0 -0
- /package/dist/{delete-4CUEJZ2Z.js.map → delete-FK3A36WP.js.map} +0 -0
- /package/dist/{funnel-LKF6D7AA.js.map → funnel-XIZROHV7.js.map} +0 -0
- /package/dist/{get-TB52FVNV.js.map → get-25KJJTO6.js.map} +0 -0
- /package/dist/{google-FZVOB7HW.js.map → google-5JV7OMOH.js.map} +0 -0
- /package/dist/{history-SJJX6EXI.js.map → history-DTQVPVFA.js.map} +0 -0
- /package/dist/{list-PT4DVD4U.js.map → list-6PIJGN4M.js.map} +0 -0
- /package/dist/{lookup-IUQWU346.js.map → lookup-K57ITJWF.js.map} +0 -0
- /package/dist/{performance-6XFKDJGY.js.map → performance-MHJDRLEK.js.map} +0 -0
- /package/dist/{plan-VHMWZU7F.js.map → plan-JYSHKPZQ.js.map} +0 -0
- /package/dist/{questionnaire-32BQ4ZUX.js.map → questionnaire-Y37I64FO.js.map} +0 -0
- /package/dist/{run-MRC4UVHU.js.map → run-CIXOJA3K.js.map} +0 -0
- /package/dist/{scheduled-agents-EPPP4SCZ.js.map → scheduled-agents-BGMWNCAU.js.map} +0 -0
- /package/dist/{schema-5Q6VO5MW.js.map → schema-NCJTDRRV.js.map} +0 -0
- /package/dist/{sends-43FU3SJN.js.map → sends-MZKHZZGJ.js.map} +0 -0
- /package/dist/{sources-PUZ4WV4Q.js.map → sources-ZM7LEIMM.js.map} +0 -0
- /package/dist/{targets-3WIBMP4B.js.map → targets-KZBMOZUE.js.map} +0 -0
- /package/dist/{triggers-6EXLTW35.js.map → triggers-35UVEDXF.js.map} +0 -0
- /package/dist/{unstage-YSVQ6DLB.js.map → unstage-AVLORZLW.js.map} +0 -0
- /package/dist/{unstage-KEMVI37X.js.map → unstage-E2257FEP.js.map} +0 -0
- /package/dist/{update-USKR3UOC.js.map → update-GTXZRINC.js.map} +0 -0
- /package/dist/{url-options-6MFRIDNA.js.map → url-options-DJZV3ADK.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ANALYTICS_BUSY_FIX,
|
|
3
3
|
isAnalyticsBusy
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PILLZPNC.js";
|
|
5
5
|
import {
|
|
6
6
|
ApiError
|
|
7
7
|
} from "./chunk-B4UVJCJ4.js";
|
|
@@ -42,4 +42,4 @@ export {
|
|
|
42
42
|
questionnaireErrorEnvelope,
|
|
43
43
|
trackingPlanErrorEnvelope
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-TE4ASZSC.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
agentProfile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BTVK3CU7.js";
|
|
4
4
|
import {
|
|
5
5
|
AUTO_PUBLISH_REFUSAL,
|
|
6
6
|
MAX_AI_CONDITION_CHARS,
|
|
@@ -426,4 +426,4 @@ export {
|
|
|
426
426
|
reactionBody,
|
|
427
427
|
chatBody
|
|
428
428
|
};
|
|
429
|
-
//# sourceMappingURL=chunk-
|
|
429
|
+
//# sourceMappingURL=chunk-UXZZ5AEO.js.map
|
package/dist/cli.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
agentProfile,
|
|
9
9
|
applyAgentProfile,
|
|
10
10
|
loadCommands
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BTVK3CU7.js";
|
|
12
12
|
import {
|
|
13
13
|
installExitRecord,
|
|
14
14
|
installStreamTaps,
|
|
@@ -131,6 +131,50 @@ function installFullNote(commandPath) {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
// src/help-output.ts
|
|
135
|
+
import { renderUsage } from "citty";
|
|
136
|
+
var sentences = new Intl.Segmenter("en", { granularity: "sentence" });
|
|
137
|
+
var abbreviation = /\b(?:e\.g|i\.e|vs|etc)\.$/i;
|
|
138
|
+
function resolved(value) {
|
|
139
|
+
return Promise.resolve(typeof value === "function" ? value() : value);
|
|
140
|
+
}
|
|
141
|
+
function firstSentence(description) {
|
|
142
|
+
const [first = "", ...rest] = description.trim().split("\n");
|
|
143
|
+
let prose = first.trim();
|
|
144
|
+
for (const line of rest) {
|
|
145
|
+
if (/[.:!?]$/.test(prose) || line.trim() === "" || /^(\s|[-*•])/.test(line)) break;
|
|
146
|
+
prose += ` ${line.trim()}`;
|
|
147
|
+
}
|
|
148
|
+
let sentence = "";
|
|
149
|
+
for (const { segment } of sentences.segment(prose)) {
|
|
150
|
+
sentence += segment;
|
|
151
|
+
if (!abbreviation.test(sentence.trim())) break;
|
|
152
|
+
}
|
|
153
|
+
return (sentence || prose).trim();
|
|
154
|
+
}
|
|
155
|
+
async function summarized(cmd) {
|
|
156
|
+
if (!cmd.subCommands) return cmd;
|
|
157
|
+
const subCommands = await resolved(cmd.subCommands);
|
|
158
|
+
const listed = {};
|
|
159
|
+
for (const [name, sub] of Object.entries(subCommands)) {
|
|
160
|
+
const command = await resolved(sub);
|
|
161
|
+
const meta = (command.meta ? await resolved(command.meta) : void 0) ?? {};
|
|
162
|
+
listed[name] = { meta: meta.description ? { ...meta, description: firstSentence(meta.description) } : meta };
|
|
163
|
+
}
|
|
164
|
+
return { ...cmd, subCommands: listed };
|
|
165
|
+
}
|
|
166
|
+
async function renderHelp(cmd, parent) {
|
|
167
|
+
const usage = await renderUsage(await summarized(cmd), parent);
|
|
168
|
+
return usage.split("\n").map((line) => line.trimEnd()).join("\n");
|
|
169
|
+
}
|
|
170
|
+
function printHelpTo(stdout) {
|
|
171
|
+
return async (cmd, parent) => {
|
|
172
|
+
const help = await renderHelp(cmd, parent);
|
|
173
|
+
await new Promise((done) => stdout.write(`${help}
|
|
174
|
+
`, done));
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
|
|
134
178
|
// src/root-command.ts
|
|
135
179
|
import { defineCommand } from "citty";
|
|
136
180
|
|
|
@@ -169,10 +213,10 @@ Introspection: Run 'baker schema <command>' to inspect argument schemas.`
|
|
|
169
213
|
subCommands: {
|
|
170
214
|
capabilities: () => import("./capabilities-BEZXR2FZ.js").then((m) => m.capabilitiesCommand),
|
|
171
215
|
actions: () => import("./actions-33IZOT5C.js").then((m) => m.actionsCommand),
|
|
172
|
-
"scheduled-agents": () => import("./scheduled-agents-
|
|
173
|
-
ads: () => import("./ads-
|
|
216
|
+
"scheduled-agents": () => import("./scheduled-agents-BGMWNCAU.js").then((m) => m.scheduledAgentsCommand),
|
|
217
|
+
ads: () => import("./ads-7TEPA4KZ.js").then((m) => m.adsCommand),
|
|
174
218
|
brand: () => import("./brand-GBP4OEJI.js").then((m) => m.brandCommand),
|
|
175
|
-
analytics: () => import("./analytics-
|
|
219
|
+
analytics: () => import("./analytics-XDWBEY57.js").then((m) => m.analyticsCommand),
|
|
176
220
|
experiment: () => import("./experiment-MO6MT6OJ.js").then((m) => m.experimentCommand),
|
|
177
221
|
ga4: () => import("./ga4-XPCE4EK5.js").then((m) => m.ga4Command),
|
|
178
222
|
gsc: () => import("./gsc-HI2KXDEU.js").then((m) => m.gscCommand),
|
|
@@ -180,7 +224,7 @@ Introspection: Run 'baker schema <command>' to inspect argument schemas.`
|
|
|
180
224
|
decide: () => import("./decide-X2UAKYXK.js").then((m) => m.decideCommand),
|
|
181
225
|
creatives: () => import("./creatives-QFSIIFXB.js").then((m) => m.creativesCommand),
|
|
182
226
|
flows: () => import("./flows-CAOMVQYZ.js").then((m) => m.flowsCommand),
|
|
183
|
-
funnel: () => import("./funnel-
|
|
227
|
+
funnel: () => import("./funnel-XIZROHV7.js").then((m) => m.funnelCommand),
|
|
184
228
|
images: () => import("./images-K7JQ3ORB.js").then((m) => m.imagesCommand),
|
|
185
229
|
studio: () => import("./studio-NRWLXOFZ.js").then((m) => m.studioCommand),
|
|
186
230
|
avatars: () => import("./avatars-IJQOWSFC.js").then((m) => m.avatarsCommand),
|
|
@@ -201,10 +245,11 @@ Introspection: Run 'baker schema <command>' to inspect argument schemas.`
|
|
|
201
245
|
"media-sources": () => import("./media-sources-7R7FO53Y.js").then((m) => m.mediaSourcesCommand),
|
|
202
246
|
posts: () => import("./posts-BDMC644W.js").then((m) => m.postsCommand),
|
|
203
247
|
site: () => import("./site-I3NFMPJB.js").then((m) => m.siteCommand),
|
|
248
|
+
"lead-routes": () => import("./lead-routes-WVXWVG62.js").then((m) => m.leadRoutesCommand),
|
|
204
249
|
mcp: () => import("./mcp-RSW7KAWP.js").then((m) => m.mcpCommand),
|
|
205
250
|
"setup-links": () => import("./setup-links-4STQ5B4P.js").then((m) => m.setupLinksCommand),
|
|
206
251
|
organization: () => import("./organization-A4NFWWWI.js").then((m) => m.organizationCommand),
|
|
207
|
-
schema: () => import("./schema-
|
|
252
|
+
schema: () => import("./schema-NCJTDRRV.js").then((m) => m.schemaCommand)
|
|
208
253
|
}
|
|
209
254
|
});
|
|
210
255
|
|
|
@@ -248,7 +293,7 @@ refuseStrayPositionals(main, process.argv.slice(2));
|
|
|
248
293
|
process.argv = [...process.argv.slice(0, 2), ...cacheFlagForParser(process.argv.slice(2))];
|
|
249
294
|
var rawArgs = process.argv.slice(2);
|
|
250
295
|
if (rawArgs.some((arg) => arg === "--help" || arg === "-h") || rawArgs.length === 1 && /^(--version|-v)$/.test(rawArgs[0] ?? "")) {
|
|
251
|
-
runMain(main);
|
|
296
|
+
runMain(main, { showUsage: printHelpTo(process.stdout) });
|
|
252
297
|
} else {
|
|
253
298
|
try {
|
|
254
299
|
await runCommand(main, { rawArgs });
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/cli.ts","../src/closed-pipe.ts","../src/company-flag.ts","../src/full-flag.ts","../src/root-command.ts","../src/version.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { runCommand, runMain } from \"citty\";\nimport { agentProfile, applyAgentProfile } from \"./agent-profile.ts\";\nimport { cacheFlagForCommand, cacheFlagForParser, normalizeCacheFlag } from \"./cache-flag.ts\";\nimport { exitQuietlyOnClosedPipe } from \"./closed-pipe.ts\";\nimport { loadCommands } from \"./command-loading.ts\";\nimport { takeCompanyFlag } from \"./company-flag.ts\";\nimport { installExitRecord, installStreamTaps, logInvocation } from \"./debugLog.ts\";\nimport { setTargetCompany } from \"./env.ts\";\nimport { installFieldMask, takeFieldsFlag } from \"./field-mask.ts\";\nimport { installFullNote, takeFullFlag } from \"./full-flag.ts\";\nimport { writeJson } from \"./output.ts\";\nimport { asksForEnvelopeAlone, envelopeAloneOnStdout, outputFlagForCommand } from \"./output-flag.ts\";\nimport { rootCommand } from \"./root-command.ts\";\nimport { registerCommandTree } from \"./schemas.ts\";\nimport { commandPathOf, parseRefusalEnvelope, refuseStrayPositionals, refuseUnknownFlags } from \"./unknown-flags.ts\";\n\nconst main = rootCommand;\n// The call as typed, before the rewrites below: a refusal's corrected call is built from it.\nconst typedArgv = process.argv.slice(2);\n\nawait loadCommands(main, process.argv.slice(2));\nregisterCommandTree(main);\n\nexitQuietlyOnClosedPipe(process.stdout, (code) => process.exit(code));\n\n// The legacy `--skip-cache` spelling becomes `--no-cache` before anything reads\n// argv — citty parses `process.argv` itself, so the rewrite has to land there.\nprocess.argv = [...process.argv.slice(0, 2), ...normalizeCacheFlag(process.argv.slice(2))];\n\n// When BAKER_DEBUG_LOG is set, mirror all output and record the invocation\n// before any command runs. No-op otherwise.\ninstallStreamTaps();\nlogInvocation(process.argv.slice(2));\ninstallExitRecord();\n\n// `--output json` asks for the envelope, which almost every command prints\n// without declaring the option — translated here so the guard below does not\n// refuse a flag that asked for what the command was about to print.\n// `canvas run` prints progress before its envelope: asked for the envelope, it\n// prints that alone on stdout and the progress on stderr.\nif (asksForEnvelopeAlone(main, process.argv.slice(2))) {\n envelopeAloneOnStdout(process.stdout, process.stderr);\n}\nprocess.argv = [...process.argv.slice(0, 2), ...outputFlagForCommand(main, process.argv.slice(2))];\n\n// `--fields` narrows the envelope on every command that prints one; where the\n// command does not declare it, it is applied to what the command prints.\nconst fieldsFlag = takeFieldsFlag(main, process.argv.slice(2));\nif (fieldsFlag.fields) {\n process.argv = [...process.argv.slice(0, 2), ...fieldsFlag.argv];\n installFieldMask(fieldsFlag.fields, commandPathOf(main, fieldsFlag.argv));\n}\n\n// `--full` on a command with no shorter view asks for what it already prints:\n// taken off here, and said back in the envelope's hints.\nconst fullFlag = takeFullFlag(main, process.argv.slice(2));\nif (fullFlag.taken) {\n process.argv = [...process.argv.slice(0, 2), ...fullFlag.argv];\n installFullNote(commandPathOf(main, fullFlag.argv));\n}\n\n// `--company <id>` names the company a read is about (the organization\n// workspace's Reports read every company of its organization). It travels as a\n// header on every request, so it is taken off here, before the guard.\nconst companyFlag = takeCompanyFlag(main, process.argv.slice(2));\nif (companyFlag.company) {\n process.argv = [...process.argv.slice(0, 2), ...companyFlag.argv];\n setTargetCompany(companyFlag.company);\n}\n\n// What this agent is offered: the organization workspace's agent only reads\n// (`agent-profile.ts`). Here, after `--company` is taken off, so the command it\n// judges is the one typed.\nconst profileRefusal = await applyAgentProfile(main, agentProfile(), process.argv.slice(2));\nif (profileRefusal) {\n writeJson({ ok: false, error: { code: \"FORBIDDEN\", message: profileRefusal } });\n process.exit(1);\n}\n\n// A report's Refresh appends `--no-cache` to every read; a command with no cache\n// already reads fresh, so it is dropped there rather than refused.\nprocess.argv = [...process.argv.slice(0, 2), ...cacheFlagForCommand(main, process.argv.slice(2))];\n\nrefuseUnknownFlags(main, process.argv.slice(2), typedArgv);\nrefuseStrayPositionals(main, process.argv.slice(2));\n\n// Last, so the guard above quotes back the spelling the caller typed: citty\n// resolves a bare `--no-cache` to `cache: false` instead of filling the declared\n// `no-cache` arg, and only the camelCase spelling survives its parser intact.\nprocess.argv = [...process.argv.slice(0, 2), ...cacheFlagForParser(process.argv.slice(2))];\n\n// `--help` and `--version` stay citty's own. Everything else runs here rather\n// than through `runMain`, whose refusal of a missing argument or an unknown\n// subcommand is usage text on stderr and nothing on stdout: that becomes the\n// envelope every other failure prints.\nconst rawArgs = process.argv.slice(2);\nif (\n rawArgs.some((arg) => arg === \"--help\" || arg === \"-h\") ||\n (rawArgs.length === 1 && /^(--version|-v)$/.test(rawArgs[0] ?? \"\"))\n) {\n runMain(main);\n} else {\n try {\n await runCommand(main, { rawArgs });\n } catch (error) {\n const refusal = parseRefusalEnvelope(error, main, rawArgs);\n if (refusal) {\n writeJson(refusal);\n } else {\n console.error(error, \"\\n\");\n }\n process.exit(1);\n }\n}\n","interface ErrorSource {\n on(event: \"error\", listener: (err: NodeJS.ErrnoException) => void): unknown;\n}\n\n/**\n * `baker … | head` closes the pipe once it has its lines. Node reports the next\n * write as an unhandled EPIPE and prints a stack trace, which reads as a crash of\n * a command that did its job. A closed reader wants nothing more, so exit cleanly,\n * as Unix tools do; any other write error still surfaces.\n */\nexport function exitQuietlyOnClosedPipe(stream: ErrorSource, exit: (code: number) => void): void {\n stream.on(\"error\", (err) => {\n if (err.code === \"EPIPE\") {\n exit(0);\n return;\n }\n throw err;\n });\n}\n","/**\n * `--company <id>` on every command: the company the call reads, for the\n * organization workspace, whose Reports read every company of its organization.\n *\n * It is a header, not an argument of each command (`x-baker-company`, sent by\n * `client.ts`), so every read the CLI has works across companies unchanged, and\n * the backend alone decides what it opens: reads of a company of the same\n * organization, for the organization workspace's credential, and nothing else.\n *\n * A command that declares `--company` itself keeps its own meaning — on\n * `avatars research` it is the person's employer. A positional named `company`\n * (`accounts company acme.com`) is not a flag, so the flag stays the header.\n */\n\nimport { declaredArg } from \"./output-flag.ts\";\nimport { commandFor, type IntrospectableCommand } from \"./unknown-flags.ts\";\n\nconst FLAG = \"--company\";\n\n/** The command reads `--company` itself; a positional of that name is no flag, so it is not. */\nfunction ownsCompanyFlag(command: IntrospectableCommand): boolean {\n const own = declaredArg(command, \"company\");\n return own !== null && own.type !== \"positional\";\n}\n\n/**\n * `argv` without `--company`, and the company it named, when the addressed\n * command does not declare the option itself. Otherwise `argv` is returned\n * untouched with `company: null`, for the command or the guard to judge.\n */\nexport function takeCompanyFlag(\n root: IntrospectableCommand,\n argv: string[],\n): { argv: string[]; company: string | null } {\n const end = argv.indexOf(\"--\");\n const limit = end === -1 ? argv.length : end;\n for (let index = 0; index < limit; index++) {\n const token = argv[index] ?? \"\";\n let company: string | undefined;\n let width = 1;\n if (token.startsWith(`${FLAG}=`)) {\n company = token.slice(FLAG.length + 1).trim();\n } else if (token === FLAG) {\n const value = argv[index + 1];\n if (value === undefined || index + 1 >= limit || value.startsWith(\"-\")) {\n return { argv, company: null };\n }\n company = value.trim();\n width = 2;\n } else {\n continue;\n }\n const command = commandFor(root, argv);\n if (!company || !command || ownsCompanyFlag(command)) {\n return { argv, company: null };\n }\n return { argv: [...argv.slice(0, index), ...argv.slice(index + width)], company };\n }\n return { argv, company: null };\n}\n","/**\n * `--full` on every command that prints the JSON envelope.\n *\n * The conventions doc tells the agent that reads are compact and `--full` gives\n * the complete record, and the families that have a compact view declare it\n * (`ads meta ads|adsets|campaigns`, `images`, `winning-ads`, …). Everywhere\n * else the unknown-option guard (`unknown-flags.ts`) refused it, although those\n * commands already print everything they return: `ads meta creatives` loops,\n * `actions get`, `posts list` and `tags list` each lost calls and a retry to a\n * flag that asked for what the command was about to print (BAKER-1412, -182).\n *\n * So a command that does not declare `--full` has it taken off the command line\n * here, and every envelope it prints says so in `hints` — a dropped flag the\n * caller cannot see would read as \"this is the full record\" on a list whose\n * rows are summaries. A command that declares `--full` keeps its own meaning;\n * one that prints no envelope is left to the guard, as with `--output json`.\n */\n\nimport { declaredArg, printsDataEnvelope } from \"./output-flag.ts\";\nimport { parsePrintedEnvelope, reprint, rewriteWrites, withHint } from \"./printed-envelope.ts\";\nimport { commandFor, commandPathOf, type IntrospectableCommand } from \"./unknown-flags.ts\";\n\nconst FLAG = \"--full\";\n\n/**\n * The command a call to `command` runs: a group with a `default` hands the call,\n * flags and all, to that subcommand (`creatives rules` runs `list`).\n */\nfunction commandThatRuns(command: IntrospectableCommand): IntrospectableCommand {\n const name = (command as { default?: unknown }).default;\n const subCommands = command.subCommands;\n const next =\n typeof name === \"string\" && subCommands && typeof subCommands === \"object\"\n ? (subCommands as Record<string, unknown>)[name]\n : undefined;\n return next && typeof next === \"object\" ? commandThatRuns(next as IntrospectableCommand) : command;\n}\n\n/**\n * `argv` without `--full`, and whether it was there, when the addressed command\n * prints the envelope and does not declare the option itself. Otherwise `argv`\n * is returned untouched, for the command or the guard to judge.\n */\nexport function takeFullFlag(root: IntrospectableCommand, argv: string[]): { argv: string[]; taken: boolean } {\n const end = argv.indexOf(\"--\");\n const limit = end === -1 ? argv.length : end;\n const taken = argv.flatMap((token, index) => (index < limit && token === FLAG ? [index] : []));\n if (taken.length === 0) {\n return { argv, taken: false };\n }\n const command = commandFor(root, argv);\n if (!command || declaredArg(commandThatRuns(command), \"full\") || !printsDataEnvelope(commandPathOf(root, argv))) {\n return { argv, taken: false };\n }\n return { argv: argv.filter((_, index) => !taken.includes(index)), taken: true };\n}\n\nfunction fullHint(commandPath: string): string {\n return (\n `--full changes nothing on \\`baker ${commandPath}\\`: it has no shorter view, so this is everything it returns. ` +\n \"Where its rows are summaries, read one record whole with the family's get or show command. Drop --full here.\"\n );\n}\n\n/**\n * The text a command printed, with a success envelope's `hints` saying `--full`\n * was taken and changed nothing; an error or a dry run comes back as printed,\n * and anything that is not an envelope (a readable view) is null.\n */\nexport function noteFullOnPrinted(text: string, commandPath: string): string | null {\n const envelope = parsePrintedEnvelope(text);\n if (envelope === null) {\n return null;\n }\n if (envelope.ok !== true || \"dryRun\" in envelope) {\n return text;\n }\n return reprint(text, withHint(envelope, fullHint(commandPath)));\n}\n\n/**\n * The note on the CLI's own stdout, and on stderr when the command printed no\n * envelope to carry it — a readable view such as `tags list` without `--json`.\n */\nexport function installFullNote(commandPath: string): void {\n const note = rewriteWrites(process.stdout, (text) => noteFullOnPrinted(text, commandPath));\n process.on(\"exit\", () => {\n if (!note.sawEnvelope()) {\n process.stderr.write(`${fullHint(commandPath)}\\n`);\n }\n });\n}\n","import { defineCommand } from \"citty\";\nimport { getCliVersion } from \"./version.ts\";\n\n// Every command is declared lazily and only the one being run is loaded\n// (`command-loading.ts`): loading all of them made each `baker` process hold\n// ~135 MB of heap while it waited on one request.\nexport const rootCommand = defineCommand({\n meta: {\n name: \"baker\",\n version: getCliVersion(),\n description: `AI-agent CLI for finding and managing images, videos, social posts, avatars, testimonials, action items, scheduled agents, marketing tags, Tag Manager containers, account history, credentials, and ad platform data in Baker.\n\nAuth: Set BAKER_API_KEY (starts with bk_) and BAKER_API_URL environment variables.\nChat: Set BAKER_CHAT_ID for action and scheduled-agent commands that stage changes against a chat.\nOutput: All commands return JSON envelopes: { ok: true, data: ... } or { ok: false, error: { code, message } }.\nFields: --fields a,b,c keeps only those keys of each record in data, on every command that prints the envelope.\nFull: --full returns the complete record where a command has a compact view; elsewhere it is accepted and changes nothing (a hint says so), except on 'canvas run' and 'canvas rerun', which refuse it.\nCompany: --company <id> runs a read against another company of the organization (organization workspace only; ids from 'baker organization companies').\nFormats: --output json works on every command that prints the envelope. --output md|files only where 'baker schema <command>' lists output. (The research commands additionally accept csv and jsonl.)\nIntrospection: Run 'baker schema <command>' to inspect argument schemas.`,\n },\n subCommands: {\n capabilities: () => import(\"./commands/capabilities/index.ts\").then((m) => m.capabilitiesCommand),\n actions: () => import(\"./commands/actions/index.ts\").then((m) => m.actionsCommand),\n \"scheduled-agents\": () => import(\"./commands/scheduled-agents/index.ts\").then((m) => m.scheduledAgentsCommand),\n ads: () => import(\"./commands/ads/index.ts\").then((m) => m.adsCommand),\n brand: () => import(\"./commands/brand/index.ts\").then((m) => m.brandCommand),\n analytics: () => import(\"./commands/analytics/index.ts\").then((m) => m.analyticsCommand),\n experiment: () => import(\"./commands/experiment/index.ts\").then((m) => m.experimentCommand),\n ga4: () => import(\"./commands/ga4/index.ts\").then((m) => m.ga4Command),\n gsc: () => import(\"./commands/gsc/index.ts\").then((m) => m.gscCommand),\n research: () => import(\"./commands/research/index.ts\").then((m) => m.researchCommand),\n decide: () => import(\"./commands/decide/index.ts\").then((m) => m.decideCommand),\n creatives: () => import(\"./commands/creatives/index.ts\").then((m) => m.creativesCommand),\n flows: () => import(\"./commands/flows/index.ts\").then((m) => m.flowsCommand),\n funnel: () => import(\"./commands/funnel/index.ts\").then((m) => m.funnelCommand),\n images: () => import(\"./commands/images/index.ts\").then((m) => m.imagesCommand),\n studio: () => import(\"./commands/studio/index.ts\").then((m) => m.studioCommand),\n avatars: () => import(\"./commands/avatars/index.ts\").then((m) => m.avatarsCommand),\n landing: () => import(\"./commands/landing/index.ts\").then((m) => m.landingCommand),\n videos: () => import(\"./commands/videos/index.ts\").then((m) => m.videosCommand),\n testimonials: () => import(\"./commands/testimonials/index.ts\").then((m) => m.testimonialsCommand),\n canvas: () => import(\"./commands/canvas/index.ts\").then((m) => m.canvasCommand),\n tags: () => import(\"./commands/tags/index.ts\").then((m) => m.tagsCommand),\n \"tag-manager\": () => import(\"./commands/tag-manager/index.ts\").then((m) => m.tagManagerCommand),\n chats: () => import(\"./commands/chats/index.ts\").then((m) => m.chatsCommand),\n history: () => import(\"./commands/history/index.ts\").then((m) => m.historyCommand),\n credentials: () => import(\"./commands/credentials/index.ts\").then((m) => m.credentialsCommand),\n hubspot: () => import(\"./commands/hubspot/index.ts\").then((m) => m.hubspotCommand),\n activecampaign: () => import(\"./commands/activecampaign/index.ts\").then((m) => m.activecampaignCommand),\n accounts: () => import(\"./commands/accounts/index.ts\").then((m) => m.accountsCommand),\n shopify: () => import(\"./commands/shopify/index.ts\").then((m) => m.shopifyCommand),\n \"winning-ads\": () => import(\"./commands/winning-ads/index.ts\").then((m) => m.winningAdsCommand),\n \"media-sources\": () => import(\"./commands/media-sources/index.ts\").then((m) => m.mediaSourcesCommand),\n posts: () => import(\"./commands/posts/index.ts\").then((m) => m.postsCommand),\n site: () => import(\"./commands/site/index.ts\").then((m) => m.siteCommand),\n mcp: () => import(\"./commands/mcp/index.ts\").then((m) => m.mcpCommand),\n \"setup-links\": () => import(\"./commands/setup-links/index.ts\").then((m) => m.setupLinksCommand),\n organization: () => import(\"./commands/organization/index.ts\").then((m) => m.organizationCommand),\n schema: () => import(\"./commands/schema.ts\").then((m) => m.schemaCommand),\n },\n});\n","import { readFileSync } from \"node:fs\";\n\nfunction packageJsonUrl(): URL {\n return new URL(\"../package.json\", import.meta.url);\n}\n\nfunction parsePackageVersion(raw: string): string {\n const parsed: unknown = JSON.parse(raw);\n if (\n typeof parsed === \"object\" &&\n parsed !== null &&\n \"version\" in parsed &&\n typeof parsed.version === \"string\" &&\n parsed.version.length > 0\n ) {\n return parsed.version;\n }\n throw new Error(\"Invalid CLI package.json: missing version\");\n}\n\nexport function getCliVersion(): string {\n return parsePackageVersion(readFileSync(packageJsonUrl(), \"utf8\"));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,YAAY,eAAe;;;ACS7B,SAAS,wBAAwB,QAAqB,MAAoC;AAC/F,SAAO,GAAG,SAAS,CAAC,QAAQ;AAC1B,QAAI,IAAI,SAAS,SAAS;AACxB,WAAK,CAAC;AACN;AAAA,IACF;AACA,UAAM;AAAA,EACR,CAAC;AACH;;;ACDA,IAAM,OAAO;AAGb,SAAS,gBAAgB,SAAyC;AAChE,QAAM,MAAM,YAAY,SAAS,SAAS;AAC1C,SAAO,QAAQ,QAAQ,IAAI,SAAS;AACtC;AAOO,SAAS,gBACd,MACA,MAC4C;AAC5C,QAAM,MAAM,KAAK,QAAQ,IAAI;AAC7B,QAAM,QAAQ,QAAQ,KAAK,KAAK,SAAS;AACzC,WAAS,QAAQ,GAAG,QAAQ,OAAO,SAAS;AAC1C,UAAM,QAAQ,KAAK,KAAK,KAAK;AAC7B,QAAI;AACJ,QAAI,QAAQ;AACZ,QAAI,MAAM,WAAW,GAAG,IAAI,GAAG,GAAG;AAChC,gBAAU,MAAM,MAAM,KAAK,SAAS,CAAC,EAAE,KAAK;AAAA,IAC9C,W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AK,MAAM,CAAC,CAAC,CAAC;AAMzF,IAAM,UAAU,QAAQ,KAAK,MAAM,CAAC;AACpC,IACE,QAAQ,KAAK,CAAC,QAAQ,QAAQ,YAAY,QAAQ,IAAI,KACrD,QAAQ,WAAW,KAAK,mBAAmB,KAAK,QAAQ,CAAC,KAAK,EAAE,GACjE;AACA,UAAQ,IAAI;AACd,OAAO;AACL,MAAI;AACF,UAAM,WAAW,MAAM,EAAE,QAAQ,CAAC;AAAA,EACpC,SAAS,OAAO;AACd,UAAM,UAAU,qBAAqB,OAAO,MAAM,OAAO;AACzD,QAAI,SAAS;AACX,gBAAU,OAAO;AAAA,IACnB,OAAO;AACL,cAAQ,MAAM,OAAO,IAAI;AAAA,IAC3B;AACA,YAAQ,KAAK,CAAC;AAAA,EAChB;AACF;","names":["FLAG"]}
|
|
1
|
+
{"version":3,"sources":["../src/cli.ts","../src/closed-pipe.ts","../src/company-flag.ts","../src/full-flag.ts","../src/help-output.ts","../src/root-command.ts","../src/version.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { runCommand, runMain } from \"citty\";\nimport { agentProfile, applyAgentProfile } from \"./agent-profile.ts\";\nimport { cacheFlagForCommand, cacheFlagForParser, normalizeCacheFlag } from \"./cache-flag.ts\";\nimport { exitQuietlyOnClosedPipe } from \"./closed-pipe.ts\";\nimport { loadCommands } from \"./command-loading.ts\";\nimport { takeCompanyFlag } from \"./company-flag.ts\";\nimport { installExitRecord, installStreamTaps, logInvocation } from \"./debugLog.ts\";\nimport { setTargetCompany } from \"./env.ts\";\nimport { installFieldMask, takeFieldsFlag } from \"./field-mask.ts\";\nimport { installFullNote, takeFullFlag } from \"./full-flag.ts\";\nimport { printHelpTo } from \"./help-output.ts\";\nimport { writeJson } from \"./output.ts\";\nimport { asksForEnvelopeAlone, envelopeAloneOnStdout, outputFlagForCommand } from \"./output-flag.ts\";\nimport { rootCommand } from \"./root-command.ts\";\nimport { registerCommandTree } from \"./schemas.ts\";\nimport { commandPathOf, parseRefusalEnvelope, refuseStrayPositionals, refuseUnknownFlags } from \"./unknown-flags.ts\";\n\nconst main = rootCommand;\n// The call as typed, before the rewrites below: a refusal's corrected call is built from it.\nconst typedArgv = process.argv.slice(2);\n\nawait loadCommands(main, process.argv.slice(2));\nregisterCommandTree(main);\n\nexitQuietlyOnClosedPipe(process.stdout, (code) => process.exit(code));\n\n// The legacy `--skip-cache` spelling becomes `--no-cache` before anything reads\n// argv — citty parses `process.argv` itself, so the rewrite has to land there.\nprocess.argv = [...process.argv.slice(0, 2), ...normalizeCacheFlag(process.argv.slice(2))];\n\n// When BAKER_DEBUG_LOG is set, mirror all output and record the invocation\n// before any command runs. No-op otherwise.\ninstallStreamTaps();\nlogInvocation(process.argv.slice(2));\ninstallExitRecord();\n\n// `--output json` asks for the envelope, which almost every command prints\n// without declaring the option — translated here so the guard below does not\n// refuse a flag that asked for what the command was about to print.\n// `canvas run` prints progress before its envelope: asked for the envelope, it\n// prints that alone on stdout and the progress on stderr.\nif (asksForEnvelopeAlone(main, process.argv.slice(2))) {\n envelopeAloneOnStdout(process.stdout, process.stderr);\n}\nprocess.argv = [...process.argv.slice(0, 2), ...outputFlagForCommand(main, process.argv.slice(2))];\n\n// `--fields` narrows the envelope on every command that prints one; where the\n// command does not declare it, it is applied to what the command prints.\nconst fieldsFlag = takeFieldsFlag(main, process.argv.slice(2));\nif (fieldsFlag.fields) {\n process.argv = [...process.argv.slice(0, 2), ...fieldsFlag.argv];\n installFieldMask(fieldsFlag.fields, commandPathOf(main, fieldsFlag.argv));\n}\n\n// `--full` on a command with no shorter view asks for what it already prints:\n// taken off here, and said back in the envelope's hints.\nconst fullFlag = takeFullFlag(main, process.argv.slice(2));\nif (fullFlag.taken) {\n process.argv = [...process.argv.slice(0, 2), ...fullFlag.argv];\n installFullNote(commandPathOf(main, fullFlag.argv));\n}\n\n// `--company <id>` names the company a read is about (the organization\n// workspace's Reports read every company of its organization). It travels as a\n// header on every request, so it is taken off here, before the guard.\nconst companyFlag = takeCompanyFlag(main, process.argv.slice(2));\nif (companyFlag.company) {\n process.argv = [...process.argv.slice(0, 2), ...companyFlag.argv];\n setTargetCompany(companyFlag.company);\n}\n\n// What this agent is offered: the organization workspace's agent only reads\n// (`agent-profile.ts`). Here, after `--company` is taken off, so the command it\n// judges is the one typed.\nconst profileRefusal = await applyAgentProfile(main, agentProfile(), process.argv.slice(2));\nif (profileRefusal) {\n writeJson({ ok: false, error: { code: \"FORBIDDEN\", message: profileRefusal } });\n process.exit(1);\n}\n\n// A report's Refresh appends `--no-cache` to every read; a command with no cache\n// already reads fresh, so it is dropped there rather than refused.\nprocess.argv = [...process.argv.slice(0, 2), ...cacheFlagForCommand(main, process.argv.slice(2))];\n\nrefuseUnknownFlags(main, process.argv.slice(2), typedArgv);\nrefuseStrayPositionals(main, process.argv.slice(2));\n\n// Last, so the guard above quotes back the spelling the caller typed: citty\n// resolves a bare `--no-cache` to `cache: false` instead of filling the declared\n// `no-cache` arg, and only the camelCase spelling survives its parser intact.\nprocess.argv = [...process.argv.slice(0, 2), ...cacheFlagForParser(process.argv.slice(2))];\n\n// `--help` and `--version` stay citty's own, the help rendered for an agent\n// reading it (`help-output.ts`). Everything else runs here rather\n// than through `runMain`, whose refusal of a missing argument or an unknown\n// subcommand is usage text on stderr and nothing on stdout: that becomes the\n// envelope every other failure prints.\nconst rawArgs = process.argv.slice(2);\nif (\n rawArgs.some((arg) => arg === \"--help\" || arg === \"-h\") ||\n (rawArgs.length === 1 && /^(--version|-v)$/.test(rawArgs[0] ?? \"\"))\n) {\n runMain(main, { showUsage: printHelpTo(process.stdout) });\n} else {\n try {\n await runCommand(main, { rawArgs });\n } catch (error) {\n const refusal = parseRefusalEnvelope(error, main, rawArgs);\n if (refusal) {\n writeJson(refusal);\n } else {\n console.error(error, \"\\n\");\n }\n process.exit(1);\n }\n}\n","interface ErrorSource {\n on(event: \"error\", listener: (err: NodeJS.ErrnoException) => void): unknown;\n}\n\n/**\n * `baker … | head` closes the pipe once it has its lines. Node reports the next\n * write as an unhandled EPIPE and prints a stack trace, which reads as a crash of\n * a command that did its job. A closed reader wants nothing more, so exit cleanly,\n * as Unix tools do; any other write error still surfaces.\n */\nexport function exitQuietlyOnClosedPipe(stream: ErrorSource, exit: (code: number) => void): void {\n stream.on(\"error\", (err) => {\n if (err.code === \"EPIPE\") {\n exit(0);\n return;\n }\n throw err;\n });\n}\n","/**\n * `--company <id>` on every command: the company the call reads, for the\n * organization workspace, whose Reports read every company of its organization.\n *\n * It is a header, not an argument of each command (`x-baker-company`, sent by\n * `client.ts`), so every read the CLI has works across companies unchanged, and\n * the backend alone decides what it opens: reads of a company of the same\n * organization, for the organization workspace's credential, and nothing else.\n *\n * A command that declares `--company` itself keeps its own meaning — on\n * `avatars research` it is the person's employer. A positional named `company`\n * (`accounts company acme.com`) is not a flag, so the flag stays the header.\n */\n\nimport { declaredArg } from \"./output-flag.ts\";\nimport { commandFor, type IntrospectableCommand } from \"./unknown-flags.ts\";\n\nconst FLAG = \"--company\";\n\n/** The command reads `--company` itself; a positional of that name is no flag, so it is not. */\nfunction ownsCompanyFlag(command: IntrospectableCommand): boolean {\n const own = declaredArg(command, \"company\");\n return own !== null && own.type !== \"positional\";\n}\n\n/**\n * `argv` without `--company`, and the company it named, when the addressed\n * command does not declare the option itself. Otherwise `argv` is returned\n * untouched with `company: null`, for the command or the guard to judge.\n */\nexport function takeCompanyFlag(\n root: IntrospectableCommand,\n argv: string[],\n): { argv: string[]; company: string | null } {\n const end = argv.indexOf(\"--\");\n const limit = end === -1 ? argv.length : end;\n for (let index = 0; index < limit; index++) {\n const token = argv[index] ?? \"\";\n let company: string | undefined;\n let width = 1;\n if (token.startsWith(`${FLAG}=`)) {\n company = token.slice(FLAG.length + 1).trim();\n } else if (token === FLAG) {\n const value = argv[index + 1];\n if (value === undefined || index + 1 >= limit || value.startsWith(\"-\")) {\n return { argv, company: null };\n }\n company = value.trim();\n width = 2;\n } else {\n continue;\n }\n const command = commandFor(root, argv);\n if (!company || !command || ownsCompanyFlag(command)) {\n return { argv, company: null };\n }\n return { argv: [...argv.slice(0, index), ...argv.slice(index + width)], company };\n }\n return { argv, company: null };\n}\n","/**\n * `--full` on every command that prints the JSON envelope.\n *\n * The conventions doc tells the agent that reads are compact and `--full` gives\n * the complete record, and the families that have a compact view declare it\n * (`ads meta ads|adsets|campaigns`, `images`, `winning-ads`, …). Everywhere\n * else the unknown-option guard (`unknown-flags.ts`) refused it, although those\n * commands already print everything they return: `ads meta creatives` loops,\n * `actions get`, `posts list` and `tags list` each lost calls and a retry to a\n * flag that asked for what the command was about to print (BAKER-1412, -182).\n *\n * So a command that does not declare `--full` has it taken off the command line\n * here, and every envelope it prints says so in `hints` — a dropped flag the\n * caller cannot see would read as \"this is the full record\" on a list whose\n * rows are summaries. A command that declares `--full` keeps its own meaning;\n * one that prints no envelope is left to the guard, as with `--output json`.\n */\n\nimport { declaredArg, printsDataEnvelope } from \"./output-flag.ts\";\nimport { parsePrintedEnvelope, reprint, rewriteWrites, withHint } from \"./printed-envelope.ts\";\nimport { commandFor, commandPathOf, type IntrospectableCommand } from \"./unknown-flags.ts\";\n\nconst FLAG = \"--full\";\n\n/**\n * The command a call to `command` runs: a group with a `default` hands the call,\n * flags and all, to that subcommand (`creatives rules` runs `list`).\n */\nfunction commandThatRuns(command: IntrospectableCommand): IntrospectableCommand {\n const name = (command as { default?: unknown }).default;\n const subCommands = command.subCommands;\n const next =\n typeof name === \"string\" && subCommands && typeof subCommands === \"object\"\n ? (subCommands as Record<string, unknown>)[name]\n : undefined;\n return next && typeof next === \"object\" ? commandThatRuns(next as IntrospectableCommand) : command;\n}\n\n/**\n * `argv` without `--full`, and whether it was there, when the addressed command\n * prints the envelope and does not declare the option itself. Otherwise `argv`\n * is returned untouched, for the command or the guard to judge.\n */\nexport function takeFullFlag(root: IntrospectableCommand, argv: string[]): { argv: string[]; taken: boolean } {\n const end = argv.indexOf(\"--\");\n const limit = end === -1 ? argv.length : end;\n const taken = argv.flatMap((token, index) => (index < limit && token === FLAG ? [index] : []));\n if (taken.length === 0) {\n return { argv, taken: false };\n }\n const command = commandFor(root, argv);\n if (!command || declaredArg(commandThatRuns(command), \"full\") || !printsDataEnvelope(commandPathOf(root, argv))) {\n return { argv, taken: false };\n }\n return { argv: argv.filter((_, index) => !taken.includes(index)), taken: true };\n}\n\nfunction fullHint(commandPath: string): string {\n return (\n `--full changes nothing on \\`baker ${commandPath}\\`: it has no shorter view, so this is everything it returns. ` +\n \"Where its rows are summaries, read one record whole with the family's get or show command. Drop --full here.\"\n );\n}\n\n/**\n * The text a command printed, with a success envelope's `hints` saying `--full`\n * was taken and changed nothing; an error or a dry run comes back as printed,\n * and anything that is not an envelope (a readable view) is null.\n */\nexport function noteFullOnPrinted(text: string, commandPath: string): string | null {\n const envelope = parsePrintedEnvelope(text);\n if (envelope === null) {\n return null;\n }\n if (envelope.ok !== true || \"dryRun\" in envelope) {\n return text;\n }\n return reprint(text, withHint(envelope, fullHint(commandPath)));\n}\n\n/**\n * The note on the CLI's own stdout, and on stderr when the command printed no\n * envelope to carry it — a readable view such as `tags list` without `--json`.\n */\nexport function installFullNote(commandPath: string): void {\n const note = rewriteWrites(process.stdout, (text) => noteFullOnPrinted(text, commandPath));\n process.on(\"exit\", () => {\n if (!note.sawEnvelope()) {\n process.stderr.write(`${fullHint(commandPath)}\\n`);\n }\n });\n}\n","/**\n * What `--help` prints, for an agent that reads every byte of it.\n *\n * citty's renderer pads each table column to its widest cell, so one\n * paragraph-long description pads every other row of its table with thousands\n * of spaces (`baker analytics --help` printed 163 KB, 80% of it padding). And it\n * lists each subcommand with its whole description, so a family's help repeats\n * every command's own help. Here a COMMANDS row carries the first sentence (the\n * rest is one `--help` away), and no line ends in padding.\n */\n\nimport { type ArgsDef, type CommandDef, type CommandMeta, type Resolvable, renderUsage } from \"citty\";\n\nconst sentences = new Intl.Segmenter(\"en\", { granularity: \"sentence\" });\n/** ICU's sentence rules end a sentence at these; none of them ends one here. */\nconst abbreviation = /\\b(?:e\\.g|i\\.e|vs|etc)\\.$/i;\n\nfunction resolved<T>(value: Resolvable<T>): Promise<T> {\n return Promise.resolve(typeof value === \"function\" ? (value as () => T | Promise<T>)() : value);\n}\n\n/**\n * The description's first sentence. A line wrapped by hand continues on the\n * next one; a blank line, an indented example or a list item ends the prose.\n */\nfunction firstSentence(description: string): string {\n const [first = \"\", ...rest] = description.trim().split(\"\\n\");\n let prose = first.trim();\n for (const line of rest) {\n if (/[.:!?]$/.test(prose) || line.trim() === \"\" || /^(\\s|[-*•])/.test(line)) break;\n prose += ` ${line.trim()}`;\n }\n let sentence = \"\";\n for (const { segment } of sentences.segment(prose)) {\n sentence += segment;\n if (!abbreviation.test(sentence.trim())) break;\n }\n return (sentence || prose).trim();\n}\n\nasync function summarized(cmd: CommandDef<ArgsDef>): Promise<CommandDef<ArgsDef>> {\n if (!cmd.subCommands) return cmd;\n const subCommands = await resolved(cmd.subCommands);\n const listed: Record<string, CommandDef<ArgsDef>> = {};\n for (const [name, sub] of Object.entries(subCommands)) {\n const command: CommandDef<ArgsDef> = await resolved(sub);\n const meta: CommandMeta = (command.meta ? await resolved(command.meta) : undefined) ?? {};\n listed[name] = { meta: meta.description ? { ...meta, description: firstSentence(meta.description) } : meta };\n }\n return { ...cmd, subCommands: listed };\n}\n\nexport async function renderHelp<T extends ArgsDef>(cmd: CommandDef<T>, parent?: CommandDef<T>): Promise<string> {\n const usage = await renderUsage(await summarized(cmd as CommandDef<ArgsDef>), parent as CommandDef<ArgsDef>);\n return usage\n .split(\"\\n\")\n .map((line) => line.trimEnd())\n .join(\"\\n\");\n}\n\ntype HelpSink = { write(chunk: string, done: () => void): unknown };\n\n/**\n * citty's `runMain` exits as soon as the help is printed. Piped, stdout writes\n * asynchronously, so an exit then cut the help at whatever had been flushed\n * (`baker --help | wc -c` read 65,536). This resolves once the write is done.\n */\nexport function printHelpTo(stdout: HelpSink) {\n return async <T extends ArgsDef>(cmd: CommandDef<T>, parent?: CommandDef<T>): Promise<void> => {\n const help = await renderHelp(cmd, parent);\n await new Promise<void>((done) => stdout.write(`${help}\\n`, done));\n };\n}\n","import { defineCommand } from \"citty\";\nimport { getCliVersion } from \"./version.ts\";\n\n// Every command is declared lazily and only the one being run is loaded\n// (`command-loading.ts`): loading all of them made each `baker` process hold\n// ~135 MB of heap while it waited on one request.\nexport const rootCommand = defineCommand({\n meta: {\n name: \"baker\",\n version: getCliVersion(),\n description: `AI-agent CLI for finding and managing images, videos, social posts, avatars, testimonials, action items, scheduled agents, marketing tags, Tag Manager containers, account history, credentials, and ad platform data in Baker.\n\nAuth: Set BAKER_API_KEY (starts with bk_) and BAKER_API_URL environment variables.\nChat: Set BAKER_CHAT_ID for action and scheduled-agent commands that stage changes against a chat.\nOutput: All commands return JSON envelopes: { ok: true, data: ... } or { ok: false, error: { code, message } }.\nFields: --fields a,b,c keeps only those keys of each record in data, on every command that prints the envelope.\nFull: --full returns the complete record where a command has a compact view; elsewhere it is accepted and changes nothing (a hint says so), except on 'canvas run' and 'canvas rerun', which refuse it.\nCompany: --company <id> runs a read against another company of the organization (organization workspace only; ids from 'baker organization companies').\nFormats: --output json works on every command that prints the envelope. --output md|files only where 'baker schema <command>' lists output. (The research commands additionally accept csv and jsonl.)\nIntrospection: Run 'baker schema <command>' to inspect argument schemas.`,\n },\n subCommands: {\n capabilities: () => import(\"./commands/capabilities/index.ts\").then((m) => m.capabilitiesCommand),\n actions: () => import(\"./commands/actions/index.ts\").then((m) => m.actionsCommand),\n \"scheduled-agents\": () => import(\"./commands/scheduled-agents/index.ts\").then((m) => m.scheduledAgentsCommand),\n ads: () => import(\"./commands/ads/index.ts\").then((m) => m.adsCommand),\n brand: () => import(\"./commands/brand/index.ts\").then((m) => m.brandCommand),\n analytics: () => import(\"./commands/analytics/index.ts\").then((m) => m.analyticsCommand),\n experiment: () => import(\"./commands/experiment/index.ts\").then((m) => m.experimentCommand),\n ga4: () => import(\"./commands/ga4/index.ts\").then((m) => m.ga4Command),\n gsc: () => import(\"./commands/gsc/index.ts\").then((m) => m.gscCommand),\n research: () => import(\"./commands/research/index.ts\").then((m) => m.researchCommand),\n decide: () => import(\"./commands/decide/index.ts\").then((m) => m.decideCommand),\n creatives: () => import(\"./commands/creatives/index.ts\").then((m) => m.creativesCommand),\n flows: () => import(\"./commands/flows/index.ts\").then((m) => m.flowsCommand),\n funnel: () => import(\"./commands/funnel/index.ts\").then((m) => m.funnelCommand),\n images: () => import(\"./commands/images/index.ts\").then((m) => m.imagesCommand),\n studio: () => import(\"./commands/studio/index.ts\").then((m) => m.studioCommand),\n avatars: () => import(\"./commands/avatars/index.ts\").then((m) => m.avatarsCommand),\n landing: () => import(\"./commands/landing/index.ts\").then((m) => m.landingCommand),\n videos: () => import(\"./commands/videos/index.ts\").then((m) => m.videosCommand),\n testimonials: () => import(\"./commands/testimonials/index.ts\").then((m) => m.testimonialsCommand),\n canvas: () => import(\"./commands/canvas/index.ts\").then((m) => m.canvasCommand),\n tags: () => import(\"./commands/tags/index.ts\").then((m) => m.tagsCommand),\n \"tag-manager\": () => import(\"./commands/tag-manager/index.ts\").then((m) => m.tagManagerCommand),\n chats: () => import(\"./commands/chats/index.ts\").then((m) => m.chatsCommand),\n history: () => import(\"./commands/history/index.ts\").then((m) => m.historyCommand),\n credentials: () => import(\"./commands/credentials/index.ts\").then((m) => m.credentialsCommand),\n hubspot: () => import(\"./commands/hubspot/index.ts\").then((m) => m.hubspotCommand),\n activecampaign: () => import(\"./commands/activecampaign/index.ts\").then((m) => m.activecampaignCommand),\n accounts: () => import(\"./commands/accounts/index.ts\").then((m) => m.accountsCommand),\n shopify: () => import(\"./commands/shopify/index.ts\").then((m) => m.shopifyCommand),\n \"winning-ads\": () => import(\"./commands/winning-ads/index.ts\").then((m) => m.winningAdsCommand),\n \"media-sources\": () => import(\"./commands/media-sources/index.ts\").then((m) => m.mediaSourcesCommand),\n posts: () => import(\"./commands/posts/index.ts\").then((m) => m.postsCommand),\n site: () => import(\"./commands/site/index.ts\").then((m) => m.siteCommand),\n \"lead-routes\": () => import(\"./commands/lead-routes/index.ts\").then((m) => m.leadRoutesCommand),\n mcp: () => import(\"./commands/mcp/index.ts\").then((m) => m.mcpCommand),\n \"setup-links\": () => import(\"./commands/setup-links/index.ts\").then((m) => m.setupLinksCommand),\n organization: () => import(\"./commands/organization/index.ts\").then((m) => m.organizationCommand),\n schema: () => import(\"./commands/schema.ts\").then((m) => m.schemaCommand),\n },\n});\n","import { readFileSync } from \"node:fs\";\n\nfunction packageJsonUrl(): URL {\n return new URL(\"../package.json\", import.meta.url);\n}\n\nfunction parsePackageVersion(raw: string): string {\n const parsed: unknown = JSON.parse(raw);\n if (\n typeof parsed === \"object\" &&\n parsed !== null &&\n \"version\" in parsed &&\n typeof parsed.version === \"string\" &&\n parsed.version.length > 0\n ) {\n return parsed.version;\n }\n throw new Error(\"Invalid CLI package.json: missing version\");\n}\n\nexport function getCliVersion(): string {\n return parsePackageVersion(readFileSync(packageJsonUrl(), \"utf8\"));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,YAAY,eAAe;;;ACS7B,SAAS,wBAAwB,QAAqB,MAAoC;AAC/F,SAAO,GAAG,SAAS,CAAC,QAAQ;AAC1B,QAAI,IAAI,SAAS,SAAS;AACxB,WAAK,CAAC;AACN;AAAA,IACF;AACA,UAAM;AAAA,EACR,CAAC;AACH;;;ACDA,IAAM,OAAO;AAGb,SAAS,gBAAgB,SAAyC;AAChE,QAAM,MAAM,YAAY,SAAS,SAAS;AAC1C,SAAO,QAAQ,QAAQ,IAAI,SAAS;AACtC;AAOO,SAAS,gBACd,MACA,MAC4C;AAC5C,QAAM,MAAM,KAAK,QAAQ,IAAI;AAC7B,QAAM,QAAQ,QAAQ,KAAK,KAAK,SAAS;AACzC,WAAS,QAAQ,GAAG,QAAQ,OAAO,SAAS;AAC1C,UAAM,QAAQ,KAAK,KAAK,KAAK;AAC7B,QAAI;AACJ,QAAI,QAAQ;AACZ,QAAI,MAA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5AEO.js";
|
|
17
|
+
import "./chunk-BTVK3CU7.js";
|
|
18
18
|
import "./chunk-HVJJEQDQ.js";
|
|
19
19
|
import "./chunk-QV6AST5T.js";
|
|
20
20
|
import "./chunk-WCU362Z6.js";
|
|
@@ -132,4 +132,4 @@ var createCommand = defineCommand({
|
|
|
132
132
|
export {
|
|
133
133
|
createCommand
|
|
134
134
|
};
|
|
135
|
-
//# sourceMappingURL=create-
|
|
135
|
+
//# sourceMappingURL=create-LPD3JAIW.js.map
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
failValidation,
|
|
4
4
|
validateScheduledAgentRef,
|
|
5
5
|
writeOk
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-UXZZ5AEO.js";
|
|
7
|
+
import "./chunk-BTVK3CU7.js";
|
|
8
8
|
import "./chunk-HVJJEQDQ.js";
|
|
9
9
|
import "./chunk-QV6AST5T.js";
|
|
10
10
|
import "./chunk-WCU362Z6.js";
|
|
@@ -64,4 +64,4 @@ var deleteCommand = defineCommand({
|
|
|
64
64
|
export {
|
|
65
65
|
deleteCommand
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=delete-
|
|
67
|
+
//# sourceMappingURL=delete-FK3A36WP.js.map
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-LAL4PKNJ.js";
|
|
5
5
|
import {
|
|
6
6
|
flowEventKeys
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CKTVRR3D.js";
|
|
8
8
|
import {
|
|
9
9
|
flowDataPath,
|
|
10
10
|
listFlowSlugs
|
|
11
11
|
} from "./chunk-W7C7HZFJ.js";
|
|
12
12
|
import {
|
|
13
13
|
parseEventKey
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PILLZPNC.js";
|
|
15
15
|
import "./chunk-NKQWDEB7.js";
|
|
16
16
|
import {
|
|
17
17
|
writeJsonEnvelope
|
|
@@ -394,4 +394,4 @@ function workspaceForms() {
|
|
|
394
394
|
export {
|
|
395
395
|
funnelCommand
|
|
396
396
|
};
|
|
397
|
-
//# sourceMappingURL=funnel-
|
|
397
|
+
//# sourceMappingURL=funnel-XIZROHV7.js.map
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
failValidation,
|
|
4
4
|
isTempScheduledAgentId,
|
|
5
5
|
validateScheduledAgentRef
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-UXZZ5AEO.js";
|
|
7
|
+
import "./chunk-BTVK3CU7.js";
|
|
8
8
|
import {
|
|
9
9
|
CHAT_READ_ARG
|
|
10
10
|
} from "./chunk-PFBQERWX.js";
|
|
@@ -79,4 +79,4 @@ var getCommand = defineCommand({
|
|
|
79
79
|
export {
|
|
80
80
|
getCommand
|
|
81
81
|
};
|
|
82
|
-
//# sourceMappingURL=get-
|
|
82
|
+
//# sourceMappingURL=get-25KJJTO6.js.map
|
|
@@ -3248,7 +3248,7 @@ Full guide: __tooling__/docs/tools/baker/ads-google.md`
|
|
|
3248
3248
|
subCommands: {
|
|
3249
3249
|
accounts: () => import("./accounts-MTNBMXHD.js").then((m) => m.accountsCommand),
|
|
3250
3250
|
currency: () => import("./currency-PTOI5SPU.js").then((m) => m.currencyCommand),
|
|
3251
|
-
"url-options": () => import("./url-options-
|
|
3251
|
+
"url-options": () => import("./url-options-DJZV3ADK.js").then((m) => m.urlOptionsCommand),
|
|
3252
3252
|
changes: () => import("./changes-3COSIJLU.js").then((m) => m.changesCommand),
|
|
3253
3253
|
invoices: () => import("./account-reads-FRFI6OHK.js").then((m) => m.invoicesCommand),
|
|
3254
3254
|
"identity-verification": () => import("./account-reads-FRFI6OHK.js").then((m) => m.identityVerificationCommand),
|
|
@@ -3264,4 +3264,4 @@ Full guide: __tooling__/docs/tools/baker/ads-google.md`
|
|
|
3264
3264
|
export {
|
|
3265
3265
|
googleCommand
|
|
3266
3266
|
};
|
|
3267
|
-
//# sourceMappingURL=google-
|
|
3267
|
+
//# sourceMappingURL=google-5JV7OMOH.js.map
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
failApi,
|
|
3
3
|
failValidation,
|
|
4
4
|
validateScheduledAgentRef
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-UXZZ5AEO.js";
|
|
6
|
+
import "./chunk-BTVK3CU7.js";
|
|
7
7
|
import "./chunk-HVJJEQDQ.js";
|
|
8
8
|
import "./chunk-QV6AST5T.js";
|
|
9
9
|
import "./chunk-WCU362Z6.js";
|
|
@@ -99,4 +99,4 @@ function historyOnly(raw) {
|
|
|
99
99
|
export {
|
|
100
100
|
historyCommand
|
|
101
101
|
};
|
|
102
|
-
//# sourceMappingURL=history-
|
|
102
|
+
//# sourceMappingURL=history-DTQVPVFA.js.map
|