@anthropologies/claudestory 0.1.2 → 0.1.3

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
@@ -1709,7 +1709,7 @@ function dfsBlocked(id, state, visited, inStack, findings) {
1709
1709
 
1710
1710
  // src/core/init.ts
1711
1711
  init_esm_shims();
1712
- import { mkdir, stat as stat2, readdir as readdir3, readFile as readFile3 } from "fs/promises";
1712
+ import { mkdir, stat as stat2 } from "fs/promises";
1713
1713
  import { join as join4, resolve as resolve3 } from "path";
1714
1714
  init_errors();
1715
1715
  async function initProject(root, options) {
@@ -1769,21 +1769,14 @@ async function initProject(root, options) {
1769
1769
  await writeRoadmap(roadmap, absRoot);
1770
1770
  const warnings = [];
1771
1771
  if (options.force && exists) {
1772
- for (const subdir of ["tickets", "issues"]) {
1773
- const dir = join4(wrapDir, subdir);
1774
- try {
1775
- const files = await readdir3(dir);
1776
- for (const f of files) {
1777
- if (!f.endsWith(".json")) continue;
1778
- try {
1779
- const content = await readFile3(join4(dir, f), "utf-8");
1780
- JSON.parse(content);
1781
- } catch {
1782
- warnings.push(`.story/${subdir}/${f}`);
1783
- }
1772
+ try {
1773
+ const { warnings: loadWarnings } = await loadProject(absRoot);
1774
+ for (const w of loadWarnings) {
1775
+ if (INTEGRITY_WARNING_TYPES.includes(w.type)) {
1776
+ warnings.push(`${w.file}: ${w.message}`);
1784
1777
  }
1785
- } catch {
1786
1778
  }
1779
+ } catch {
1787
1780
  }
1788
1781
  }
1789
1782
  return {
@@ -3789,7 +3782,7 @@ function registerPhaseCommand(yargs2) {
3789
3782
  }
3790
3783
 
3791
3784
  // src/cli/index.ts
3792
- var version = "0.1.2";
3785
+ var version = "0.1.3";
3793
3786
  var HandledError = class extends Error {
3794
3787
  constructor() {
3795
3788
  super("HANDLED_ERROR");
package/dist/index.js CHANGED
@@ -1359,7 +1359,7 @@ function dfsBlocked(id, state, visited, inStack, findings) {
1359
1359
  }
1360
1360
 
1361
1361
  // src/core/init.ts
1362
- import { mkdir, stat as stat2, readdir as readdir3, readFile as readFile3 } from "fs/promises";
1362
+ import { mkdir, stat as stat2 } from "fs/promises";
1363
1363
  import { join as join4, resolve as resolve3 } from "path";
1364
1364
  async function initProject(root, options) {
1365
1365
  const absRoot = resolve3(root);
@@ -1418,21 +1418,14 @@ async function initProject(root, options) {
1418
1418
  await writeRoadmap(roadmap, absRoot);
1419
1419
  const warnings = [];
1420
1420
  if (options.force && exists) {
1421
- for (const subdir of ["tickets", "issues"]) {
1422
- const dir = join4(wrapDir, subdir);
1423
- try {
1424
- const files = await readdir3(dir);
1425
- for (const f of files) {
1426
- if (!f.endsWith(".json")) continue;
1427
- try {
1428
- const content = await readFile3(join4(dir, f), "utf-8");
1429
- JSON.parse(content);
1430
- } catch {
1431
- warnings.push(`.story/${subdir}/${f}`);
1432
- }
1421
+ try {
1422
+ const { warnings: loadWarnings } = await loadProject(absRoot);
1423
+ for (const w of loadWarnings) {
1424
+ if (INTEGRITY_WARNING_TYPES.includes(w.type)) {
1425
+ warnings.push(`${w.file}: ${w.message}`);
1433
1426
  }
1434
- } catch {
1435
1427
  }
1428
+ } catch {
1436
1429
  }
1437
1430
  }
1438
1431
  return {
package/dist/mcp.js CHANGED
@@ -1708,7 +1708,7 @@ function registerAllTools(server, pinnedRoot) {
1708
1708
  // src/mcp/index.ts
1709
1709
  var ENV_VAR2 = "CLAUDESTORY_PROJECT_ROOT";
1710
1710
  var CONFIG_PATH2 = ".story/config.json";
1711
- var version = "0.1.2";
1711
+ var version = "0.1.3";
1712
1712
  function pinProjectRoot() {
1713
1713
  const envRoot = process.env[ENV_VAR2];
1714
1714
  if (envRoot) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropologies/claudestory",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {