@principles/workbuddy-adapter 0.5.2 → 0.5.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/pd-hook.js
CHANGED
|
@@ -36,9 +36,9 @@ import os from 'node:os';
|
|
|
36
36
|
import path from 'node:path';
|
|
37
37
|
import process from 'node:process';
|
|
38
38
|
import { pathToFileURL, fileURLToPath } from 'node:url';
|
|
39
|
-
import { appendEventLogLine, redactTelemetryString, isRuleHostEvaluatedEventData } from '@principles/core/runtime
|
|
39
|
+
import { appendEventLogLine, redactTelemetryString, isRuleHostEvaluatedEventData } from '@principles/core/runtime';
|
|
40
40
|
import { createProductionHostRuntime, createWorkbuddyRuleContextProvider, loadPdConfigForPlugin, parseOwnerStatementPrefix, assessWorkbuddyCorrectionCandidate, resolveSharedCorrectionKeywordStoreForDetection, admitTrustedWorkbuddyLiveCorrection, ensureGovernanceDiagnosticianTask } from '@principles/host-runtime';
|
|
41
|
-
import { computeFeatureFlagsFromConfig } from '@principles/core/runtime
|
|
41
|
+
import { computeFeatureFlagsFromConfig } from '@principles/core/runtime';
|
|
42
42
|
import { WorkBuddyHooksHostAdapter } from './host-adapter.js';
|
|
43
43
|
import { WORKBUDDY_TOOL_SEMANTICS } from './tool-semantics.js';
|
|
44
44
|
import { resolveWorkbuddyWorkspace } from './workspace-resolution.js';
|
|
@@ -72,7 +72,7 @@ function redactStringFields(data) {
|
|
|
72
72
|
*/
|
|
73
73
|
function workbuddyEventEmitter(stateDir, evidence) {
|
|
74
74
|
return {
|
|
75
|
-
|
|
75
|
+
recordRuntimeActivationsInjected(data) {
|
|
76
76
|
appendEventLogLine(stateDir, {
|
|
77
77
|
ts: new Date().toISOString(),
|
|
78
78
|
type: 'runtime_v2_prompt_activations_injected',
|
package/dist/tool-semantics.d.ts
CHANGED
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
* names resolve to 'other' and are never fabricated into Write/Bash
|
|
18
18
|
* equivalences).
|
|
19
19
|
*/
|
|
20
|
-
import { type ToolSemanticMappingV1, type ToolSemanticRegistry } from '@principles/core/runtime
|
|
20
|
+
import { type ToolSemanticMappingV1, type ToolSemanticRegistry } from '@principles/core/runtime';
|
|
21
21
|
export declare const WORKBUDDY_TOOL_SEMANTIC_MAPPINGS: readonly ToolSemanticMappingV1[];
|
|
22
22
|
export declare const WORKBUDDY_TOOL_SEMANTICS: ToolSemanticRegistry;
|
package/dist/tool-semantics.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* names resolve to 'other' and are never fabricated into Write/Bash
|
|
18
18
|
* equivalences).
|
|
19
19
|
*/
|
|
20
|
-
import { buildToolSemanticRegistry } from '@principles/core/runtime
|
|
20
|
+
import { buildToolSemanticRegistry } from '@principles/core/runtime';
|
|
21
21
|
export const WORKBUDDY_TOOL_SEMANTIC_MAPPINGS = Object.freeze([
|
|
22
22
|
{ rawToolName: 'Read', canonicalKind: 'read' },
|
|
23
23
|
{ rawToolName: 'Glob', canonicalKind: 'search' },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InterventionCapabilityDeclaration } from '@principles/core/runtime
|
|
1
|
+
import type { InterventionCapabilityDeclaration } from '@principles/core/runtime';
|
|
2
2
|
/** Evidence adapter surface version (matches the frozen core contract test expectations). */
|
|
3
3
|
export declare const WORKBUDDY_EVIDENCE_ADAPTER_VERSION = "workbuddy-adapter@0.1.0";
|
|
4
4
|
export type EvidenceWarn = (diagnosticLine: string) => void;
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
*
|
|
23
23
|
* Correctness under concurrent consumers (Companion-spawned `pd workbuddy
|
|
24
24
|
* worker` + manual `pd runtime internalization run-once`) is owned by the
|
|
25
|
-
* durable Runtime
|
|
25
|
+
* durable Runtime task lease — never by process-local state. The
|
|
26
26
|
* governance workspace is the single canonical directory
|
|
27
27
|
* (`~/.workbuddy/pd-workspace`), so two projects never double-schedule:
|
|
28
28
|
* they share one workspace and the lease serialises consumption.
|
|
29
29
|
*/
|
|
30
30
|
import fs from 'node:fs';
|
|
31
31
|
import path from 'node:path';
|
|
32
|
-
import { computeFeatureFlagsFromConfig, createRuntimeStateHandle, createPainSignalBridge, isRetryWaitBackoffElapsed, PrincipleTreeLedgerAdapter, resolveDiagnosticianCapability, } from '@principles/core/runtime
|
|
32
|
+
import { computeFeatureFlagsFromConfig, createRuntimeStateHandle, createPainSignalBridge, isRetryWaitBackoffElapsed, PrincipleTreeLedgerAdapter, resolveDiagnosticianCapability, } from '@principles/core/runtime';
|
|
33
33
|
import { loadPdConfigForPlugin, loadFeatureFlagFromConfig, reconcileGovernanceContinuation, runInternalizationConsumerCycle, runStage2CorrectionCycle, createSignalClassifierForWorkspace, saveHostToolDeclaration, } from '@principles/host-runtime';
|
|
34
34
|
import { WORKBUDDY_TOOL_SEMANTICS, WORKBUDDY_TOOL_SEMANTIC_MAPPINGS } from '../tool-semantics.js';
|
|
35
35
|
const WORKER_OWNER = 'companion-worker';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/workbuddy-adapter",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
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": "^2.
|
|
45
|
+
"@principles/core": "^5.0.0",
|
|
46
|
+
"@principles/host-runtime": "^2.2.3",
|
|
47
47
|
"@principles/install-layout": "^0.4.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "86b6208042b6083d4a7bbf840730d060188a1517"
|
|
65
65
|
}
|