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.
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js +5 -3
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/core/package.json +1 -1
- package/package.json +2 -2
- package/pd-cli/dist/commands/errors-list.d.ts.map +1 -1
- package/pd-cli/dist/commands/errors-list.js +9 -10
- package/pd-cli/dist/commands/errors-list.js.map +1 -1
- package/pd-cli/dist/commands/pain-list.d.ts +14 -0
- package/pd-cli/dist/commands/pain-list.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-list.js +28 -1
- package/pd-cli/dist/commands/pain-list.js.map +1 -1
- package/pd-cli/dist/commands/pain-record.d.ts +2 -0
- package/pd-cli/dist/commands/pain-record.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-record.js +71 -4
- package/pd-cli/dist/commands/pain-record.js.map +1 -1
- package/pd-cli/dist/commands/runtime-init.d.ts +3 -1
- package/pd-cli/dist/commands/runtime-init.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-init.js +7 -47
- package/pd-cli/dist/commands/runtime-init.js.map +1 -1
- package/pd-cli/dist/index.js +2 -1
- package/pd-cli/dist/index.js.map +1 -1
- package/pd-cli/package.json +1 -1
- package/plugin/dist/bundle.js +562 -682
- package/plugin/dist/config/defaults/runtime.d.ts +0 -10
- package/plugin/dist/core/config.d.ts +0 -9
- package/plugin/dist/core/detection-funnel.d.ts +1 -1
- package/plugin/dist/core/paths.d.ts +0 -2
- package/plugin/dist/core/principle-tree-ledger.d.ts +1 -1
- package/plugin/dist/core/system-logger.d.ts +1 -3
- package/plugin/dist/index.d.ts +0 -10
- package/plugin/dist/rulehost-evidence.js +28 -28
- package/plugin/dist/service/keyword-optimization-service.d.ts +2 -2
- package/plugin/dist/templates/pain_settings.json +0 -5
- package/plugin/dist/utils/trace-id.d.ts +9 -0
- package/plugin/docs/COMMAND_REFERENCE.md +2 -3
- package/plugin/docs/COMMAND_REFERENCE_EN.md +1 -2
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +1 -1
- package/plugin/templates/pain_settings.json +0 -5
- package/release-manager/package.json +2 -2
- package/plugin/dist/commands/workflow-debug.d.ts +0 -4
- package/plugin/dist/core/evolution-engine.d.ts +0 -119
- package/plugin/dist/core/evolution-logger.d.ts +0 -137
- package/plugin/dist/service/evolution-dedup.d.ts +0 -27
- package/plugin/dist/service/evolution-worker.d.ts +0 -105
- package/plugin/dist/service/queue-io.d.ts +0 -30
- package/plugin/dist/service/queue-migration.d.ts +0 -84
- package/plugin/dist/service/subagent-workflow/subagent-error-utils.d.ts +0 -8
- package/plugin/dist/service/subagent-workflow/types.d.ts +0 -264
- package/plugin/dist/service/subagent-workflow/workflow-store.d.ts +0 -44
- 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
|
|
14
|
+
* DetectionResult so DetectionService and llm.ts keep working
|
|
15
15
|
* unchanged.
|
|
16
16
|
*
|
|
17
17
|
* ERR checklist:
|
|
@@ -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
|
-
*
|
|
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.
|
|
22
|
-
* evolution-engine.ts:572-577 (disposeAllEvolutionEngines).
|
|
20
|
+
* hooks to prevent state leakage between tests.
|
|
23
21
|
*/
|
|
24
22
|
export declare function disposeAllSystemLoggers(): void;
|
package/plugin/dist/index.d.ts
CHANGED
|
@@ -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;
|