@basaltkit/ai 1.5.0 → 1.6.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.js CHANGED
@@ -6,7 +6,7 @@ import { applyFixEdits, fixableIds, planFix, renderFixes } from './doctor/fixes.
6
6
  import { createProvider, providerEnvFromProcess } from './provider/factory.js';
7
7
  import { createPlan } from './plan/plan.js';
8
8
  import { renderPlan } from './plan/render.js';
9
- import { runMake } from './make/make.js';
9
+ import { packageSteps, runMake } from './make/make.js';
10
10
  import { renderMakeResult } from './make/render.js';
11
11
  import { runPrismaPush } from './make/schema.js';
12
12
  import { verifyProject } from './make/verify.js';
@@ -39,7 +39,7 @@ export function aiCommands(options = {}) {
39
39
  io.log('');
40
40
  if (args.length > 0) {
41
41
  io.log(`You asked: "${args.join(' ')}"`);
42
- io.log('Natural-language planning & scaffolding (ai:plan / ai:make) land in the next phase.');
42
+ io.log(`Plan it with: basalt ai:plan "${args.join(' ')}"`);
43
43
  io.log('');
44
44
  }
45
45
  io.log('Available now:');
@@ -182,6 +182,12 @@ export function aiCommands(options = {}) {
182
182
  }
183
183
  renderPlan(plan, io);
184
184
  io.log('');
185
+ // A plan that only reuses packages has nothing to scaffold — ai:make does
186
+ // not install dependencies, so the package steps above are the whole job.
187
+ if (plan.entities.length === 0 && packageSteps(plan).length > 0) {
188
+ io.log('Nothing to scaffold — this plan reuses ecosystem packages. Run the package steps above.');
189
+ return 0;
190
+ }
185
191
  // Agent review over the generated code — read-only, uses the same provider.
186
192
  const agentReview = async (result) => {
187
193
  if (flags['review'] !== true)
package/dist/index.d.ts CHANGED
@@ -15,6 +15,7 @@ export { analyze, type AnalysisReport } from './analyze/run.js';
15
15
  export { createPlan, parsePlan, type CreatePlanOptions } from './plan/plan.js';
16
16
  export { buildPlanContext } from './plan/context.js';
17
17
  export { BASALT_KNOWLEDGE } from './plan/knowledge.js';
18
+ export { ECOSYSTEM_PACKAGES, renderEcosystemCatalog, type EcosystemPackage } from './plan/packages.js';
18
19
  export { renderPlan } from './plan/render.js';
19
20
  export type { ArchitecturePlan, PlanEntity, PlanField, PlanRelation, PlanStep, PlanStepKind, } from './plan/types.js';
20
21
  export { runMake } from './make/make.js';
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ export { analyze } from './analyze/run.js';
21
21
  export { createPlan, parsePlan } from './plan/plan.js';
22
22
  export { buildPlanContext } from './plan/context.js';
23
23
  export { BASALT_KNOWLEDGE } from './plan/knowledge.js';
24
+ export { ECOSYSTEM_PACKAGES, renderEcosystemCatalog } from './plan/packages.js';
24
25
  export { renderPlan } from './plan/render.js';
25
26
  // Implementation (spec §4 Implement) — execute a plan via the generator + review gate.
26
27
  export { runMake } from './make/make.js';
@@ -12,3 +12,5 @@ import type { MakeOptions, MakeResult } from './types.js';
12
12
  * touches the database, never deletes.
13
13
  */
14
14
  export declare function runMake(ctx: ProjectContext, plan: ArchitecturePlan, options?: MakeOptions): Promise<MakeResult>;
15
+ /** The plan's `package` steps as instructions — ai:make never installs dependencies itself. */
16
+ export declare function packageSteps(plan: ArchitecturePlan): string[];
package/dist/make/make.js CHANGED
@@ -28,7 +28,10 @@ export async function runMake(ctx, plan, options = {}) {
28
28
  assertSafePlan(plan);
29
29
  const entities = plan.entities.filter((e) => e.name.trim() !== '');
30
30
  if (entities.length === 0) {
31
- throw new Error('ai:make — the plan has no entity to generate.');
31
+ const packages = packageSteps(plan);
32
+ throw new Error(packages.length > 0
33
+ ? `ai:make — nothing to generate: the plan reuses ecosystem packages. ${packages.join(' ')}`
34
+ : 'ai:make — the plan has no entity to generate.');
32
35
  }
33
36
  throwIfAborted(options.signal);
34
37
  const baseDir = options.baseDir ?? process.cwd();
@@ -222,7 +225,8 @@ function augmentFiles(files, entity, plan, ctx, opts) {
222
225
  return { files: out, augmented, guarded, audited };
223
226
  }
224
227
  function buildFollowUps(plan, resources, schema, migration) {
225
- const followUps = [];
228
+ // Packages first: the generated code may depend on them being wired.
229
+ const followUps = packageSteps(plan);
226
230
  const prismaResources = resources.filter((r) => r.prisma);
227
231
  if (prismaResources.length > 0) {
228
232
  if (!schema?.found) {
@@ -257,6 +261,12 @@ function buildFollowUps(plan, resources, schema, migration) {
257
261
  }
258
262
  return followUps;
259
263
  }
264
+ /** The plan's `package` steps as instructions — ai:make never installs dependencies itself. */
265
+ export function packageSteps(plan) {
266
+ return plan.steps
267
+ .filter((step) => step.kind === 'package')
268
+ .map((step) => `${step.title}${step.command ? ` — \`${step.command}\`` : ''}${step.detail ? `: ${step.detail}` : ''}`);
269
+ }
260
270
  function reviewBuild(ctx, plan, resources, schema, migration) {
261
271
  const items = [];
262
272
  // Tenant isolation — the gate the spec cares most about.
@@ -2,7 +2,7 @@ import type { ProjectContext } from '../context/project.js';
2
2
  /**
3
3
  * Compact, relevant-only project summary for the planner (spec §18 Context
4
4
  * Engineering — never ship the whole project to the model). Surfaces exactly what
5
- * the Architect needs to ground a plan: enabled capabilities, existing models and
6
- * the generator's flags.
5
+ * the Architect needs to ground a plan: enabled capabilities, existing models,
6
+ * the ecosystem packages already installed and the generator's flags.
7
7
  */
8
8
  export declare function buildPlanContext(ctx: ProjectContext): string;
@@ -1,8 +1,9 @@
1
+ import { ECOSYSTEM_PACKAGES } from './packages.js';
1
2
  /**
2
3
  * Compact, relevant-only project summary for the planner (spec §18 Context
3
4
  * Engineering — never ship the whole project to the model). Surfaces exactly what
4
- * the Architect needs to ground a plan: enabled capabilities, existing models and
5
- * the generator's flags.
5
+ * the Architect needs to ground a plan: enabled capabilities, existing models,
6
+ * the ecosystem packages already installed and the generator's flags.
6
7
  */
7
8
  export function buildPlanContext(ctx) {
8
9
  const s = ctx.stack;
@@ -25,12 +26,18 @@ export function buildPlanContext(ctx) {
25
26
  const models = ctx.prisma && ctx.prisma.models.length > 0
26
27
  ? ctx.prisma.models.map((m) => `${m.name}${m.tenantScoped ? ' (tenantId)' : ''}`).join(', ')
27
28
  : '(none)';
29
+ // Catalog packages only: the store/driver packages (-prisma, -s3…) are
30
+ // implementation detail the planner reaches through the catalog entry.
31
+ const catalog = new Set(ECOSYSTEM_PACKAGES.map((p) => p.name));
32
+ const installed = ctx.installed.filter((name) => catalog.has(name));
28
33
  const lines = [
29
34
  'PROJECT STACK:',
30
35
  ...caps.map((c) => `- ${c}`),
31
36
  '',
32
37
  `EXISTING PRISMA MODELS: ${models}`,
33
38
  '',
39
+ `INSTALLED ECOSYSTEM PACKAGES: ${installed.join(', ') || '(none)'} — use these as they are; any other catalog package needs a "package" install step.`,
40
+ '',
34
41
  'GENERATOR: `basalt make:resource <Name>` — flags: --prisma, --soft-delete, --no-register, --dir, --force.',
35
42
  ];
36
43
  if (ctx.app)
@@ -6,4 +6,4 @@
6
6
  * This is deliberately prescriptive: the plan must reuse the generator and the
7
7
  * platform plugins, never hand-roll parallel abstractions.
8
8
  */
9
- export declare const BASALT_KNOWLEDGE = "You are the Architect agent for Basalt \u2014 a batteries-included SaaS framework for Node.js/TypeScript (Fastify + Prisma + Zod). You turn a developer's natural-language request into a precise, convention-following implementation PLAN. You PLAN only; you never write code here.\n\nABSOLUTE RULES \u2014 always use the framework's official APIs and generators, never invent new ones:\n\n1. SCAFFOLDING. Create a resource with the generator, not by hand:\n `basalt make:resource <Name>` \u2014 generates a full vertical: Zod schema, repository, service, DI plugin, typed routes and a test, all on-convention and auto-wired into src/app.ts.\n Flags: --prisma (Prisma-backed repository + a schema.prisma model with id/createdAt/updatedAt), --soft-delete (adds deletedAt, a restore() method + route), --no-register (skip wiring), --dir=<path>, --force.\n\n2. PERSISTENCE. Prisma via prismaPlugin. Models live in schema.prisma. After editing the schema, run `basalt prisma:sync` to generate the client + migration. Use --prisma so the generator emits the model for you.\n\n3. MULTI-TENANCY. When tenancy is enabled, every tenant-owned model MUST carry a `tenantId` column, and the tenancy layer scopes queries by the current tenant. NEVER plan a query that ignores tenant isolation. Platform-global tables (users, tenants, plans) are the only exceptions.\n\n4. RBAC / PERMISSIONS. For each resource, register `<resource>.view`, `<resource>.create`, `<resource>.update`, `<resource>.delete` and guard the matching routes with the permission check. Use the resource name in plural, lowercase (e.g. `patients.create`).\n\n5. AUDIT. Emit an audit event for each state change: `<resource>.created`, `<resource>.updated`, `<resource>.deleted` (singular resource).\n\n6. VALIDATION + DOCS. Every route carries a Zod schema; OpenAPI is generated from it automatically \u2014 no separate doc wiring.\n\n7. TESTS. Every resource ships a test (the generator creates one; extend it for domain rules).\n\nGROUNDING: Reuse what already exists in the project. Avoid name collisions with existing models. Only add what is missing. Prefer editing the schema + running the generator over hand-writing files.\n\nOUTPUT: Return ONLY a single JSON object (no prose, no markdown fences) matching exactly:\n{\n \"summary\": string, // 1-2 sentences on the approach\n \"entities\": [ // domain entities to create\n { \"name\": string, \"fields\": [{ \"name\": string, \"type\": string, \"enum\"?: string[] }], \"tenantScoped\": boolean,\n \"relations\": [{ \"name\": string, \"model\": string }] } // belongs-to: this model gets a <name>Id FK \u2192 <model>\n ],\n \"steps\": [ // ordered implementation steps\n { \"order\": number, \"title\": string, \"kind\": \"generator\"|\"schema\"|\"migration\"|\"service\"|\"routes\"|\"permissions\"|\"audit\"|\"test\"|\"docs\"|\"other\", \"detail\": string, \"command\": string, \"files\": string[] }\n ],\n \"permissions\": string[], // e.g. [\"patients.view\",\"patients.create\",...]\n \"auditEvents\": string[], // e.g. [\"patient.created\",...]\n \"tenantScoped\": boolean, // does this feature involve tenant-owned data\n \"warnings\": string[] // risks, decisions to confirm, missing info\n}\nFor generator steps, put the exact command in \"command\" (e.g. \"basalt make:resource Patient --prisma --soft-delete\"). Omit \"command\"/\"files\" when not applicable.\n\nENUMS: a field with a fixed set of values (a status/state) MUST set \"enum\" to those values \u2014 e.g. \"estado (pago/pendente)\" \u2192 { \"name\": \"estado\", \"type\": \"String\", \"enum\": [\"pago\", \"pendente\"] }. It becomes a validated z.enum([...]) (stored as a String column), never a free z.string().\n\nRELATIONS: express a belongs-to as an entry in \"relations\" (e.g. an Appointment belongs to a Patient \u2192 { \"name\": \"patient\", \"model\": \"Patient\" }). Do NOT also add the \"<name>Id\" field to \"fields\" \u2014 the FK column, the @relation and the inverse field are generated. Prefer generating both sides of a relation in the same plan.";
9
+ export declare const BASALT_KNOWLEDGE: string;
@@ -1,3 +1,4 @@
1
+ import { renderEcosystemCatalog } from './packages.js';
1
2
  /**
2
3
  * The Architect agent's system prompt — Basalt's conventions and official APIs,
3
4
  * encoded so the model plans *with* the framework instead of inventing its own
@@ -10,6 +11,11 @@ export const BASALT_KNOWLEDGE = `You are the Architect agent for Basalt — a ba
10
11
 
11
12
  ABSOLUTE RULES — always use the framework's official APIs and generators, never invent new ones:
12
13
 
14
+ 0. ECOSYSTEM FIRST. Before planning any resource, check whether an official package already covers the capability (catalog below). If one does, use it: a "package" step whose "command" installs it (\`pnpm add <package>\`, plus its Prisma store when the app uses Prisma) and whose "detail" says how to wire its plugin/routes in src/app.ts — or, when the project already has it installed, a step that only wires/uses it. NEVER generate a resource, model or module that duplicates a package (no Comment model when @basaltkit/comments exists, no Notification table, no File/Attachment model, no Team/Invitation model, no AuditLog). Do NOT list a package-covered concept in "entities" — entities are only the domain models no package provides. Only generate from scratch what the catalog does not cover, and say so in "warnings" when a package covers it only partly.
15
+
16
+ ECOSYSTEM CATALOG:
17
+ ${renderEcosystemCatalog()}
18
+
13
19
  1. SCAFFOLDING. Create a resource with the generator, not by hand:
14
20
  \`basalt make:resource <Name>\` — generates a full vertical: Zod schema, repository, service, DI plugin, typed routes and a test, all on-convention and auto-wired into src/app.ts.
15
21
  Flags: --prisma (Prisma-backed repository + a schema.prisma model with id/createdAt/updatedAt), --soft-delete (adds deletedAt, a restore() method + route), --no-register (skip wiring), --dir=<path>, --force.
@@ -36,14 +42,14 @@ OUTPUT: Return ONLY a single JSON object (no prose, no markdown fences) matching
36
42
  "relations": [{ "name": string, "model": string }] } // belongs-to: this model gets a <name>Id FK → <model>
37
43
  ],
38
44
  "steps": [ // ordered implementation steps
39
- { "order": number, "title": string, "kind": "generator"|"schema"|"migration"|"service"|"routes"|"permissions"|"audit"|"test"|"docs"|"other", "detail": string, "command": string, "files": string[] }
45
+ { "order": number, "title": string, "kind": "package"|"generator"|"schema"|"migration"|"service"|"routes"|"permissions"|"audit"|"test"|"docs"|"other", "detail": string, "command": string, "files": string[] }
40
46
  ],
41
47
  "permissions": string[], // e.g. ["patients.view","patients.create",...]
42
48
  "auditEvents": string[], // e.g. ["patient.created",...]
43
49
  "tenantScoped": boolean, // does this feature involve tenant-owned data
44
50
  "warnings": string[] // risks, decisions to confirm, missing info
45
51
  }
46
- For generator steps, put the exact command in "command" (e.g. "basalt make:resource Patient --prisma --soft-delete"). Omit "command"/"files" when not applicable.
52
+ For generator steps, put the exact command in "command" (e.g. "basalt make:resource Patient --prisma --soft-delete"); for package steps, the install command (e.g. "pnpm add @basaltkit/comments @basaltkit/comments-prisma"), or omit it when the package is already installed. Omit "command"/"files" when not applicable.
47
53
 
48
54
  ENUMS: a field with a fixed set of values (a status/state) MUST set "enum" to those values — e.g. "estado (pago/pendente)" → { "name": "estado", "type": "String", "enum": ["pago", "pendente"] }. It becomes a validated z.enum([...]) (stored as a String column), never a free z.string().
49
55
 
@@ -0,0 +1,23 @@
1
+ /**
2
+ * The ecosystem catalog the Architect plans with: each official package, the
3
+ * capability it covers and the entry points an app wires. Without it the model
4
+ * only knew the generator and rebuilt features (comments, files, notifications…)
5
+ * as fresh resources instead of installing the package that already ships them.
6
+ *
7
+ * Kept in sync with `packages/*` by `tests/plan-packages.test.ts`.
8
+ */
9
+ export interface EcosystemPackage {
10
+ /** npm name, e.g. `@basaltkit/comments`. */
11
+ name: string;
12
+ /** What it provides, in the words a request would use. */
13
+ covers: string;
14
+ /** The plugin factory wired in src/app.ts. */
15
+ plugin?: string;
16
+ /** Ready-made routes the app spreads into its route list. */
17
+ routes?: string;
18
+ /** The Prisma-backed store package, when the default store is in-memory. */
19
+ prisma?: string;
20
+ }
21
+ export declare const ECOSYSTEM_PACKAGES: readonly EcosystemPackage[];
22
+ /** One catalog line per package, for the planner's system prompt. */
23
+ export declare function renderEcosystemCatalog(packages?: readonly EcosystemPackage[]): string;
@@ -0,0 +1,39 @@
1
+ export const ECOSYSTEM_PACKAGES = [
2
+ { name: '@basaltkit/auth', covers: 'login, signup, JWT/sessions, password reset, MFA, OAuth, passkeys, API keys', plugin: 'authPlugin', prisma: '@basaltkit/auth-prisma' },
3
+ { name: '@basaltkit/permissions', covers: 'roles, permissions, policies, route guards (RBAC)', plugin: 'permissionsPlugin', prisma: '@basaltkit/permissions-prisma' },
4
+ { name: '@basaltkit/tenancy', covers: 'multi-tenancy: tenant resolution and tenant context', plugin: 'tenancyPlugin', prisma: '@basaltkit/tenancy-prisma' },
5
+ { name: '@basaltkit/teams', covers: 'team members, roles inside a tenant, email invitations', plugin: 'teamsPlugin', routes: 'teamRoutes', prisma: '@basaltkit/teams-prisma' },
6
+ { name: '@basaltkit/comments', covers: 'comment threads on any resource, @mentions, resolve/reopen', plugin: 'commentsPlugin', routes: 'commentRoutes', prisma: '@basaltkit/comments-prisma' },
7
+ { name: '@basaltkit/activity', covers: 'user-facing activity feed / history of changes', plugin: 'activityPlugin', prisma: '@basaltkit/activity-prisma' },
8
+ { name: '@basaltkit/audit', covers: 'append-only audit trail of state changes', plugin: 'auditPlugin', prisma: '@basaltkit/audit-prisma' },
9
+ { name: '@basaltkit/notifications', covers: 'in-app and email notifications, per-user preferences', plugin: 'notificationsPlugin', routes: 'inAppRoutes', prisma: '@basaltkit/notifications-prisma' },
10
+ { name: '@basaltkit/files', covers: 'file uploads and attachments, quotas, signed URLs', plugin: 'filesPlugin', routes: 'fileRoutes', prisma: '@basaltkit/files-prisma' },
11
+ { name: '@basaltkit/files-versions', covers: 'document versions / revisions on top of files', plugin: 'fileVersionsPlugin' },
12
+ { name: '@basaltkit/storage', covers: 'disk/object storage (local, S3, Azure, GCS)', plugin: 'storagePlugin' },
13
+ { name: '@basaltkit/drives', covers: 'import from Google Drive, OneDrive/SharePoint, Dropbox', plugin: 'drivesPlugin' },
14
+ { name: '@basaltkit/subscriptions', covers: 'billing: plans, subscriptions, trials, usage limits, payment gateways', plugin: 'subscriptionsPlugin', prisma: '@basaltkit/subscriptions-prisma' },
15
+ { name: '@basaltkit/webhooks', covers: 'outbound webhooks with signing and retries', plugin: 'webhooksPlugin', prisma: '@basaltkit/webhooks-prisma' },
16
+ { name: '@basaltkit/events', covers: 'typed domain events, listeners, transactional outbox', plugin: 'eventsPlugin', prisma: '@basaltkit/events-prisma' },
17
+ { name: '@basaltkit/queue', covers: 'background jobs (BullMQ, RabbitMQ, SQS, Kafka)', plugin: 'queuePlugin' },
18
+ { name: '@basaltkit/scheduler', covers: 'scheduled / recurring tasks (cron-like)', plugin: 'schedulerPlugin' },
19
+ { name: '@basaltkit/mailer', covers: 'sending email (SMTP, Resend, SES, Mailgun)', plugin: 'mailerPlugin' },
20
+ { name: '@basaltkit/inbound-mail', covers: 'receiving email', routes: 'inboundMailRoutes' },
21
+ { name: '@basaltkit/realtime', covers: 'live updates over WebSocket/SSE, presence', plugin: 'realtimePlugin' },
22
+ { name: '@basaltkit/search', covers: 'full-text search (Postgres, Elasticsearch, Meilisearch)', plugin: 'searchPlugin' },
23
+ { name: '@basaltkit/cache', covers: 'caching with tags and tenant scoping', plugin: 'cachePlugin' },
24
+ { name: '@basaltkit/flags', covers: 'feature flags and percentage rollouts', plugin: 'flagsPlugin' },
25
+ { name: '@basaltkit/exports', covers: 'CSV/JSON/XLSX exports and CSV import', plugin: 'exportsPlugin' },
26
+ { name: '@basaltkit/i18n', covers: 'translations, locale, number/date formatting' },
27
+ { name: '@basaltkit/backup', covers: 'PostgreSQL backups', plugin: 'backupPlugin' },
28
+ { name: '@basaltkit/mcp', covers: 'expose routes as MCP tools for AI agents', plugin: 'mcpPlugin' },
29
+ ];
30
+ /** One catalog line per package, for the planner's system prompt. */
31
+ export function renderEcosystemCatalog(packages = ECOSYSTEM_PACKAGES) {
32
+ return packages
33
+ .map((p) => {
34
+ const wiring = [p.plugin, p.routes ? `${p.routes}()` : undefined].filter(Boolean).join(' + ');
35
+ const store = p.prisma ? `; Prisma store: ${p.prisma}` : '';
36
+ return `- ${p.name} — ${p.covers}${wiring ? ` (wire: ${wiring}${store})` : store ? ` (${store.slice(2)})` : ''}`;
37
+ })
38
+ .join('\n');
39
+ }
package/dist/plan/plan.js CHANGED
@@ -3,6 +3,7 @@ import { runGeneration } from '../generate.js';
3
3
  import { buildPlanContext } from './context.js';
4
4
  import { BASALT_KNOWLEDGE } from './knowledge.js';
5
5
  const STEP_KINDS = [
6
+ 'package',
6
7
  'generator',
7
8
  'schema',
8
9
  'migration',
@@ -51,5 +51,5 @@ export function renderPlan(plan, io) {
51
51
  }
52
52
  io.log('');
53
53
  io.log('This is a plan only — nothing was changed.');
54
- io.log('Next: `basalt ai:make` will execute it (arrives in the next phase).');
54
+ io.log(`Next: basalt ai:make "${plan.request}" implements it.`);
55
55
  }
@@ -1,4 +1,6 @@
1
- export type PlanStepKind = 'generator' | 'schema' | 'migration' | 'service' | 'routes' | 'permissions' | 'audit' | 'test' | 'docs' | 'other';
1
+ export type PlanStepKind =
2
+ /** Install and/or wire an official `@basaltkit/*` package instead of generating code. */
3
+ 'package' | 'generator' | 'schema' | 'migration' | 'service' | 'routes' | 'permissions' | 'audit' | 'test' | 'docs' | 'other';
2
4
  export interface PlanField {
3
5
  name: string;
4
6
  type: string;
@@ -230,6 +230,7 @@ export declare const PlanStepKindSchema: z.ZodEnum<{
230
230
  generator: "generator";
231
231
  migration: "migration";
232
232
  other: "other";
233
+ package: "package";
233
234
  permissions: "permissions";
234
235
  routes: "routes";
235
236
  schema: "schema";
@@ -245,6 +246,7 @@ export declare const PlanStepSchema: z.ZodObject<{
245
246
  generator: "generator";
246
247
  migration: "migration";
247
248
  other: "other";
249
+ package: "package";
248
250
  permissions: "permissions";
249
251
  routes: "routes";
250
252
  schema: "schema";
@@ -281,6 +283,7 @@ export declare const ArchitecturePlanSchema: z.ZodObject<{
281
283
  generator: "generator";
282
284
  migration: "migration";
283
285
  other: "other";
286
+ package: "package";
284
287
  permissions: "permissions";
285
288
  routes: "routes";
286
289
  schema: "schema";
@@ -123,6 +123,7 @@ export const PlanEntitySchema = z.object({
123
123
  relations: z.array(PlanRelationSchema).optional(),
124
124
  });
125
125
  export const PlanStepKindSchema = z.enum([
126
+ 'package',
126
127
  'generator',
127
128
  'schema',
128
129
  'migration',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basaltkit/ai",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "engines": {
5
5
  "node": ">=22.5.0"
6
6
  },
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "zod": "^4.6.7",
34
- "@basaltkit/cli": "^1.7.0",
34
+ "@basaltkit/cli": "^1.7.1",
35
35
  "@basaltkit/generator": "^1.7.0"
36
36
  },
37
37
  "devDependencies": {