create-principles-disciple 1.112.2 → 1.112.3
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 +11 -2
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/evaluator-repair-loop.test.js +14 -6
- package/core/dist/runtime-v2/__tests__/evaluator-repair-loop.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice-v2.test.js +1 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice-v2.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js +5 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.js +4 -1
- package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.js +3 -2
- package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.js +47 -0
- package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js +66 -1
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-verdict-paths.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-verdict-paths.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-verdict-paths.test.js +234 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-verdict-paths.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js +23 -1
- package/core/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts +11 -0
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.js +11 -4
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.js.map +1 -1
- package/core/dist/runtime-v2/adapter/output-schema-registry.d.ts.map +1 -1
- package/core/dist/runtime-v2/adapter/output-schema-registry.js +2 -0
- package/core/dist/runtime-v2/adapter/output-schema-registry.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +7 -2
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js +9 -5
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -1
- package/core/dist/runtime-v2/index.d.ts +9 -5
- package/core/dist/runtime-v2/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/index.js +4 -2
- package/core/dist/runtime-v2/index.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/a-liveness-reconciliation.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/a-liveness-reconciliation.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/a-liveness-reconciliation.test.js +157 -0
- package/core/dist/runtime-v2/internalization/__tests__/a-liveness-reconciliation.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/c2-live-runner-chain.test.js +29 -0
- package/core/dist/runtime-v2/internalization/__tests__/c2-live-runner-chain.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/crash-liveness-regressions.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/crash-liveness-regressions.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/crash-liveness-regressions.test.js +311 -0
- package/core/dist/runtime-v2/internalization/__tests__/crash-liveness-regressions.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/external-review-p0-regressions.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/external-review-p0-regressions.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/external-review-p0-regressions.test.js +171 -0
- package/core/dist/runtime-v2/internalization/__tests__/external-review-p0-regressions.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js +11 -2
- package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/internalization-transition-decision.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-transition-decision.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-transition-decision.test.js +335 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-transition-decision.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/mvp-core-loop-journeys.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/mvp-core-loop-journeys.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/mvp-core-loop-journeys.test.js +515 -0
- package/core/dist/runtime-v2/internalization/__tests__/mvp-core-loop-journeys.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/restart-safety.e2e.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/restart-safety.e2e.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/restart-safety.e2e.test.js +167 -0
- package/core/dist/runtime-v2/internalization/__tests__/restart-safety.e2e.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/verdict-drift-regressions.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/verdict-drift-regressions.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/verdict-drift-regressions.test.js +601 -0
- package/core/dist/runtime-v2/internalization/__tests__/verdict-drift-regressions.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/artificer-runner.d.ts +7 -0
- package/core/dist/runtime-v2/internalization/artificer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/artificer-runner.js +18 -2
- package/core/dist/runtime-v2/internalization/artificer-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts +49 -0
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.js +390 -98
- package/core/dist/runtime-v2/internalization/evaluator-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts +127 -0
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.js +345 -1
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.js.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-task-guards.d.ts +9 -2
- package/core/dist/runtime-v2/internalization/internalization-task-guards.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-task-guards.js +14 -3
- package/core/dist/runtime-v2/internalization/internalization-task-guards.js.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.d.ts +61 -0
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.js +84 -0
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.js.map +1 -0
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts +17 -1
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.js.map +1 -1
- package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts +99 -2
- package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/pitask-metadata.js +148 -0
- package/core/dist/runtime-v2/internalization/pitask-metadata.js.map +1 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts +147 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.js +672 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/scribe-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.js +21 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.js.map +1 -1
- package/core/dist/runtime-v2/runner/base-peer-runner.d.ts +9 -0
- package/core/dist/runtime-v2/runner/base-peer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/runner/base-peer-runner.js +22 -0
- package/core/dist/runtime-v2/runner/base-peer-runner.js.map +1 -1
- package/core/dist/runtime-v2/signal-collector/__tests__/llm-payload-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/signal-collector/__tests__/llm-payload-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/signal-collector/__tests__/llm-payload-contract.test.js +130 -0
- package/core/dist/runtime-v2/signal-collector/__tests__/llm-payload-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/signal-collector/index.d.ts +1 -1
- package/core/dist/runtime-v2/signal-collector/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/signal-collector/index.js +1 -1
- package/core/dist/runtime-v2/signal-collector/index.js.map +1 -1
- package/core/dist/runtime-v2/signal-collector/llm-stage.d.ts +15 -0
- package/core/dist/runtime-v2/signal-collector/llm-stage.d.ts.map +1 -1
- package/core/dist/runtime-v2/signal-collector/llm-stage.js +28 -0
- package/core/dist/runtime-v2/signal-collector/llm-stage.js.map +1 -1
- package/core/dist/runtime-v2/signal-collector/types.d.ts +9 -1
- package/core/dist/runtime-v2/signal-collector/types.d.ts.map +1 -1
- package/core/dist/runtime-v2/signal-collector/types.js +13 -1
- package/core/dist/runtime-v2/signal-collector/types.js.map +1 -1
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.d.ts +23 -0
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.js +34 -0
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.js.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection.js +7 -0
- package/core/dist/runtime-v2/store/sqlite-connection.js.map +1 -1
- package/core/dist/runtime-v2/store/task/memory-task-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/task/memory-task-store.js +22 -0
- package/core/dist/runtime-v2/store/task/memory-task-store.js.map +1 -1
- package/core/dist/runtime-v2/store/task/sqlite-task-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/task/sqlite-task-store.js +20 -0
- package/core/dist/runtime-v2/store/task/sqlite-task-store.js.map +1 -1
- package/core/dist/runtime-v2/store/task/task-store.d.ts +14 -0
- package/core/dist/runtime-v2/store/task/task-store.d.ts.map +1 -1
- package/package.json +2 -2
- package/pd-cli/dist/commands/runtime-activation.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.js +36 -7
- package/pd-cli/dist/commands/runtime-activation.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js +48 -0
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-retry.d.ts +38 -0
- package/pd-cli/dist/commands/runtime-internalization-retry.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-retry.js +143 -0
- package/pd-cli/dist/commands/runtime-internalization-retry.js.map +1 -0
- package/pd-cli/dist/index.js +11 -0
- package/pd-cli/dist/index.js.map +1 -1
- package/pd-cli/dist/services/__tests__/evaluator-runner-deps.test.js +19 -7
- package/pd-cli/dist/services/__tests__/evaluator-runner-deps.test.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 +6 -2
- package/pd-cli/dist/services/rulehost-pipeline-runner.js.map +1 -1
- package/plugin/dist/bundle.js +545 -514
- package/plugin/dist/core/rule-host.d.ts +6 -0
- package/plugin/dist/core/runtime-v2-prompt-activation-reader.d.ts +8 -0
- package/plugin/dist/core/signal-collector-host.d.ts +7 -1
- package/plugin/dist/core/signal-keyword-store.d.ts +41 -0
- package/plugin/dist/service/auto-consumer-governance-wiring.d.ts +34 -0
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +1 -1
|
@@ -61,6 +61,12 @@ export interface SkippedActivation {
|
|
|
61
61
|
}
|
|
62
62
|
export interface RuleHostEvaluationReport {
|
|
63
63
|
readonly liveDecision: RuleHostResult | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* P1 (ISSUE-023): live 聚合决策的溯源 — 贡献该决策的 live activation id
|
|
66
|
+
* (经 ruleId 反查 implementationSources)。审计开放项: 414 次 live-mode
|
|
67
|
+
* 评估无法对账到具体规则,因为 live 事件不带 activationId。
|
|
68
|
+
*/
|
|
69
|
+
readonly liveDecisionActivationId?: string;
|
|
64
70
|
readonly shadowDecisions: readonly RuleHostObservedDecision[];
|
|
65
71
|
/**
|
|
66
72
|
* PRI-491 — Activations that were skipped at load time. Empty when all
|
|
@@ -14,6 +14,14 @@ export declare class PromptActivationReader {
|
|
|
14
14
|
constructor(workspaceDir: string, deps?: PromptActivationReaderDeps);
|
|
15
15
|
readActivatedPrinciples(): Promise<PromptActivationReaderResult>;
|
|
16
16
|
private queryArtifactRow;
|
|
17
|
+
/**
|
|
18
|
+
* P0-G (INV-05): activation authority 推导 (derived join, 无 schema 迁移)。
|
|
19
|
+
* approvals 的 approvalId 是确定性的 (apr_<channel>_<artifactId>), 因此
|
|
20
|
+
* artifact_id+channel 上存在 status='approved' 行 ⟺ owner 授权;
|
|
21
|
+
* 无行 ⟺ 低风险 policy 自动激活 (system_policy)。rc-1/rc-5: 行字段按
|
|
22
|
+
* unknown 校验, 键存在性用 Object.hasOwn。
|
|
23
|
+
*/
|
|
24
|
+
private deriveAuthority;
|
|
17
25
|
/**
|
|
18
26
|
* PRI-305/PRI-307: Load feature flags from .pd/config.yaml instead of .pd/feature-flags.yaml.
|
|
19
27
|
* Uses the shared plugin config loader for consistency.
|
|
@@ -45,13 +45,19 @@ export type SignalLlmClassifier = (text: string, promptTemplate: string) => Prom
|
|
|
45
45
|
} | null>;
|
|
46
46
|
export interface SignalCollectorHostOptions {
|
|
47
47
|
keywordStore?: UnifiedKeywordStore;
|
|
48
|
+
/**
|
|
49
|
+
* Live store provider (P0-B Learn→Detect 闭环): 每次检测调用,mtime 变化时
|
|
50
|
+
* 重载 learned correction cues。设置后优先于 keywordStore 静态快照——
|
|
51
|
+
* optimizer 学到的词无需重启 OpenClaw 即进入下一次检测。
|
|
52
|
+
*/
|
|
53
|
+
keywordStoreProvider?: () => UnifiedKeywordStore;
|
|
48
54
|
config?: SignalCollectorConfig;
|
|
49
55
|
/** Stage2 LLM 分类器。null/undefined → 降级纯关键词。 */
|
|
50
56
|
llmClassifier?: SignalLlmClassifier | null;
|
|
51
57
|
}
|
|
52
58
|
export declare class SignalCollectorHost {
|
|
53
59
|
private readonly wctx;
|
|
54
|
-
private readonly
|
|
60
|
+
private readonly storeProvider;
|
|
55
61
|
private readonly config;
|
|
56
62
|
private readonly llmClassifier;
|
|
57
63
|
/** rate limit 状态:sessionId → STRONG 计数桶 */
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live Signal Keyword Store — Learn→Detect 反馈闭环的检测侧接线
|
|
3
|
+
* (MVP_CORE_LOOP_CONTRACT INV-01 §3 / P0-B)。
|
|
4
|
+
*
|
|
5
|
+
* 审计背景 (ISSUE-003): 修复前检测用 buildDefaultKeywordStore() 硬编码 6 词,
|
|
6
|
+
* 与 CorrectionCueLearner/KeywordOptimizationService 写入的
|
|
7
|
+
* <stateDir>/correction_keywords.json 完全脱钩——optimizer 学到的词永不回流检测。
|
|
8
|
+
*
|
|
9
|
+
* 本模块把 learner store (canonical mutable correction cue source) 投影成
|
|
10
|
+
* UnifiedKeywordStore,并在每次检测时按 mtime 检查刷新:
|
|
11
|
+
* - optimizer 写入 correction_keywords.json 后,无需重启 OpenClaw,
|
|
12
|
+
* 下一次 detectSync 即消费新词 (cache invalidation via stat mtime)。
|
|
13
|
+
* - empathy cue 不在 learner store 中(learner 是 correction-only),
|
|
14
|
+
* 以 seed overlay 保留,行为不变。
|
|
15
|
+
* - 3 个已证实的高精度纠正短语(不在 learner seed 集内)以 seed overlay
|
|
16
|
+
* 保留,高精度 deterministic path 不回退。
|
|
17
|
+
* - learned 词 weight ≥ HIGH_PRECISION_LEARNED_WEIGHT → precision 'high'
|
|
18
|
+
* (可确定性触发 STRONG);FP 权重衰减(×0.8)是自然降级机制。
|
|
19
|
+
*/
|
|
20
|
+
import type { UnifiedKeywordStore } from '@principles/core/runtime-v2';
|
|
21
|
+
import type { WorkspaceContext } from './workspace-context.js';
|
|
22
|
+
/** learned 词进入高精度 deterministic path 的权重阈值(仅适用于 seed/owner_promoted;
|
|
23
|
+
* llm_learned 恒 ambiguous — 见 projectLearnedStore 内注释) */
|
|
24
|
+
export declare const HIGH_PRECISION_LEARNED_WEIGHT = 0.7;
|
|
25
|
+
/** 高精度纠正短语 overlay(已验证的确定性 STRONG 路径,不属于 learner seed 集) */
|
|
26
|
+
export declare const HIGH_PRECISION_CORRECTION_OVERLAY: ReadonlyArray<readonly [string, number]>;
|
|
27
|
+
/** empathy seed overlay(检测行为不变) */
|
|
28
|
+
export declare const EMPATHY_SEED_OVERLAY: ReadonlyArray<readonly [string, number]>;
|
|
29
|
+
export interface LiveKeywordStore {
|
|
30
|
+
/** 每次检测调用:mtime 未变返回缓存,变了重载并返回新快照 */
|
|
31
|
+
resolve(): UnifiedKeywordStore;
|
|
32
|
+
/** 当前快照的观测元数据(测试/诊断用) */
|
|
33
|
+
stats(): {
|
|
34
|
+
totalTerms: number;
|
|
35
|
+
learnedTerms: number;
|
|
36
|
+
lastReloadedAt: string | null;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare function createLiveSignalKeywordStore(wctx: WorkspaceContext, logger?: {
|
|
40
|
+
debug?: (msg: string) => void;
|
|
41
|
+
}): LiveKeywordStore;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-consumer governance wiring (P0-D/E/F 生产接线)。
|
|
3
|
+
*
|
|
4
|
+
* 审计背景 (ISSUE-005/006): PRI-509 repair loop "intentionally NOT wired" 于
|
|
5
|
+
* auto-consumer; rollout_reviewer succeedTask 不 dispatch;修复后:
|
|
6
|
+
* - evaluator: 注入 isRepairLoopEnabled + seedArtificerRepairTask (bounded repair)
|
|
7
|
+
* - rollout_reviewer: 注入 dispatchActivation (approve_rollout → ActivationDispatcher,
|
|
8
|
+
* 低风险 auto_activate / 高风险 approvals.pending) + reopenRevisionTarget
|
|
9
|
+
* (needs_revision → reopen scribe/artificer, 禁止入 approval)
|
|
10
|
+
*
|
|
11
|
+
* 本模块是 plugin I/O 边界: 组装 core 的 ActivationDispatcher + stores。
|
|
12
|
+
* 幂等性 (INV-08): dispatcher 以 `${artifactId}::${channel}` idempotency key
|
|
13
|
+
* 去重; reopen 幂等由 orchestrator.reopenTaskForRevision 保证。
|
|
14
|
+
*/
|
|
15
|
+
import { type RolloutAutoDispatchInput, type RolloutAutoDispatchOutcome, type RolloutRevisionRoutingInput, type SeedArtificerRepairParams } from '@principles/core/runtime-v2';
|
|
16
|
+
import type { RuntimeStateManager } from '@principles/core/runtime-v2';
|
|
17
|
+
import type { InternalizationOrchestrator } from '@principles/core/runtime-v2';
|
|
18
|
+
import type { PluginLogger } from '../openclaw-sdk.js';
|
|
19
|
+
/** rollout → ActivationDispatcher 的生产接线 (per dispatch 打开短连接, 与 Console 模式一致) */
|
|
20
|
+
export declare function dispatchRolloutActivation(workspaceDir: string, input: RolloutAutoDispatchInput, logger?: PluginLogger): Promise<RolloutAutoDispatchOutcome>;
|
|
21
|
+
/** evaluator repair deps (PRI-509 机制的生产接线; flag 语义保留为运行时开关) */
|
|
22
|
+
export declare function createEvaluatorRepairDeps(workspaceDir: string, stateManager: RuntimeStateManager, logger?: PluginLogger): {
|
|
23
|
+
isRepairLoopEnabled: () => boolean;
|
|
24
|
+
seedArtificerRepairTask: (params: SeedArtificerRepairParams) => Promise<string>;
|
|
25
|
+
};
|
|
26
|
+
/** rollout reviewer 治理 deps: dispatch + revision reopen */
|
|
27
|
+
export declare function createRolloutGovernanceDeps(workspaceDir: string, orchestrator: InternalizationOrchestrator, logger?: PluginLogger): {
|
|
28
|
+
dispatchActivation: (input: RolloutAutoDispatchInput) => Promise<RolloutAutoDispatchOutcome>;
|
|
29
|
+
reopenRevisionTarget: (input: RolloutRevisionRoutingInput) => Promise<{
|
|
30
|
+
ok: boolean;
|
|
31
|
+
reason: string;
|
|
32
|
+
reopenedTaskId?: string;
|
|
33
|
+
}>;
|
|
34
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "principles-disciple",
|
|
3
3
|
"name": "Principles Disciple",
|
|
4
4
|
"description": "Stop correcting the same AI behavior across sessions. Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles.",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.210.0",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onCapabilities": [
|
|
8
8
|
"hook"
|
package/plugin/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "principles-disciple",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.210.0",
|
|
4
4
|
"description": "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",
|