principles-disciple 1.168.0 → 1.169.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.
@@ -14,7 +14,7 @@
14
14
  */
15
15
  import * as fs from 'fs';
16
16
  import * as path from 'path';
17
- import yaml from 'js-yaml';
17
+ import * as yaml from 'js-yaml';
18
18
  import { validatePdConfig, computeEffectivePdConfig, computeFeatureFlagsFromConfig, INTERNAL_AGENT_NAMES, } from '@principles/core/runtime-v2';
19
19
  // ── Constants ────────────────────────────────────────────────────────────────
20
20
  export const PD_CONFIG_DIR = '.pd';
@@ -9,7 +9,7 @@
9
9
  */
10
10
  import * as fs from 'fs';
11
11
  import * as path from 'path';
12
- import yaml from 'js-yaml';
12
+ import * as yaml from 'js-yaml';
13
13
  // ─────────────────────────────────────────────────────────────────────────────
14
14
  // WorkflowFunnelLoader
15
15
  // ─────────────────────────────────────────────────────────────────────────────
@@ -33,7 +33,7 @@ export class WorkflowFunnelLoader {
33
33
  }
34
34
  try {
35
35
  const content = fs.readFileSync(this.configPath, 'utf-8');
36
- const config = yaml.load(content, { schema: yaml.DEFAULT_SCHEMA });
36
+ const config = yaml.load(content, { schema: yaml.CORE_SCHEMA });
37
37
  if (!config || typeof config.version !== 'string' || !Array.isArray(config.funnels)) {
38
38
  const msg = 'workflows.yaml validation failed: missing version or funnels array. Preserving last valid config.';
39
39
  console.warn(`[WorkflowFunnelLoader] ${msg}`);
@@ -2,7 +2,7 @@
2
2
  "id": "principles-disciple",
3
3
  "name": "Principles Disciple",
4
4
  "description": "Evolutionary programming agent framework with strategic guardrails and reflection loops.",
5
- "version": "1.168.0",
5
+ "version": "1.169.0",
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.168.0",
3
+ "version": "1.169.0",
4
4
  "description": "Native OpenClaw plugin for Principles Disciple",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -83,7 +83,7 @@
83
83
  "@sinclair/typebox": "^0.34.48",
84
84
  "better-sqlite3": "^12.9.0",
85
85
  "commander": "^12.0.0",
86
- "js-yaml": "^4.1.1",
86
+ "js-yaml": "^5.2.0",
87
87
  "micromatch": "^4.0.8"
88
88
  }
89
89
  }