@anthropologies/claudestory 0.1.22 → 0.1.23

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
@@ -8097,10 +8097,14 @@ ${ticket.description}` : "",
8097
8097
  data: { recipe, branch: written.git.branch, head: written.git.initHead, mode: "auto" }
8098
8098
  });
8099
8099
  const topCandidate = nextResult.kind === "found" ? nextResult.candidates[0] : null;
8100
+ const maxTickets = updated.config.maxTicketsPerSession;
8101
+ const interval = updated.config.handoverInterval ?? 5;
8102
+ const sessionDesc = maxTickets > 0 ? `Work continuously until all tickets are done or you reach ${maxTickets} tickets.` : "Work continuously until all tickets are done.";
8103
+ const checkpointDesc = interval > 0 ? ` A checkpoint handover will be saved every ${interval} tickets.` : "";
8100
8104
  const instruction = [
8101
8105
  "# Autonomous Session Started",
8102
8106
  "",
8103
- "You are now in autonomous mode. Work continuously until all tickets are done or the session limit is reached.",
8107
+ `You are now in autonomous mode. ${sessionDesc}${checkpointDesc}`,
8104
8108
  "Do NOT stop to summarize. Do NOT ask the user. Pick a ticket and start working immediately.",
8105
8109
  "",
8106
8110
  "## Ticket Candidates",
@@ -10024,7 +10028,7 @@ var init_mcp = __esm({
10024
10028
  init_init();
10025
10029
  ENV_VAR2 = "CLAUDESTORY_PROJECT_ROOT";
10026
10030
  CONFIG_PATH2 = ".story/config.json";
10027
- version = "0.1.22";
10031
+ version = "0.1.23";
10028
10032
  main().catch((err) => {
10029
10033
  process.stderr.write(`Fatal: ${err instanceof Error ? err.message : String(err)}
10030
10034
  `);
@@ -13302,7 +13306,7 @@ async function runCli() {
13302
13306
  registerConfigCommand: registerConfigCommand2,
13303
13307
  registerSessionCommand: registerSessionCommand2
13304
13308
  } = await Promise.resolve().then(() => (init_register(), register_exports));
13305
- const version2 = "0.1.22";
13309
+ const version2 = "0.1.23";
13306
13310
  class HandledError extends Error {
13307
13311
  constructor() {
13308
13312
  super("HANDLED_ERROR");
package/dist/index.d.ts CHANGED
@@ -1331,40 +1331,15 @@ declare const SnapshotV1Schema: z.ZodObject<{
1331
1331
  file: z.ZodString;
1332
1332
  message: z.ZodString;
1333
1333
  }, "strip", z.ZodTypeAny, {
1334
- type: string;
1335
1334
  message: string;
1335
+ type: string;
1336
1336
  file: string;
1337
1337
  }, {
1338
- type: string;
1339
1338
  message: string;
1339
+ type: string;
1340
1340
  file: string;
1341
1341
  }>, "many">>;
1342
1342
  }, "strip", z.ZodTypeAny, {
1343
- version: 1;
1344
- config: {
1345
- version: number;
1346
- type: string;
1347
- language: string;
1348
- project: string;
1349
- features: {
1350
- issues: boolean;
1351
- tickets: boolean;
1352
- handovers: boolean;
1353
- roadmap: boolean;
1354
- reviews: boolean;
1355
- } & {
1356
- [k: string]: unknown;
1357
- };
1358
- schemaVersion?: number | undefined;
1359
- recipe?: string | undefined;
1360
- recipeOverrides?: {
1361
- maxTicketsPerSession?: number | undefined;
1362
- compactThreshold?: string | undefined;
1363
- reviewBackends?: string[] | undefined;
1364
- } | undefined;
1365
- } & {
1366
- [k: string]: unknown;
1367
- };
1368
1343
  issues: z.objectOutputType<{
1369
1344
  id: z.ZodString;
1370
1345
  title: z.ZodString;
@@ -1401,8 +1376,8 @@ declare const SnapshotV1Schema: z.ZodObject<{
1401
1376
  claimedBySession: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1402
1377
  }, z.ZodTypeAny, "passthrough">[];
1403
1378
  roadmap: {
1404
- date: string;
1405
1379
  title: string;
1380
+ date: string;
1406
1381
  phases: z.objectOutputType<{
1407
1382
  id: z.ZodString;
1408
1383
  label: z.ZodString;
@@ -1420,6 +1395,7 @@ declare const SnapshotV1Schema: z.ZodObject<{
1420
1395
  } & {
1421
1396
  [k: string]: unknown;
1422
1397
  };
1398
+ version: 1;
1423
1399
  project: string;
1424
1400
  notes: z.objectOutputType<{
1425
1401
  id: z.ZodString;
@@ -1445,19 +1421,11 @@ declare const SnapshotV1Schema: z.ZodObject<{
1445
1421
  status: z.ZodEnum<["active", "deprecated", "superseded"]>;
1446
1422
  }, z.ZodTypeAny, "passthrough">[];
1447
1423
  createdAt: string;
1448
- handoverFilenames: string[];
1449
- warnings?: {
1450
- type: string;
1451
- message: string;
1452
- file: string;
1453
- }[] | undefined;
1454
- }, {
1455
- version: 1;
1456
1424
  config: {
1457
- version: number;
1458
1425
  type: string;
1459
- language: string;
1426
+ version: number;
1460
1427
  project: string;
1428
+ language: string;
1461
1429
  features: {
1462
1430
  issues: boolean;
1463
1431
  tickets: boolean;
@@ -1477,6 +1445,13 @@ declare const SnapshotV1Schema: z.ZodObject<{
1477
1445
  } & {
1478
1446
  [k: string]: unknown;
1479
1447
  };
1448
+ handoverFilenames: string[];
1449
+ warnings?: {
1450
+ message: string;
1451
+ type: string;
1452
+ file: string;
1453
+ }[] | undefined;
1454
+ }, {
1480
1455
  issues: z.objectInputType<{
1481
1456
  id: z.ZodString;
1482
1457
  title: z.ZodString;
@@ -1513,8 +1488,8 @@ declare const SnapshotV1Schema: z.ZodObject<{
1513
1488
  claimedBySession: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1514
1489
  }, z.ZodTypeAny, "passthrough">[];
1515
1490
  roadmap: {
1516
- date: string;
1517
1491
  title: string;
1492
+ date: string;
1518
1493
  phases: z.objectInputType<{
1519
1494
  id: z.ZodString;
1520
1495
  label: z.ZodString;
@@ -1532,8 +1507,33 @@ declare const SnapshotV1Schema: z.ZodObject<{
1532
1507
  } & {
1533
1508
  [k: string]: unknown;
1534
1509
  };
1510
+ version: 1;
1535
1511
  project: string;
1536
1512
  createdAt: string;
1513
+ config: {
1514
+ type: string;
1515
+ version: number;
1516
+ project: string;
1517
+ language: string;
1518
+ features: {
1519
+ issues: boolean;
1520
+ tickets: boolean;
1521
+ handovers: boolean;
1522
+ roadmap: boolean;
1523
+ reviews: boolean;
1524
+ } & {
1525
+ [k: string]: unknown;
1526
+ };
1527
+ schemaVersion?: number | undefined;
1528
+ recipe?: string | undefined;
1529
+ recipeOverrides?: {
1530
+ maxTicketsPerSession?: number | undefined;
1531
+ compactThreshold?: string | undefined;
1532
+ reviewBackends?: string[] | undefined;
1533
+ } | undefined;
1534
+ } & {
1535
+ [k: string]: unknown;
1536
+ };
1537
1537
  notes?: z.objectInputType<{
1538
1538
  id: z.ZodString;
1539
1539
  title: z.ZodNullable<z.ZodString>;
@@ -1558,8 +1558,8 @@ declare const SnapshotV1Schema: z.ZodObject<{
1558
1558
  status: z.ZodEnum<["active", "deprecated", "superseded"]>;
1559
1559
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1560
1560
  warnings?: {
1561
- type: string;
1562
1561
  message: string;
1562
+ type: string;
1563
1563
  file: string;
1564
1564
  }[] | undefined;
1565
1565
  handoverFilenames?: string[] | undefined;
package/dist/mcp.js CHANGED
@@ -7586,10 +7586,14 @@ ${ticket.description}` : "",
7586
7586
  data: { recipe, branch: written.git.branch, head: written.git.initHead, mode: "auto" }
7587
7587
  });
7588
7588
  const topCandidate = nextResult.kind === "found" ? nextResult.candidates[0] : null;
7589
+ const maxTickets = updated.config.maxTicketsPerSession;
7590
+ const interval = updated.config.handoverInterval ?? 5;
7591
+ const sessionDesc = maxTickets > 0 ? `Work continuously until all tickets are done or you reach ${maxTickets} tickets.` : "Work continuously until all tickets are done.";
7592
+ const checkpointDesc = interval > 0 ? ` A checkpoint handover will be saved every ${interval} tickets.` : "";
7589
7593
  const instruction = [
7590
7594
  "# Autonomous Session Started",
7591
7595
  "",
7592
- "You are now in autonomous mode. Work continuously until all tickets are done or the session limit is reached.",
7596
+ `You are now in autonomous mode. ${sessionDesc}${checkpointDesc}`,
7593
7597
  "Do NOT stop to summarize. Do NOT ask the user. Pick a ticket and start working immediately.",
7594
7598
  "",
7595
7599
  "## Ticket Candidates",
@@ -9189,7 +9193,7 @@ async function ensureGitignoreEntries(gitignorePath, entries) {
9189
9193
  // src/mcp/index.ts
9190
9194
  var ENV_VAR2 = "CLAUDESTORY_PROJECT_ROOT";
9191
9195
  var CONFIG_PATH2 = ".story/config.json";
9192
- var version = "0.1.22";
9196
+ var version = "0.1.23";
9193
9197
  function tryDiscoverRoot() {
9194
9198
  const envRoot = process.env[ENV_VAR2];
9195
9199
  if (envRoot) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropologies/claudestory",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
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": [