praxis-agent 0.36.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 (86) hide show
  1. package/README.md +16 -2
  2. package/dist/application/durable-follow-up.d.ts +14 -0
  3. package/dist/application/durable-follow-up.js +52 -0
  4. package/dist/application/native-session-transcript.d.ts +72 -0
  5. package/dist/application/native-session-transcript.js +351 -0
  6. package/dist/application/native-sidechain-transcript.d.ts +34 -0
  7. package/dist/application/native-sidechain-transcript.js +156 -0
  8. package/dist/application/session-service.d.ts +15 -0
  9. package/dist/application/session-service.js +611 -69
  10. package/dist/application/subagent-service.d.ts +5 -1
  11. package/dist/application/subagent-service.js +391 -143
  12. package/dist/application/team-agent-runtime.d.ts +29 -0
  13. package/dist/application/team-agent-runtime.js +169 -0
  14. package/dist/application/team-capability.d.ts +27 -0
  15. package/dist/application/team-capability.js +41 -0
  16. package/dist/application/team-lead-operations.d.ts +38 -0
  17. package/dist/application/team-lead-operations.js +155 -0
  18. package/dist/application/team-mailbox.d.ts +54 -0
  19. package/dist/application/team-mailbox.js +196 -0
  20. package/dist/application/team-manager.d.ts +113 -0
  21. package/dist/application/team-manager.js +681 -0
  22. package/dist/application/team-workspace.d.ts +29 -0
  23. package/dist/application/team-workspace.js +197 -0
  24. package/dist/application/transcript-projection.d.ts +2 -0
  25. package/dist/application/transcript-projection.js +30 -1
  26. package/dist/cli/interactive.d.ts +7 -0
  27. package/dist/cli/interactive.js +387 -136
  28. package/dist/cli/tui/claude-style.d.ts +8 -25
  29. package/dist/cli/tui/claude-style.js +158 -160
  30. package/dist/cli/tui/decision-surface-model.d.ts +71 -0
  31. package/dist/cli/tui/decision-surface-model.js +131 -0
  32. package/dist/cli/tui/decision-surface.d.ts +7 -0
  33. package/dist/cli/tui/decision-surface.js +41 -0
  34. package/dist/cli/tui/help-surface-model.d.ts +68 -0
  35. package/dist/cli/tui/help-surface-model.js +131 -0
  36. package/dist/cli/tui/mcp-panel.js +1 -2
  37. package/dist/cli/tui/permission-surface-model.d.ts +195 -0
  38. package/dist/cli/tui/permission-surface-model.js +360 -0
  39. package/dist/cli/tui/permission-surface.d.ts +7 -0
  40. package/dist/cli/tui/permission-surface.js +69 -0
  41. package/dist/cli/tui/presentation-environment.d.ts +32 -0
  42. package/dist/cli/tui/presentation-environment.js +149 -0
  43. package/dist/cli/tui/tool-permission.js +7 -3
  44. package/dist/cli/tui/transcript-presentation.d.ts +19 -1
  45. package/dist/cli/tui/transcript-presentation.js +26 -6
  46. package/dist/cli/tui/transcript-viewport.d.ts +18 -0
  47. package/dist/cli/tui/transcript-viewport.js +517 -111
  48. package/dist/cli/tui/transcript-window-model.d.ts +108 -0
  49. package/dist/cli/tui/transcript-window-model.js +772 -0
  50. package/dist/cli/tui/tui-screen-model.d.ts +114 -0
  51. package/dist/cli/tui/tui-screen-model.js +210 -0
  52. package/dist/cli/tui/tui-view-model.d.ts +2 -49
  53. package/dist/cli/tui/tui-view-model.js +1 -68
  54. package/dist/cli-runtime.d.ts +2 -0
  55. package/dist/cli-runtime.js +397 -32
  56. package/dist/compatibility/claude/transcript-codec.js +6 -0
  57. package/dist/core/permission-policy.d.ts +4 -0
  58. package/dist/core/permission-policy.js +21 -0
  59. package/dist/core/runtime.d.ts +1 -0
  60. package/dist/core/runtime.js +5 -1
  61. package/dist/core/team-mailbox.d.ts +54 -0
  62. package/dist/core/team-mailbox.js +212 -0
  63. package/dist/core/team-ownership.d.ts +84 -0
  64. package/dist/core/team-ownership.js +505 -0
  65. package/dist/core/tool-execution-scheduler.js +6 -1
  66. package/dist/core/transcript-event.d.ts +5 -1
  67. package/dist/core/transcript-event.js +12 -0
  68. package/dist/persistence/claude-transcript-store.d.ts +2 -1
  69. package/dist/persistence/claude-transcript-store.js +2 -10
  70. package/dist/persistence/native-team-mailbox.d.ts +68 -0
  71. package/dist/persistence/native-team-mailbox.js +542 -0
  72. package/dist/persistence/native-team-store.d.ts +34 -0
  73. package/dist/persistence/native-team-store.js +257 -0
  74. package/dist/persistence/native-transcript-store.d.ts +69 -0
  75. package/dist/persistence/native-transcript-store.js +321 -0
  76. package/dist/persistence/transcript-file-append.d.ts +2 -0
  77. package/dist/persistence/transcript-file-append.js +10 -0
  78. package/dist/tools/claude-capabilities.d.ts +4 -0
  79. package/dist/tools/claude-capabilities.js +18 -2
  80. package/dist/tools/team-lead-tools.d.ts +19 -0
  81. package/dist/tools/team-lead-tools.js +479 -0
  82. package/dist/tools/team-member-tools.d.ts +21 -0
  83. package/dist/tools/team-member-tools.js +259 -0
  84. package/package.json +1 -1
  85. package/dist/cli/tui/fullscreen-renderer.d.ts +0 -14
  86. package/dist/cli/tui/fullscreen-renderer.js +0 -13
@@ -0,0 +1,108 @@
1
+ import { type TranscriptItem, type TranscriptPresentationEntry, type TranscriptPresentationMode } from './transcript-presentation.js';
2
+ import { type TranscriptEntryViewportIndex } from './transcript-viewport.js';
3
+ /** Caller-owned local presentation revision; never persisted in a Transcript. */
4
+ export interface TuiHistoryChange {
5
+ readonly revision: number;
6
+ readonly changedFrom: number;
7
+ }
8
+ /**
9
+ * Creates a caller-owned immutable mutation fact with non-persisted provenance.
10
+ * Provenance lets the retained model verify an append in O(1); unbranded or
11
+ * inconsistent facts remain valid inputs but deliberately take the cold path.
12
+ */
13
+ export declare function createTuiHistoryChange(revision: number, changedFrom: number, history: readonly TranscriptItem[], previousHistory?: readonly TranscriptItem[]): TuiHistoryChange;
14
+ /** Constructs an append and its lineage proof without scanning the old prefix. */
15
+ export declare function appendTuiHistory(revision: number, previousHistory: readonly TranscriptItem[], suffix: readonly TranscriptItem[]): {
16
+ readonly history: TranscriptItem[];
17
+ readonly change: TuiHistoryChange;
18
+ };
19
+ /** @internal Brands an append already constructed by the React history owner. */
20
+ export declare function createTuiAppendHistoryChange(revision: number, previousHistory: readonly TranscriptItem[], history: readonly TranscriptItem[]): TuiHistoryChange;
21
+ interface Leaf {
22
+ readonly kind: 'leaf';
23
+ readonly entries: readonly TranscriptPresentationEntry[];
24
+ readonly rows: readonly number[];
25
+ readonly viewportIndexes: readonly (TranscriptEntryViewportIndex | undefined)[];
26
+ readonly entryCount: number;
27
+ readonly totalRows: number;
28
+ }
29
+ interface Branch {
30
+ readonly kind: 'branch';
31
+ readonly left: RowNode;
32
+ readonly right: RowNode;
33
+ readonly entryCount: number;
34
+ readonly totalRows: number;
35
+ readonly height: number;
36
+ }
37
+ type RowNode = Leaf | Branch;
38
+ type ToolItem = Extract<TranscriptItem, {
39
+ kind: 'tool';
40
+ }>;
41
+ type ShellItem = Extract<TranscriptItem, {
42
+ kind: 'shell';
43
+ }>;
44
+ type ToolEntry = Extract<TranscriptPresentationEntry, {
45
+ kind: 'tool';
46
+ }>;
47
+ interface PendingCall {
48
+ readonly sourceIndex: number;
49
+ readonly presentationIndex: number;
50
+ readonly item: ToolItem | ShellItem;
51
+ }
52
+ interface PendingList {
53
+ readonly value: PendingCall;
54
+ readonly next?: PendingList;
55
+ }
56
+ interface PendingQueue {
57
+ readonly front?: PendingList;
58
+ readonly back?: PendingList;
59
+ readonly length: number;
60
+ }
61
+ interface PendingNode {
62
+ readonly key: string;
63
+ readonly queue: PendingQueue;
64
+ readonly left?: PendingNode;
65
+ readonly right?: PendingNode;
66
+ readonly height: number;
67
+ }
68
+ interface ReadRunCall {
69
+ readonly sourceIndex: number;
70
+ readonly entry: ToolEntry;
71
+ }
72
+ interface TailReadRun {
73
+ readonly startSourceIndex: number;
74
+ readonly startPresentationIndex: number;
75
+ readonly nextSourceIndex: number;
76
+ readonly calls: readonly ReadRunCall[];
77
+ readonly summarized: boolean;
78
+ }
79
+ export interface TranscriptWindowState {
80
+ readonly history: readonly TranscriptItem[];
81
+ readonly mode: TranscriptPresentationMode;
82
+ readonly width: number;
83
+ readonly tree: RowNode;
84
+ readonly pendingTools?: PendingNode;
85
+ readonly pendingShells?: PendingNode;
86
+ readonly tailReadRun?: TailReadRun;
87
+ readonly revision: number;
88
+ }
89
+ export interface TranscriptWindowInput {
90
+ readonly history: readonly TranscriptItem[];
91
+ readonly mode: TranscriptPresentationMode;
92
+ readonly width: number;
93
+ readonly pageRows: number;
94
+ readonly scrollOffset: number;
95
+ readonly revision: number;
96
+ readonly bounded: boolean;
97
+ }
98
+ export interface TranscriptWindowResult {
99
+ readonly state: TranscriptWindowState;
100
+ readonly allEntries: readonly TranscriptPresentationEntry[];
101
+ readonly entries: readonly TranscriptPresentationEntry[];
102
+ readonly totalRows: number;
103
+ readonly maxOffset: number;
104
+ readonly transition: 'cold' | 'same' | 'append';
105
+ }
106
+ export declare function projectTranscriptWindow(input: TranscriptWindowInput, previous?: TranscriptWindowState, change?: TuiHistoryChange): TranscriptWindowResult;
107
+ export {};
108
+ //# sourceMappingURL=transcript-window-model.d.ts.map