principles-disciple 3.3.0 → 4.1.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.
@@ -0,0 +1,25 @@
1
+ export type ExperimentIsolationViolation = {
2
+ reason: string;
3
+ message: string;
4
+ nextAction: string;
5
+ };
6
+ /**
7
+ * Canonical form for containment decisions: `realpath` resolves junctions and
8
+ * symlinks (a link inside the root that points at production is an escape, not
9
+ * a child), with the resolved path as fallback for targets that do not exist.
10
+ * Windows paths are case-folded because NTFS is case-insensitive.
11
+ */
12
+ export declare function canonicalForIsolation(candidate: string): string;
13
+ export declare function experimentRootFromEnv(env?: NodeJS.ProcessEnv): string | null;
14
+ export declare function experimentIsolationNextAction(): string;
15
+ /**
16
+ * Returns `null` when the workspace is acceptable, else a structured violation.
17
+ */
18
+ export declare function describeExperimentWorkspaceViolation(workspaceDir: string, env?: NodeJS.ProcessEnv): ExperimentIsolationViolation | null;
19
+ /**
20
+ * Guard for non-workspace path inputs (`PD_STATE_DIR`, config paths). In
21
+ * experiment mode they must stay inside the root; production is unchanged.
22
+ */
23
+ export declare function assertExperimentPathInsideRoot(candidate: string, source: string, env?: NodeJS.ProcessEnv): void;
24
+ /** Throwing form for paths whose contract is "throw or return a value". */
25
+ export declare function assertExperimentWorkspaceIsolation(workspaceDir: string, source: string): void;
package/dist/index.d.ts CHANGED
@@ -66,7 +66,7 @@ export declare function syncMcpBindingFromExplicitWorkspace(options: {
66
66
  } | null;
67
67
  }): McpBindingSyncResult;
68
68
  /** Native-gap scoring only on host-admitted user messages. */
69
- export declare function resolveOpenClawNativeGap(event: PluginHookBeforePromptBuildEvent, context: PluginHookAgentContext, ...[hostEvent, candidates, api]: [
69
+ export declare function resolveOpenClawNativeGap(event: PluginHookBeforePromptBuildEvent, context: PluginHookAgentContext, ...[hostEvent, candidates, gapOptions, api]: [
70
70
  ...Parameters<import('@principles/host-runtime').AdaptivePriorityProvider>,
71
71
  Parameters<typeof handleBeforePromptBuild>[1]['api']
72
72
  ]): Promise<import("@principles/host-runtime").AdaptivePrioritySelection | undefined>;
@@ -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": "3.3.0",
5
+ "version": "4.1.0",
6
6
  "activation": {
7
7
  "onStartup": true,
8
8
  "onCapabilities": [
@@ -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": "3.3.0",
5
+ "version": "4.1.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": "3.3.0",
3
+ "version": "4.1.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",
@@ -76,8 +76,8 @@
76
76
  "compile-principles": "node scripts/compile-principles.mjs"
77
77
  },
78
78
  "devDependencies": {
79
- "@principles/core": "^7.4.0",
80
- "@principles/host-runtime": "^3.5.0",
79
+ "@principles/core": "^7.6.0",
80
+ "@principles/host-runtime": "^4.1.0",
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": "5c7389e72a6409efb00891327a63dfc01a2009cb"
112
+ "gitHead": "d70d277260da6f9ef2fcbecb622501cea504a12c"
113
113
  }