principles-disciple 2.6.5 → 2.7.1

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 (43) hide show
  1. package/dist/bundle.js +609 -608
  2. package/dist/commands/promote-impl.d.ts +1 -1
  3. package/dist/constants/tool-semantics.d.ts +1 -1
  4. package/dist/core/correction-types.d.ts +2 -2
  5. package/dist/core/event-log.d.ts +3 -3
  6. package/dist/core/evolution-types.d.ts +5 -5
  7. package/dist/core/intent-doc-reader-adapter.d.ts +1 -1
  8. package/dist/core/intent-doc-reader.d.ts +1 -1
  9. package/dist/core/pd-task-types.d.ts +2 -2
  10. package/dist/core/principle-compiler/code-validator.d.ts +2 -2
  11. package/dist/core/principle-compiler/compiler.d.ts +2 -2
  12. package/dist/core/principle-compiler/template-generator.d.ts +1 -1
  13. package/dist/core/principle-internalization/filesystem-lifecycle-datasource.d.ts +2 -2
  14. package/dist/core/principle-internalization/lifecycle-read-model.d.ts +5 -5
  15. package/dist/core/principle-internalization/principle-lifecycle-service.d.ts +3 -3
  16. package/dist/core/principle-tree-ledger.d.ts +1 -1
  17. package/dist/core/replay-engine.d.ts +1 -1
  18. package/dist/core/rule-context-assembler.d.ts +1 -1
  19. package/dist/core/rule-host.d.ts +3 -3
  20. package/dist/core/{runtime-v2-prompt-activation-reader.d.ts → runtime-prompt-activation-reader.d.ts} +2 -2
  21. package/dist/core/signal-collector-host.d.ts +1 -1
  22. package/dist/core/workspace-context.d.ts +1 -1
  23. package/dist/governance-audit.d.ts +2 -2
  24. package/dist/governance-audit.js +1 -1
  25. package/dist/hooks/controlled-admission.d.ts +87 -0
  26. package/dist/hooks/gate.d.ts +1 -1
  27. package/dist/hooks/message-sanitize.d.ts +1 -1
  28. package/dist/hooks/pain-ingress-adapter.d.ts +1 -1
  29. package/dist/hooks/prompt.d.ts +1 -1
  30. package/dist/hooks/raw-observation-adapter.d.ts +2 -2
  31. package/dist/hooks/raw-observation-types.d.ts +2 -2
  32. package/dist/hooks/trajectory-evidence.d.ts +1 -1
  33. package/dist/hooks/triage-adapter.d.ts +1 -1
  34. package/dist/index.d.ts +1 -1
  35. package/dist/openclaw.plugin.json +1 -1
  36. package/dist/service/correction-observer-service.d.ts +1 -1
  37. package/dist/service/keyword-optimization-service.d.ts +2 -2
  38. package/dist/types/event-types.d.ts +2 -2
  39. package/dist/types/hygiene-types.d.ts +2 -2
  40. package/dist/types/principle-tree-schema.d.ts +2 -2
  41. package/dist/utils/workspace-resolver.d.ts +1 -1
  42. package/openclaw.plugin.json +1 -1
  43. package/package.json +4 -4
@@ -5,7 +5,7 @@
5
5
  * correction keyword store. Invoked by the correction observer service
6
6
  * when optimization results are available.
7
7
  */
8
- import type { CorrectionObserverOutputV1 as CorrectionObserverResult } from '@principles/core/runtime-v2';
8
+ import type { CorrectionObserverOutputV1 as CorrectionObserverResult } from '@principles/core/runtime';
9
9
  import type { PluginLogger } from '../openclaw-sdk.js';
10
10
  /**
11
11
  * Applies CorrectionObserverResult mutations to the keyword store.
@@ -72,4 +72,4 @@ export type TrajectoryHistoryEntry = {
72
72
  userMessage: string;
73
73
  };
74
74
  /** Re-export CorrectionObserverPayload for convenience */
75
- export type { CorrectionObserverPayload } from '@principles/core/runtime-v2';
75
+ export type { CorrectionObserverPayload } from '@principles/core/runtime';
@@ -1,2 +1,2 @@
1
- export type { EventType, EventCategory, EventLogEntry, ToolCallEventData, PainSignalEventData, RulePromotionEventData, GovernanceActionEventData, HookExecutionEventData, GateBlockEventData, GateBypassEventData, EvolutionTaskEventData, EmpathyRollbackEventData, HeartbeatDiagnosisEventData, DiagnosisTaskEventData, DiagnosticianReportEventData, PrincipleCandidateEventData, RuleEnforcedEventData, RuleHostEvaluatedEventData, RuleHostBlockedEventData, RuleHostRequireApprovalEventData, RuleHostAutoCorrectProposedEventData, RuleHostAutoCorrectAppliedEventData, RuntimeV2PromptActivationsInjectedEventData, RuleHostUnhealthyEventData, RuleHostSkippedEventData, TrajectoryObservabilityFailureEventData, ToolCallStats, ErrorStats, EmpathyEventStats, HookStats, DailyStats, } from '@principles/core/runtime-v2';
2
- export { createEmptyDailyStats, } from '@principles/core/runtime-v2/types/event-types';
1
+ export type { EventType, EventCategory, EventLogEntry, ToolCallEventData, PainSignalEventData, RulePromotionEventData, GovernanceActionEventData, HookExecutionEventData, GateBlockEventData, GateBypassEventData, EvolutionTaskEventData, EmpathyRollbackEventData, HeartbeatDiagnosisEventData, DiagnosisTaskEventData, DiagnosticianReportEventData, PrincipleCandidateEventData, RuleEnforcedEventData, RuleHostEvaluatedEventData, RuleHostBlockedEventData, RuleHostRequireApprovalEventData, RuleHostAutoCorrectProposedEventData, RuleHostAutoCorrectAppliedEventData, RuntimePromptActivationsInjectedEventData, RuleHostUnhealthyEventData, RuleHostSkippedEventData, TrajectoryObservabilityFailureEventData, ToolCallStats, ErrorStats, EmpathyEventStats, HookStats, DailyStats, } from '@principles/core/runtime';
2
+ export { createEmptyDailyStats, } from '@principles/core/runtime/types/event-types';
@@ -1,2 +1,2 @@
1
- export type { PersistenceAction, HygieneStats, } from '@principles/core/runtime-v2';
2
- export { createEmptyHygieneStats, } from '@principles/core/runtime-v2';
1
+ export type { PersistenceAction, HygieneStats, } from '@principles/core/runtime';
2
+ export { createEmptyHygieneStats, } from '@principles/core/runtime';
@@ -21,9 +21,9 @@
21
21
  * - Monitor principles deprecated (solidified into code/weights)
22
22
  * - Track principle value ranking (pain prevented, adherence rate)
23
23
  */
24
- import type { Principle as CorePrinciple } from '@principles/core/runtime-v2';
24
+ import type { Principle as CorePrinciple } from '@principles/core/runtime';
25
25
  import type { PrincipleDetectorSpec } from '../core/evolution-types.js';
26
- export type { PrinciplePriority, PrincipleScope, PrincipleEvaluability, RuleStatus, RuleType, ImplementationLifecycleState, ImplementationType, Rule, Implementation, PrincipleDependency, PrincipleValueMetrics, PrincipleEventType, PrincipleLifecycleEvent, PrincipleTreeStore, } from '@principles/core/runtime-v2';
26
+ export type { PrinciplePriority, PrincipleScope, PrincipleEvaluability, RuleStatus, RuleType, ImplementationLifecycleState, ImplementationType, Rule, Implementation, PrincipleDependency, PrincipleValueMetrics, PrincipleEventType, PrincipleLifecycleEvent, PrincipleTreeStore, } from '@principles/core/runtime';
27
27
  export interface Principle extends CorePrinciple {
28
28
  detectorMetadata?: PrincipleDetectorSpec;
29
29
  }
@@ -131,6 +131,6 @@ export declare class WorkspaceResolutionError extends Error {
131
131
  nextAction: string;
132
132
  };
133
133
  }
134
- export declare function resolveWorkspaceDirForRuntimeV2(ctx: {
134
+ export declare function resolveWorkspaceDirForRuntime(ctx: {
135
135
  workspaceDir?: string;
136
136
  }, api: OpenClawPluginApi | undefined, source: string): string;
@@ -2,7 +2,7 @@
2
2
  "id": "principles-disciple",
3
3
  "name": "Principles Disciple",
4
4
  "description": "Principles Disciple is an AI Agent Governance System. Stop correcting the same AI behavior across sessions. Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles.",
5
- "version": "2.6.5",
5
+ "version": "2.7.1",
6
6
  "activation": {
7
7
  "onStartup": true,
8
8
  "onCapabilities": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "principles-disciple",
3
- "version": "2.6.5",
3
+ "version": "2.7.1",
4
4
  "description": "Principles Disciple is an AI Agent Governance System. Stop correcting the same AI behavior across sessions. Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -76,8 +76,8 @@
76
76
  "compile-principles": "node scripts/compile-principles.mjs"
77
77
  },
78
78
  "devDependencies": {
79
- "@principles/core": "^4.2.0",
80
- "@principles/host-runtime": "^2.2.2",
79
+ "@principles/core": "^5.0.0",
80
+ "@principles/host-runtime": "^2.2.3",
81
81
  "@types/better-sqlite3": "^9.6.0",
82
82
  "@types/js-yaml": "^4.0.9",
83
83
  "@types/micromatch": "^4.0.10",
@@ -109,5 +109,5 @@
109
109
  "js-yaml": "^5.4.3",
110
110
  "micromatch": "^4.0.8"
111
111
  },
112
- "gitHead": "3c04ff93abbde31dcca25c8ad0809d00807b5015"
112
+ "gitHead": "86b6208042b6083d4a7bbf840730d060188a1517"
113
113
  }