create-principles-disciple 1.135.1 → 1.136.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.
Files changed (51) hide show
  1. package/core/dist/runtime-v2/__tests__/architecture-regression.test.js +5 -3
  2. package/core/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
  3. package/core/package.json +1 -1
  4. package/package.json +2 -2
  5. package/pd-cli/dist/commands/errors-list.d.ts.map +1 -1
  6. package/pd-cli/dist/commands/errors-list.js +9 -10
  7. package/pd-cli/dist/commands/errors-list.js.map +1 -1
  8. package/pd-cli/dist/commands/pain-list.d.ts +14 -0
  9. package/pd-cli/dist/commands/pain-list.d.ts.map +1 -1
  10. package/pd-cli/dist/commands/pain-list.js +28 -1
  11. package/pd-cli/dist/commands/pain-list.js.map +1 -1
  12. package/pd-cli/dist/commands/pain-record.d.ts +2 -0
  13. package/pd-cli/dist/commands/pain-record.d.ts.map +1 -1
  14. package/pd-cli/dist/commands/pain-record.js +71 -4
  15. package/pd-cli/dist/commands/pain-record.js.map +1 -1
  16. package/pd-cli/dist/commands/runtime-init.d.ts +3 -1
  17. package/pd-cli/dist/commands/runtime-init.d.ts.map +1 -1
  18. package/pd-cli/dist/commands/runtime-init.js +7 -47
  19. package/pd-cli/dist/commands/runtime-init.js.map +1 -1
  20. package/pd-cli/dist/index.js +2 -1
  21. package/pd-cli/dist/index.js.map +1 -1
  22. package/pd-cli/package.json +1 -1
  23. package/plugin/dist/bundle.js +562 -682
  24. package/plugin/dist/config/defaults/runtime.d.ts +0 -10
  25. package/plugin/dist/core/config.d.ts +0 -9
  26. package/plugin/dist/core/detection-funnel.d.ts +1 -1
  27. package/plugin/dist/core/paths.d.ts +0 -2
  28. package/plugin/dist/core/principle-tree-ledger.d.ts +1 -1
  29. package/plugin/dist/core/system-logger.d.ts +1 -3
  30. package/plugin/dist/index.d.ts +0 -10
  31. package/plugin/dist/rulehost-evidence.js +28 -28
  32. package/plugin/dist/service/keyword-optimization-service.d.ts +2 -2
  33. package/plugin/dist/templates/pain_settings.json +0 -5
  34. package/plugin/dist/utils/trace-id.d.ts +9 -0
  35. package/plugin/docs/COMMAND_REFERENCE.md +2 -3
  36. package/plugin/docs/COMMAND_REFERENCE_EN.md +1 -2
  37. package/plugin/openclaw.plugin.json +1 -1
  38. package/plugin/package.json +1 -1
  39. package/plugin/templates/pain_settings.json +0 -5
  40. package/release-manager/package.json +2 -2
  41. package/plugin/dist/commands/workflow-debug.d.ts +0 -4
  42. package/plugin/dist/core/evolution-engine.d.ts +0 -119
  43. package/plugin/dist/core/evolution-logger.d.ts +0 -137
  44. package/plugin/dist/service/evolution-dedup.d.ts +0 -27
  45. package/plugin/dist/service/evolution-worker.d.ts +0 -105
  46. package/plugin/dist/service/queue-io.d.ts +0 -30
  47. package/plugin/dist/service/queue-migration.d.ts +0 -84
  48. package/plugin/dist/service/subagent-workflow/subagent-error-utils.d.ts +0 -8
  49. package/plugin/dist/service/subagent-workflow/types.d.ts +0 -264
  50. package/plugin/dist/service/subagent-workflow/workflow-store.d.ts +0 -44
  51. package/plugin/dist/service/workflow-watchdog.d.ts +0 -23
@@ -22,12 +22,6 @@ export declare const ONE_HOUR_MS: number;
22
22
  export declare const ONE_DAY_MS: number;
23
23
  /** One week in milliseconds */
24
24
  export declare const ONE_WEEK_MS: number;
25
- /** Default TTL for helper workflows (5 minutes) */
26
- export declare const WORKFLOW_TTL_MS: number;
27
- /** Default workflow timeout (15 minutes) */
28
- export declare const WORKFLOW_TIMEOUT_MS: number;
29
- /** Default workflow sweep interval (30 minutes) */
30
- export declare const WORKFLOW_SWEEP_MS: number;
31
25
  /**
32
26
  * Trajectory gate block retry settings
33
27
  * Used when trajectory recording fails and needs to retry
@@ -40,10 +34,6 @@ export declare const THINKING_CHECKPOINT_DEFAULT_HIGH_RISK_TOOLS: readonly ['run
40
34
  export declare const GFI_LARGE_CHANGE_LINES = 50;
41
35
  /** Agent spawn GFI threshold (critically high = no spawn) */
42
36
  export declare const AGENT_SPAWN_GFI_THRESHOLD = 90;
43
- /** Evolution worker polling interval (15 minutes) */
44
- export declare const EVOLUTION_WORKER_POLL_INTERVAL_MS: number;
45
- /** Evolution queue batch size */
46
- export declare const EVOLUTION_QUEUE_BATCH_SIZE = 10;
47
37
  export declare const SESSION_TOKEN_WARNING_THRESHOLD = 8000;
48
38
  export declare const SESSION_MAX_IDLE_MS: number;
49
39
  export declare const EVENT_LOG_BUFFER_SIZE = 20;
@@ -55,11 +55,6 @@ export interface PainSettings {
55
55
  medium: number;
56
56
  low: number;
57
57
  };
58
- intervals: {
59
- worker_poll_ms: number;
60
- initial_delay_ms: number;
61
- task_timeout_ms: number;
62
- };
63
58
  empathy_engine?: {
64
59
  enabled?: boolean;
65
60
  dedupe_window_ms?: number;
@@ -96,10 +91,6 @@ export declare class PainConfig {
96
91
  load(): void;
97
92
  save(): void;
98
93
  private deepMerge;
99
- /**
100
- * Basic validation for critical settings
101
- */
102
- private validate;
103
94
  /**
104
95
  * Gets a value using dot notation (e.g. 'thresholds.pain_trigger')
105
96
  */
@@ -11,7 +11,7 @@
11
11
  * - shouldIgnorePainProtocolText (the protocol-token gate)
12
12
  *
13
13
  * It re-exports DetectionFunnel (same class name + constructor signature) and
14
- * DetectionResult so DetectionService, llm.ts, and evolution-worker keep working
14
+ * DetectionResult so DetectionService and llm.ts keep working
15
15
  * unchanged.
16
16
  *
17
17
  * ERR checklist:
@@ -24,8 +24,6 @@ export declare const PD_FILES: {
24
24
  DECISION_POLICY: string;
25
25
  MODELS_DIR: string;
26
26
  STATE_DIR: string;
27
- EVOLUTION_QUEUE: string;
28
- EVOLUTION_DIRECTIVE: string;
29
27
  WORKBOARD: string;
30
28
  AGENT_SCORECARD: string;
31
29
  PAIN_FLAG: string;
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * 1. Lost updates — core wrote the file UNLOCKED, the plugin wrote it WITH
10
10
  * a lock, and neither knew the other's lock. Concurrent writers (e.g.
11
- * evolution-worker async + a pd-cli command) could silently drop edits.
11
+ * async plugin writers + a pd-cli command) could silently drop edits.
12
12
  * 2. Silent field loss — the two codecs parsed the same bytes at different
13
13
  * strictness; a field one side persisted could be dropped on the next
14
14
  * load by the other.
@@ -13,12 +13,10 @@ export declare const SystemLogger: {
13
13
  /**
14
14
  * PRI-504: dispose the SystemLogger cache for a single workspace.
15
15
  * Useful for tests and for workspace teardown in multi-workspace processes.
16
- * Pattern follows evolution-engine.ts:564-570 (disposeEvolutionEngine).
17
16
  */
18
17
  export declare function disposeSystemLogger(workspaceDir: string): void;
19
18
  /**
20
19
  * PRI-504: dispose ALL SystemLogger caches. Call this in test afterEach
21
- * hooks to prevent state leakage between tests. Pattern follows
22
- * evolution-engine.ts:572-577 (disposeAllEvolutionEngines).
20
+ * hooks to prevent state leakage between tests.
23
21
  */
24
22
  export declare function disposeAllSystemLoggers(): void;
@@ -13,15 +13,6 @@ declare function loadFeatureFlagFromWorkspace(workspaceDir: string, flagId: stri
13
13
  enabled: boolean;
14
14
  source: string;
15
15
  };
16
- export interface EvolutionWorkerGateResult {
17
- shouldStart: boolean;
18
- flagSource: string;
19
- disabledInfo: string | null;
20
- }
21
- export declare function shouldStartEvolutionWorker(workspaceDir: string, logger: {
22
- info?: (msg: string) => void;
23
- warn?: (msg: string) => void;
24
- }): EvolutionWorkerGateResult;
25
16
  export interface CorrectionObserverGateResult {
26
17
  shouldStart: boolean;
27
18
  flagSource: string;
@@ -56,5 +47,4 @@ declare const plugin: {
56
47
  export { PrincipleTreeLedgerAdapter } from '@principles/core/runtime-v2';
57
48
  export { loadFeatureFlagFromWorkspace, isRecord };
58
49
  export { initTrajectorySchema } from './core/trajectory.js';
59
- export { initWorkflowSchema } from './service/subagent-workflow/workflow-store.js';
60
50
  export default plugin;