@inceptionstack/roundhouse 0.5.2 → 0.5.4
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/architecture.md +94 -32
- package/package.json +1 -1
- package/src/agents/kiro/kiro-adapter.ts +8 -1
- package/src/agents/pi/message-format.ts +87 -0
- package/src/agents/pi/pi-adapter.ts +33 -72
- package/src/cli/agent-command.ts +210 -0
- package/src/cli/cli.ts +63 -305
- package/src/cli/cron-commands.ts +258 -0
- package/src/cli/cron.ts +26 -267
- package/src/cli/launchd.ts +1 -1
- package/src/cli/service-manager.ts +192 -0
- package/src/cli/setup/args.ts +109 -0
- package/src/cli/setup/flows.ts +273 -0
- package/src/cli/setup/helpers.ts +66 -0
- package/src/cli/setup/index.ts +7 -0
- package/src/cli/setup/runtime.ts +109 -0
- package/src/cli/setup/steps.ts +617 -0
- package/src/cli/setup/types.ts +52 -0
- package/src/cli/setup.ts +79 -1275
- package/src/cli/shell.ts +49 -0
- package/src/cli/systemd.ts +6 -33
- package/src/config.ts +67 -53
- package/src/gateway/attachments.ts +147 -0
- package/src/gateway/commands.ts +371 -0
- package/src/gateway/helpers.ts +104 -0
- package/src/gateway/index.ts +11 -0
- package/src/gateway/streaming.ts +235 -0
- package/src/gateway.ts +212 -763
- package/src/types.ts +16 -1
package/src/types.ts
CHANGED
|
@@ -43,7 +43,8 @@ export type AgentStreamEvent =
|
|
|
43
43
|
| { type: "draining" }
|
|
44
44
|
| { type: "drain_complete" }
|
|
45
45
|
| { type: "agent_end" }
|
|
46
|
-
| { type: "custom_message"; customType: string; content: string }
|
|
46
|
+
| { type: "custom_message"; customType: string; content: string }
|
|
47
|
+
| { type: "model_error"; message: string };
|
|
47
48
|
|
|
48
49
|
// ── AdapterInfo ──────────────────────────────────────
|
|
49
50
|
|
|
@@ -126,6 +127,20 @@ export interface AgentAdapter {
|
|
|
126
127
|
|
|
127
128
|
/** Return runtime info about the agent (model, version, etc.). */
|
|
128
129
|
getInfo?(threadId?: string): AdapterInfo;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Hook called after message is built (attachments resolved, STT transcribed)
|
|
133
|
+
* but before memory injection and prompt/promptStream. Adapter can append
|
|
134
|
+
* platform-specific hints, rewrite text, etc. Return the (possibly modified) message.
|
|
135
|
+
*/
|
|
136
|
+
prepareMessage?(threadId: string, message: AgentMessage, context: MessageContext): AgentMessage;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface MessageContext {
|
|
140
|
+
/** Chat platform: "telegram", "discord", etc. */
|
|
141
|
+
platform: string;
|
|
142
|
+
/** Whether the message has file/image/audio attachments */
|
|
143
|
+
hasAttachments: boolean;
|
|
129
144
|
}
|
|
130
145
|
|
|
131
146
|
export interface AgentResponse {
|