@principles/workbuddy-adapter 0.2.15 → 0.2.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/pd-hook.js
CHANGED
|
@@ -247,7 +247,11 @@ export async function processWorkbuddyHookInvocation(rawStdin, channelEventName,
|
|
|
247
247
|
const { flags } = computeFeatureFlagsFromConfig(config.effective);
|
|
248
248
|
if (flags['host.workbuddy']?.enabled !== true) {
|
|
249
249
|
// OD-03: default OFF; observable skip, no dispatch, no workspace writes.
|
|
250
|
-
|
|
250
|
+
// PRI-1063 (review fix): `diagnostic()` collapses every whitespace run,
|
|
251
|
+
// so the hint is a single-line flow mapping; and since every real config
|
|
252
|
+
// already has a `features:` block, it must be ADDED to that block rather
|
|
253
|
+
// than pasted as a second top-level one (that is a duplicate-key error).
|
|
254
|
+
return neutralWithDiagnostics([diagnostic('skipped', 'host.workbuddy_disabled', 'Enable PD for WorkBuddy in the governance workspace config (~/.workbuddy/pd-workspace/.pd/config.yaml) — in the existing "features:" block set host.workbuddy: {enabled: true} (one flat key, not nested).')]);
|
|
251
255
|
}
|
|
252
256
|
const evidenceEnabled = flags.principle_receipt_ledger?.enabled === true;
|
|
253
257
|
// projectDir = the host cwd (payload cwd; SessionStart carries none);
|
|
@@ -91,7 +91,8 @@ export async function runWorkbuddyWorkspaceWorkerCycle(options) {
|
|
|
91
91
|
}
|
|
92
92
|
const { flags } = computeFeatureFlagsFromConfig(config.effective);
|
|
93
93
|
if (flags['host.workbuddy']?.enabled !== true) {
|
|
94
|
-
|
|
94
|
+
// PRI-1063 (review fix): single-line flow mapping — see pd-hook.ts.
|
|
95
|
+
return { ...base, mode: 'paused', reason: 'host.workbuddy_disabled', nextAction: 'Enable WorkBuddy PD behavior in the governance workspace .pd/config.yaml — in the existing "features:" block set host.workbuddy: {enabled: true} (one flat key, not nested).' };
|
|
95
96
|
}
|
|
96
97
|
const consumerFlag = loadFeatureFlagFromConfig(workspaceDir, 'internalization_auto_consumer', { info: (m) => logger.info(m), warn: (m) => logger.warn(m) });
|
|
97
98
|
// The Diagnostician capability gate resolves from the same canonical
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/workbuddy-adapter",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"description": "WorkBuddy host adapter for Principles Disciple — implements the HostAdapter interface for WorkBuddy's Git Bash command-hook model (ADR-0020 third host, SPEC workbuddy-host-adapter v0.3.0).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"lint": "eslint \"src/**/*.ts\""
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@principles/core": "^
|
|
46
|
-
"@principles/host-runtime": "^0.14.
|
|
45
|
+
"@principles/core": "^2.0.0",
|
|
46
|
+
"@principles/host-runtime": "^0.14.5",
|
|
47
47
|
"@principles/install-layout": "^0.4.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|