@buildaharness/aielia 0.3.5 → 0.3.6

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 (46) hide show
  1. package/README.md +96 -18
  2. package/dist/action-approval-service.d.ts +34 -2
  3. package/dist/action-record.d.ts +13 -0
  4. package/dist/activity-log.d.ts +4 -0
  5. package/dist/agent-loop.d.ts +83 -1
  6. package/dist/assistant-session.d.ts +20 -1
  7. package/dist/assistant-types.d.ts +3 -1
  8. package/dist/assistant.d.ts +32 -0
  9. package/dist/{bin-CjKpxDxl.js → bin-BYRl4xXM.js} +365 -216
  10. package/dist/bin-BYRl4xXM.js.map +1 -0
  11. package/dist/cli-config.d.ts +3 -0
  12. package/dist/cli-session.d.ts +5 -4
  13. package/dist/cli.d.ts +9 -0
  14. package/dist/cli.js +1 -1
  15. package/dist/config.d.ts +2 -0
  16. package/dist/debug-log.d.ts +10 -1
  17. package/dist/email.d.ts +5 -3
  18. package/dist/file-tools-mcp-server.mjs +155 -30
  19. package/dist/file-tools.d.ts +2 -0
  20. package/dist/git-exclude.d.ts +9 -0
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +79 -78
  23. package/dist/ink-select-prompt.d.ts +2 -0
  24. package/dist/ink-test-render.d.ts +2 -0
  25. package/dist/memory-service.d.ts +8 -0
  26. package/dist/next-step-proposer.d.ts +7 -0
  27. package/dist/plan-drafting-service.d.ts +3 -0
  28. package/dist/plan-store.d.ts +5 -0
  29. package/dist/{provider-setup-LFsaTkpf.js → provider-setup-CV3S_TAS.js} +2129 -866
  30. package/dist/provider-setup-CV3S_TAS.js.map +1 -0
  31. package/dist/reply-audit.d.ts +67 -0
  32. package/dist/side-call-policy.d.ts +30 -0
  33. package/dist/tool-step.d.ts +6 -0
  34. package/dist/trace-events.d.ts +1 -1
  35. package/dist/trust-tagging.d.ts +2 -0
  36. package/dist/{tui-app-BLR-PRFp.js → tui-app-CJq6YaiP.js} +127 -26
  37. package/dist/tui-app-CJq6YaiP.js.map +1 -0
  38. package/dist/tui-app.d.ts +35 -0
  39. package/dist/turn-abort.d.ts +18 -0
  40. package/dist/turn-intent-classifier.d.ts +8 -0
  41. package/dist/turn-interpreter.d.ts +2 -0
  42. package/dist/version.d.ts +1 -1
  43. package/package.json +3 -3
  44. package/dist/bin-CjKpxDxl.js.map +0 -1
  45. package/dist/provider-setup-LFsaTkpf.js.map +0 -1
  46. package/dist/tui-app-BLR-PRFp.js.map +0 -1
@@ -27,6 +27,13 @@ export interface SuggestedNextStepNode {
27
27
  promotion: SuggestionPromotion;
28
28
  createdAt: string;
29
29
  }
30
+ /**
31
+ * Names the language the suggestions must be written in. The model drifted into Chinese, Spanish or French
32
+ * on English conversations when it was only told to "match the user's language", so English is named
33
+ * outright when the user's own text clearly is English (two distinct common English words); anything else
34
+ * keeps the generic instruction.
35
+ */
36
+ export declare function suggestionLanguage(userTexts: string[]): string;
30
37
  /** Q10's three-way policy shape, applied to this mechanism's own confidence rubric — see this module's doc comment on why the bands aren't reused from `shouldAutoPromote()`. */
31
38
  export declare function classifySuggestionPromotion(confidence: SuggestionConfidence): SuggestionPromotion;
32
39
  /**
@@ -68,6 +68,9 @@ export declare class PlanDraftingService {
68
68
  private readonly memory?;
69
69
  constructor(planService: PlanService, session: AssistantSession, llmClient: ILLMClient, model: () => string | undefined, planApproval: PlanApprovalService, onTrace: ((event: TraceEvent) => void) | undefined, agentLoop?: Pick<AgentLoop, "runSupervisorInvestigation"> | undefined, memory?: MemoryAdapter | undefined);
70
70
  private planAskPendingKey;
71
+ /** Points at the one nested question a session's draft currently has staged, so cancelling the draft (or staging a newer question) can drop it. */
72
+ private planAskSessionKey;
73
+ private dropStagedAsk;
71
74
  /** Peeked by `assistant.ts`'s runTurn before it decides whether a `pendingClarificationId` belongs to this nested-ask side channel (P8) or AskClarificationService's harness-resume path (Q2) — the two staging stores are otherwise independent, so an opaque ID has no other way to say which one it came from. */
72
75
  isPendingAsk(id: string): Promise<boolean>;
73
76
  /**
@@ -102,6 +102,11 @@ export interface PlanFsPersistence {
102
102
  backend: FsBackend;
103
103
  workspaceRoot: string;
104
104
  }
105
+ /**
106
+ * Removes the session's mirrored plan files. `loadPlanRecord` prefers the file over the memory record,
107
+ * so deleting only the memory record (`/new`) let the old plan come straight back. Never throws.
108
+ */
109
+ export declare function deletePlanFiles(fsPersistence: PlanFsPersistence, sessionId: string): Promise<void>;
105
110
  /**
106
111
  * Reads `sessionId`'s stored plan record regardless of `mode` — unlike `loadActivePlan`, which
107
112
  * filters to `mode === 'active'` only. Plan mode's P1 drafting path needs to resume a