@storybloq/storybloq 1.4.1 → 1.4.2

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.
Files changed (3) hide show
  1. package/dist/cli.js +12 -6
  2. package/dist/mcp.js +11 -5
  3. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -13996,10 +13996,11 @@ var init_types3 = __esm({
13996
13996
  * Updates the internal snapshot so subsequent reads via `this.state` are consistent.
13997
13997
  */
13998
13998
  writeState(updates, opts) {
13999
+ const prevState = this._state.state;
13999
14000
  const merged = { ...this._state, ...updates };
14000
14001
  const written = writeSessionSync(this.dir, merged);
14001
14002
  this._state = written;
14002
- if (opts?.refreshStatus) {
14003
+ if (opts?.refreshStatus || written.state !== prevState) {
14003
14004
  try {
14004
14005
  refreshStatusForSession(this.root, this.dir, written, "guide");
14005
14006
  } catch {
@@ -17570,7 +17571,7 @@ function getInstalledVersion() {
17570
17571
  }
17571
17572
  }
17572
17573
  function getRunningVersion() {
17573
- return "1.4.1";
17574
+ return "1.4.2";
17574
17575
  }
17575
17576
  var init_version_check = __esm({
17576
17577
  "src/autonomous/version-check.ts"() {
@@ -18612,7 +18613,12 @@ async function runPipelineStage(root, dir, state, report, recipe) {
18612
18613
  }
18613
18614
  const ctx = new StageContext(root, dir, state, recipe);
18614
18615
  const advance = await stage.report(ctx, report);
18615
- return processAdvance(ctx, stage, advance);
18616
+ const result = await processAdvance(ctx, stage, advance);
18617
+ try {
18618
+ refreshStatusForSession(root, dir, ctx.state, "guide");
18619
+ } catch {
18620
+ }
18621
+ return result;
18616
18622
  }
18617
18623
  async function handleReport(root, args) {
18618
18624
  if (!args.sessionId) return guideError(new Error("sessionId is required for report action"));
@@ -19857,7 +19863,7 @@ function registerAllTools(server, pinnedRoot) {
19857
19863
  const result = await runMcpReadTool(pinnedRoot, handleStatus);
19858
19864
  try {
19859
19865
  const { readUpdateCacheSync: readUpdateCacheSync2, refreshUpdateCacheInBackground: refreshUpdateCacheInBackground2 } = await Promise.resolve().then(() => (init_update_check(), update_check_exports));
19860
- const running = "1.4.1";
19866
+ const running = "1.4.2";
19861
19867
  const info = readUpdateCacheSync2(running);
19862
19868
  refreshUpdateCacheInBackground2();
19863
19869
  if (info?.updateAvailable && result.content[0]?.type === "text") {
@@ -21500,7 +21506,7 @@ var init_mcp = __esm({
21500
21506
  ENV_VAR2 = "STORYBLOQ_PROJECT_ROOT";
21501
21507
  LEGACY_ENV_VAR2 = "CLAUDESTORY_PROJECT_ROOT";
21502
21508
  CONFIG_PATH2 = ".story/config.json";
21503
- version = "1.4.1";
21509
+ version = "1.4.2";
21504
21510
  main().catch((err) => {
21505
21511
  process.stderr.write(`Fatal: ${err instanceof Error ? err.message : String(err)}
21506
21512
  `);
@@ -28601,7 +28607,7 @@ async function runCli() {
28601
28607
  registerMigrateCommand: registerMigrateCommand2,
28602
28608
  registerNodeCommand: registerNodeCommand2
28603
28609
  } = await Promise.resolve().then(() => (init_register(), register_exports));
28604
- const version2 = "1.4.1";
28610
+ const version2 = "1.4.2";
28605
28611
  const { preCommandHousekeeping: preCommandHousekeeping2 } = await Promise.resolve().then(() => (init_housekeeping(), housekeeping_exports));
28606
28612
  await preCommandHousekeeping2(version2);
28607
28613
  class HandledError extends Error {
package/dist/mcp.js CHANGED
@@ -13295,10 +13295,11 @@ var StageContext = class {
13295
13295
  * Updates the internal snapshot so subsequent reads via `this.state` are consistent.
13296
13296
  */
13297
13297
  writeState(updates, opts) {
13298
+ const prevState = this._state.state;
13298
13299
  const merged = { ...this._state, ...updates };
13299
13300
  const written = writeSessionSync(this.dir, merged);
13300
13301
  this._state = written;
13301
- if (opts?.refreshStatus) {
13302
+ if (opts?.refreshStatus || written.state !== prevState) {
13302
13303
  try {
13303
13304
  refreshStatusForSession(this.root, this.dir, written, "guide");
13304
13305
  } catch {
@@ -16742,7 +16743,7 @@ function getInstalledVersion() {
16742
16743
  }
16743
16744
  }
16744
16745
  function getRunningVersion() {
16745
- return "1.4.1";
16746
+ return "1.4.2";
16746
16747
  }
16747
16748
 
16748
16749
  // src/autonomous/guide.ts
@@ -17802,7 +17803,12 @@ async function runPipelineStage(root, dir, state, report, recipe) {
17802
17803
  }
17803
17804
  const ctx = new StageContext(root, dir, state, recipe);
17804
17805
  const advance = await stage.report(ctx, report);
17805
- return processAdvance(ctx, stage, advance);
17806
+ const result = await processAdvance(ctx, stage, advance);
17807
+ try {
17808
+ refreshStatusForSession(root, dir, ctx.state, "guide");
17809
+ } catch {
17810
+ }
17811
+ return result;
17806
17812
  }
17807
17813
  async function handleReport(root, args) {
17808
17814
  if (!args.sessionId) return guideError(new Error("sessionId is required for report action"));
@@ -18747,7 +18753,7 @@ function registerAllTools(server, pinnedRoot) {
18747
18753
  const result = await runMcpReadTool(pinnedRoot, handleStatus);
18748
18754
  try {
18749
18755
  const { readUpdateCacheSync: readUpdateCacheSync2, refreshUpdateCacheInBackground: refreshUpdateCacheInBackground2 } = await Promise.resolve().then(() => (init_update_check(), update_check_exports));
18750
- const running = "1.4.1";
18756
+ const running = "1.4.2";
18751
18757
  const info = readUpdateCacheSync2(running);
18752
18758
  refreshUpdateCacheInBackground2();
18753
18759
  if (info?.updateAvailable && result.content[0]?.type === "text") {
@@ -20106,7 +20112,7 @@ async function trimFailedDirectory(inboxPath) {
20106
20112
  var ENV_VAR2 = "STORYBLOQ_PROJECT_ROOT";
20107
20113
  var LEGACY_ENV_VAR2 = "CLAUDESTORY_PROJECT_ROOT";
20108
20114
  var CONFIG_PATH2 = ".story/config.json";
20109
- var version = "1.4.1";
20115
+ var version = "1.4.2";
20110
20116
  function tryDiscoverRoot() {
20111
20117
  const envRoot = process.env[ENV_VAR2] ?? process.env[LEGACY_ENV_VAR2];
20112
20118
  const envName = process.env[ENV_VAR2] ? ENV_VAR2 : LEGACY_ENV_VAR2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybloq/storybloq",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "license": "PolyForm-Noncommercial-1.0.0",
5
5
  "description": "Project memory for Claude Code. Storybloq stores tickets, issues, handovers, and lessons in a .story/ folder inside your repo so every session starts where the last one left off. Pairs with the Storybloq Mac app on the App Store.",
6
6
  "homepage": "https://storybloq.com",