@aisac/cli 0.4.0-beta.14 → 0.4.0-beta.17

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.
@@ -185,10 +185,14 @@ export function hookIds() {
185
185
  * @property {Readonly<Record<CatalogLocale, string>>} [loginNote] Why and how this login differs.
186
186
  * @property {Readonly<Record<CatalogLocale, string>>} description
187
187
  * @property {Readonly<Record<CatalogLocale, string>>} reaches What the server can reach (FR7).
188
- * @property {readonly string[]} [blockedTools] Tools that spend money, removed in both
189
- * clients whatever the user's permission mode is (FR7.2). Exact names.
188
+ * @property {readonly string[]} [blockedTools] Tools removed in both clients whatever the
189
+ * user's permission mode is (FR7.2): tools that spend money, or that would take a
190
+ * credential as an argument. Exact names.
190
191
  * @property {readonly string[]} [blockedToolPrefixes] Name prefixes removed in Claude Code
191
192
  * only, through a glob deny rule; Codex documents exact names only (FR7.2).
193
+ * @property {Readonly<Record<CatalogLocale, string>>} [blockedNote] Why the tools are
194
+ * blocked, when the reason is not spending; `aisac mcp info` prints it in place of the
195
+ * spending sentence (FR7.2 amendment of 2026-11-09).
192
196
  */
193
197
 
194
198
  /** Session name of a catalog server, so it never collides with the user's own. */
@@ -196,8 +200,10 @@ export const MCP_SERVER_PREFIX = 'aisac-';
196
200
  const PLAYWRIGHT_PACKAGE = '@playwright/mcp@0.0.83';
197
201
 
198
202
  /**
199
- * MCP catalog v1 (spec FR7; the owner chose the list on 2026-11-03). The review of
200
- * each entry (source, transport, login, tools, reach) is recorded in the spec.
203
+ * MCP catalog v1 (spec FR7; the owner chose the five vendor servers on 2026-11-03)
204
+ * plus `creatives`, the AISAC Creatives Studio (owner, 2026-11-09; spec
205
+ * aisac-engineering-reels FR8, wave E7c). The review of each entry (source,
206
+ * transport, login, tools, reach) is recorded in the extensions spec (FR7.1).
201
207
  * @type {readonly McpEntry[]}
202
208
  */
203
209
  export const MCP_CATALOG = Object.freeze([
@@ -315,6 +321,45 @@ export const MCP_CATALOG = Object.freeze([
315
321
  'Só documentação pública de bibliotecas. O que o agente pergunta (nomes de bibliotecas e dúvidas) vai para a Upstash, então não coloque segredos nem código privado nessas perguntas. Funciona sem login, com limites de uso menores.',
316
322
  },
317
323
  },
324
+ {
325
+ id: 'creatives',
326
+ defaultOn: false,
327
+ clients: ['claude', 'codex'],
328
+ publisher: 'AISAC',
329
+ source: 'https://studio.aisac.agency/',
330
+ // The URL is the OAuth resource the Studio itself publishes in its
331
+ // protected-resource metadata (read 2026-11-09, reels spec M3). The Studio
332
+ // web app lives at studio.aisac.agency, but that domain is the browser origin
333
+ // only: the MCP issuer, audience and resource stay on this host, so a token
334
+ // obtained for this URL is the one the server accepts.
335
+ transport: { type: 'http', url: 'https://mcp-creatives.vercel.app/mcp' },
336
+ login: 'host-oauth',
337
+ // The key-management tools take or delete a provider key by name. A key typed
338
+ // into a tool call would stay in the session transcript, so keys are managed
339
+ // only on the Studio keys page (reels spec D2, FR8). The generate tools spend
340
+ // on the keys the user registered there: not blocked (FR7.2 amendment).
341
+ blockedTools: ['creatives_register_key', 'creatives_revoke_key'],
342
+ blockedNote: {
343
+ en: 'Provider keys are managed only on the Studio keys page (https://studio.aisac.agency/?studio=keys): a key typed into a tool call would stay in the session transcript.',
344
+ 'pt-BR':
345
+ 'As chaves dos provedores são gerenciadas só na página de chaves do Studio (https://studio.aisac.agency/?studio=keys): uma chave digitada numa chamada de ferramenta ficaria no transcript da sessão.',
346
+ },
347
+ loginNote: {
348
+ en: 'The Studio login needs an account with access (it comes with the AISAC Engineering purchase). Register your provider keys on the Studio keys page before the first generation; the server never takes a key as an argument.',
349
+ 'pt-BR':
350
+ 'O login do Studio exige uma conta com acesso (vem com a compra do AISAC Engineering). Registre as chaves dos seus provedores na página de chaves do Studio antes da primeira geração; o servidor nunca recebe uma chave como argumento.',
351
+ },
352
+ description: {
353
+ en: 'The AISAC Creatives Studio: images, narration and video generated with your own provider keys, plus voices, influencer profiles and reel productions.',
354
+ 'pt-BR':
355
+ 'O AISAC Creatives Studio: imagens, narração e vídeo gerados com as suas próprias chaves de provedor, mais vozes, perfis de influencer e produções de reels.',
356
+ },
357
+ reaches: {
358
+ en: 'Your Studio account only: the generations, assets, voice presets, influencer profiles, Motion projects and productions you own, and the fingerprints of the provider keys you registered (never the keys). Image, audio and video generation and the Motion stages spend on your own provider keys, within the limits the Studio enforces; a Studio production spends only after an approval in the Studio web app or in the Mothership. Registering and revoking keys is blocked by AISAC.',
359
+ 'pt-BR':
360
+ 'Só a sua conta do Studio: as gerações, assets, presets de voz, perfis de influencer, projetos Motion e produções que são seus, e as impressões digitais das chaves de provedor que você registrou (nunca as chaves). Geração de imagem, áudio e vídeo e as etapas do Motion gastam das suas próprias chaves de provedor, dentro dos limites que o Studio impõe; uma produção do Studio só gasta depois de uma aprovação no app web do Studio ou no Mothership. Registrar e revogar chaves é bloqueado pela AISAC.',
361
+ },
362
+ },
318
363
  ]);
319
364
 
320
365
  /** @param {string} id @returns {McpEntry | undefined} */
@@ -273,11 +273,13 @@ export function serverInfo(entry, locale, item) {
273
273
  note: 'Hosted by the vendor: its tools can change without a client release, so keep the confirmation of each call on.',
274
274
  },
275
275
  reaches: entry.reaches[locale],
276
- // Tools that spend money, removed whatever the permission mode is (FR7.2).
276
+ // Tools removed whatever the permission mode is (FR7.2): they spend money, or
277
+ // the entry's blockedNote says why.
277
278
  blockedTools: [...(entry.blockedTools ?? [])],
278
279
  ...(entry.blockedToolPrefixes === undefined
279
280
  ? {}
280
281
  : { blockedToolPrefixes: [...entry.blockedToolPrefixes] }),
282
+ ...(entry.blockedNote === undefined ? {} : { blockedNote: entry.blockedNote[locale] }),
281
283
  login,
282
284
  ...(variable === undefined ? {} : { tokenVariable: variable }),
283
285
  ...(entry.loginNote === undefined ? {} : { loginNote: entry.loginNote[locale] }),
@@ -304,8 +306,12 @@ function printInfo(info) {
304
306
  prefixes.length === 0
305
307
  ? ''
306
308
  : ` In Claude Code, also any tool whose name starts with ${prefixes.join(', ')}.`;
309
+ const reason =
310
+ info.blockedNote === undefined
311
+ ? `Blocked by AISAC, because they spend money: ${info.blockedTools.join(', ')}.${claudeOnly}`
312
+ : `Blocked by AISAC: ${info.blockedTools.join(', ')}.${claudeOnly} ${info.blockedNote}`;
307
313
  console.log(
308
- `Blocked by AISAC, because they spend money: ${info.blockedTools.join(', ')}.${claudeOnly} They stay blocked even if you allow every tool or skip permission prompts.`,
314
+ `${reason} They stay blocked even if you allow every tool or skip permission prompts.`,
309
315
  );
310
316
  }
311
317
  if (info.loginNote !== undefined) console.log(`Login: ${info.loginNote}`);
package/dist/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@aisac/cli",
3
- "version": "0.4.0-beta.14",
3
+ "version": "0.4.0-beta.17",
4
4
  "type": "module"
5
5
  }
package/dist/platform.mjs CHANGED
@@ -76,7 +76,12 @@ export function captureLockPlatformCheck(
76
76
  return { ok: true };
77
77
  }
78
78
 
79
- /** @param {string} name @param {NodeJS.ProcessEnv} [environment] */
79
+ /**
80
+ * An executable by name, from the absolute directories of PATH only. An empty or relative
81
+ * entry (`.`, `node_modules/.bin`) would resolve against the working directory, often the
82
+ * user's project, and turn a file planted there into a trusted binary (scan review F7).
83
+ * @param {string} name @param {NodeJS.ProcessEnv} [environment]
84
+ */
80
85
  export function resolveNative(name, environment = process.env) {
81
86
  if (!/^[A-Za-z0-9._+-]+$/u.test(name)) return null;
82
87
  const pathValue = environment.PATH ?? '';
@@ -84,7 +89,7 @@ export function resolveNative(name, environment = process.env) {
84
89
  ? [name]
85
90
  : pathValue
86
91
  .split(delimiter)
87
- .filter((directory) => directory.length > 0)
92
+ .filter((directory) => isAbsolute(directory))
88
93
  .map((directory) => join(directory, name));
89
94
  for (const candidate of candidates) {
90
95
  try {
@@ -123,10 +128,10 @@ export function nativeVersion(executable, environment = process.env) {
123
128
  export function isTestedNativeVersion(client, version) {
124
129
  const value = version.trim();
125
130
  if (client === 'claude')
126
- return /^(?:(?:claude(?:\s+code)?)\s+)?2\.1\.(?:294|295|296|299|300|301|302|303)(?:\s+\(Claude\s+Code\))?$/iu.test(
131
+ return /^(?:(?:claude(?:\s+code)?)\s+)?2\.1\.(?:294|295|296|299|300|301|302|303|311|322)(?:\s+\(Claude\s+Code\))?$/iu.test(
127
132
  value,
128
133
  );
129
- return /^(?:codex(?:-cli)?\s+)?0\.16(?:1\.0|2\.0|2\.1|3\.0|4\.0|6\.0)$/iu.test(value);
134
+ return /^(?:codex(?:-cli)?\s+)?0\.16(?:1\.0|2\.0|2\.1|3\.0|4\.0|6\.0|7\.1)$/iu.test(value);
130
135
  }
131
136
 
132
137
  const TESTED_NATIVE_VERSIONS = Object.freeze({
@@ -139,8 +144,18 @@ const TESTED_NATIVE_VERSIONS = Object.freeze({
139
144
  '2.1.301',
140
145
  '2.1.302',
141
146
  '2.1.303',
147
+ '2.1.311',
148
+ '2.1.322',
149
+ ]),
150
+ codex: Object.freeze([
151
+ '0.161.0',
152
+ '0.162.0',
153
+ '0.162.1',
154
+ '0.163.0',
155
+ '0.164.0',
156
+ '0.166.0',
157
+ '0.167.1',
142
158
  ]),
143
- codex: Object.freeze(['0.161.0', '0.162.0', '0.162.1', '0.163.0', '0.164.0', '0.166.0']),
144
159
  });
145
160
 
146
161
  /** @param {'claude'|'codex'} client @param {string} version */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aisac/cli",
3
- "version": "0.4.0-beta.14",
3
+ "version": "0.4.0-beta.17",
4
4
  "private": false,
5
5
  "description": "AISAC client for Claude Code and Codex: AI Brain memory, context management and AISAC Engineering",
6
6
  "license": "UNLICENSED",