create-principles-disciple 1.136.0 → 1.137.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/codex-adapter/dist/worker/workspace-worker.js +3 -0
- package/console/dist/server/routes/failed-tasks.js +31 -3
- package/console/dist/ui/api.d.ts +4 -3
- package/console/dist/ui/api.js +9 -2
- package/console/dist/ui/i18n/en.json +12 -1
- package/console/dist/ui/i18n/zh-CN.json +12 -1
- package/console/dist/ui/pages/failed-tasks/FailedTasksPage.js +80 -4
- package/console/dist/ui/pages/pain/PainPage.js +13 -3
- package/console/dist/ui/utils/validators.d.ts +25 -0
- package/console/dist/ui/utils/validators.js +87 -0
- package/console/dist/web/assets/app.css +29 -2
- package/console/dist/web/assets/app.js +259 -46
- package/core/dist/runtime-v2/index.d.ts +2 -1
- package/core/dist/runtime-v2/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/index.js +2 -0
- package/core/dist/runtime-v2/index.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js +75 -5
- package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-host-alias-replay.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-host-alias-replay.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-host-alias-replay.test.js +279 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-host-alias-replay.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/tool-semantic-registry.test.js +43 -0
- package/core/dist/runtime-v2/internalization/__tests__/tool-semantic-registry.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts +36 -2
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.js +64 -7
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.js.map +1 -1
- package/core/dist/runtime-v2/internalization/artificer-runner.d.ts +10 -1
- package/core/dist/runtime-v2/internalization/artificer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/artificer-runner.js +6 -0
- package/core/dist/runtime-v2/internalization/artificer-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts +31 -0
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.js +93 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/index.d.ts +2 -1
- package/core/dist/runtime-v2/internalization/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/index.js +2 -0
- package/core/dist/runtime-v2/internalization/index.js.map +1 -1
- package/core/dist/runtime-v2/internalization/tool-semantic-registry.d.ts +7 -0
- package/core/dist/runtime-v2/internalization/tool-semantic-registry.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/tool-semantic-registry.js +9 -0
- package/core/dist/runtime-v2/internalization/tool-semantic-registry.js.map +1 -1
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.js +6 -0
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.js.map +1 -1
- package/core/dist/telemetry-event.d.ts +2 -2
- package/core/dist/telemetry-event.d.ts.map +1 -1
- package/core/dist/telemetry-event.js +4 -0
- package/core/dist/telemetry-event.js.map +1 -1
- package/host-runtime/dist/evaluator-runtime-context.d.ts +10 -0
- package/host-runtime/dist/evaluator-runtime-context.js +3 -0
- package/host-runtime/dist/internalization-consumer-cycle.d.ts +6 -0
- package/host-runtime/dist/internalization-consumer-cycle.js +14 -2
- package/package.json +1 -1
- package/pd-cli/dist/commands/pain-record.d.ts +6 -0
- package/pd-cli/dist/commands/pain-record.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-record.js +78 -29
- package/pd-cli/dist/commands/pain-record.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-once.js +29 -2
- package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -1
- package/pd-cli/dist/index.js +4 -1
- package/pd-cli/dist/index.js.map +1 -1
- package/pd-cli/dist/services/rulehost-pipeline-runner.d.ts.map +1 -1
- package/pd-cli/dist/services/rulehost-pipeline-runner.js +18 -3
- package/pd-cli/dist/services/rulehost-pipeline-runner.js.map +1 -1
- package/pd-cli/package.json +1 -1
- package/plugin/dist/bundle.js +450 -440
- package/plugin/dist/constants/tools.d.ts +13 -5
- package/plugin/dist/governance-audit.js +3 -3
- package/plugin/dist/rulehost-evidence.js +127 -127
- package/plugin/dist/service/internalization-auto-consumer-service.d.ts +13 -0
- package/release-manager/package.json +1 -1
- package/console/dist/ui/utils/format.d.ts +0 -3
- package/console/dist/ui/utils/format.js +0 -20
|
@@ -15,5 +15,18 @@ export interface InternalizationAutoConsumerServiceShape {
|
|
|
15
15
|
start: (ctx: OpenClawPluginServiceContext) => void;
|
|
16
16
|
stop?: (ctx: OpenClawPluginServiceContext) => void;
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* PRI-741 (review round): persist the OpenClaw tool declaration as workspace
|
|
20
|
+
* provenance — host-neutral consumers (pd-cli activation / run-once) load it
|
|
21
|
+
* to run reliability validation with the SAME registry instead of guessing
|
|
22
|
+
* the host. The declaration derives from this package's constants (single
|
|
23
|
+
* source) and is a FACT about the host: it is refreshed on EVERY gateway
|
|
24
|
+
* start, independent of the internalization consumer flag, so a flag-off
|
|
25
|
+
* workspace never keeps a stale declaration whose phantom names defeat the
|
|
26
|
+
* activation gate's hasHostTool check.
|
|
27
|
+
*/
|
|
28
|
+
export declare function persistOpenClawToolDeclaration(workspaceDir: string, logger: {
|
|
29
|
+
warn: (msg: string) => void;
|
|
30
|
+
}): void;
|
|
18
31
|
export declare function runConsumerCycle(workspaceDir: string, logger: PluginLogger): Promise<void>;
|
|
19
32
|
export declare const InternalizationAutoConsumerService: InternalizationAutoConsumerServiceShape;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import i18n from "../i18n/index.js";
|
|
2
|
-
export function formatDate(date) {
|
|
3
|
-
const d = typeof date === "string" ? new Date(date) : date;
|
|
4
|
-
return new Intl.DateTimeFormat(i18n.language, {
|
|
5
|
-
year: "numeric", month: "2-digit", day: "2-digit",
|
|
6
|
-
hour: "2-digit", minute: "2-digit"
|
|
7
|
-
}).format(d);
|
|
8
|
-
}
|
|
9
|
-
export function formatDateShort(date) {
|
|
10
|
-
const d = typeof date === "string" ? new Date(date) : date;
|
|
11
|
-
return new Intl.DateTimeFormat(i18n.language, {
|
|
12
|
-
year: "numeric", month: "2-digit", day: "2-digit"
|
|
13
|
-
}).format(d);
|
|
14
|
-
}
|
|
15
|
-
export function formatTime(date) {
|
|
16
|
-
const d = typeof date === "string" ? new Date(date) : date;
|
|
17
|
-
return new Intl.DateTimeFormat(i18n.language, {
|
|
18
|
-
hour: "2-digit", minute: "2-digit", second: "2-digit"
|
|
19
|
-
}).format(d);
|
|
20
|
-
}
|