@getnoan/wizard 0.1.8 → 0.1.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getnoan/wizard",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "One command from nothing to a grounded agent: sign in to NOAN, wire your coding assistant, install the skill, and set up the agent pack.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/agents.mjs CHANGED
@@ -176,7 +176,7 @@ export function packFile(dest, name) {
176
176
 
177
177
  /** Run every seed script the pack ships; collect the block slugs they print. */
178
178
  export function runSeeds(dest, env, { dryRun = false } = {}) {
179
- const seeds = ["seed-weekly-activity-report.mjs", "seed-fact-alignment.mjs", "seed-market-research-refresh.mjs", "seed-customer-support.mjs", "seed-deck.mjs"];
179
+ const seeds = ["seed-weekly-activity-report.mjs", "seed-fact-alignment.mjs", "seed-market-research-refresh.mjs", "seed-customer-support.mjs", "seed-newsletter.mjs", "seed-deck.mjs"];
180
180
  const slugs = {}; const rows = [];
181
181
  for (const s of seeds) {
182
182
  const p = packFile(dest, s);
package/src/run.mjs CHANGED
@@ -223,7 +223,7 @@ async function setupAgents({ args, ui, dir, key, me, report, shared = {} }) {
223
223
  COMPANY_NAME: me.project?.name || "", ...(roles.agentIds && { AGENT_IDENTITY_IDS: roles.agentIds }), ...(roles.commanders && { COMMANDERS: roles.commanders }) };
224
224
  // The seeds need the key in the clone's .env; the pack's own .env.example documents the rest.
225
225
  pack.writePackEnv(fork.dest, { NOAN_PERSONAL_API_KEY: key, ...(anthropic && { [mName]: anthropic }), ...(mBase && { ANTHROPIC_BASE_URL: mBase }), ...(resend && { RESEND_API_KEY: resend }) }, args.dryRun);
226
- const seeds = pack.runSeeds(fork.dest, { NOAN_PERSONAL_API_KEY: key }, { dryRun: args.dryRun });
226
+ const seeds = pack.runSeeds(fork.dest, { NOAN_PERSONAL_API_KEY: key, ...(db && { STATE_BACKEND: "postgres", DATABASE_URL: db }) }, { dryRun: args.dryRun });
227
227
  out.seeds = seeds.rows;
228
228
  // A missing or failed seed is a warning, not a tick: its agent has no Config fact and no slug variable.
229
229
  for (const r of seeds.rows) (/^(missing|failed)$/.test(r.action) ? ui.warn : ui.ok)(`${r.seed}: ${r.action}${r.slugs != null ? ` (${r.slugs} slug(s))` : ""}${r.error ? ` — ${r.error}` : ""}`);