@ian-pascoe/pi-minimal-subagents 0.1.0 → 0.2.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 +77 -9
- package/package.json +6 -6
- package/src/minimal-subagents-capabilities.ts +8 -8
- package/src/minimal-subagents-config.ts +222 -73
- package/src/minimal-subagents-context.ts +7 -1
- package/src/minimal-subagents-coordinator.ts +943 -116
- package/src/minimal-subagents-delivery-ledger.ts +529 -0
- package/src/minimal-subagents-extension.ts +382 -64
- package/src/minimal-subagents-fork-lifecycle.ts +22 -12
- package/src/minimal-subagents-message-envelope.ts +20 -0
- package/src/minimal-subagents-registry-wire.ts +269 -0
- package/src/minimal-subagents-registry.ts +1505 -132
- package/src/minimal-subagents-render-contract.ts +301 -0
- package/src/minimal-subagents-rendering.ts +513 -372
- package/src/minimal-subagents-session-wire.ts +42 -0
- package/src/minimal-subagents-sessions.ts +437 -101
- package/src/minimal-subagents-shutdown.ts +1 -1
- package/src/minimal-subagents-tool-schemas.ts +21 -7
- package/src/minimal-subagents-tools.ts +75 -25
- package/src/minimal-subagents-types.ts +76 -21
- package/src/minimal-subagents-ui.ts +214 -23
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Type, type Static } from "typebox";
|
|
2
|
+
|
|
3
|
+
/** Parses the first identity record that promotes a child session. */
|
|
4
|
+
export const ChildSessionIdentityRecordSchema = Type.Object({
|
|
5
|
+
version: Type.Literal(1),
|
|
6
|
+
original_root_session_id: Type.String(),
|
|
7
|
+
canonical_agent_id: Type.String(),
|
|
8
|
+
direct_parent_id: Type.String(),
|
|
9
|
+
created_at: Type.String(),
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
/** Parses source provenance appended to each fork clone generation. */
|
|
13
|
+
export const ForkCloneProvenanceRecordSchema = Type.Object({
|
|
14
|
+
version: Type.Literal(1),
|
|
15
|
+
source_root_session_id: Type.String(),
|
|
16
|
+
source_agent_id: Type.String(),
|
|
17
|
+
source_session_id: Type.String(),
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
/** Parses destination-root ownership for the current fork clone generation. */
|
|
21
|
+
export const ForkOwnershipRecordSchema = Type.Object({
|
|
22
|
+
version: Type.Literal(1),
|
|
23
|
+
source_root_session_id: Type.String(),
|
|
24
|
+
source_agent_id: Type.String(),
|
|
25
|
+
source_session_id: Type.String(),
|
|
26
|
+
destination_root_session_id: Type.String(),
|
|
27
|
+
clone_session_id: Type.String(),
|
|
28
|
+
direct_parent_id: Type.String(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** Parses durable custom-message and wait-tool Delivery Evidence details. */
|
|
32
|
+
export const DeliveryEvidenceDetailsSchema = Type.Object({
|
|
33
|
+
event: Type.Optional(Type.String()),
|
|
34
|
+
source_agent_id: Type.String(),
|
|
35
|
+
source_turn_id: Type.String(),
|
|
36
|
+
delivery_id: Type.Optional(Type.String()),
|
|
37
|
+
message_id: Type.Optional(Type.String()),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export type ChildSessionIdentityRecord = Static<typeof ChildSessionIdentityRecordSchema>;
|
|
41
|
+
export type ForkCloneProvenanceRecord = Static<typeof ForkCloneProvenanceRecordSchema>;
|
|
42
|
+
export type ForkOwnershipRecord = Static<typeof ForkOwnershipRecordSchema>;
|