principles-disciple 1.222.4 → 1.223.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/README.md +69 -17
- package/dist/bundle.js +862 -924
- package/dist/core/init.d.ts +2 -1
- package/dist/core/product-telemetry-trigger.d.ts +14 -0
- package/dist/core/thinking-os-parser.d.ts +5 -2
- package/dist/governance-audit.js +386 -0
- package/dist/openclaw.plugin.json +1 -1
- package/dist/rulehost-evidence.js +832 -0
- package/dist/templates/langs/en/principles/THINKING_OS.md +53 -45
- package/dist/templates/langs/en/skills/pd-mentor/SKILL.md +1 -1
- package/dist/templates/langs/zh/principles/THINKING_OS.md +62 -46
- package/dist/templates/langs/zh/skills/pd-mentor/SKILL.md +1 -1
- package/dist/templates/workspace/.principles/THINKING_OS.md +66 -38
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/templates/langs/en/principles/THINKING_OS.md +53 -45
- package/templates/langs/en/skills/pd-mentor/SKILL.md +1 -1
- package/templates/langs/zh/principles/THINKING_OS.md +62 -46
- package/templates/langs/zh/skills/pd-mentor/SKILL.md +1 -1
- package/templates/workspace/.principles/THINKING_OS.md +66 -38
package/dist/core/init.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ import type { OpenClawPluginApi, PluginLogger } from '../openclaw-sdk.js';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare function ensureWorkspaceTemplates(api: OpenClawPluginApi, workspaceDir: string, language?: string): void;
|
|
7
7
|
/**
|
|
8
|
-
* Core thinking model definitions (T-01
|
|
8
|
+
* Core thinking model definitions (the full registry — exactly T-01..T-10:
|
|
9
|
+
* 6 foundational axioms + 4 operating principles).
|
|
9
10
|
* Derived from the Core Principle Registry — the single source of truth.
|
|
10
11
|
*/
|
|
11
12
|
export declare const CORE_THINKING_MODELS: Array<{
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Anonymous Product Telemetry v1 — OpenClaw plugin trigger (PRI-599).
|
|
3
|
+
*
|
|
4
|
+
* Fire-and-forget scheduling from the per-workspace one-time init inside
|
|
5
|
+
* before_prompt_build. The gateway process is long-lived, so the unref'd
|
|
6
|
+
* timer plus the service's contained failure paths guarantee telemetry can
|
|
7
|
+
* never block or crash a hook. All gating (feature flag + consent +
|
|
8
|
+
* environment eligibility) happens inside the service.
|
|
9
|
+
*/
|
|
10
|
+
export interface TelemetryTriggerLogger {
|
|
11
|
+
info?: (message: string) => void;
|
|
12
|
+
warn?: (message: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function scheduleTelemetryExportForWorkspace(workspaceDir: string, logger?: TelemetryTriggerLogger): void;
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
* Thinking OS XML Parser
|
|
3
3
|
*
|
|
4
4
|
* Parses THINKING_OS.md to extract directive definitions.
|
|
5
|
-
*
|
|
5
|
+
* The Core Principle Registry in @principles/core (core-principle-registry.ts)
|
|
6
|
+
* is the single source of truth for directive ids/names; THINKING_OS.md
|
|
7
|
+
* templates mirror it and the drift test enforces alignment (PRI-607).
|
|
6
8
|
*
|
|
7
9
|
* XML structure:
|
|
8
|
-
* <directive id="T-01" name="
|
|
10
|
+
* <directive id="T-01" name="Survey Before Acting">
|
|
9
11
|
* <trigger>...</trigger>
|
|
10
12
|
* <must>...</must>
|
|
11
13
|
* <forbidden>...</forbidden>
|
|
@@ -14,6 +16,7 @@
|
|
|
14
16
|
export interface ThinkingOsDirective {
|
|
15
17
|
id: string;
|
|
16
18
|
name: string;
|
|
19
|
+
layer: string;
|
|
17
20
|
trigger: string;
|
|
18
21
|
must: string;
|
|
19
22
|
forbidden: string;
|