principles-disciple 2.0.5 → 2.0.6
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.
|
@@ -8,4 +8,15 @@ export interface WorkspaceResolutionContext {
|
|
|
8
8
|
workspaceDir?: string;
|
|
9
9
|
agentId?: string;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Is this value a workspace pointer that names the same directory in every
|
|
13
|
+
* process?
|
|
14
|
+
*
|
|
15
|
+
* `path.isAbsolute` alone is not enough on Windows: it accepts root-relative
|
|
16
|
+
* values such as `\workspace`, which `path.resolve` then anchors to whatever
|
|
17
|
+
* drive the process happens to be on (`D:\workspace` or `C:\workspace`
|
|
18
|
+
* depending on the caller). A pointer is only safe when it carries its own
|
|
19
|
+
* drive, or is a UNC path. Off Windows, `path.isAbsolute` is the whole rule.
|
|
20
|
+
*/
|
|
21
|
+
export declare function isDriveQualifiedWorkspacePath(value: string | undefined): boolean;
|
|
11
22
|
export declare function validateWorkspaceDir(dir: string | undefined): string | null;
|
|
@@ -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.0.
|
|
5
|
+
"version": "2.0.6",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onStartup": true,
|
|
8
8
|
"onCapabilities": [
|
|
@@ -70,6 +70,12 @@ export interface CanonicalWorkspaceResult {
|
|
|
70
70
|
workspaceDir: string;
|
|
71
71
|
source: CanonicalWorkspaceSource;
|
|
72
72
|
}
|
|
73
|
+
/** A declared workspace candidate that was refused, with why. */
|
|
74
|
+
export interface RejectedWorkspaceCandidate {
|
|
75
|
+
source: CanonicalWorkspaceSource;
|
|
76
|
+
value: string;
|
|
77
|
+
reason: 'not_absolute' | 'rejected_by_validation';
|
|
78
|
+
}
|
|
73
79
|
export declare function resolveCanonicalWorkspaceDir(): CanonicalWorkspaceResult | null;
|
|
74
80
|
export type HookWorkspaceSource = CanonicalWorkspaceSource | 'openclaw_context' | 'openclaw_api';
|
|
75
81
|
export interface HookWorkspaceResolutionSuccess {
|
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": "2.0.
|
|
5
|
+
"version": "2.0.6",
|
|
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.0.
|
|
3
|
+
"version": "2.0.6",
|
|
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",
|