principles-disciple 1.222.2 → 1.222.4

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.
@@ -27,6 +27,16 @@ export declare function alignActivationIds(principles: ReadonlyArray<{
27
27
  principleId: string;
28
28
  activationId?: string;
29
29
  }>, injectedIds: ReadonlySet<string>): string[];
30
+ /**
31
+ * Filter a candidate list down to the actually-injected subset, deduped by
32
+ * principleId in first-occurrence order (PRI-537). Callers derive every
33
+ * paired field (principleId/activationId/artifactId) from this single list,
34
+ * so index alignment cannot drift between them. Supersedes per-field helpers
35
+ * like alignActivationIds for new call sites.
36
+ */
37
+ export declare function alignInjectedPrinciples<T extends {
38
+ principleId: string;
39
+ }>(principles: ReadonlyArray<T>, injectedIds: ReadonlySet<string>): T[];
30
40
  /**
31
41
  * Presence rows for a prompt injection event — one per principle, deduped per
32
42
  * session×principle by the partial unique index (restarts included).
@@ -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.222.2",
5
+ "version": "1.222.4",
6
6
  "activation": {
7
7
  "onCapabilities": [
8
8
  "hook"
@@ -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.222.2",
5
+ "version": "1.222.4",
6
6
  "activation": {
7
7
  "onCapabilities": [
8
8
  "hook"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "principles-disciple",
3
- "version": "1.222.2",
3
+ "version": "1.222.4",
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",