create-principles-disciple 1.136.0 → 1.137.1

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 (79) hide show
  1. package/codex-adapter/dist/worker/workspace-worker.js +3 -0
  2. package/console/dist/server/routes/failed-tasks.js +31 -3
  3. package/console/dist/ui/api.d.ts +4 -3
  4. package/console/dist/ui/api.js +9 -2
  5. package/console/dist/ui/i18n/en.json +12 -1
  6. package/console/dist/ui/i18n/zh-CN.json +12 -1
  7. package/console/dist/ui/pages/failed-tasks/FailedTasksPage.js +80 -4
  8. package/console/dist/ui/pages/pain/PainPage.js +13 -3
  9. package/console/dist/ui/utils/validators.d.ts +25 -0
  10. package/console/dist/ui/utils/validators.js +87 -0
  11. package/console/dist/web/assets/app.css +29 -2
  12. package/console/dist/web/assets/app.js +259 -46
  13. package/core/dist/runtime-v2/index.d.ts +2 -1
  14. package/core/dist/runtime-v2/index.d.ts.map +1 -1
  15. package/core/dist/runtime-v2/index.js +2 -0
  16. package/core/dist/runtime-v2/index.js.map +1 -1
  17. package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js +75 -5
  18. package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js.map +1 -1
  19. package/core/dist/runtime-v2/internalization/__tests__/evaluator-host-alias-replay.test.d.ts +2 -0
  20. package/core/dist/runtime-v2/internalization/__tests__/evaluator-host-alias-replay.test.d.ts.map +1 -0
  21. package/core/dist/runtime-v2/internalization/__tests__/evaluator-host-alias-replay.test.js +279 -0
  22. package/core/dist/runtime-v2/internalization/__tests__/evaluator-host-alias-replay.test.js.map +1 -0
  23. package/core/dist/runtime-v2/internalization/__tests__/tool-semantic-registry.test.js +43 -0
  24. package/core/dist/runtime-v2/internalization/__tests__/tool-semantic-registry.test.js.map +1 -1
  25. package/core/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts +36 -2
  26. package/core/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts.map +1 -1
  27. package/core/dist/runtime-v2/internalization/artificer-prompt-builder.js +64 -7
  28. package/core/dist/runtime-v2/internalization/artificer-prompt-builder.js.map +1 -1
  29. package/core/dist/runtime-v2/internalization/artificer-runner.d.ts +10 -1
  30. package/core/dist/runtime-v2/internalization/artificer-runner.d.ts.map +1 -1
  31. package/core/dist/runtime-v2/internalization/artificer-runner.js +6 -0
  32. package/core/dist/runtime-v2/internalization/artificer-runner.js.map +1 -1
  33. package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts +31 -0
  34. package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +1 -1
  35. package/core/dist/runtime-v2/internalization/evaluator-runner.js +93 -1
  36. package/core/dist/runtime-v2/internalization/evaluator-runner.js.map +1 -1
  37. package/core/dist/runtime-v2/internalization/index.d.ts +2 -1
  38. package/core/dist/runtime-v2/internalization/index.d.ts.map +1 -1
  39. package/core/dist/runtime-v2/internalization/index.js +2 -0
  40. package/core/dist/runtime-v2/internalization/index.js.map +1 -1
  41. package/core/dist/runtime-v2/internalization/tool-semantic-registry.d.ts +7 -0
  42. package/core/dist/runtime-v2/internalization/tool-semantic-registry.d.ts.map +1 -1
  43. package/core/dist/runtime-v2/internalization/tool-semantic-registry.js +9 -0
  44. package/core/dist/runtime-v2/internalization/tool-semantic-registry.js.map +1 -1
  45. package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.d.ts.map +1 -1
  46. package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.js +6 -0
  47. package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.js.map +1 -1
  48. package/core/dist/telemetry-event.d.ts +2 -2
  49. package/core/dist/telemetry-event.d.ts.map +1 -1
  50. package/core/dist/telemetry-event.js +4 -0
  51. package/core/dist/telemetry-event.js.map +1 -1
  52. package/host-runtime/dist/evaluator-runtime-context.d.ts +10 -0
  53. package/host-runtime/dist/evaluator-runtime-context.js +3 -0
  54. package/host-runtime/dist/internalization-consumer-cycle.d.ts +6 -0
  55. package/host-runtime/dist/internalization-consumer-cycle.js +14 -2
  56. package/package.json +2 -2
  57. package/pd-cli/dist/commands/pain-record.d.ts +6 -0
  58. package/pd-cli/dist/commands/pain-record.d.ts.map +1 -1
  59. package/pd-cli/dist/commands/pain-record.js +78 -29
  60. package/pd-cli/dist/commands/pain-record.js.map +1 -1
  61. package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts.map +1 -1
  62. package/pd-cli/dist/commands/runtime-internalization-run-once.js +29 -2
  63. package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -1
  64. package/pd-cli/dist/index.js +4 -1
  65. package/pd-cli/dist/index.js.map +1 -1
  66. package/pd-cli/dist/services/rulehost-pipeline-runner.d.ts.map +1 -1
  67. package/pd-cli/dist/services/rulehost-pipeline-runner.js +18 -3
  68. package/pd-cli/dist/services/rulehost-pipeline-runner.js.map +1 -1
  69. package/pd-cli/package.json +1 -1
  70. package/plugin/dist/bundle.js +459 -449
  71. package/plugin/dist/constants/tools.d.ts +13 -5
  72. package/plugin/dist/governance-audit.js +3 -3
  73. package/plugin/dist/rulehost-evidence.js +127 -127
  74. package/plugin/dist/service/internalization-auto-consumer-service.d.ts +13 -0
  75. package/plugin/openclaw.plugin.json +1 -1
  76. package/plugin/package.json +1 -1
  77. package/release-manager/package.json +2 -2
  78. package/console/dist/ui/utils/format.d.ts +0 -3
  79. 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;
@@ -2,7 +2,7 @@
2
2
  "id": "principles-disciple",
3
3
  "name": "Principles Disciple",
4
4
  "description": "Principles Disciple is an AI Agent Governance System. Stop correcting the same AI behavior across sessions. Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles.",
5
- "version": "1.235.0",
5
+ "version": "1.236.0",
6
6
  "activation": {
7
7
  "onStartup": true,
8
8
  "onCapabilities": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "principles-disciple",
3
- "version": "1.235.0",
3
+ "version": "1.236.0",
4
4
  "description": "Principles Disciple is an AI Agent Governance System. Stop correcting the same AI behavior across sessions. Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-principles-disciple",
3
- "version": "1.136.0",
3
+ "version": "1.137.1",
4
4
  "description": "Interactive CLI installer for Principles Disciple OpenClaw plugin",
5
5
  "type": "module",
6
6
  "bin": {
@@ -74,6 +74,6 @@
74
74
  "directory": "packages/create-principles-disciple"
75
75
  },
76
76
  "pd": {
77
- "bundledPluginVersion": "1.235.0"
77
+ "bundledPluginVersion": "1.236.0"
78
78
  }
79
79
  }
@@ -1,3 +0,0 @@
1
- export declare function formatDate(date: Date | string): string;
2
- export declare function formatDateShort(date: Date | string): string;
3
- export declare function formatTime(date: Date | string): string;
@@ -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
- }