@anthropologies/claudestory 0.1.49 → 0.1.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -8358,7 +8358,7 @@ function getInstalledVersion() {
8358
8358
  }
8359
8359
  }
8360
8360
  function getRunningVersion() {
8361
- return "0.1.49";
8361
+ return "0.1.50";
8362
8362
  }
8363
8363
  var init_version_check = __esm({
8364
8364
  "src/autonomous/version-check.ts"() {
@@ -10923,7 +10923,7 @@ var init_mcp = __esm({
10923
10923
  init_init();
10924
10924
  ENV_VAR2 = "CLAUDESTORY_PROJECT_ROOT";
10925
10925
  CONFIG_PATH2 = ".story/config.json";
10926
- version = "0.1.49";
10926
+ version = "0.1.50";
10927
10927
  main().catch((err) => {
10928
10928
  process.stderr.write(`Fatal: ${err instanceof Error ? err.message : String(err)}
10929
10929
  `);
@@ -14354,7 +14354,7 @@ async function runCli() {
14354
14354
  registerSessionCommand: registerSessionCommand2,
14355
14355
  registerRepairCommand: registerRepairCommand2
14356
14356
  } = await Promise.resolve().then(() => (init_register(), register_exports));
14357
- const version2 = "0.1.49";
14357
+ const version2 = "0.1.50";
14358
14358
  class HandledError extends Error {
14359
14359
  constructor() {
14360
14360
  super("HANDLED_ERROR");
package/dist/index.d.ts CHANGED
@@ -1377,42 +1377,15 @@ declare const SnapshotV1Schema: z.ZodObject<{
1377
1377
  file: z.ZodString;
1378
1378
  message: z.ZodString;
1379
1379
  }, "strip", z.ZodTypeAny, {
1380
- type: string;
1381
1380
  message: string;
1381
+ type: string;
1382
1382
  file: string;
1383
1383
  }, {
1384
- type: string;
1385
1384
  message: string;
1385
+ type: string;
1386
1386
  file: string;
1387
1387
  }>, "many">>;
1388
1388
  }, "strip", z.ZodTypeAny, {
1389
- version: 1;
1390
- config: {
1391
- version: number;
1392
- type: string;
1393
- language: string;
1394
- project: string;
1395
- features: {
1396
- issues: boolean;
1397
- tickets: boolean;
1398
- handovers: boolean;
1399
- roadmap: boolean;
1400
- reviews: boolean;
1401
- } & {
1402
- [k: string]: unknown;
1403
- };
1404
- schemaVersion?: number | undefined;
1405
- recipe?: string | undefined;
1406
- recipeOverrides?: {
1407
- maxTicketsPerSession?: number | undefined;
1408
- compactThreshold?: string | undefined;
1409
- reviewBackends?: string[] | undefined;
1410
- handoverInterval?: number | undefined;
1411
- stages?: Record<string, Record<string, unknown>> | undefined;
1412
- } | undefined;
1413
- } & {
1414
- [k: string]: unknown;
1415
- };
1416
1389
  issues: z.objectOutputType<{
1417
1390
  id: z.ZodString;
1418
1391
  title: z.ZodString;
@@ -1449,8 +1422,8 @@ declare const SnapshotV1Schema: z.ZodObject<{
1449
1422
  claimedBySession: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1450
1423
  }, z.ZodTypeAny, "passthrough">[];
1451
1424
  roadmap: {
1452
- date: string;
1453
1425
  title: string;
1426
+ date: string;
1454
1427
  phases: z.objectOutputType<{
1455
1428
  id: z.ZodString;
1456
1429
  label: z.ZodString;
@@ -1468,6 +1441,7 @@ declare const SnapshotV1Schema: z.ZodObject<{
1468
1441
  } & {
1469
1442
  [k: string]: unknown;
1470
1443
  };
1444
+ version: 1;
1471
1445
  project: string;
1472
1446
  notes: z.objectOutputType<{
1473
1447
  id: z.ZodString;
@@ -1493,19 +1467,11 @@ declare const SnapshotV1Schema: z.ZodObject<{
1493
1467
  status: z.ZodEnum<["active", "deprecated", "superseded"]>;
1494
1468
  }, z.ZodTypeAny, "passthrough">[];
1495
1469
  createdAt: string;
1496
- handoverFilenames: string[];
1497
- warnings?: {
1498
- type: string;
1499
- message: string;
1500
- file: string;
1501
- }[] | undefined;
1502
- }, {
1503
- version: 1;
1504
1470
  config: {
1505
- version: number;
1506
1471
  type: string;
1507
- language: string;
1472
+ version: number;
1508
1473
  project: string;
1474
+ language: string;
1509
1475
  features: {
1510
1476
  issues: boolean;
1511
1477
  tickets: boolean;
@@ -1527,6 +1493,13 @@ declare const SnapshotV1Schema: z.ZodObject<{
1527
1493
  } & {
1528
1494
  [k: string]: unknown;
1529
1495
  };
1496
+ handoverFilenames: string[];
1497
+ warnings?: {
1498
+ message: string;
1499
+ type: string;
1500
+ file: string;
1501
+ }[] | undefined;
1502
+ }, {
1530
1503
  issues: z.objectInputType<{
1531
1504
  id: z.ZodString;
1532
1505
  title: z.ZodString;
@@ -1563,8 +1536,8 @@ declare const SnapshotV1Schema: z.ZodObject<{
1563
1536
  claimedBySession: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1564
1537
  }, z.ZodTypeAny, "passthrough">[];
1565
1538
  roadmap: {
1566
- date: string;
1567
1539
  title: string;
1540
+ date: string;
1568
1541
  phases: z.objectInputType<{
1569
1542
  id: z.ZodString;
1570
1543
  label: z.ZodString;
@@ -1582,8 +1555,35 @@ declare const SnapshotV1Schema: z.ZodObject<{
1582
1555
  } & {
1583
1556
  [k: string]: unknown;
1584
1557
  };
1558
+ version: 1;
1585
1559
  project: string;
1586
1560
  createdAt: string;
1561
+ config: {
1562
+ type: string;
1563
+ version: number;
1564
+ project: string;
1565
+ language: string;
1566
+ features: {
1567
+ issues: boolean;
1568
+ tickets: boolean;
1569
+ handovers: boolean;
1570
+ roadmap: boolean;
1571
+ reviews: boolean;
1572
+ } & {
1573
+ [k: string]: unknown;
1574
+ };
1575
+ schemaVersion?: number | undefined;
1576
+ recipe?: string | undefined;
1577
+ recipeOverrides?: {
1578
+ maxTicketsPerSession?: number | undefined;
1579
+ compactThreshold?: string | undefined;
1580
+ reviewBackends?: string[] | undefined;
1581
+ handoverInterval?: number | undefined;
1582
+ stages?: Record<string, Record<string, unknown>> | undefined;
1583
+ } | undefined;
1584
+ } & {
1585
+ [k: string]: unknown;
1586
+ };
1587
1587
  notes?: z.objectInputType<{
1588
1588
  id: z.ZodString;
1589
1589
  title: z.ZodNullable<z.ZodString>;
@@ -1608,8 +1608,8 @@ declare const SnapshotV1Schema: z.ZodObject<{
1608
1608
  status: z.ZodEnum<["active", "deprecated", "superseded"]>;
1609
1609
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1610
1610
  warnings?: {
1611
- type: string;
1612
1611
  message: string;
1612
+ type: string;
1613
1613
  file: string;
1614
1614
  }[] | undefined;
1615
1615
  handoverFilenames?: string[] | undefined;
package/dist/mcp.js CHANGED
@@ -7816,7 +7816,7 @@ function getInstalledVersion() {
7816
7816
  }
7817
7817
  }
7818
7818
  function getRunningVersion() {
7819
- return "0.1.49";
7819
+ return "0.1.50";
7820
7820
  }
7821
7821
 
7822
7822
  // src/autonomous/guide.ts
@@ -10055,7 +10055,7 @@ async function ensureGitignoreEntries(gitignorePath, entries) {
10055
10055
  // src/mcp/index.ts
10056
10056
  var ENV_VAR2 = "CLAUDESTORY_PROJECT_ROOT";
10057
10057
  var CONFIG_PATH2 = ".story/config.json";
10058
- var version = "0.1.49";
10058
+ var version = "0.1.50";
10059
10059
  function tryDiscoverRoot() {
10060
10060
  const envRoot = process.env[ENV_VAR2];
10061
10061
  if (envRoot) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropologies/claudestory",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Cross-session context persistence for AI coding projects. Tracks tickets, issues, roadmap, and handovers so every session builds on the last.",
6
6
  "keywords": [
@@ -370,26 +370,28 @@ If "Adjust first": ask what they want to change, iterate, then re-show this same
370
370
 
371
371
  If "Create as-is" and no brief exists: warn "Note: tickets will have titles only -- you can add descriptions later." Then proceed to **1e. Execute on Approval**.
372
372
 
373
- #### 1d2. Refinement and Review (internal -- user does not see intermediate steps)
373
+ #### 1d2. Refinement and Review
374
374
 
375
- **This section runs silently.** The user already chose their depth. Do the work, then present the final result ONCE.
375
+ **IMPORTANT: Do NOT skip this section. Do NOT go straight to creating tickets.** The user chose refinement and/or review. You must complete all steps below before moving to 1e (Execute).
376
376
 
377
- If a brief/PRD was found in step 1b, use those structured notes. If no brief exists (e.g., the user came through step 1c interview), infer descriptions from the interview answers and propose standard dependencies based on the tech stack.
377
+ **Step A: Refine the proposal internally.** Do not show intermediate work to the user. Use brief/PRD notes from 1b, or infer from interview answers if no brief.
378
378
 
379
- **What refinement does (internally):**
380
- - Extract specs from the brief into ticket descriptions (3-4 sentences each, actionable)
381
- - Infer `blockedBy` from phase ordering and domain logic (schema before CRUD, auth before protected routes, CRUD before business logic, API before UI)
382
- - Flag and split oversized tickets (3+ entities, API+UI in one ticket, 3+ models)
379
+ What to do:
380
+ - Add 3-4 sentence descriptions to each ticket
381
+ - Infer `blockedBy` from phase ordering and domain logic
382
+ - Flag and split oversized tickets (3+ entities, API+UI in one, 3+ models)
383
383
  - Cross-reference brief entities against tickets, add missing ones
384
384
  - Detect core differentiator -- decompose if single ticket
385
385
  - Surface undecided tech choices
386
386
 
387
- **If "Refine + review":** After refinement, also run an independent review:
388
- - If `review_plan` MCP tool is available, use it. Otherwise spawn an independent Claude agent. If neither available, skip with a note.
387
+ **Step B: Run independent review (if user chose "Refine + review").** This step is REQUIRED when the user selected the review option. Do NOT skip it.
388
+ - If `review_plan` MCP tool is available, call it with the full refined proposal.
389
+ - Otherwise spawn an independent Claude agent to audit for gaps.
390
+ - If neither is available, note "Review skipped -- no review backends available."
389
391
  - Maximum 2 review rounds.
390
- - Incorporate all findings into the proposal. The user sees the final result, not the review process.
392
+ - Incorporate findings into the proposal.
391
393
 
392
- **Present the final result ONCE.** Do NOT show every ticket with its description. Show a compact summary of what changed:
394
+ **Step C: Show the compact summary to the user.** This is REQUIRED. Do NOT go to 1e without showing this. Do NOT show every ticket with its description -- show a summary of what changed:
393
395
 
394
396
  ```
395
397
  Refinement complete. Here's what changed:
@@ -413,7 +415,9 @@ Updated proposal:
413
415
  | ... | ... | ... | ... |
414
416
  ```
415
417
 
416
- Then use `AskUserQuestion`:
418
+ **Step D: Ask user to approve before creating.** This is REQUIRED. Do NOT proceed to 1e without this approval.
419
+
420
+ Use `AskUserQuestion`:
417
421
  - question: "Ready to create?"
418
422
  - header: "Create"
419
423
  - options:
@@ -421,6 +425,8 @@ Then use `AskUserQuestion`:
421
425
  - "Let me adjust first" -- iterate, then re-ask
422
426
  - "Show me the full details" -- expand all ticket descriptions (for users who want to inspect)
423
427
 
428
+ Only proceed to **1e. Execute on Approval** after the user selects "Create everything."
429
+
424
430
  #### 1e. Execute on Approval
425
431
 
426
432
  **Two-pass ticket creation:**