@wrongstack/core 0.302.0 → 0.303.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/agent-status-tracker.d.ts +6 -2
- package/dist/chronicle/index.js +1949 -1671
- package/dist/chronicle/metrics-store.d.ts +14 -0
- package/dist/chronicle/project-server-protocol.d.ts +13 -0
- package/dist/chronicle/project-server.js +1756 -1573
- package/dist/chronicle/rollup-adapter.d.ts +2 -0
- package/dist/chronicle/sqlite-journal.d.ts +59 -0
- package/dist/coordination/agents/index.js +4313 -3516
- package/dist/coordination/agents/project-agent-auto-optimize.d.ts +116 -0
- package/dist/coordination/agents/project-agent-capture-window.d.ts +29 -0
- package/dist/coordination/agents/project-agent-config-io.d.ts +11 -0
- package/dist/coordination/agents/project-agent-consolidation.d.ts +29 -2
- package/dist/coordination/agents/project-agent-files.d.ts +12 -3
- package/dist/coordination/agents/project-agent-identity-types.d.ts +4 -0
- package/dist/coordination/agents/project-agent-identity.d.ts +22 -9
- package/dist/coordination/agents/project-agent-learning-entries.d.ts +8 -2
- package/dist/coordination/agents/project-agent-learning-structured.d.ts +27 -1
- package/dist/coordination/agents/project-agent-optimizer.d.ts +49 -0
- package/dist/coordination/agents/project-agent-skill-layer.d.ts +101 -0
- package/dist/coordination/agents/role-skills.d.ts +11 -1
- package/dist/coordination/index.d.ts +1 -1
- package/dist/coordination/index.js +4927 -3589
- package/dist/coordination/mail-tools.d.ts +3 -3
- package/dist/core/context.d.ts +4 -0
- package/dist/core/continue-intent.d.ts +2 -0
- package/dist/core/conversation-state.d.ts +5 -0
- package/dist/core/index.js +129 -19
- package/dist/defaults/index.js +1620 -768
- package/dist/execution/index.js +2941 -2630
- package/dist/goal/index.js +7 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +12269 -9212
- package/dist/infrastructure/index.js +722 -672
- package/dist/kernel/events/agent-events.d.ts +28 -0
- package/dist/kernel/events/memory-events.d.ts +62 -0
- package/dist/plugin/index.js +2167 -1986
- package/dist/security/index.js +69 -3
- package/dist/security/kanban-boundary.d.ts +5 -1
- package/dist/session-catalog/client.d.ts +62 -0
- package/dist/session-catalog/endpoint.d.ts +6 -0
- package/dist/session-catalog/index.d.ts +6 -0
- package/dist/session-catalog/index.js +2000 -0
- package/dist/session-catalog/project-server.d.ts +3 -0
- package/dist/session-catalog/project-server.js +1861 -0
- package/dist/session-catalog/protocol.d.ts +284 -0
- package/dist/session-catalog/registry.d.ts +59 -0
- package/dist/session-catalog/store.d.ts +71 -0
- package/dist/storage/index.d.ts +42 -38
- package/dist/storage/index.js +13896 -12931
- package/dist/storage/plan-store.d.ts +1 -1
- package/dist/storage/session-event-bridge.d.ts +2 -2
- package/dist/storage/session-store.d.ts +6 -0
- package/dist/tasking/index.js +5 -0
- package/dist/tools/index.js +2832 -2606
- package/dist/types/config/root.d.ts +11 -1
- package/dist/types/config/skills-fleet-brain.d.ts +34 -0
- package/dist/types/config/ui.d.ts +14 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/types/context-evidence.d.ts +2 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +20 -0
- package/dist/types/messages.d.ts +8 -0
- package/dist/types/multi-agent.d.ts +7 -0
- package/dist/types/session.d.ts +19 -0
- package/dist/types/task-graph.d.ts +2 -0
- package/dist/types/tool-executor.d.ts +2 -0
- package/dist/utils/context-evidence.d.ts +13 -1
- package/dist/utils/index.js +29 -2
- package/instructions/system-lite.md +23 -8
- package/instructions/system-pro.md +29 -9
- package/instructions/system.md +29 -9
- package/package.json +7 -3
- package/skills/wrongstack-kanban/SKILL.md +39 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EventBus } from '../kernel/events.js';
|
|
2
1
|
import type { ConversationState } from '../core/conversation-state.js';
|
|
2
|
+
import type { EventBus } from '../kernel/events.js';
|
|
3
3
|
/**
|
|
4
4
|
* Plan items are the strategic counterpart to todos. Where `ctx.todos`
|
|
5
5
|
* is the moment-to-moment task board the LLM mutates per-turn, a plan
|
|
@@ -45,12 +45,12 @@ export interface SessionEventBridge {
|
|
|
45
45
|
allows(type: SessionEvent['type']): boolean;
|
|
46
46
|
}
|
|
47
47
|
/** Core events that are always written regardless of auditLevel. */
|
|
48
|
-
declare const CORE_RECONSTRUCT_EVENTS: Set<"agent_error" | "agent_spawned" | "agent_stopped" | "checkpoint" | "compaction" | "context_snapshot" | "error" | "file_event" | "file_observation" | "file_snapshot" | "in_flight_end" | "in_flight_start" | "llm_request" | "llm_response" | "message_appended" | "message_truncated" | "message_updated" | "messages_replaced" | "mode_changed" | "provider_error" | "provider_retry" | "rewound" | "session_end" | "session_forked" | "session_resumed" | "session_start" | "side_effect" | "skill_activated" | "skill_deactivated" | "spec_analyzed" | "spec_parsed" | "task_completed" | "task_created" | "task_failed" | "task_updated" | "tool_call_end" | "tool_call_start" | "tool_progress" | "tool_result" | "tool_use" | "user_input">;
|
|
48
|
+
declare const CORE_RECONSTRUCT_EVENTS: Set<"agent_error" | "agent_spawned" | "agent_stopped" | "checkpoint" | "compaction" | "context_snapshot" | "error" | "file_event" | "file_observation" | "file_snapshot" | "in_flight_end" | "in_flight_start" | "llm_request" | "llm_response" | "message_appended" | "message_truncated" | "message_updated" | "messages_dropped" | "messages_replaced" | "mode_changed" | "provider_error" | "provider_retry" | "rewound" | "session_end" | "session_forked" | "session_resumed" | "session_start" | "side_effect" | "skill_activated" | "skill_deactivated" | "spec_analyzed" | "spec_parsed" | "task_completed" | "task_created" | "task_failed" | "task_updated" | "tool_call_end" | "tool_call_start" | "tool_progress" | "tool_result" | "tool_use" | "user_input">;
|
|
49
49
|
/**
|
|
50
50
|
* Events that are considered "standard" audit detail.
|
|
51
51
|
* These are lightweight and high-value for forensics.
|
|
52
52
|
*/
|
|
53
|
-
declare const STANDARD_AUDIT_EVENTS: Set<"agent_error" | "agent_spawned" | "agent_stopped" | "checkpoint" | "compaction" | "context_snapshot" | "error" | "file_event" | "file_observation" | "file_snapshot" | "in_flight_end" | "in_flight_start" | "llm_request" | "llm_response" | "message_appended" | "message_truncated" | "message_updated" | "messages_replaced" | "mode_changed" | "provider_error" | "provider_retry" | "rewound" | "session_end" | "session_forked" | "session_resumed" | "session_start" | "side_effect" | "skill_activated" | "skill_deactivated" | "spec_analyzed" | "spec_parsed" | "task_completed" | "task_created" | "task_failed" | "task_updated" | "tool_call_end" | "tool_call_start" | "tool_progress" | "tool_result" | "tool_use" | "user_input">;
|
|
53
|
+
declare const STANDARD_AUDIT_EVENTS: Set<"agent_error" | "agent_spawned" | "agent_stopped" | "checkpoint" | "compaction" | "context_snapshot" | "error" | "file_event" | "file_observation" | "file_snapshot" | "in_flight_end" | "in_flight_start" | "llm_request" | "llm_response" | "message_appended" | "message_truncated" | "message_updated" | "messages_dropped" | "messages_replaced" | "mode_changed" | "provider_error" | "provider_retry" | "rewound" | "session_end" | "session_forked" | "session_resumed" | "session_start" | "side_effect" | "skill_activated" | "skill_deactivated" | "spec_analyzed" | "spec_parsed" | "task_completed" | "task_created" | "task_failed" | "task_updated" | "tool_call_end" | "tool_call_start" | "tool_progress" | "tool_result" | "tool_use" | "user_input">;
|
|
54
54
|
/**
|
|
55
55
|
* Create a safe, audit-level-aware bridge around a SessionWriter.
|
|
56
56
|
*
|
|
@@ -11,6 +11,9 @@ export declare class DefaultSessionStore implements SessionStore {
|
|
|
11
11
|
private readonly logger;
|
|
12
12
|
private readonly onAppend?;
|
|
13
13
|
private readonly onAppendBatch?;
|
|
14
|
+
/** Present in built production output; source-only tests retain the local compatibility path. */
|
|
15
|
+
private readonly catalogClient;
|
|
16
|
+
private readonly maintenanceHolderId;
|
|
14
17
|
/**
|
|
15
18
|
* In-memory cache for load() results, keyed by session ID. The cache is
|
|
16
19
|
* invalidated when the file's mtimeMs or size changes (indicating the
|
|
@@ -38,6 +41,7 @@ export declare class DefaultSessionStore implements SessionStore {
|
|
|
38
41
|
* the file has changed externally (e.g., another process wrote to it).
|
|
39
42
|
*/
|
|
40
43
|
clearLoadCache(sessionId?: string): void;
|
|
44
|
+
dispose(): Promise<void>;
|
|
41
45
|
/** Absolute path to the session index file. */
|
|
42
46
|
private get indexFile();
|
|
43
47
|
/** Join session ID to its absolute path within the store directory. */
|
|
@@ -131,6 +135,8 @@ export declare class DefaultSessionStore implements SessionStore {
|
|
|
131
135
|
private appendToIndexStrict;
|
|
132
136
|
/** Best-effort index append used by writer close. */
|
|
133
137
|
private appendToIndex;
|
|
138
|
+
/** Final summary boundary: daemon is authoritative when available. */
|
|
139
|
+
private persistCatalogSummary;
|
|
134
140
|
/** Append a tombstone entry for a deleted session. */
|
|
135
141
|
private writeTombstone;
|
|
136
142
|
/**
|
package/dist/tasking/index.js
CHANGED
|
@@ -367,6 +367,11 @@ var TaskTracker = class _TaskTracker {
|
|
|
367
367
|
if (!this.graph) return false;
|
|
368
368
|
const node = this.graph.nodes.get(id);
|
|
369
369
|
if (!node) return false;
|
|
370
|
+
if (node.specRequirementId && this.graph.requiredRequirementIds?.includes(node.specRequirementId) && !Array.from(this.graph.nodes.values()).some(
|
|
371
|
+
(candidate) => candidate.id !== id && candidate.specRequirementId === node.specRequirementId
|
|
372
|
+
)) {
|
|
373
|
+
return false;
|
|
374
|
+
}
|
|
370
375
|
this.graph.nodes.delete(id);
|
|
371
376
|
this.graph.edges = this.graph.edges.filter((e) => e.from !== id && e.to !== id);
|
|
372
377
|
this.graph.rootNodes = this.graph.rootNodes.filter((r) => r !== id);
|