principles-disciple 1.237.0 → 1.238.0
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/bundle.js +374 -374
- package/dist/core/session-tracker.d.ts +16 -1
- package/dist/openclaw.plugin.json +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
|
@@ -62,11 +62,26 @@ export declare function resetFriction(sessionId: string, workspaceDir?: string,
|
|
|
62
62
|
}): SessionState;
|
|
63
63
|
export declare function trackBlock(sessionId: string): SessionState;
|
|
64
64
|
export declare function setInjectedProbationIds(sessionId: string, ids: string[], workspaceDir?: string): SessionState;
|
|
65
|
-
/**
|
|
65
|
+
/**
|
|
66
|
+
* PRI-534: record the principle ids injected into this session's prompt context.
|
|
67
|
+
* PRI-755 (review fix): call this on EVERY prompt build with the CURRENT set —
|
|
68
|
+
* including an empty one. An empty array is a known-empty round and overwrites
|
|
69
|
+
* a stale non-empty set from an earlier turn; the self-report capture validates
|
|
70
|
+
* against this set, so keeping a stale set would re-admit markers for
|
|
71
|
+
* principles no longer injected.
|
|
72
|
+
*/
|
|
66
73
|
export declare function setInjectedPrincipleIds(sessionId: string | undefined, ids: readonly string[], workspaceDir?: string): void;
|
|
67
74
|
/** PRI-534: count one applied live auto-correction in this session. */
|
|
68
75
|
export declare function trackReceiptAutoCorrect(sessionId: string | undefined, workspaceDir?: string): void;
|
|
69
76
|
export declare function getInjectedProbationIds(sessionId: string, workspaceDir?: string): string[];
|
|
77
|
+
/**
|
|
78
|
+
* PRI-755: read-only view of the principle ids injected into this session's
|
|
79
|
+
* prompt context. Tri-state: an array (possibly empty) means the injection set
|
|
80
|
+
* is KNOWN; undefined means UNKNOWN (session never built a prompt in this
|
|
81
|
+
* process, tracker restarted, or session expired). Receipt capture may only
|
|
82
|
+
* treat verified membership as evidence — unknown must not imply empty.
|
|
83
|
+
*/
|
|
84
|
+
export declare function getInjectedPrincipleIds(sessionId: string): readonly string[] | undefined;
|
|
70
85
|
export declare function clearInjectedProbationIds(sessionId: string, workspaceDir?: string): SessionState;
|
|
71
86
|
export declare function getSession(sessionId: string): SessionState | undefined;
|
|
72
87
|
export declare function listSessions(workspaceDir?: string): SessionState[];
|
|
@@ -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": "1.
|
|
5
|
+
"version": "1.238.0",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onStartup": true,
|
|
8
8
|
"onCapabilities": [
|
package/openclaw.plugin.json
CHANGED
|
@@ -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": "1.
|
|
5
|
+
"version": "1.238.0",
|
|
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": "1.
|
|
3
|
+
"version": "1.238.0",
|
|
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",
|