@anthropologies/claudestory 0.1.16 → 0.1.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.
package/dist/cli.js CHANGED
@@ -6943,7 +6943,7 @@ var init_mcp = __esm({
6943
6943
  init_init();
6944
6944
  ENV_VAR2 = "CLAUDESTORY_PROJECT_ROOT";
6945
6945
  CONFIG_PATH2 = ".story/config.json";
6946
- version = "0.1.16";
6946
+ version = "0.1.17";
6947
6947
  main().catch((err) => {
6948
6948
  process.stderr.write(`Fatal: ${err instanceof Error ? err.message : String(err)}
6949
6949
  `);
@@ -9578,7 +9578,7 @@ async function runCli() {
9578
9578
  registerHookStatusCommand: registerHookStatusCommand2,
9579
9579
  registerConfigCommand: registerConfigCommand2
9580
9580
  } = await Promise.resolve().then(() => (init_register(), register_exports));
9581
- const version2 = "0.1.16";
9581
+ const version2 = "0.1.17";
9582
9582
  class HandledError extends Error {
9583
9583
  constructor() {
9584
9584
  super("HANDLED_ERROR");
package/dist/index.d.ts CHANGED
@@ -1237,40 +1237,15 @@ declare const SnapshotV1Schema: z.ZodObject<{
1237
1237
  file: z.ZodString;
1238
1238
  message: z.ZodString;
1239
1239
  }, "strip", z.ZodTypeAny, {
1240
- type: string;
1241
1240
  message: string;
1241
+ type: string;
1242
1242
  file: string;
1243
1243
  }, {
1244
- type: string;
1245
1244
  message: string;
1245
+ type: string;
1246
1246
  file: string;
1247
1247
  }>, "many">>;
1248
1248
  }, "strip", z.ZodTypeAny, {
1249
- version: 1;
1250
- config: {
1251
- version: number;
1252
- type: string;
1253
- language: string;
1254
- project: string;
1255
- features: {
1256
- issues: boolean;
1257
- tickets: boolean;
1258
- handovers: boolean;
1259
- roadmap: boolean;
1260
- reviews: boolean;
1261
- } & {
1262
- [k: string]: unknown;
1263
- };
1264
- schemaVersion?: number | undefined;
1265
- recipe?: string | undefined;
1266
- recipeOverrides?: {
1267
- maxTicketsPerSession?: number | undefined;
1268
- compactThreshold?: string | undefined;
1269
- reviewBackends?: string[] | undefined;
1270
- } | undefined;
1271
- } & {
1272
- [k: string]: unknown;
1273
- };
1274
1249
  issues: z.objectOutputType<{
1275
1250
  id: z.ZodString;
1276
1251
  title: z.ZodString;
@@ -1306,8 +1281,8 @@ declare const SnapshotV1Schema: z.ZodObject<{
1306
1281
  lastModifiedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1307
1282
  }, z.ZodTypeAny, "passthrough">[];
1308
1283
  roadmap: {
1309
- date: string;
1310
1284
  title: string;
1285
+ date: string;
1311
1286
  phases: z.objectOutputType<{
1312
1287
  id: z.ZodString;
1313
1288
  label: z.ZodString;
@@ -1325,6 +1300,7 @@ declare const SnapshotV1Schema: z.ZodObject<{
1325
1300
  } & {
1326
1301
  [k: string]: unknown;
1327
1302
  };
1303
+ version: 1;
1328
1304
  project: string;
1329
1305
  notes: z.objectOutputType<{
1330
1306
  id: z.ZodString;
@@ -1336,19 +1312,11 @@ declare const SnapshotV1Schema: z.ZodObject<{
1336
1312
  updatedDate: z.ZodEffects<z.ZodString, string, string>;
1337
1313
  }, z.ZodTypeAny, "passthrough">[];
1338
1314
  createdAt: string;
1339
- handoverFilenames: string[];
1340
- warnings?: {
1341
- type: string;
1342
- message: string;
1343
- file: string;
1344
- }[] | undefined;
1345
- }, {
1346
- version: 1;
1347
1315
  config: {
1348
- version: number;
1349
1316
  type: string;
1350
- language: string;
1317
+ version: number;
1351
1318
  project: string;
1319
+ language: string;
1352
1320
  features: {
1353
1321
  issues: boolean;
1354
1322
  tickets: boolean;
@@ -1368,6 +1336,13 @@ declare const SnapshotV1Schema: z.ZodObject<{
1368
1336
  } & {
1369
1337
  [k: string]: unknown;
1370
1338
  };
1339
+ handoverFilenames: string[];
1340
+ warnings?: {
1341
+ message: string;
1342
+ type: string;
1343
+ file: string;
1344
+ }[] | undefined;
1345
+ }, {
1371
1346
  issues: z.objectInputType<{
1372
1347
  id: z.ZodString;
1373
1348
  title: z.ZodString;
@@ -1403,8 +1378,8 @@ declare const SnapshotV1Schema: z.ZodObject<{
1403
1378
  lastModifiedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
1379
  }, z.ZodTypeAny, "passthrough">[];
1405
1380
  roadmap: {
1406
- date: string;
1407
1381
  title: string;
1382
+ date: string;
1408
1383
  phases: z.objectInputType<{
1409
1384
  id: z.ZodString;
1410
1385
  label: z.ZodString;
@@ -1422,8 +1397,33 @@ declare const SnapshotV1Schema: z.ZodObject<{
1422
1397
  } & {
1423
1398
  [k: string]: unknown;
1424
1399
  };
1400
+ version: 1;
1425
1401
  project: string;
1426
1402
  createdAt: string;
1403
+ config: {
1404
+ type: string;
1405
+ version: number;
1406
+ project: string;
1407
+ language: string;
1408
+ features: {
1409
+ issues: boolean;
1410
+ tickets: boolean;
1411
+ handovers: boolean;
1412
+ roadmap: boolean;
1413
+ reviews: boolean;
1414
+ } & {
1415
+ [k: string]: unknown;
1416
+ };
1417
+ schemaVersion?: number | undefined;
1418
+ recipe?: string | undefined;
1419
+ recipeOverrides?: {
1420
+ maxTicketsPerSession?: number | undefined;
1421
+ compactThreshold?: string | undefined;
1422
+ reviewBackends?: string[] | undefined;
1423
+ } | undefined;
1424
+ } & {
1425
+ [k: string]: unknown;
1426
+ };
1427
1427
  notes?: z.objectInputType<{
1428
1428
  id: z.ZodString;
1429
1429
  title: z.ZodNullable<z.ZodString>;
@@ -1434,8 +1434,8 @@ declare const SnapshotV1Schema: z.ZodObject<{
1434
1434
  updatedDate: z.ZodEffects<z.ZodString, string, string>;
1435
1435
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1436
1436
  warnings?: {
1437
- type: string;
1438
1437
  message: string;
1438
+ type: string;
1439
1439
  file: string;
1440
1440
  }[] | undefined;
1441
1441
  handoverFilenames?: string[] | undefined;
package/dist/mcp.js CHANGED
@@ -6206,7 +6206,7 @@ async function ensureGitignoreEntries(gitignorePath, entries) {
6206
6206
  // src/mcp/index.ts
6207
6207
  var ENV_VAR2 = "CLAUDESTORY_PROJECT_ROOT";
6208
6208
  var CONFIG_PATH2 = ".story/config.json";
6209
- var version = "0.1.16";
6209
+ var version = "0.1.17";
6210
6210
  function tryDiscoverRoot() {
6211
6211
  const envRoot = process.env[ENV_VAR2];
6212
6212
  if (envRoot) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropologies/claudestory",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
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": [
@@ -12,6 +12,7 @@ claudestory tracks tickets, issues, roadmap, and handovers in a `.story/` direct
12
12
  `/story` is one smart command. Parse the user's intent from context:
13
13
 
14
14
  - `/story` → full context load (default, see Step 2 below)
15
+ - `/story auto` → start autonomous mode (see Autonomous Mode below)
15
16
  - `/story handover` → draft a session handover. Summarize the session's work, then call `claudestory_handover_create` with the drafted content and a descriptive slug
16
17
  - `/story snapshot` → save project state (call `claudestory_snapshot` MCP tool)
17
18
  - `/story export` → export project for sharing. Ask the user whether to export the current phase or the full project, then call `claudestory_export` with either `phase` or `all` set
@@ -261,6 +262,29 @@ Create notes via MCP: `claudestory_note_create` with `content`, optional `title`
261
262
 
262
263
  List, get, and update notes via MCP: `claudestory_note_list`, `claudestory_note_get`, `claudestory_note_update`. Delete remains CLI-only: `claudestory note delete <id>`.
263
264
 
265
+ ## Autonomous Mode
266
+
267
+ `/story auto` starts an autonomous coding session. The guide picks tickets, plans, reviews, implements, and commits — looping until all tickets are done or the session limit is reached.
268
+
269
+ **How it works:**
270
+
271
+ 1. Call `claudestory_autonomous_guide` with `{ "sessionId": null, "action": "start" }`
272
+ 2. The guide returns an instruction with ticket candidates and exact JSON for the next call
273
+ 3. Follow every instruction exactly. Call the guide back after each step.
274
+ 4. The guide advances through: PICK_TICKET → PLAN → PLAN_REVIEW → IMPLEMENT → CODE_REVIEW → FINALIZE → COMPLETE → loop
275
+ 5. Continue until the guide returns SESSION_END
276
+
277
+ **Critical rules for autonomous mode:**
278
+ - Do NOT use Claude Code's plan mode — write plans as markdown files
279
+ - Do NOT ask the user for confirmation or approval
280
+ - Do NOT stop or summarize between tickets — call the guide IMMEDIATELY
281
+ - Follow the guide's instructions exactly — it specifies which tools to call, what parameters to use
282
+ - After each step completes, call `claudestory_autonomous_guide` with `action: "report"` and the results
283
+
284
+ **If the guide says to compact:** Call `claudestory_autonomous_guide` with `action: "pre_compact"`, then run `/compact`, then call with `action: "resume"`.
285
+
286
+ **If something goes wrong:** Call `claudestory_autonomous_guide` with `action: "cancel"` to cleanly end the session.
287
+
264
288
  ## Command & Tool Reference
265
289
 
266
290
  For the full list of CLI commands and MCP tools, read `reference.md` in the same directory as this skill file.