@wrongstack/core 0.302.2 → 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.
Files changed (52) hide show
  1. package/README.md +1 -1
  2. package/dist/chronicle/index.js +117 -30
  3. package/dist/chronicle/project-server.js +12 -5
  4. package/dist/coordination/agents/index.js +4313 -3516
  5. package/dist/coordination/agents/project-agent-auto-optimize.d.ts +116 -0
  6. package/dist/coordination/agents/project-agent-capture-window.d.ts +29 -0
  7. package/dist/coordination/agents/project-agent-config-io.d.ts +11 -0
  8. package/dist/coordination/agents/project-agent-consolidation.d.ts +29 -2
  9. package/dist/coordination/agents/project-agent-files.d.ts +12 -3
  10. package/dist/coordination/agents/project-agent-identity-types.d.ts +4 -0
  11. package/dist/coordination/agents/project-agent-identity.d.ts +22 -9
  12. package/dist/coordination/agents/project-agent-learning-entries.d.ts +8 -2
  13. package/dist/coordination/agents/project-agent-learning-structured.d.ts +27 -1
  14. package/dist/coordination/agents/project-agent-optimizer.d.ts +49 -0
  15. package/dist/coordination/agents/project-agent-skill-layer.d.ts +101 -0
  16. package/dist/coordination/agents/role-skills.d.ts +11 -1
  17. package/dist/coordination/index.d.ts +1 -1
  18. package/dist/coordination/index.js +2322 -1526
  19. package/dist/coordination/mail-tools.d.ts +1 -1
  20. package/dist/core/context.d.ts +4 -0
  21. package/dist/core/index.js +9 -0
  22. package/dist/defaults/index.js +895 -597
  23. package/dist/execution/index.js +2915 -2621
  24. package/dist/goal/index.js +7 -0
  25. package/dist/index.js +2406 -1331
  26. package/dist/kernel/events/agent-events.d.ts +28 -0
  27. package/dist/plugin/index.js +10 -4
  28. package/dist/security/index.js +69 -3
  29. package/dist/security/kanban-boundary.d.ts +5 -1
  30. package/dist/session-catalog/index.js +24 -2
  31. package/dist/session-catalog/project-server.js +27 -4
  32. package/dist/session-catalog/protocol.d.ts +9 -0
  33. package/dist/session-catalog/store.d.ts +17 -1
  34. package/dist/storage/index.js +81 -2
  35. package/dist/storage/plan-store.d.ts +1 -1
  36. package/dist/tasking/index.js +5 -0
  37. package/dist/tools/index.js +2824 -2604
  38. package/dist/types/config/root.d.ts +11 -1
  39. package/dist/types/config/skills-fleet-brain.d.ts +34 -0
  40. package/dist/types/config/ui.d.ts +14 -0
  41. package/dist/types/config.d.ts +1 -0
  42. package/dist/types/index.d.ts +2 -2
  43. package/dist/types/index.js +20 -0
  44. package/dist/types/multi-agent.d.ts +7 -0
  45. package/dist/types/task-graph.d.ts +2 -0
  46. package/dist/types/tool-executor.d.ts +2 -0
  47. package/dist/utils/index.js +3 -0
  48. package/instructions/system-lite.md +14 -8
  49. package/instructions/system-pro.md +17 -11
  50. package/instructions/system.md +17 -11
  51. package/package.json +3 -3
  52. package/skills/wrongstack-kanban/SKILL.md +39 -8
@@ -75,12 +75,12 @@ export declare function makeMailSendTool(opts?: MailToolsOptions): {
75
75
  required: string[];
76
76
  };
77
77
  execute(input: unknown, ctx: Context): Promise<{
78
- summary?: never;
79
78
  ok: boolean;
80
79
  error: string;
81
80
  messageId?: never;
82
81
  from?: never;
83
82
  to?: never;
83
+ summary?: never;
84
84
  } | {
85
85
  error?: never;
86
86
  ok: boolean;
@@ -17,6 +17,10 @@ export interface TodoItem {
17
17
  promotedFromPlan?: string | undefined;
18
18
  /** When promoted from a task, stores the task's id. */
19
19
  promotedFromTask?: string | undefined;
20
+ /** Durable Kanban owner when the todo row is a UI projection of a real card. */
21
+ kanbanBoardId?: string | undefined;
22
+ /** Durable Kanban card represented by this todo row. */
23
+ kanbanTaskId?: string | undefined;
20
24
  }
21
25
  export interface RunOptions {
22
26
  signal?: AbortSignal | undefined;
@@ -5369,6 +5369,12 @@ var Context = class _Context {
5369
5369
  setCurrentKanbanTask(taskId, boardId) {
5370
5370
  this.currentKanbanTaskId = taskId;
5371
5371
  this.currentKanbanBoardId = boardId;
5372
+ const existing = this.meta["kanban"] && typeof this.meta["kanban"] === "object" ? this.meta["kanban"] : {};
5373
+ this.state.setMeta("kanban", {
5374
+ ...existing,
5375
+ ...taskId ? { taskId } : { taskId: void 0 },
5376
+ ...boardId ? { boardId } : { boardId: void 0 }
5377
+ });
5372
5378
  }
5373
5379
  /**
5374
5380
  * Record a comprehensive file event for the audit trail.
@@ -7087,6 +7093,9 @@ ${text}` : text;
7087
7093
  const responseProvider = providerBoundToRequest(req) ?? requestProvider;
7088
7094
  const responseResult = await handlers.response.processResponse(res, req, responseProvider);
7089
7095
  await refreshProviderContextLimit(responseProvider, req.model, { probe: false });
7096
+ if (responseResult.finalText) {
7097
+ a.ctx.meta["lastAgentOutput"] = responseResult.finalText;
7098
+ }
7090
7099
  if (responseResult.aborted) {
7091
7100
  return {
7092
7101
  status: "aborted",