pulseed 0.4.6 → 0.4.7
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 +4 -0
- package/dist/adapters/agents/openclaw-acp.d.ts +32 -0
- package/dist/adapters/agents/openclaw-acp.d.ts.map +1 -0
- package/dist/adapters/agents/openclaw-acp.js +212 -0
- package/dist/adapters/agents/openclaw-acp.js.map +1 -0
- package/dist/adapters/datasources/openclaw-datasource.d.ts +33 -0
- package/dist/adapters/datasources/openclaw-datasource.d.ts.map +1 -0
- package/dist/adapters/datasources/openclaw-datasource.js +176 -0
- package/dist/adapters/datasources/openclaw-datasource.js.map +1 -0
- package/dist/base/state/state-lock.d.ts +3 -1
- package/dist/base/state/state-lock.d.ts.map +1 -1
- package/dist/base/state/state-lock.js +52 -10
- package/dist/base/state/state-lock.js.map +1 -1
- package/dist/base/state/state-manager-goal-write.d.ts +4 -0
- package/dist/base/state/state-manager-goal-write.d.ts.map +1 -1
- package/dist/base/state/state-manager-goal-write.js +45 -3
- package/dist/base/state/state-manager-goal-write.js.map +1 -1
- package/dist/base/state/state-manager-wal.d.ts.map +1 -1
- package/dist/base/state/state-manager-wal.js +12 -0
- package/dist/base/state/state-manager-wal.js.map +1 -1
- package/dist/base/state/state-manager.d.ts +1 -1
- package/dist/base/state/state-manager.d.ts.map +1 -1
- package/dist/base/state/state-manager.js +129 -88
- package/dist/base/state/state-manager.js.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/interface/chat/chat-event-state.d.ts.map +1 -1
- package/dist/interface/chat/chat-event-state.js +12 -24
- package/dist/interface/chat/chat-event-state.js.map +1 -1
- package/dist/interface/chat/chat-events.d.ts +9 -1
- package/dist/interface/chat/chat-events.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner.d.ts +19 -0
- package/dist/interface/chat/chat-runner.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner.js +101 -5
- package/dist/interface/chat/chat-runner.js.map +1 -1
- package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
- package/dist/interface/chat/cross-platform-session.js +36 -0
- package/dist/interface/chat/cross-platform-session.js.map +1 -1
- package/dist/interface/cli/commands/chat.d.ts.map +1 -1
- package/dist/interface/cli/commands/chat.js +9 -0
- package/dist/interface/cli/commands/chat.js.map +1 -1
- package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon.js +14 -0
- package/dist/interface/cli/commands/daemon.js.map +1 -1
- package/dist/interface/cli/commands/doctor.d.ts +3 -0
- package/dist/interface/cli/commands/doctor.d.ts.map +1 -1
- package/dist/interface/cli/commands/doctor.js +136 -1
- package/dist/interface/cli/commands/doctor.js.map +1 -1
- package/dist/interface/cli/commands/setup/import/apply.d.ts +3 -0
- package/dist/interface/cli/commands/setup/import/apply.d.ts.map +1 -0
- package/dist/interface/cli/commands/setup/import/apply.js +140 -0
- package/dist/interface/cli/commands/setup/import/apply.js.map +1 -0
- package/dist/interface/cli/commands/setup/import/constants.d.ts +5 -0
- package/dist/interface/cli/commands/setup/import/constants.d.ts.map +1 -0
- package/dist/interface/cli/commands/setup/import/constants.js +19 -0
- package/dist/interface/cli/commands/setup/import/constants.js.map +1 -0
- package/dist/interface/cli/commands/setup/import/discovery.d.ts +3 -0
- package/dist/interface/cli/commands/setup/import/discovery.d.ts.map +1 -0
- package/dist/interface/cli/commands/setup/import/discovery.js +140 -0
- package/dist/interface/cli/commands/setup/import/discovery.js.map +1 -0
- package/dist/interface/cli/commands/setup/import/flow.d.ts +5 -0
- package/dist/interface/cli/commands/setup/import/flow.d.ts.map +1 -0
- package/dist/interface/cli/commands/setup/import/flow.js +138 -0
- package/dist/interface/cli/commands/setup/import/flow.js.map +1 -0
- package/dist/interface/cli/commands/setup/import/fs-utils.d.ts +9 -0
- package/dist/interface/cli/commands/setup/import/fs-utils.d.ts.map +1 -0
- package/dist/interface/cli/commands/setup/import/fs-utils.js +83 -0
- package/dist/interface/cli/commands/setup/import/fs-utils.js.map +1 -0
- package/dist/interface/cli/commands/setup/import/mcp.d.ts +4 -0
- package/dist/interface/cli/commands/setup/import/mcp.d.ts.map +1 -0
- package/dist/interface/cli/commands/setup/import/mcp.js +71 -0
- package/dist/interface/cli/commands/setup/import/mcp.js.map +1 -0
- package/dist/interface/cli/commands/setup/import/parse.d.ts +7 -0
- package/dist/interface/cli/commands/setup/import/parse.d.ts.map +1 -0
- package/dist/interface/cli/commands/setup/import/parse.js +40 -0
- package/dist/interface/cli/commands/setup/import/parse.js.map +1 -0
- package/dist/interface/cli/commands/setup/import/provider.d.ts +4 -0
- package/dist/interface/cli/commands/setup/import/provider.d.ts.map +1 -0
- package/dist/interface/cli/commands/setup/import/provider.js +142 -0
- package/dist/interface/cli/commands/setup/import/provider.js.map +1 -0
- package/dist/interface/cli/commands/setup/import/types.d.ts +53 -0
- package/dist/interface/cli/commands/setup/import/types.d.ts.map +1 -0
- package/dist/interface/cli/commands/setup/import/types.js +2 -0
- package/dist/interface/cli/commands/setup/import/types.js.map +1 -0
- package/dist/interface/cli/commands/setup/steps-adapter.d.ts +1 -1
- package/dist/interface/cli/commands/setup/steps-adapter.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup/steps-adapter.js +32 -5
- package/dist/interface/cli/commands/setup/steps-adapter.js.map +1 -1
- package/dist/interface/cli/commands/setup/steps-identity.d.ts +2 -2
- package/dist/interface/cli/commands/setup/steps-identity.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup/steps-identity.js +10 -4
- package/dist/interface/cli/commands/setup/steps-identity.js.map +1 -1
- package/dist/interface/cli/commands/setup/steps-provider.d.ts +4 -4
- package/dist/interface/cli/commands/setup/steps-provider.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup/steps-provider.js +58 -10
- package/dist/interface/cli/commands/setup/steps-provider.js.map +1 -1
- package/dist/interface/cli/commands/setup/steps-runtime.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup/steps-runtime.js +2 -3
- package/dist/interface/cli/commands/setup/steps-runtime.js.map +1 -1
- package/dist/interface/cli/commands/setup-wizard.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup-wizard.js +309 -62
- package/dist/interface/cli/commands/setup-wizard.js.map +1 -1
- package/dist/interface/cli/setup.d.ts.map +1 -1
- package/dist/interface/cli/setup.js +1 -1
- package/dist/interface/cli/setup.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js +91 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js.map +1 -1
- package/dist/orchestrator/execution/pipeline-executor.d.ts +1 -0
- package/dist/orchestrator/execution/pipeline-executor.d.ts.map +1 -1
- package/dist/orchestrator/execution/pipeline-executor.js +39 -8
- package/dist/orchestrator/execution/pipeline-executor.js.map +1 -1
- package/dist/orchestrator/execution/result-reconciler.d.ts.map +1 -1
- package/dist/orchestrator/execution/result-reconciler.js +79 -54
- package/dist/orchestrator/execution/result-reconciler.js.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-helpers.d.ts +2 -1
- package/dist/orchestrator/execution/task/task-execution-helpers.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-helpers.js +11 -1
- package/dist/orchestrator/execution/task/task-execution-helpers.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.js +33 -0
- package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
- package/dist/orchestrator/goal/goal-dependency-graph.d.ts.map +1 -1
- package/dist/orchestrator/goal/goal-dependency-graph.js +20 -8
- package/dist/orchestrator/goal/goal-dependency-graph.js.map +1 -1
- package/dist/orchestrator/goal/goal-refiner.d.ts +3 -5
- package/dist/orchestrator/goal/goal-refiner.d.ts.map +1 -1
- package/dist/orchestrator/goal/goal-refiner.js +3 -5
- package/dist/orchestrator/goal/goal-refiner.js.map +1 -1
- package/dist/orchestrator/knowledge/memory/memory-lifecycle.d.ts +2 -0
- package/dist/orchestrator/knowledge/memory/memory-lifecycle.d.ts.map +1 -0
- package/dist/orchestrator/knowledge/memory/memory-lifecycle.js +2 -0
- package/dist/orchestrator/knowledge/memory/memory-lifecycle.js.map +1 -0
- package/dist/orchestrator/strategy/cross-goal-portfolio.d.ts.map +1 -1
- package/dist/orchestrator/strategy/cross-goal-portfolio.js +20 -12
- package/dist/orchestrator/strategy/cross-goal-portfolio.js.map +1 -1
- package/dist/orchestrator/strategy/portfolio-manager.d.ts.map +1 -1
- package/dist/orchestrator/strategy/portfolio-manager.js +8 -4
- package/dist/orchestrator/strategy/portfolio-manager.js.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager-base.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager-base.js +29 -24
- package/dist/orchestrator/strategy/strategy-manager-base.js.map +1 -1
- package/dist/platform/dream/dream-soil-sync.d.ts +2 -0
- package/dist/platform/dream/dream-soil-sync.d.ts.map +1 -1
- package/dist/platform/dream/dream-soil-sync.js +19 -0
- package/dist/platform/dream/dream-soil-sync.js.map +1 -1
- package/dist/platform/drive/satisficing-judge.d.ts.map +1 -1
- package/dist/platform/drive/satisficing-judge.js +20 -6
- package/dist/platform/drive/satisficing-judge.js.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-lint.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-lint.js +4 -3
- package/dist/platform/knowledge/knowledge-manager-lint.js.map +1 -1
- package/dist/platform/knowledge/knowledge-manager.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-manager.js +2 -1
- package/dist/platform/knowledge/knowledge-manager.js.map +1 -1
- package/dist/platform/knowledge/knowledge-search.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-search.js +15 -3
- package/dist/platform/knowledge/knowledge-search.js.map +1 -1
- package/dist/platform/knowledge/learning/learning-cross-goal.d.ts.map +1 -1
- package/dist/platform/knowledge/learning/learning-cross-goal.js +9 -5
- package/dist/platform/knowledge/learning/learning-cross-goal.js.map +1 -1
- package/dist/platform/observation/observation-apply.d.ts.map +1 -1
- package/dist/platform/observation/observation-apply.js +93 -99
- package/dist/platform/observation/observation-apply.js.map +1 -1
- package/dist/platform/soil/compiled-memory-projections.d.ts +12 -0
- package/dist/platform/soil/compiled-memory-projections.d.ts.map +1 -0
- package/dist/platform/soil/compiled-memory-projections.js +238 -0
- package/dist/platform/soil/compiled-memory-projections.js.map +1 -0
- package/dist/platform/soil/content-projections.d.ts +3 -7
- package/dist/platform/soil/content-projections.d.ts.map +1 -1
- package/dist/platform/soil/content-projections.js +67 -105
- package/dist/platform/soil/content-projections.js.map +1 -1
- package/dist/platform/soil/context-compiler.d.ts +34 -0
- package/dist/platform/soil/context-compiler.d.ts.map +1 -0
- package/dist/platform/soil/context-compiler.js +298 -0
- package/dist/platform/soil/context-compiler.js.map +1 -0
- package/dist/platform/soil/context-evaluation.d.ts +63 -0
- package/dist/platform/soil/context-evaluation.d.ts.map +1 -0
- package/dist/platform/soil/context-evaluation.js +90 -0
- package/dist/platform/soil/context-evaluation.js.map +1 -0
- package/dist/platform/soil/contracts.d.ts +269 -30
- package/dist/platform/soil/contracts.d.ts.map +1 -1
- package/dist/platform/soil/contracts.js +87 -0
- package/dist/platform/soil/contracts.js.map +1 -1
- package/dist/platform/soil/doctor.d.ts +5 -1
- package/dist/platform/soil/doctor.d.ts.map +1 -1
- package/dist/platform/soil/doctor.js +94 -1
- package/dist/platform/soil/doctor.js.map +1 -1
- package/dist/platform/soil/feedback-store.d.ts +10 -0
- package/dist/platform/soil/feedback-store.d.ts.map +1 -0
- package/dist/platform/soil/feedback-store.js +38 -0
- package/dist/platform/soil/feedback-store.js.map +1 -0
- package/dist/platform/soil/health.d.ts +35 -0
- package/dist/platform/soil/health.d.ts.map +1 -0
- package/dist/platform/soil/health.js +126 -0
- package/dist/platform/soil/health.js.map +1 -0
- package/dist/platform/soil/index-store.d.ts.map +1 -1
- package/dist/platform/soil/index-store.js +10 -1
- package/dist/platform/soil/index-store.js.map +1 -1
- package/dist/platform/soil/index.d.ts +4 -0
- package/dist/platform/soil/index.d.ts.map +1 -1
- package/dist/platform/soil/index.js +4 -0
- package/dist/platform/soil/index.js.map +1 -1
- package/dist/platform/soil/projection-support.d.ts +48 -0
- package/dist/platform/soil/projection-support.d.ts.map +1 -0
- package/dist/platform/soil/projection-support.js +107 -0
- package/dist/platform/soil/projection-support.js.map +1 -0
- package/dist/platform/soil/runtime-rebuild.d.ts.map +1 -1
- package/dist/platform/soil/runtime-rebuild.js +1 -2
- package/dist/platform/soil/runtime-rebuild.js.map +1 -1
- package/dist/platform/soil/sqlite-repository.d.ts.map +1 -1
- package/dist/platform/soil/sqlite-repository.js +51 -15
- package/dist/platform/soil/sqlite-repository.js.map +1 -1
- package/dist/runtime/command-dispatcher.d.ts +2 -0
- package/dist/runtime/command-dispatcher.d.ts.map +1 -1
- package/dist/runtime/command-dispatcher.js +11 -0
- package/dist/runtime/command-dispatcher.js.map +1 -1
- package/dist/runtime/control/daemon-runtime-control-executor.d.ts +13 -0
- package/dist/runtime/control/daemon-runtime-control-executor.d.ts.map +1 -0
- package/dist/runtime/control/daemon-runtime-control-executor.js +46 -0
- package/dist/runtime/control/daemon-runtime-control-executor.js.map +1 -0
- package/dist/runtime/control/index.d.ts +7 -0
- package/dist/runtime/control/index.d.ts.map +1 -0
- package/dist/runtime/control/index.js +4 -0
- package/dist/runtime/control/index.js.map +1 -0
- package/dist/runtime/control/runtime-control-intent.d.ts +7 -0
- package/dist/runtime/control/runtime-control-intent.d.ts.map +1 -0
- package/dist/runtime/control/runtime-control-intent.js +31 -0
- package/dist/runtime/control/runtime-control-intent.js.map +1 -0
- package/dist/runtime/control/runtime-control-service.d.ts +44 -0
- package/dist/runtime/control/runtime-control-service.d.ts.map +1 -0
- package/dist/runtime/control/runtime-control-service.js +143 -0
- package/dist/runtime/control/runtime-control-service.js.map +1 -0
- package/dist/runtime/daemon/client.d.ts +4 -0
- package/dist/runtime/daemon/client.d.ts.map +1 -1
- package/dist/runtime/daemon/client.js +9 -5
- package/dist/runtime/daemon/client.js.map +1 -1
- package/dist/runtime/daemon/runner.d.ts +2 -0
- package/dist/runtime/daemon/runner.d.ts.map +1 -1
- package/dist/runtime/daemon/runner.js +72 -1
- package/dist/runtime/daemon/runner.js.map +1 -1
- package/dist/runtime/event/server.d.ts +1 -0
- package/dist/runtime/event/server.d.ts.map +1 -1
- package/dist/runtime/event/server.js +36 -0
- package/dist/runtime/event/server.js.map +1 -1
- package/dist/runtime/store/index.d.ts +3 -0
- package/dist/runtime/store/index.d.ts.map +1 -1
- package/dist/runtime/store/index.js +2 -0
- package/dist/runtime/store/index.js.map +1 -1
- package/dist/runtime/store/runtime-operation-schemas.d.ts +213 -0
- package/dist/runtime/store/runtime-operation-schemas.d.ts.map +1 -0
- package/dist/runtime/store/runtime-operation-schemas.js +62 -0
- package/dist/runtime/store/runtime-operation-schemas.js.map +1 -0
- package/dist/runtime/store/runtime-operation-store.d.ts +17 -0
- package/dist/runtime/store/runtime-operation-store.d.ts.map +1 -0
- package/dist/runtime/store/runtime-operation-store.js +57 -0
- package/dist/runtime/store/runtime-operation-store.js.map +1 -0
- package/dist/runtime/store/runtime-schemas.d.ts +2 -2
- package/dist/runtime/types/daemon.d.ts +3 -0
- package/dist/runtime/types/daemon.d.ts.map +1 -1
- package/dist/runtime/types/daemon.js +1 -0
- package/dist/runtime/types/daemon.js.map +1 -1
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts.map +1 -1
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js +20 -0
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js.map +1 -1
- package/dist/tools/execution/SoilDoctorTool/prompt.d.ts +1 -1
- package/dist/tools/execution/SoilDoctorTool/prompt.d.ts.map +1 -1
- package/dist/tools/execution/SoilDoctorTool/prompt.js +1 -1
- package/dist/tools/execution/SoilDoctorTool/prompt.js.map +1 -1
- package/dist/tools/system/EnvTool/EnvTool.d.ts +4 -4
- package/package.json +1 -1
|
@@ -15,6 +15,8 @@ export declare const SoilLaneSchema: z.ZodEnum<["direct", "lexical", "dense", "h
|
|
|
15
15
|
export type SoilLane = z.infer<typeof SoilLaneSchema>;
|
|
16
16
|
export declare const SoilSortDirectionSchema: z.ZodEnum<["asc", "desc"]>;
|
|
17
17
|
export type SoilSortDirection = z.infer<typeof SoilSortDirectionSchema>;
|
|
18
|
+
export declare const SoilMemoryLifecycleStateSchema: z.ZodEnum<["active", "deprecated", "superseded", "archived", "tombstoned"]>;
|
|
19
|
+
export type SoilMemoryLifecycleState = z.infer<typeof SoilMemoryLifecycleStateSchema>;
|
|
18
20
|
export declare const SoilRecordSchema: z.ZodObject<{
|
|
19
21
|
record_id: z.ZodString;
|
|
20
22
|
record_key: z.ZodString;
|
|
@@ -141,8 +143,8 @@ export declare const SoilPageSchema: z.ZodObject<{
|
|
|
141
143
|
route: "status" | "schedule" | "goal" | "task" | "decision" | "knowledge" | "identity" | "index" | "report" | "memory" | "health" | "timeline" | "operations" | "inbox";
|
|
142
144
|
checksum: string;
|
|
143
145
|
relative_path: string;
|
|
144
|
-
markdown: string;
|
|
145
146
|
page_id: string;
|
|
147
|
+
markdown: string;
|
|
146
148
|
projected_at: string;
|
|
147
149
|
}, {
|
|
148
150
|
status: "candidate" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "deprecated";
|
|
@@ -151,8 +153,8 @@ export declare const SoilPageSchema: z.ZodObject<{
|
|
|
151
153
|
route: "status" | "schedule" | "goal" | "task" | "decision" | "knowledge" | "identity" | "index" | "report" | "memory" | "health" | "timeline" | "operations" | "inbox";
|
|
152
154
|
checksum: string;
|
|
153
155
|
relative_path: string;
|
|
154
|
-
markdown: string;
|
|
155
156
|
page_id: string;
|
|
157
|
+
markdown: string;
|
|
156
158
|
projected_at: string;
|
|
157
159
|
}>;
|
|
158
160
|
export type SoilPage = z.infer<typeof SoilPageSchema>;
|
|
@@ -274,24 +276,24 @@ export declare const SoilRecordFilterSchema: z.ZodObject<{
|
|
|
274
276
|
updated_before: z.ZodOptional<z.ZodString>;
|
|
275
277
|
}, "strip", z.ZodTypeAny, {
|
|
276
278
|
active_only: boolean;
|
|
279
|
+
goal_ids?: string[] | undefined;
|
|
280
|
+
task_ids?: string[] | undefined;
|
|
277
281
|
record_ids?: string[] | undefined;
|
|
278
282
|
record_keys?: string[] | undefined;
|
|
279
283
|
record_types?: ("observation" | "state" | "decision" | "identity" | "reflection" | "fact" | "preference" | "workflow" | "artifact")[] | undefined;
|
|
280
284
|
statuses?: ("completed" | "candidate" | "active" | "cancelled" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "expired" | "deleted" | "unreachable" | "replaced")[] | undefined;
|
|
281
|
-
goal_ids?: string[] | undefined;
|
|
282
|
-
task_ids?: string[] | undefined;
|
|
283
285
|
source_types?: string[] | undefined;
|
|
284
286
|
source_ids?: string[] | undefined;
|
|
285
287
|
valid_at?: string | undefined;
|
|
286
288
|
updated_after?: string | undefined;
|
|
287
289
|
updated_before?: string | undefined;
|
|
288
290
|
}, {
|
|
291
|
+
goal_ids?: string[] | undefined;
|
|
292
|
+
task_ids?: string[] | undefined;
|
|
289
293
|
record_ids?: string[] | undefined;
|
|
290
294
|
record_keys?: string[] | undefined;
|
|
291
295
|
record_types?: ("observation" | "state" | "decision" | "identity" | "reflection" | "fact" | "preference" | "workflow" | "artifact")[] | undefined;
|
|
292
296
|
statuses?: ("completed" | "candidate" | "active" | "cancelled" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "expired" | "deleted" | "unreachable" | "replaced")[] | undefined;
|
|
293
|
-
goal_ids?: string[] | undefined;
|
|
294
|
-
task_ids?: string[] | undefined;
|
|
295
297
|
source_types?: string[] | undefined;
|
|
296
298
|
source_ids?: string[] | undefined;
|
|
297
299
|
active_only?: boolean | undefined;
|
|
@@ -326,24 +328,24 @@ export declare const SoilSearchRequestSchema: z.ZodObject<{
|
|
|
326
328
|
updated_before: z.ZodOptional<z.ZodString>;
|
|
327
329
|
}, "strip", z.ZodTypeAny, {
|
|
328
330
|
active_only: boolean;
|
|
331
|
+
goal_ids?: string[] | undefined;
|
|
332
|
+
task_ids?: string[] | undefined;
|
|
329
333
|
record_ids?: string[] | undefined;
|
|
330
334
|
record_keys?: string[] | undefined;
|
|
331
335
|
record_types?: ("observation" | "state" | "decision" | "identity" | "reflection" | "fact" | "preference" | "workflow" | "artifact")[] | undefined;
|
|
332
336
|
statuses?: ("completed" | "candidate" | "active" | "cancelled" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "expired" | "deleted" | "unreachable" | "replaced")[] | undefined;
|
|
333
|
-
goal_ids?: string[] | undefined;
|
|
334
|
-
task_ids?: string[] | undefined;
|
|
335
337
|
source_types?: string[] | undefined;
|
|
336
338
|
source_ids?: string[] | undefined;
|
|
337
339
|
valid_at?: string | undefined;
|
|
338
340
|
updated_after?: string | undefined;
|
|
339
341
|
updated_before?: string | undefined;
|
|
340
342
|
}, {
|
|
343
|
+
goal_ids?: string[] | undefined;
|
|
344
|
+
task_ids?: string[] | undefined;
|
|
341
345
|
record_ids?: string[] | undefined;
|
|
342
346
|
record_keys?: string[] | undefined;
|
|
343
347
|
record_types?: ("observation" | "state" | "decision" | "identity" | "reflection" | "fact" | "preference" | "workflow" | "artifact")[] | undefined;
|
|
344
348
|
statuses?: ("completed" | "candidate" | "active" | "cancelled" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "expired" | "deleted" | "unreachable" | "replaced")[] | undefined;
|
|
345
|
-
goal_ids?: string[] | undefined;
|
|
346
|
-
task_ids?: string[] | undefined;
|
|
347
349
|
source_types?: string[] | undefined;
|
|
348
350
|
source_ids?: string[] | undefined;
|
|
349
351
|
active_only?: boolean | undefined;
|
|
@@ -382,12 +384,12 @@ export declare const SoilSearchRequestSchema: z.ZodObject<{
|
|
|
382
384
|
direct_lookup: boolean;
|
|
383
385
|
record_filter: {
|
|
384
386
|
active_only: boolean;
|
|
387
|
+
goal_ids?: string[] | undefined;
|
|
388
|
+
task_ids?: string[] | undefined;
|
|
385
389
|
record_ids?: string[] | undefined;
|
|
386
390
|
record_keys?: string[] | undefined;
|
|
387
391
|
record_types?: ("observation" | "state" | "decision" | "identity" | "reflection" | "fact" | "preference" | "workflow" | "artifact")[] | undefined;
|
|
388
392
|
statuses?: ("completed" | "candidate" | "active" | "cancelled" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "expired" | "deleted" | "unreachable" | "replaced")[] | undefined;
|
|
389
|
-
goal_ids?: string[] | undefined;
|
|
390
|
-
task_ids?: string[] | undefined;
|
|
391
393
|
source_types?: string[] | undefined;
|
|
392
394
|
source_ids?: string[] | undefined;
|
|
393
395
|
valid_at?: string | undefined;
|
|
@@ -416,12 +418,12 @@ export declare const SoilSearchRequestSchema: z.ZodObject<{
|
|
|
416
418
|
dense_candidate_record_ids?: string[] | undefined;
|
|
417
419
|
direct_lookup?: boolean | undefined;
|
|
418
420
|
record_filter?: {
|
|
421
|
+
goal_ids?: string[] | undefined;
|
|
422
|
+
task_ids?: string[] | undefined;
|
|
419
423
|
record_ids?: string[] | undefined;
|
|
420
424
|
record_keys?: string[] | undefined;
|
|
421
425
|
record_types?: ("observation" | "state" | "decision" | "identity" | "reflection" | "fact" | "preference" | "workflow" | "artifact")[] | undefined;
|
|
422
426
|
statuses?: ("completed" | "candidate" | "active" | "cancelled" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "expired" | "deleted" | "unreachable" | "replaced")[] | undefined;
|
|
423
|
-
goal_ids?: string[] | undefined;
|
|
424
|
-
task_ids?: string[] | undefined;
|
|
425
427
|
source_types?: string[] | undefined;
|
|
426
428
|
source_ids?: string[] | undefined;
|
|
427
429
|
active_only?: boolean | undefined;
|
|
@@ -498,24 +500,24 @@ export declare const SoilSearchResultSchema: z.ZodObject<{
|
|
|
498
500
|
updated_before: z.ZodOptional<z.ZodString>;
|
|
499
501
|
}, "strip", z.ZodTypeAny, {
|
|
500
502
|
active_only: boolean;
|
|
503
|
+
goal_ids?: string[] | undefined;
|
|
504
|
+
task_ids?: string[] | undefined;
|
|
501
505
|
record_ids?: string[] | undefined;
|
|
502
506
|
record_keys?: string[] | undefined;
|
|
503
507
|
record_types?: ("observation" | "state" | "decision" | "identity" | "reflection" | "fact" | "preference" | "workflow" | "artifact")[] | undefined;
|
|
504
508
|
statuses?: ("completed" | "candidate" | "active" | "cancelled" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "expired" | "deleted" | "unreachable" | "replaced")[] | undefined;
|
|
505
|
-
goal_ids?: string[] | undefined;
|
|
506
|
-
task_ids?: string[] | undefined;
|
|
507
509
|
source_types?: string[] | undefined;
|
|
508
510
|
source_ids?: string[] | undefined;
|
|
509
511
|
valid_at?: string | undefined;
|
|
510
512
|
updated_after?: string | undefined;
|
|
511
513
|
updated_before?: string | undefined;
|
|
512
514
|
}, {
|
|
515
|
+
goal_ids?: string[] | undefined;
|
|
516
|
+
task_ids?: string[] | undefined;
|
|
513
517
|
record_ids?: string[] | undefined;
|
|
514
518
|
record_keys?: string[] | undefined;
|
|
515
519
|
record_types?: ("observation" | "state" | "decision" | "identity" | "reflection" | "fact" | "preference" | "workflow" | "artifact")[] | undefined;
|
|
516
520
|
statuses?: ("completed" | "candidate" | "active" | "cancelled" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "expired" | "deleted" | "unreachable" | "replaced")[] | undefined;
|
|
517
|
-
goal_ids?: string[] | undefined;
|
|
518
|
-
task_ids?: string[] | undefined;
|
|
519
521
|
source_types?: string[] | undefined;
|
|
520
522
|
source_ids?: string[] | undefined;
|
|
521
523
|
active_only?: boolean | undefined;
|
|
@@ -554,12 +556,12 @@ export declare const SoilSearchResultSchema: z.ZodObject<{
|
|
|
554
556
|
direct_lookup: boolean;
|
|
555
557
|
record_filter: {
|
|
556
558
|
active_only: boolean;
|
|
559
|
+
goal_ids?: string[] | undefined;
|
|
560
|
+
task_ids?: string[] | undefined;
|
|
557
561
|
record_ids?: string[] | undefined;
|
|
558
562
|
record_keys?: string[] | undefined;
|
|
559
563
|
record_types?: ("observation" | "state" | "decision" | "identity" | "reflection" | "fact" | "preference" | "workflow" | "artifact")[] | undefined;
|
|
560
564
|
statuses?: ("completed" | "candidate" | "active" | "cancelled" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "expired" | "deleted" | "unreachable" | "replaced")[] | undefined;
|
|
561
|
-
goal_ids?: string[] | undefined;
|
|
562
|
-
task_ids?: string[] | undefined;
|
|
563
565
|
source_types?: string[] | undefined;
|
|
564
566
|
source_ids?: string[] | undefined;
|
|
565
567
|
valid_at?: string | undefined;
|
|
@@ -588,12 +590,12 @@ export declare const SoilSearchResultSchema: z.ZodObject<{
|
|
|
588
590
|
dense_candidate_record_ids?: string[] | undefined;
|
|
589
591
|
direct_lookup?: boolean | undefined;
|
|
590
592
|
record_filter?: {
|
|
593
|
+
goal_ids?: string[] | undefined;
|
|
594
|
+
task_ids?: string[] | undefined;
|
|
591
595
|
record_ids?: string[] | undefined;
|
|
592
596
|
record_keys?: string[] | undefined;
|
|
593
597
|
record_types?: ("observation" | "state" | "decision" | "identity" | "reflection" | "fact" | "preference" | "workflow" | "artifact")[] | undefined;
|
|
594
598
|
statuses?: ("completed" | "candidate" | "active" | "cancelled" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "expired" | "deleted" | "unreachable" | "replaced")[] | undefined;
|
|
595
|
-
goal_ids?: string[] | undefined;
|
|
596
|
-
task_ids?: string[] | undefined;
|
|
597
599
|
source_types?: string[] | undefined;
|
|
598
600
|
source_ids?: string[] | undefined;
|
|
599
601
|
active_only?: boolean | undefined;
|
|
@@ -662,12 +664,12 @@ export declare const SoilSearchResultSchema: z.ZodObject<{
|
|
|
662
664
|
direct_lookup: boolean;
|
|
663
665
|
record_filter: {
|
|
664
666
|
active_only: boolean;
|
|
667
|
+
goal_ids?: string[] | undefined;
|
|
668
|
+
task_ids?: string[] | undefined;
|
|
665
669
|
record_ids?: string[] | undefined;
|
|
666
670
|
record_keys?: string[] | undefined;
|
|
667
671
|
record_types?: ("observation" | "state" | "decision" | "identity" | "reflection" | "fact" | "preference" | "workflow" | "artifact")[] | undefined;
|
|
668
672
|
statuses?: ("completed" | "candidate" | "active" | "cancelled" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "expired" | "deleted" | "unreachable" | "replaced")[] | undefined;
|
|
669
|
-
goal_ids?: string[] | undefined;
|
|
670
|
-
task_ids?: string[] | undefined;
|
|
671
673
|
source_types?: string[] | undefined;
|
|
672
674
|
source_ids?: string[] | undefined;
|
|
673
675
|
valid_at?: string | undefined;
|
|
@@ -709,12 +711,12 @@ export declare const SoilSearchResultSchema: z.ZodObject<{
|
|
|
709
711
|
dense_candidate_record_ids?: string[] | undefined;
|
|
710
712
|
direct_lookup?: boolean | undefined;
|
|
711
713
|
record_filter?: {
|
|
714
|
+
goal_ids?: string[] | undefined;
|
|
715
|
+
task_ids?: string[] | undefined;
|
|
712
716
|
record_ids?: string[] | undefined;
|
|
713
717
|
record_keys?: string[] | undefined;
|
|
714
718
|
record_types?: ("observation" | "state" | "decision" | "identity" | "reflection" | "fact" | "preference" | "workflow" | "artifact")[] | undefined;
|
|
715
719
|
statuses?: ("completed" | "candidate" | "active" | "cancelled" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "expired" | "deleted" | "unreachable" | "replaced")[] | undefined;
|
|
716
|
-
goal_ids?: string[] | undefined;
|
|
717
|
-
task_ids?: string[] | undefined;
|
|
718
720
|
source_types?: string[] | undefined;
|
|
719
721
|
source_ids?: string[] | undefined;
|
|
720
722
|
active_only?: boolean | undefined;
|
|
@@ -733,6 +735,243 @@ export declare const SoilSearchResultSchema: z.ZodObject<{
|
|
|
733
735
|
};
|
|
734
736
|
}>;
|
|
735
737
|
export type SoilSearchResult = z.infer<typeof SoilSearchResultSchema>;
|
|
738
|
+
export declare const SoilContextRouteSchemaVersion: "soil-context-route-v1";
|
|
739
|
+
export declare const SoilRetrievalTraceSchemaVersion: "soil-retrieval-trace-v1";
|
|
740
|
+
export declare const SoilCompileMissObservationSchemaVersion: "soil-compile-miss-v1";
|
|
741
|
+
export declare const SoilMemoryLintFindingSchemaVersion: "soil-memory-lint-finding-v1";
|
|
742
|
+
export declare const SoilContextRouteSchema: z.ZodObject<{
|
|
743
|
+
schema_version: z.ZodDefault<z.ZodLiteral<"soil-context-route-v1">>;
|
|
744
|
+
route_id: z.ZodString;
|
|
745
|
+
status: z.ZodDefault<z.ZodEnum<["active", "deprecated", "superseded", "archived", "tombstoned"]>>;
|
|
746
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
747
|
+
path_globs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
748
|
+
goal_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
749
|
+
task_categories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
750
|
+
phases: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
751
|
+
soil_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
752
|
+
record_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
753
|
+
reason: z.ZodString;
|
|
754
|
+
created_at: z.ZodString;
|
|
755
|
+
updated_at: z.ZodString;
|
|
756
|
+
source_observation_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
757
|
+
last_evaluated_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
758
|
+
last_evaluation_result: z.ZodDefault<z.ZodEnum<["passed", "failed", "unknown"]>>;
|
|
759
|
+
}, "strip", z.ZodTypeAny, {
|
|
760
|
+
status: "active" | "archived" | "superseded" | "deprecated" | "tombstoned";
|
|
761
|
+
created_at: string;
|
|
762
|
+
updated_at: string;
|
|
763
|
+
priority: number;
|
|
764
|
+
reason: string;
|
|
765
|
+
phases: string[];
|
|
766
|
+
goal_ids: string[];
|
|
767
|
+
soil_ids: string[];
|
|
768
|
+
record_ids: string[];
|
|
769
|
+
schema_version: "soil-context-route-v1";
|
|
770
|
+
route_id: string;
|
|
771
|
+
path_globs: string[];
|
|
772
|
+
task_categories: string[];
|
|
773
|
+
source_observation_ids: string[];
|
|
774
|
+
last_evaluated_at: string | null;
|
|
775
|
+
last_evaluation_result: "unknown" | "passed" | "failed";
|
|
776
|
+
}, {
|
|
777
|
+
created_at: string;
|
|
778
|
+
updated_at: string;
|
|
779
|
+
reason: string;
|
|
780
|
+
route_id: string;
|
|
781
|
+
status?: "active" | "archived" | "superseded" | "deprecated" | "tombstoned" | undefined;
|
|
782
|
+
priority?: number | undefined;
|
|
783
|
+
phases?: string[] | undefined;
|
|
784
|
+
goal_ids?: string[] | undefined;
|
|
785
|
+
soil_ids?: string[] | undefined;
|
|
786
|
+
record_ids?: string[] | undefined;
|
|
787
|
+
schema_version?: "soil-context-route-v1" | undefined;
|
|
788
|
+
path_globs?: string[] | undefined;
|
|
789
|
+
task_categories?: string[] | undefined;
|
|
790
|
+
source_observation_ids?: string[] | undefined;
|
|
791
|
+
last_evaluated_at?: string | null | undefined;
|
|
792
|
+
last_evaluation_result?: "unknown" | "passed" | "failed" | undefined;
|
|
793
|
+
}>;
|
|
794
|
+
export type SoilContextRoute = z.infer<typeof SoilContextRouteSchema>;
|
|
795
|
+
export type SoilContextRouteInput = z.input<typeof SoilContextRouteSchema>;
|
|
796
|
+
export declare const SoilRetrievalDecisionSchema: z.ZodObject<{
|
|
797
|
+
candidate_id: z.ZodString;
|
|
798
|
+
decision: z.ZodEnum<["admitted", "rejected", "routed"]>;
|
|
799
|
+
reason: z.ZodString;
|
|
800
|
+
score: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
801
|
+
soil_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
802
|
+
record_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
803
|
+
route_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
804
|
+
}, "strip", z.ZodTypeAny, {
|
|
805
|
+
score: number | null;
|
|
806
|
+
reason: string;
|
|
807
|
+
decision: "rejected" | "admitted" | "routed";
|
|
808
|
+
candidate_id: string;
|
|
809
|
+
soil_id: string | null;
|
|
810
|
+
record_id: string | null;
|
|
811
|
+
route_id: string | null;
|
|
812
|
+
}, {
|
|
813
|
+
reason: string;
|
|
814
|
+
decision: "rejected" | "admitted" | "routed";
|
|
815
|
+
candidate_id: string;
|
|
816
|
+
score?: number | null | undefined;
|
|
817
|
+
soil_id?: string | null | undefined;
|
|
818
|
+
record_id?: string | null | undefined;
|
|
819
|
+
route_id?: string | null | undefined;
|
|
820
|
+
}>;
|
|
821
|
+
export type SoilRetrievalDecision = z.infer<typeof SoilRetrievalDecisionSchema>;
|
|
822
|
+
export declare const SoilRetrievalTraceSchema: z.ZodObject<{
|
|
823
|
+
schema_version: z.ZodDefault<z.ZodLiteral<"soil-retrieval-trace-v1">>;
|
|
824
|
+
retrieval_id: z.ZodString;
|
|
825
|
+
timestamp: z.ZodString;
|
|
826
|
+
task_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
827
|
+
goal_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
828
|
+
phase: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
829
|
+
task_category: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
830
|
+
target_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
831
|
+
fallback_query: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
832
|
+
decisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
833
|
+
candidate_id: z.ZodString;
|
|
834
|
+
decision: z.ZodEnum<["admitted", "rejected", "routed"]>;
|
|
835
|
+
reason: z.ZodString;
|
|
836
|
+
score: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
837
|
+
soil_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
838
|
+
record_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
839
|
+
route_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
840
|
+
}, "strip", z.ZodTypeAny, {
|
|
841
|
+
score: number | null;
|
|
842
|
+
reason: string;
|
|
843
|
+
decision: "rejected" | "admitted" | "routed";
|
|
844
|
+
candidate_id: string;
|
|
845
|
+
soil_id: string | null;
|
|
846
|
+
record_id: string | null;
|
|
847
|
+
route_id: string | null;
|
|
848
|
+
}, {
|
|
849
|
+
reason: string;
|
|
850
|
+
decision: "rejected" | "admitted" | "routed";
|
|
851
|
+
candidate_id: string;
|
|
852
|
+
score?: number | null | undefined;
|
|
853
|
+
soil_id?: string | null | undefined;
|
|
854
|
+
record_id?: string | null | undefined;
|
|
855
|
+
route_id?: string | null | undefined;
|
|
856
|
+
}>, "many">>;
|
|
857
|
+
warnings: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
858
|
+
}, "strip", z.ZodTypeAny, {
|
|
859
|
+
timestamp: string;
|
|
860
|
+
goal_id: string | null;
|
|
861
|
+
task_category: string | null;
|
|
862
|
+
task_id: string | null;
|
|
863
|
+
phase: string | null;
|
|
864
|
+
warnings: string[];
|
|
865
|
+
schema_version: "soil-retrieval-trace-v1";
|
|
866
|
+
retrieval_id: string;
|
|
867
|
+
target_paths: string[];
|
|
868
|
+
fallback_query: string | null;
|
|
869
|
+
decisions: {
|
|
870
|
+
score: number | null;
|
|
871
|
+
reason: string;
|
|
872
|
+
decision: "rejected" | "admitted" | "routed";
|
|
873
|
+
candidate_id: string;
|
|
874
|
+
soil_id: string | null;
|
|
875
|
+
record_id: string | null;
|
|
876
|
+
route_id: string | null;
|
|
877
|
+
}[];
|
|
878
|
+
}, {
|
|
879
|
+
timestamp: string;
|
|
880
|
+
retrieval_id: string;
|
|
881
|
+
goal_id?: string | null | undefined;
|
|
882
|
+
task_category?: string | null | undefined;
|
|
883
|
+
task_id?: string | null | undefined;
|
|
884
|
+
phase?: string | null | undefined;
|
|
885
|
+
warnings?: string[] | undefined;
|
|
886
|
+
schema_version?: "soil-retrieval-trace-v1" | undefined;
|
|
887
|
+
target_paths?: string[] | undefined;
|
|
888
|
+
fallback_query?: string | null | undefined;
|
|
889
|
+
decisions?: {
|
|
890
|
+
reason: string;
|
|
891
|
+
decision: "rejected" | "admitted" | "routed";
|
|
892
|
+
candidate_id: string;
|
|
893
|
+
score?: number | null | undefined;
|
|
894
|
+
soil_id?: string | null | undefined;
|
|
895
|
+
record_id?: string | null | undefined;
|
|
896
|
+
route_id?: string | null | undefined;
|
|
897
|
+
}[] | undefined;
|
|
898
|
+
}>;
|
|
899
|
+
export type SoilRetrievalTrace = z.infer<typeof SoilRetrievalTraceSchema>;
|
|
900
|
+
export declare const SoilCompileMissObservationSchema: z.ZodObject<{
|
|
901
|
+
schema_version: z.ZodDefault<z.ZodLiteral<"soil-compile-miss-v1">>;
|
|
902
|
+
observation_id: z.ZodString;
|
|
903
|
+
retrieval_id: z.ZodString;
|
|
904
|
+
reason: z.ZodEnum<["no_route", "bad_route", "stale_route", "low_confidence_search", "irrelevant_context"]>;
|
|
905
|
+
target_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
906
|
+
route_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
907
|
+
rejected_candidate_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
908
|
+
created_at: z.ZodString;
|
|
909
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
910
|
+
}, "strip", z.ZodTypeAny, {
|
|
911
|
+
created_at: string;
|
|
912
|
+
observation_id: string;
|
|
913
|
+
reason: "no_route" | "bad_route" | "stale_route" | "low_confidence_search" | "irrelevant_context";
|
|
914
|
+
schema_version: "soil-compile-miss-v1";
|
|
915
|
+
retrieval_id: string;
|
|
916
|
+
target_paths: string[];
|
|
917
|
+
route_ids: string[];
|
|
918
|
+
rejected_candidate_ids: string[];
|
|
919
|
+
notes?: string | undefined;
|
|
920
|
+
}, {
|
|
921
|
+
created_at: string;
|
|
922
|
+
observation_id: string;
|
|
923
|
+
reason: "no_route" | "bad_route" | "stale_route" | "low_confidence_search" | "irrelevant_context";
|
|
924
|
+
retrieval_id: string;
|
|
925
|
+
notes?: string | undefined;
|
|
926
|
+
schema_version?: "soil-compile-miss-v1" | undefined;
|
|
927
|
+
target_paths?: string[] | undefined;
|
|
928
|
+
route_ids?: string[] | undefined;
|
|
929
|
+
rejected_candidate_ids?: string[] | undefined;
|
|
930
|
+
}>;
|
|
931
|
+
export type SoilCompileMissObservation = z.infer<typeof SoilCompileMissObservationSchema>;
|
|
932
|
+
export declare const SoilMemoryLintFindingCodeSchema: z.ZodEnum<["stale_page", "orphan_page", "broken_source_ref", "conflicting_active_record", "overgrown_page", "stale_route", "missing_route", "broken_route_target", "schema_incompatible"]>;
|
|
933
|
+
export type SoilMemoryLintFindingCode = z.infer<typeof SoilMemoryLintFindingCodeSchema>;
|
|
934
|
+
export declare const SoilMemoryLintFindingSchema: z.ZodObject<{
|
|
935
|
+
schema_version: z.ZodDefault<z.ZodLiteral<"soil-memory-lint-finding-v1">>;
|
|
936
|
+
finding_id: z.ZodString;
|
|
937
|
+
code: z.ZodEnum<["stale_page", "orphan_page", "broken_source_ref", "conflicting_active_record", "overgrown_page", "stale_route", "missing_route", "broken_route_target", "schema_incompatible"]>;
|
|
938
|
+
severity: z.ZodEnum<["info", "warning", "error"]>;
|
|
939
|
+
status: z.ZodDefault<z.ZodEnum<["open", "resolved", "ignored"]>>;
|
|
940
|
+
message: z.ZodString;
|
|
941
|
+
soil_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
942
|
+
record_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
943
|
+
route_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
944
|
+
source_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
945
|
+
created_at: z.ZodString;
|
|
946
|
+
resolved_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
947
|
+
}, "strip", z.ZodTypeAny, {
|
|
948
|
+
code: "stale_route" | "stale_page" | "orphan_page" | "broken_source_ref" | "conflicting_active_record" | "overgrown_page" | "missing_route" | "broken_route_target" | "schema_incompatible";
|
|
949
|
+
message: string;
|
|
950
|
+
status: "open" | "resolved" | "ignored";
|
|
951
|
+
created_at: string;
|
|
952
|
+
severity: "error" | "info" | "warning";
|
|
953
|
+
source_path: string | null;
|
|
954
|
+
soil_id: string | null;
|
|
955
|
+
record_id: string | null;
|
|
956
|
+
schema_version: "soil-memory-lint-finding-v1";
|
|
957
|
+
route_id: string | null;
|
|
958
|
+
finding_id: string;
|
|
959
|
+
resolved_at: string | null;
|
|
960
|
+
}, {
|
|
961
|
+
code: "stale_route" | "stale_page" | "orphan_page" | "broken_source_ref" | "conflicting_active_record" | "overgrown_page" | "missing_route" | "broken_route_target" | "schema_incompatible";
|
|
962
|
+
message: string;
|
|
963
|
+
created_at: string;
|
|
964
|
+
severity: "error" | "info" | "warning";
|
|
965
|
+
finding_id: string;
|
|
966
|
+
status?: "open" | "resolved" | "ignored" | undefined;
|
|
967
|
+
source_path?: string | null | undefined;
|
|
968
|
+
soil_id?: string | null | undefined;
|
|
969
|
+
record_id?: string | null | undefined;
|
|
970
|
+
schema_version?: "soil-memory-lint-finding-v1" | undefined;
|
|
971
|
+
route_id?: string | null | undefined;
|
|
972
|
+
resolved_at?: string | null | undefined;
|
|
973
|
+
}>;
|
|
974
|
+
export type SoilMemoryLintFinding = z.infer<typeof SoilMemoryLintFindingSchema>;
|
|
736
975
|
export declare const SoilMutationSchema: z.ZodObject<{
|
|
737
976
|
records: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
738
977
|
record_id: z.ZodString;
|
|
@@ -858,8 +1097,8 @@ export declare const SoilMutationSchema: z.ZodObject<{
|
|
|
858
1097
|
route: "status" | "schedule" | "goal" | "task" | "decision" | "knowledge" | "identity" | "index" | "report" | "memory" | "health" | "timeline" | "operations" | "inbox";
|
|
859
1098
|
checksum: string;
|
|
860
1099
|
relative_path: string;
|
|
861
|
-
markdown: string;
|
|
862
1100
|
page_id: string;
|
|
1101
|
+
markdown: string;
|
|
863
1102
|
projected_at: string;
|
|
864
1103
|
}, {
|
|
865
1104
|
status: "candidate" | "archived" | "superseded" | "rejected" | "confirmed" | "draft" | "stale" | "deprecated";
|
|
@@ -868,8 +1107,8 @@ export declare const SoilMutationSchema: z.ZodObject<{
|
|
|
868
1107
|
route: "status" | "schedule" | "goal" | "task" | "decision" | "knowledge" | "identity" | "index" | "report" | "memory" | "health" | "timeline" | "operations" | "inbox";
|
|
869
1108
|
checksum: string;
|
|
870
1109
|
relative_path: string;
|
|
871
|
-
markdown: string;
|
|
872
1110
|
page_id: string;
|
|
1111
|
+
markdown: string;
|
|
873
1112
|
projected_at: string;
|
|
874
1113
|
}>, "many">>;
|
|
875
1114
|
page_members: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -987,8 +1226,8 @@ export declare const SoilMutationSchema: z.ZodObject<{
|
|
|
987
1226
|
route: "status" | "schedule" | "goal" | "task" | "decision" | "knowledge" | "identity" | "index" | "report" | "memory" | "health" | "timeline" | "operations" | "inbox";
|
|
988
1227
|
checksum: string;
|
|
989
1228
|
relative_path: string;
|
|
990
|
-
markdown: string;
|
|
991
1229
|
page_id: string;
|
|
1230
|
+
markdown: string;
|
|
992
1231
|
projected_at: string;
|
|
993
1232
|
}[];
|
|
994
1233
|
chunks: {
|
|
@@ -1064,8 +1303,8 @@ export declare const SoilMutationSchema: z.ZodObject<{
|
|
|
1064
1303
|
route: "status" | "schedule" | "goal" | "task" | "decision" | "knowledge" | "identity" | "index" | "report" | "memory" | "health" | "timeline" | "operations" | "inbox";
|
|
1065
1304
|
checksum: string;
|
|
1066
1305
|
relative_path: string;
|
|
1067
|
-
markdown: string;
|
|
1068
1306
|
page_id: string;
|
|
1307
|
+
markdown: string;
|
|
1069
1308
|
projected_at: string;
|
|
1070
1309
|
}[] | undefined;
|
|
1071
1310
|
chunks?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../src/platform/soil/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB,yHAU/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,sBAAsB,oLAejC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,mBAAmB,2FAS9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,wBAAwB,wEAMnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,kBAAkB,+GAQ7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,2BAA2B,8BAA4B,CAAC;AACrE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,cAAc,0EAAwE,CAAC;AACpG,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,uBAAuB,4BAA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
56
|
export const SoilEmbeddingEncodingSchema = z.enum(["json", "f32le"]);
|
|
57
57
|
export const SoilLaneSchema = z.enum(["direct", "lexical", "dense", "hybrid", "recency", "rerank"]);
|
|
58
58
|
export const SoilSortDirectionSchema = z.enum(["asc", "desc"]);
|
|
59
|
+
export const SoilMemoryLifecycleStateSchema = z.enum([
|
|
60
|
+
"active",
|
|
61
|
+
"deprecated",
|
|
62
|
+
"superseded",
|
|
63
|
+
"archived",
|
|
64
|
+
"tombstoned",
|
|
65
|
+
]);
|
|
59
66
|
export const SoilRecordSchema = z.object({
|
|
60
67
|
record_id: z.string().min(1),
|
|
61
68
|
record_key: z.string().min(1),
|
|
@@ -182,6 +189,86 @@ export const SoilSearchResultSchema = z.object({
|
|
|
182
189
|
request: SoilSearchRequestSchema,
|
|
183
190
|
candidates: z.array(SoilCandidateSchema),
|
|
184
191
|
});
|
|
192
|
+
export const SoilContextRouteSchemaVersion = "soil-context-route-v1";
|
|
193
|
+
export const SoilRetrievalTraceSchemaVersion = "soil-retrieval-trace-v1";
|
|
194
|
+
export const SoilCompileMissObservationSchemaVersion = "soil-compile-miss-v1";
|
|
195
|
+
export const SoilMemoryLintFindingSchemaVersion = "soil-memory-lint-finding-v1";
|
|
196
|
+
export const SoilContextRouteSchema = z.object({
|
|
197
|
+
schema_version: z.literal(SoilContextRouteSchemaVersion).default(SoilContextRouteSchemaVersion),
|
|
198
|
+
route_id: z.string().min(1),
|
|
199
|
+
status: SoilMemoryLifecycleStateSchema.default("active"),
|
|
200
|
+
priority: z.number().int().default(0),
|
|
201
|
+
path_globs: z.array(z.string().min(1)).default([]),
|
|
202
|
+
goal_ids: z.array(z.string().min(1)).default([]),
|
|
203
|
+
task_categories: z.array(z.string().min(1)).default([]),
|
|
204
|
+
phases: z.array(z.string().min(1)).default([]),
|
|
205
|
+
soil_ids: z.array(z.string().min(1)).default([]),
|
|
206
|
+
record_ids: z.array(z.string().min(1)).default([]),
|
|
207
|
+
reason: z.string().min(1),
|
|
208
|
+
created_at: z.string().datetime(),
|
|
209
|
+
updated_at: z.string().datetime(),
|
|
210
|
+
source_observation_ids: z.array(z.string().min(1)).default([]),
|
|
211
|
+
last_evaluated_at: z.string().datetime().nullable().default(null),
|
|
212
|
+
last_evaluation_result: z.enum(["passed", "failed", "unknown"]).default("unknown"),
|
|
213
|
+
});
|
|
214
|
+
export const SoilRetrievalDecisionSchema = z.object({
|
|
215
|
+
candidate_id: z.string().min(1),
|
|
216
|
+
decision: z.enum(["admitted", "rejected", "routed"]),
|
|
217
|
+
reason: z.string().min(1),
|
|
218
|
+
score: z.number().nullable().default(null),
|
|
219
|
+
soil_id: z.string().min(1).nullable().default(null),
|
|
220
|
+
record_id: z.string().min(1).nullable().default(null),
|
|
221
|
+
route_id: z.string().min(1).nullable().default(null),
|
|
222
|
+
});
|
|
223
|
+
export const SoilRetrievalTraceSchema = z.object({
|
|
224
|
+
schema_version: z.literal(SoilRetrievalTraceSchemaVersion).default(SoilRetrievalTraceSchemaVersion),
|
|
225
|
+
retrieval_id: z.string().min(1),
|
|
226
|
+
timestamp: z.string().datetime(),
|
|
227
|
+
task_id: z.string().min(1).nullable().default(null),
|
|
228
|
+
goal_id: z.string().min(1).nullable().default(null),
|
|
229
|
+
phase: z.string().min(1).nullable().default(null),
|
|
230
|
+
task_category: z.string().min(1).nullable().default(null),
|
|
231
|
+
target_paths: z.array(z.string().min(1)).default([]),
|
|
232
|
+
fallback_query: z.string().min(1).nullable().default(null),
|
|
233
|
+
decisions: z.array(SoilRetrievalDecisionSchema).default([]),
|
|
234
|
+
warnings: z.array(z.string().min(1)).default([]),
|
|
235
|
+
});
|
|
236
|
+
export const SoilCompileMissObservationSchema = z.object({
|
|
237
|
+
schema_version: z.literal(SoilCompileMissObservationSchemaVersion).default(SoilCompileMissObservationSchemaVersion),
|
|
238
|
+
observation_id: z.string().min(1),
|
|
239
|
+
retrieval_id: z.string().min(1),
|
|
240
|
+
reason: z.enum(["no_route", "bad_route", "stale_route", "low_confidence_search", "irrelevant_context"]),
|
|
241
|
+
target_paths: z.array(z.string().min(1)).default([]),
|
|
242
|
+
route_ids: z.array(z.string().min(1)).default([]),
|
|
243
|
+
rejected_candidate_ids: z.array(z.string().min(1)).default([]),
|
|
244
|
+
created_at: z.string().datetime(),
|
|
245
|
+
notes: z.string().optional(),
|
|
246
|
+
});
|
|
247
|
+
export const SoilMemoryLintFindingCodeSchema = z.enum([
|
|
248
|
+
"stale_page",
|
|
249
|
+
"orphan_page",
|
|
250
|
+
"broken_source_ref",
|
|
251
|
+
"conflicting_active_record",
|
|
252
|
+
"overgrown_page",
|
|
253
|
+
"stale_route",
|
|
254
|
+
"missing_route",
|
|
255
|
+
"broken_route_target",
|
|
256
|
+
"schema_incompatible",
|
|
257
|
+
]);
|
|
258
|
+
export const SoilMemoryLintFindingSchema = z.object({
|
|
259
|
+
schema_version: z.literal(SoilMemoryLintFindingSchemaVersion).default(SoilMemoryLintFindingSchemaVersion),
|
|
260
|
+
finding_id: z.string().min(1),
|
|
261
|
+
code: SoilMemoryLintFindingCodeSchema,
|
|
262
|
+
severity: z.enum(["info", "warning", "error"]),
|
|
263
|
+
status: z.enum(["open", "resolved", "ignored"]).default("open"),
|
|
264
|
+
message: z.string().min(1),
|
|
265
|
+
soil_id: z.string().min(1).nullable().default(null),
|
|
266
|
+
record_id: z.string().min(1).nullable().default(null),
|
|
267
|
+
route_id: z.string().min(1).nullable().default(null),
|
|
268
|
+
source_path: z.string().min(1).nullable().default(null),
|
|
269
|
+
created_at: z.string().datetime(),
|
|
270
|
+
resolved_at: z.string().datetime().nullable().default(null),
|
|
271
|
+
});
|
|
185
272
|
export const SoilMutationSchema = z.object({
|
|
186
273
|
records: z.array(SoilRecordSchema).default([]),
|
|
187
274
|
chunks: z.array(SoilChunkSchema).default([]),
|