praxis-agent 0.35.0 → 0.37.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 (111) hide show
  1. package/README.md +20 -2
  2. package/dist/application/background-agent-manager.d.ts +16 -6
  3. package/dist/application/background-agent-manager.js +139 -97
  4. package/dist/application/context-engine.d.ts +56 -0
  5. package/dist/application/context-engine.js +129 -0
  6. package/dist/application/durable-follow-up.d.ts +14 -0
  7. package/dist/application/durable-follow-up.js +52 -0
  8. package/dist/application/native-session-transcript.d.ts +72 -0
  9. package/dist/application/native-session-transcript.js +351 -0
  10. package/dist/application/native-sidechain-transcript.d.ts +34 -0
  11. package/dist/application/native-sidechain-transcript.js +156 -0
  12. package/dist/application/session-service.d.ts +23 -4
  13. package/dist/application/session-service.js +1130 -494
  14. package/dist/application/subagent-service.d.ts +5 -1
  15. package/dist/application/subagent-service.js +749 -320
  16. package/dist/application/team-agent-runtime.d.ts +29 -0
  17. package/dist/application/team-agent-runtime.js +169 -0
  18. package/dist/application/team-capability.d.ts +27 -0
  19. package/dist/application/team-capability.js +41 -0
  20. package/dist/application/team-lead-operations.d.ts +38 -0
  21. package/dist/application/team-lead-operations.js +155 -0
  22. package/dist/application/team-mailbox.d.ts +54 -0
  23. package/dist/application/team-mailbox.js +196 -0
  24. package/dist/application/team-manager.d.ts +113 -0
  25. package/dist/application/team-manager.js +681 -0
  26. package/dist/application/team-workspace.d.ts +29 -0
  27. package/dist/application/team-workspace.js +197 -0
  28. package/dist/application/top-level-agent-manager.d.ts +1 -0
  29. package/dist/application/top-level-agent-manager.js +1025 -403
  30. package/dist/application/transcript-projection.d.ts +35 -0
  31. package/dist/application/transcript-projection.js +139 -0
  32. package/dist/application/turn-lifecycle.d.ts +2 -0
  33. package/dist/application/turn-memory-coordinator.d.ts +43 -0
  34. package/dist/application/turn-memory-coordinator.js +98 -0
  35. package/dist/cli/agents-dashboard.js +10 -5
  36. package/dist/cli/interactive.d.ts +7 -0
  37. package/dist/cli/interactive.js +645 -334
  38. package/dist/cli/tui/claude-style.d.ts +8 -25
  39. package/dist/cli/tui/claude-style.js +299 -277
  40. package/dist/cli/tui/decision-surface-model.d.ts +71 -0
  41. package/dist/cli/tui/decision-surface-model.js +131 -0
  42. package/dist/cli/tui/decision-surface.d.ts +7 -0
  43. package/dist/cli/tui/decision-surface.js +41 -0
  44. package/dist/cli/tui/help-surface-model.d.ts +68 -0
  45. package/dist/cli/tui/help-surface-model.js +131 -0
  46. package/dist/cli/tui/mcp-panel.js +1 -2
  47. package/dist/cli/tui/permission-surface-model.d.ts +195 -0
  48. package/dist/cli/tui/permission-surface-model.js +360 -0
  49. package/dist/cli/tui/permission-surface.d.ts +7 -0
  50. package/dist/cli/tui/permission-surface.js +69 -0
  51. package/dist/cli/tui/presentation-environment.d.ts +32 -0
  52. package/dist/cli/tui/presentation-environment.js +149 -0
  53. package/dist/cli/tui/task-panel.js +10 -1
  54. package/dist/cli/tui/theme.d.ts +46 -3
  55. package/dist/cli/tui/theme.js +414 -56
  56. package/dist/cli/tui/tool-permission.js +16 -8
  57. package/dist/cli/tui/transcript-presentation.d.ts +19 -1
  58. package/dist/cli/tui/transcript-presentation.js +26 -6
  59. package/dist/cli/tui/transcript-viewport.d.ts +18 -0
  60. package/dist/cli/tui/transcript-viewport.js +517 -111
  61. package/dist/cli/tui/transcript-window-model.d.ts +108 -0
  62. package/dist/cli/tui/transcript-window-model.js +772 -0
  63. package/dist/cli/tui/tui-interaction-router.d.ts +78 -0
  64. package/dist/cli/tui/tui-interaction-router.js +127 -0
  65. package/dist/cli/tui/tui-screen-model.d.ts +114 -0
  66. package/dist/cli/tui/tui-screen-model.js +210 -0
  67. package/dist/cli/tui/tui-view-model.d.ts +2 -49
  68. package/dist/cli/tui/tui-view-model.js +1 -68
  69. package/dist/cli-runtime.d.ts +4 -2
  70. package/dist/cli-runtime.js +397 -32
  71. package/dist/compatibility/claude/transcript-codec.js +6 -0
  72. package/dist/core/agent-orchestration.d.ts +31 -0
  73. package/dist/core/agent-orchestration.js +235 -0
  74. package/dist/core/permission-policy.d.ts +4 -0
  75. package/dist/core/permission-policy.js +21 -0
  76. package/dist/core/runtime.d.ts +6 -0
  77. package/dist/core/runtime.js +20 -2
  78. package/dist/core/team-mailbox.d.ts +54 -0
  79. package/dist/core/team-mailbox.js +212 -0
  80. package/dist/core/team-ownership.d.ts +84 -0
  81. package/dist/core/team-ownership.js +505 -0
  82. package/dist/core/tool-execution-scheduler.js +6 -1
  83. package/dist/core/transcript-event.d.ts +5 -1
  84. package/dist/core/transcript-event.js +12 -0
  85. package/dist/persistence/claude-job-store.d.ts +58 -0
  86. package/dist/persistence/claude-job-store.js +483 -1
  87. package/dist/persistence/claude-transcript-store.d.ts +2 -1
  88. package/dist/persistence/claude-transcript-store.js +2 -10
  89. package/dist/persistence/native-team-mailbox.d.ts +68 -0
  90. package/dist/persistence/native-team-mailbox.js +542 -0
  91. package/dist/persistence/native-team-store.d.ts +34 -0
  92. package/dist/persistence/native-team-store.js +257 -0
  93. package/dist/persistence/native-transcript-reader.d.ts +53 -0
  94. package/dist/persistence/native-transcript-reader.js +283 -0
  95. package/dist/persistence/native-transcript-store.d.ts +69 -0
  96. package/dist/persistence/native-transcript-store.js +321 -0
  97. package/dist/persistence/subagent-lifecycle-store.d.ts +41 -8
  98. package/dist/persistence/subagent-lifecycle-store.js +373 -146
  99. package/dist/persistence/transcript-file-append.d.ts +2 -0
  100. package/dist/persistence/transcript-file-append.js +10 -0
  101. package/dist/platform/exclusive-file-lease.d.ts +3 -0
  102. package/dist/platform/exclusive-file-lease.js +3 -0
  103. package/dist/tools/claude-capabilities.d.ts +4 -0
  104. package/dist/tools/claude-capabilities.js +18 -2
  105. package/dist/tools/team-lead-tools.d.ts +19 -0
  106. package/dist/tools/team-lead-tools.js +479 -0
  107. package/dist/tools/team-member-tools.d.ts +21 -0
  108. package/dist/tools/team-member-tools.js +259 -0
  109. package/package.json +1 -1
  110. package/dist/cli/tui/fullscreen-renderer.d.ts +0 -14
  111. package/dist/cli/tui/fullscreen-renderer.js +0 -13
@@ -6,10 +6,9 @@ import type { TuiFileEntry, TuiMentionEntry } from './file-picker.js';
6
6
  import { type TuiDiffSnapshot } from './git-diff.js';
7
7
  import { type TuiHookConfiguration } from './hook-settings.js';
8
8
  import type { TuiMemoryFileEntry } from './memory-files.js';
9
- import type { TuiPermissionRule } from './permission-settings.js';
10
- import type { RecentlyDeniedAction } from './recently-denied.js';
11
9
  import type { CustomThemeToken, TuiCustomTheme } from './custom-themes.js';
12
10
  import type { TuiSlashCommand } from './slash-commands.js';
11
+ import type { TuiHelpShortcutGroup, TuiHelpSurfaceModel } from './help-surface-model.js';
13
12
  import type { TranscriptPresentationEntry } from './transcript-presentation.js';
14
13
  import { type TuiTheme } from './theme.js';
15
14
  export interface TuiDisplayMetadata {
@@ -28,8 +27,6 @@ export interface TuiBtwEntry {
28
27
  status: 'answering' | 'complete' | 'forking' | 'error';
29
28
  error?: string;
30
29
  }
31
- export declare function useTerminalWidth(override?: number): number;
32
- export declare function useTerminalRows(override?: number): number | undefined;
33
30
  export declare function WelcomePanel({ display, width, showTips, dataPlane, }: {
34
31
  display: TuiDisplayMetadata;
35
32
  width: number;
@@ -70,20 +67,6 @@ export declare function DiffDashboard({ snapshots, sourceIndex, selectedIndex, v
70
67
  width: number;
71
68
  screenReader: boolean;
72
69
  }): import("react").JSX.Element;
73
- export declare function PermissionDashboard({ tabIndex, selectedIndex, query, rules, recentDenied, retryingDeniedId, workspaceDirectories, width, screenReader, }: {
74
- tabIndex: number;
75
- selectedIndex: number;
76
- query: string;
77
- rules: readonly TuiPermissionRule[];
78
- recentDenied: readonly RecentlyDeniedAction[];
79
- retryingDeniedId?: string | null;
80
- workspaceDirectories: readonly {
81
- path: string;
82
- original: boolean;
83
- }[];
84
- width: number;
85
- screenReader: boolean;
86
- }): import("react").JSX.Element;
87
70
  export declare function ThemePicker({ currentTheme, selectedIndex, syntaxHighlightingDisabled, customThemes, allowCustomThemes, width, screenReader, }: {
88
71
  currentTheme: TuiTheme | `custom:${string}`;
89
72
  selectedIndex: number;
@@ -170,14 +153,13 @@ export declare function MentionPicker({ entries, selectedIndex, width, screenRea
170
153
  width: number;
171
154
  screenReader: boolean;
172
155
  }): import("react").JSX.Element;
173
- export declare function ShortcutHelp({ width }: {
156
+ export declare function ShortcutHelp({ shortcutGroups, width, screenReader, }: {
157
+ shortcutGroups: readonly TuiHelpShortcutGroup[];
174
158
  width: number;
159
+ screenReader?: boolean;
175
160
  }): import("react").JSX.Element;
176
- export declare function HelpMenu({ tabIndex, selectedIndex, builtinCommands, customCommands, width, screenReader, }: {
177
- tabIndex: number;
178
- selectedIndex: number;
179
- builtinCommands: readonly TuiSlashCommand[];
180
- customCommands: readonly TuiSlashCommand[];
161
+ export declare function HelpMenu({ model, width, screenReader, }: {
162
+ model: TuiHelpSurfaceModel;
181
163
  width: number;
182
164
  screenReader: boolean;
183
165
  }): import("react").JSX.Element;
@@ -205,7 +187,7 @@ export declare function ModelMenu({ options, effort, selectedIndex, width, scree
205
187
  export declare function ExternalEditorWait({ screenReader, }: {
206
188
  screenReader: boolean;
207
189
  }): import("react").JSX.Element;
208
- export declare function Composer({ input, cursor, busy, clipboardBusy, status, display, usage, costUsd, width, screenReader, hasThinking, thinkingExpanded, shortcutsVisible, shellMode, footerMessage, reduceMotion, progressBar, turnDuration, editorMode, prStatus, sessionColor, commandArgumentHint, }: {
190
+ export declare function Composer({ input, cursor, busy, clipboardBusy, status, display, usage, costUsd, width, screenReader, hasThinking, thinkingExpanded, shortcutsVisible, shortcutHelp, shellMode, footerMessage, reduceMotion, progressBar, turnDuration, editorMode, prStatus, sessionColor, commandArgumentHint, }: {
209
191
  input: string;
210
192
  cursor?: number;
211
193
  busy: boolean;
@@ -219,6 +201,7 @@ export declare function Composer({ input, cursor, busy, clipboardBusy, status, d
219
201
  hasThinking?: boolean;
220
202
  thinkingExpanded?: boolean;
221
203
  shortcutsVisible?: boolean;
204
+ shortcutHelp?: TuiHelpSurfaceModel;
222
205
  shellMode?: boolean;
223
206
  footerMessage?: {
224
207
  text: string;