create-principles-disciple 1.146.7 → 1.146.8

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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "productVersion": "2.8.0",
4
- "sourceCommit": "a107d8a88c8e243e9adaa2ba0e01db2009ead2de"
4
+ "sourceCommit": "9ef8d607d51cea885249077634df3b4126919a0d"
5
5
  }
@@ -268,6 +268,11 @@ export async function runInternalizationConsumerCycle(workspaceDir, ports) {
268
268
  emitEvent('INTERNALIZATION_CONSUMER_SKIP', JSON.stringify({
269
269
  reason: decision.reason,
270
270
  readyTaskCount: snapshot.readyTasks.length,
271
+ // PRI-988: the heartbeat must carry the queue's own diagnosis. The
272
+ // sample list is already bounded by MAX_SAMPLES in the read model.
273
+ noReadyTasks: snapshot.noReadyTasks,
274
+ invalidMetadataCount: snapshot.invalidMetadataCount,
275
+ sampleInvalidTaskIds: snapshot.sampleInvalidTaskIds,
271
276
  }));
272
277
  return { ran: false, skipReason: decision.reason };
273
278
  }
@@ -536,7 +541,14 @@ export async function runInternalizationConsumerCycle(workspaceDir, ports) {
536
541
  lastSkipReason = undefined;
537
542
  }
538
543
  // A: 预算由周期 finally 统一执行 (每周期恰一次,含 backlog 场景)
539
- const skipPayload = { decision: lastSkipDecision };
544
+ const skipPayload = {
545
+ decision: lastSkipDecision,
546
+ // PRI-988: same diagnosis as the decision-gate SKIP above, so a
547
+ // heartbeat cannot hide hydration failures behind "no_ready_tasks".
548
+ noReadyTasks: snapshot.noReadyTasks,
549
+ invalidMetadataCount: snapshot.invalidMetadataCount,
550
+ sampleInvalidTaskIds: snapshot.sampleInvalidTaskIds,
551
+ };
540
552
  if (lastSkipReason) {
541
553
  skipPayload.reason = lastSkipReason;
542
554
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principles/host-runtime",
3
- "version": "0.14.5",
3
+ "version": "0.14.6",
4
4
  "description": "Shared host-neutral orchestration for Principles Disciple MVP-Core hook paths.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-principles-disciple",
3
- "version": "1.146.7",
3
+ "version": "1.146.8",
4
4
  "description": "Interactive CLI installer for Principles Disciple OpenClaw plugin",
5
5
  "type": "module",
6
6
  "bin": {
@@ -97,5 +97,6 @@
97
97
  },
98
98
  "pd": {
99
99
  "bundledPluginVersion": "2.2.13"
100
- }
100
+ },
101
+ "gitHead": "9ef8d607d51cea885249077634df3b4126919a0d"
101
102
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principles/pd-cli",
3
- "version": "1.162.7",
3
+ "version": "1.162.8",
4
4
  "description": "PD CLI — Pain recording, sample management, and governance tasks for Principles Disciple",
5
5
  "type": "module",
6
6
  "bin": {