@alan512/experienceengine 0.1.0 → 0.1.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/.claude-plugin/plugin.json +1 -1
- package/.mcp.json +4 -8
- package/LICENSE +21 -0
- package/README.md +158 -47
- package/README.zh-CN.md +178 -57
- package/dist/adapters/codex/instruction-template.d.ts +3 -0
- package/dist/adapters/codex/instruction-template.js +12 -0
- package/dist/adapters/codex/instruction-template.js.map +1 -0
- package/dist/adapters/codex/mcp-server.d.ts +38 -41
- package/dist/adapters/codex/mcp-server.js +107 -338
- package/dist/adapters/codex/mcp-server.js.map +1 -1
- package/dist/analyzer/llm-learning-gate.js +39 -0
- package/dist/analyzer/llm-learning-gate.js.map +1 -1
- package/dist/cli/commands/claude-hook.js +12 -3
- package/dist/cli/commands/claude-hook.js.map +1 -1
- package/dist/cli/commands/config.js +88 -2
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts +4 -28
- package/dist/cli/commands/doctor.js +136 -68
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/feedback.js +4 -0
- package/dist/cli/commands/feedback.js.map +1 -1
- package/dist/cli/commands/init.d.ts +28 -0
- package/dist/cli/commands/init.js +419 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/inspect.js +203 -37
- package/dist/cli/commands/inspect.js.map +1 -1
- package/dist/cli/commands/install.js +9 -0
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/maintenance.js +1 -1
- package/dist/cli/commands/maintenance.js.map +1 -1
- package/dist/cli/commands/mcp-server.js +4 -0
- package/dist/cli/commands/mcp-server.js.map +1 -1
- package/dist/cli/commands/status.js +57 -7
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/dispatch.js +22 -7
- package/dist/cli/dispatch.js.map +1 -1
- package/dist/cli/state-model.d.ts +14 -0
- package/dist/cli/state-model.js +23 -0
- package/dist/cli/state-model.js.map +1 -0
- package/dist/config/config-schema.d.ts +32 -0
- package/dist/config/config-schema.js +26 -0
- package/dist/config/config-schema.js.map +1 -1
- package/dist/config/default-config.js +3 -0
- package/dist/config/default-config.js.map +1 -1
- package/dist/config/load-config.js +19 -1
- package/dist/config/load-config.js.map +1 -1
- package/dist/config/path-resolver.d.ts +0 -1
- package/dist/config/path-resolver.js +0 -2
- package/dist/config/path-resolver.js.map +1 -1
- package/dist/config/runtime-env.d.ts +8 -0
- package/dist/config/runtime-env.js +14 -0
- package/dist/config/runtime-env.js.map +1 -0
- package/dist/config/secrets-store.d.ts +15 -0
- package/dist/config/secrets-store.js +56 -0
- package/dist/config/secrets-store.js.map +1 -0
- package/dist/config/settings-store.d.ts +10 -0
- package/dist/config/settings-store.js +44 -0
- package/dist/config/settings-store.js.map +1 -1
- package/dist/controller/candidate-retriever.d.ts +35 -2
- package/dist/controller/candidate-retriever.js +189 -10
- package/dist/controller/candidate-retriever.js.map +1 -1
- package/dist/controller/injection-renderer.js +52 -1
- package/dist/controller/injection-renderer.js.map +1 -1
- package/dist/controller/injection-scorecard.d.ts +14 -2
- package/dist/controller/injection-scorecard.js +18 -1
- package/dist/controller/injection-scorecard.js.map +1 -1
- package/dist/controller/intervention-controller.d.ts +15 -2
- package/dist/controller/intervention-controller.js +173 -11
- package/dist/controller/intervention-controller.js.map +1 -1
- package/dist/controller/lexical-retriever.d.ts +14 -0
- package/dist/controller/lexical-retriever.js +117 -0
- package/dist/controller/lexical-retriever.js.map +1 -0
- package/dist/controller/model-reranker.d.ts +20 -0
- package/dist/controller/model-reranker.js +187 -0
- package/dist/controller/model-reranker.js.map +1 -0
- package/dist/controller/node-ranker.js +1 -0
- package/dist/controller/node-ranker.js.map +1 -1
- package/dist/controller/query-rewrite.d.ts +8 -0
- package/dist/controller/query-rewrite.js +69 -0
- package/dist/controller/query-rewrite.js.map +1 -0
- package/dist/controller/trigger-evaluator.d.ts +23 -2
- package/dist/controller/trigger-evaluator.js +57 -3
- package/dist/controller/trigger-evaluator.js.map +1 -1
- package/dist/distillation/experience-family.d.ts +4 -0
- package/dist/distillation/experience-family.js +14 -0
- package/dist/distillation/experience-family.js.map +1 -0
- package/dist/distillation/host-llm.d.ts +1 -0
- package/dist/distillation/host-llm.js +5 -1
- package/dist/distillation/host-llm.js.map +1 -1
- package/dist/distillation/llm-distiller.js +4 -0
- package/dist/distillation/llm-distiller.js.map +1 -1
- package/dist/distillation/merge-decider.js +4 -0
- package/dist/distillation/merge-decider.js.map +1 -1
- package/dist/distillation/prompt-contract.d.ts +1 -1
- package/dist/distillation/prompt-contract.js +3 -0
- package/dist/distillation/prompt-contract.js.map +1 -1
- package/dist/distillation/queue-worker.js +57 -7
- package/dist/distillation/queue-worker.js.map +1 -1
- package/dist/feedback/state-transition.js +9 -0
- package/dist/feedback/state-transition.js.map +1 -1
- package/dist/input/input-adapter.js +2 -1
- package/dist/input/input-adapter.js.map +1 -1
- package/dist/input/outcome-resolver.js +5 -5
- package/dist/input/outcome-resolver.js.map +1 -1
- package/dist/input/tasktype-resolver.js +2 -0
- package/dist/input/tasktype-resolver.js.map +1 -1
- package/dist/input/tool-event-significance.d.ts +5 -0
- package/dist/input/tool-event-significance.js +7 -0
- package/dist/input/tool-event-significance.js.map +1 -0
- package/dist/install/claude-code-doctor.d.ts +7 -2
- package/dist/install/claude-code-doctor.js +38 -9
- package/dist/install/claude-code-doctor.js.map +1 -1
- package/dist/install/claude-marketplace-state.d.ts +14 -0
- package/dist/install/claude-marketplace-state.js +47 -0
- package/dist/install/claude-marketplace-state.js.map +1 -0
- package/dist/install/codex-installer.d.ts +18 -0
- package/dist/install/codex-installer.js +91 -1
- package/dist/install/codex-installer.js.map +1 -1
- package/dist/install/openclaw-installer.d.ts +7 -0
- package/dist/install/openclaw-installer.js +16 -0
- package/dist/install/openclaw-installer.js.map +1 -1
- package/dist/install/public-install.d.ts +14 -4
- package/dist/install/public-install.js +20 -7
- package/dist/install/public-install.js.map +1 -1
- package/dist/interaction/repo-summary.d.ts +3 -17
- package/dist/interaction/repo-summary.js +10 -27
- package/dist/interaction/repo-summary.js.map +1 -1
- package/dist/interaction/service.d.ts +44 -95
- package/dist/interaction/service.js +333 -248
- package/dist/interaction/service.js.map +1 -1
- package/dist/maintenance/scope-merge.d.ts +0 -1
- package/dist/maintenance/scope-merge.js +0 -20
- package/dist/maintenance/scope-merge.js.map +1 -1
- package/dist/plugin/openclaw-plugin.d.ts +23 -0
- package/dist/plugin/openclaw-plugin.js +86 -6
- package/dist/plugin/openclaw-plugin.js.map +1 -1
- package/dist/plugin/openclaw-routine-interaction.d.ts +6 -0
- package/dist/plugin/openclaw-routine-interaction.js +296 -0
- package/dist/plugin/openclaw-routine-interaction.js.map +1 -0
- package/dist/runtime/service.d.ts +0 -1
- package/dist/runtime/service.js +20 -29
- package/dist/runtime/service.js.map +1 -1
- package/dist/store/sqlite/db.js +9 -0
- package/dist/store/sqlite/db.js.map +1 -1
- package/dist/store/sqlite/repositories/candidate-repo.js +8 -2
- package/dist/store/sqlite/repositories/candidate-repo.js.map +1 -1
- package/dist/store/sqlite/repositories/injection-repo.d.ts +1 -0
- package/dist/store/sqlite/repositories/injection-repo.js +11 -0
- package/dist/store/sqlite/repositories/injection-repo.js.map +1 -1
- package/dist/store/sqlite/repositories/input-record-repo.d.ts +2 -0
- package/dist/store/sqlite/repositories/input-record-repo.js +22 -0
- package/dist/store/sqlite/repositories/input-record-repo.js.map +1 -1
- package/dist/store/sqlite/repositories/node-repo.js +17 -2
- package/dist/store/sqlite/repositories/node-repo.js.map +1 -1
- package/dist/store/sqlite/repositories/task-run-repo.d.ts +2 -0
- package/dist/store/sqlite/repositories/task-run-repo.js +18 -2
- package/dist/store/sqlite/repositories/task-run-repo.js.map +1 -1
- package/dist/store/sqlite/schema.sql +9 -49
- package/dist/store/vector/api-embedding-provider.d.ts +2 -0
- package/dist/store/vector/api-embedding-provider.js +23 -19
- package/dist/store/vector/api-embedding-provider.js.map +1 -1
- package/dist/store/vector/embeddings.d.ts +1 -1
- package/dist/store/vector/embeddings.js +4 -1
- package/dist/store/vector/embeddings.js.map +1 -1
- package/dist/types/domain.d.ts +30 -46
- package/dist/types/plugin.d.ts +2 -1
- package/docs/releases/v0.1.2.md +3 -3
- package/docs/releases/v0.1.3.md +94 -0
- package/docs/user-guide.md +226 -123
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -2
- package/plugins/claude-code-experienceengine/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code-experienceengine/.mcp.json +4 -3
- package/plugins/claude-code-experienceengine/scripts/claude-hook.sh +30 -1
- package/plugins/claude-code-experienceengine/scripts/install-deps.sh +41 -6
- package/dist/cli/commands/pack.d.ts +0 -1
- package/dist/cli/commands/pack.js +0 -321
- package/dist/cli/commands/pack.js.map +0 -1
- package/dist/compiler/agents-renderer.d.ts +0 -4
- package/dist/compiler/agents-renderer.js +0 -105
- package/dist/compiler/agents-renderer.js.map +0 -1
- package/dist/compiler/claude-renderer.d.ts +0 -2
- package/dist/compiler/claude-renderer.js +0 -40
- package/dist/compiler/claude-renderer.js.map +0 -1
- package/dist/compiler/codex-renderer.d.ts +0 -2
- package/dist/compiler/codex-renderer.js +0 -40
- package/dist/compiler/codex-renderer.js.map +0 -1
- package/dist/compiler/compiler.d.ts +0 -4
- package/dist/compiler/compiler.js +0 -87
- package/dist/compiler/compiler.js.map +0 -1
- package/dist/compiler/deployer.d.ts +0 -21
- package/dist/compiler/deployer.js +0 -64
- package/dist/compiler/deployer.js.map +0 -1
- package/dist/compiler/github-renderer.d.ts +0 -2
- package/dist/compiler/github-renderer.js +0 -63
- package/dist/compiler/github-renderer.js.map +0 -1
- package/dist/compiler/types.d.ts +0 -45
- package/dist/compiler/types.js +0 -2
- package/dist/compiler/types.js.map +0 -1
- package/dist/interaction/pack-actions-service.d.ts +0 -59
- package/dist/interaction/pack-actions-service.js +0 -172
- package/dist/interaction/pack-actions-service.js.map +0 -1
- package/dist/packs/fs-registry.d.ts +0 -27
- package/dist/packs/fs-registry.js +0 -216
- package/dist/packs/fs-registry.js.map +0 -1
- package/dist/packs/index-sync.d.ts +0 -9
- package/dist/packs/index-sync.js +0 -54
- package/dist/packs/index-sync.js.map +0 -1
- package/dist/packs/types.d.ts +0 -55
- package/dist/packs/types.js +0 -2
- package/dist/packs/types.js.map +0 -1
- package/dist/store/sqlite/repositories/pack-repo.d.ts +0 -16
- package/dist/store/sqlite/repositories/pack-repo.js +0 -192
- package/dist/store/sqlite/repositories/pack-repo.js.map +0 -1
|
@@ -2,9 +2,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
2
2
|
import { type FeedbackValue } from "../../interaction/service.js";
|
|
3
3
|
import { ExperienceOperationalActionsService, type OperationalActionsDeps } from "../../interaction/operational-actions-service.js";
|
|
4
4
|
import { ExperienceStateArtifactService } from "../../interaction/state-artifact-service.js";
|
|
5
|
-
import { ExperiencePackActionsService } from "../../interaction/pack-actions-service.js";
|
|
6
5
|
import type { ExperienceNodeType, ExperienceState, ToolEventStatus } from "../../types/domain.js";
|
|
7
|
-
import type { CompilerTarget } from "../../compiler/types.js";
|
|
8
6
|
type CodexLookupArgs = {
|
|
9
7
|
cwd?: string;
|
|
10
8
|
prompt: string;
|
|
@@ -22,7 +20,7 @@ type CodexToolResultArgs = {
|
|
|
22
20
|
type CodexFinalizeArgs = {
|
|
23
21
|
sessionId: string;
|
|
24
22
|
cwd?: string;
|
|
25
|
-
prompt
|
|
23
|
+
prompt?: string;
|
|
26
24
|
contextSummary?: string;
|
|
27
25
|
};
|
|
28
26
|
type CodexServerOptions = {
|
|
@@ -31,7 +29,6 @@ type CodexServerOptions = {
|
|
|
31
29
|
fetchImpl?: typeof fetch;
|
|
32
30
|
operationalActionsDeps?: OperationalActionsDeps;
|
|
33
31
|
operationalActionsService?: ExperienceOperationalActionsService;
|
|
34
|
-
packActionsService?: ExperiencePackActionsService;
|
|
35
32
|
stateArtifactService?: ExperienceStateArtifactService;
|
|
36
33
|
};
|
|
37
34
|
type CodexRecentMode = "all" | "injected";
|
|
@@ -44,25 +41,39 @@ export declare const createCodexBehaviorLoop: (options?: CodexServerOptions) =>
|
|
|
44
41
|
text: string | undefined;
|
|
45
42
|
notice: string | undefined;
|
|
46
43
|
injectedNodeIds: string[] | never[];
|
|
47
|
-
|
|
44
|
+
summary: {
|
|
45
|
+
mode: string | undefined;
|
|
46
|
+
riskLevel: string | undefined;
|
|
47
|
+
recommendation: string | undefined;
|
|
48
|
+
actionReason: string | undefined;
|
|
49
|
+
trustSummary: string | undefined;
|
|
50
|
+
retrievalNotes: string[];
|
|
51
|
+
reasons: string[] | undefined;
|
|
52
|
+
nodes: {
|
|
53
|
+
id: string;
|
|
54
|
+
state: string | undefined;
|
|
55
|
+
riskLevel: string | undefined;
|
|
56
|
+
helped: number | undefined;
|
|
57
|
+
harmed: number | undefined;
|
|
58
|
+
}[];
|
|
59
|
+
} | undefined;
|
|
48
60
|
deliveryMode: import("../../types/domain.js").EvaluationMode | undefined;
|
|
49
61
|
delivered: boolean | undefined;
|
|
50
62
|
}>;
|
|
51
63
|
recordToolResult(args: CodexToolResultArgs): Promise<{
|
|
64
|
+
status: string;
|
|
52
65
|
toolName: string;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
outputSummary: string | undefined;
|
|
56
|
-
errorSignature: string | undefined;
|
|
66
|
+
eventStatus: ToolEventStatus;
|
|
67
|
+
hasErrorSignature: boolean;
|
|
57
68
|
exitCode: number | undefined;
|
|
58
69
|
}>;
|
|
59
70
|
finalizeTask(args: CodexFinalizeArgs): Promise<{
|
|
71
|
+
status: string;
|
|
60
72
|
taskType: import("../../types/domain.js").ResolvedTaskType;
|
|
61
|
-
taskSummary: string;
|
|
62
73
|
outcomeSignal: import("../../types/domain.js").OutcomeSignal;
|
|
63
74
|
injectedNodeIds: string[];
|
|
75
|
+
recordedToolEvents: number;
|
|
64
76
|
feedbackHint: string | undefined;
|
|
65
|
-
evidence: string[];
|
|
66
77
|
}>;
|
|
67
78
|
};
|
|
68
79
|
export declare const createCodexInteractionSurface: (options?: CodexServerOptions) => {
|
|
@@ -75,35 +86,6 @@ export declare const createCodexInteractionSurface: (options?: CodexServerOption
|
|
|
75
86
|
inspectNode(args: {
|
|
76
87
|
nodeId: string;
|
|
77
88
|
}): Promise<import("../../interaction/service.js").ExperienceNodeDetail | undefined>;
|
|
78
|
-
listPacks(): Promise<import("../../packs/types.js").ExperiencePackSummary[]>;
|
|
79
|
-
inspectPack(args: {
|
|
80
|
-
packId: string;
|
|
81
|
-
}): Promise<import("../../interaction/service.js").ExperiencePackDetailView | undefined>;
|
|
82
|
-
enablePack(args: {
|
|
83
|
-
packId: string;
|
|
84
|
-
cwd?: string;
|
|
85
|
-
}): Promise<import("../../interaction/service.js").ExperiencePackActivationResult>;
|
|
86
|
-
disablePack(args: {
|
|
87
|
-
packId: string;
|
|
88
|
-
cwd?: string;
|
|
89
|
-
}): Promise<import("../../interaction/service.js").ExperiencePackActivationResult>;
|
|
90
|
-
inspectPackDeploymentStatus(args: {
|
|
91
|
-
packId: string;
|
|
92
|
-
version?: string;
|
|
93
|
-
target: CompilerTarget;
|
|
94
|
-
repoPath: string;
|
|
95
|
-
}): Promise<import("../../compiler/deployer.js").DeployCompiledPackResult>;
|
|
96
|
-
compilePack(args: {
|
|
97
|
-
packId: string;
|
|
98
|
-
version?: string;
|
|
99
|
-
target: CompilerTarget;
|
|
100
|
-
}): Promise<import("../../compiler/types.js").CompileResult>;
|
|
101
|
-
deployPackPreview(args: {
|
|
102
|
-
packId: string;
|
|
103
|
-
version?: string;
|
|
104
|
-
target: CompilerTarget;
|
|
105
|
-
repoPath: string;
|
|
106
|
-
}): Promise<import("../../compiler/deployer.js").DeployCompiledPackResult>;
|
|
107
89
|
listNodesByState(args: {
|
|
108
90
|
state: ExperienceState;
|
|
109
91
|
}): Promise<import("../../interaction/service.js").ExperienceNodeSummary[]>;
|
|
@@ -133,7 +115,22 @@ export declare const lookupCodexExperienceHints: (args: CodexLookupArgs, options
|
|
|
133
115
|
text: string | undefined;
|
|
134
116
|
notice: string | undefined;
|
|
135
117
|
injectedNodeIds: string[] | never[];
|
|
136
|
-
|
|
118
|
+
summary: {
|
|
119
|
+
mode: string | undefined;
|
|
120
|
+
riskLevel: string | undefined;
|
|
121
|
+
recommendation: string | undefined;
|
|
122
|
+
actionReason: string | undefined;
|
|
123
|
+
trustSummary: string | undefined;
|
|
124
|
+
retrievalNotes: string[];
|
|
125
|
+
reasons: string[] | undefined;
|
|
126
|
+
nodes: {
|
|
127
|
+
id: string;
|
|
128
|
+
state: string | undefined;
|
|
129
|
+
riskLevel: string | undefined;
|
|
130
|
+
helped: number | undefined;
|
|
131
|
+
harmed: number | undefined;
|
|
132
|
+
}[];
|
|
133
|
+
} | undefined;
|
|
137
134
|
deliveryMode: import("../../types/domain.js").EvaluationMode | undefined;
|
|
138
135
|
delivered: boolean | undefined;
|
|
139
136
|
}>;
|