arcie 0.1.6 → 0.1.7

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.
@@ -1,200 +1,44 @@
1
- type AssistantStepFinishReason = "content-filter" | "error" | "length" | "other" | "stop" | "tool-calls";
2
- type ActionResultStatus = "completed" | "failed" | "rejected" | "pending";
3
- interface ActionResultError {
4
- readonly code: string;
5
- readonly message: string;
6
- }
7
- interface SessionStartedEvent {
8
- type: "session.started";
9
- data: {
10
- sessionId: string;
11
- runtime?: {
12
- agentId: string;
13
- modelId: string;
14
- arcieVersion: string;
15
- };
16
- };
17
- }
18
- interface TurnStartedEvent {
19
- type: "turn.started";
20
- data: {
21
- sequence: number;
22
- turnId: string;
23
- };
24
- }
25
- interface MessageReceivedEvent {
26
- type: "message.received";
27
- data: {
28
- message: string;
29
- sequence: number;
30
- turnId: string;
31
- };
32
- }
33
- interface MessageAppendedEvent {
34
- type: "message.appended";
35
- data: {
36
- delta: string;
37
- textSoFar: string;
38
- sequence: number;
39
- stepIndex: number;
40
- turnId: string;
41
- };
42
- }
43
- interface MessageCompletedEvent {
44
- type: "message.completed";
45
- data: {
46
- text: string | null;
47
- finishReason: AssistantStepFinishReason;
48
- sequence: number;
49
- stepIndex: number;
50
- turnId: string;
51
- };
52
- }
53
- interface ReasoningAppendedEvent {
54
- type: "reasoning.appended";
55
- data: {
56
- delta: string;
57
- soFar: string;
58
- sequence: number;
59
- stepIndex: number;
60
- turnId: string;
61
- };
62
- }
63
- interface ReasoningCompletedEvent {
64
- type: "reasoning.completed";
65
- data: {
66
- text: string;
67
- sequence: number;
68
- stepIndex: number;
69
- turnId: string;
70
- };
71
- }
72
- interface StepStartedEvent {
73
- type: "step.started";
74
- data: {
75
- sequence: number;
76
- stepIndex: number;
77
- turnId: string;
78
- };
79
- }
80
- interface StepCompletedEvent {
81
- type: "step.completed";
82
- data: {
83
- finishReason: AssistantStepFinishReason;
84
- sequence: number;
85
- stepIndex: number;
86
- turnId: string;
87
- usage?: {
88
- inputTokens?: number;
89
- outputTokens?: number;
90
- };
91
- };
92
- }
93
- interface StepFailedEvent {
94
- type: "step.failed";
95
- data: {
96
- code: string;
97
- message: string;
98
- sequence: number;
99
- stepIndex: number;
100
- turnId: string;
101
- };
102
- }
103
- interface ToolCallStartedEvent {
104
- type: "tool.started";
105
- data: {
106
- name: string;
107
- input: unknown;
108
- callId: string;
109
- sequence: number;
110
- stepIndex: number;
111
- turnId: string;
112
- };
113
- }
114
- interface ToolCallCompletedEvent {
115
- type: "tool.completed";
116
- data: {
117
- name: string;
118
- output: unknown;
119
- callId: string;
120
- status: ActionResultStatus;
121
- error?: ActionResultError;
122
- sequence: number;
123
- stepIndex: number;
124
- turnId: string;
125
- };
126
- }
127
- interface TurnCompletedEvent {
128
- type: "turn.completed";
129
- data: {
130
- sequence: number;
131
- turnId: string;
132
- };
133
- }
134
- interface TurnFailedEvent {
135
- type: "turn.failed";
136
- data: {
137
- code: string;
138
- message: string;
139
- sequence: number;
140
- turnId: string;
141
- };
142
- }
143
- interface SessionWaitingEvent {
144
- type: "session.waiting";
145
- data: {
146
- wait: "next-user-message";
147
- };
148
- }
149
- interface SessionCompletedEvent {
150
- type: "session.completed";
151
- }
152
- interface SessionFailedEvent {
153
- type: "session.failed";
154
- data: {
155
- code: string;
156
- message: string;
157
- sessionId: string;
158
- };
159
- }
160
- interface SubagentCalledEvent {
161
- type: "subagent.called";
162
- data: {
163
- name: string;
164
- callId: string;
165
- childSessionId: string;
166
- turnId: string;
167
- };
168
- }
169
- interface SubagentCompletedEvent {
170
- type: "subagent.completed";
171
- data: {
172
- name: string;
173
- callId: string;
174
- output: string;
175
- };
176
- }
177
- type StreamEvent = SessionStartedEvent | TurnStartedEvent | MessageReceivedEvent | MessageAppendedEvent | MessageCompletedEvent | ReasoningAppendedEvent | ReasoningCompletedEvent | StepStartedEvent | StepCompletedEvent | StepFailedEvent | ToolCallStartedEvent | ToolCallCompletedEvent | TurnCompletedEvent | TurnFailedEvent | SessionWaitingEvent | SessionCompletedEvent | SessionFailedEvent | SubagentCalledEvent | SubagentCompletedEvent;
178
- declare function createSessionStarted(sessionId: string, runtime?: SessionStartedEvent["data"]["runtime"]): SessionStartedEvent;
179
- declare function createTurnStarted(sequence: number, turnId: string): TurnStartedEvent;
180
- declare function createMessageReceived(message: string, sequence: number, turnId: string): MessageReceivedEvent;
181
- declare function createMessageAppended(delta: string, textSoFar: string, sequence: number, stepIndex: number, turnId: string): MessageAppendedEvent;
182
- declare function createMessageCompleted(text: string | null, finishReason: AssistantStepFinishReason, sequence: number, stepIndex: number, turnId: string): MessageCompletedEvent;
183
- declare function createStepStarted(sequence: number, stepIndex: number, turnId: string): StepStartedEvent;
184
- declare function createStepCompleted(finishReason: AssistantStepFinishReason, sequence: number, stepIndex: number, turnId: string, usage?: StepCompletedEvent["data"]["usage"]): StepCompletedEvent;
185
- declare function createStepFailed(code: string, message: string, sequence: number, stepIndex: number, turnId: string): StepFailedEvent;
186
- declare function createReasoningAppended(delta: string, soFar: string, sequence: number, stepIndex: number, turnId: string): ReasoningAppendedEvent;
187
- declare function createReasoningCompleted(text: string, sequence: number, stepIndex: number, turnId: string): ReasoningCompletedEvent;
188
- declare function createTurnCompleted(sequence: number, turnId: string): TurnCompletedEvent;
189
- declare function createTurnFailed(code: string, message: string, sequence: number, turnId: string): TurnFailedEvent;
190
- declare function createSessionFailed(code: string, message: string, sessionId: string): SessionFailedEvent;
191
- declare function createSessionWaiting(): SessionWaitingEvent;
192
- declare function createSessionCompleted(): SessionCompletedEvent;
193
- declare function createToolCallStarted(name: string, input: unknown, callId: string, sequence: number, stepIndex: number, turnId: string): ToolCallStartedEvent;
194
- declare function createToolCallCompleted(name: string, output: unknown, callId: string, status: ActionResultStatus, error?: ActionResultError, sequence?: number, stepIndex?: number, turnId?: string): ToolCallCompletedEvent;
195
- declare function createSubagentCalled(name: string, callId: string, childSessionId: string, turnId: string): SubagentCalledEvent;
196
- declare function createSubagentCompleted(name: string, callId: string, output: string): SubagentCompletedEvent;
197
- declare function encodeEvent(event: StreamEvent): string;
198
- declare function encodeEvents(events: StreamEvent[]): string;
199
-
200
- export { type ActionResultError, type ActionResultStatus, type AssistantStepFinishReason, type MessageAppendedEvent, type MessageCompletedEvent, type MessageReceivedEvent, type ReasoningAppendedEvent, type ReasoningCompletedEvent, type SessionCompletedEvent, type SessionFailedEvent, type SessionStartedEvent, type SessionWaitingEvent, type StepCompletedEvent, type StepFailedEvent, type StepStartedEvent, type StreamEvent, type SubagentCalledEvent, type SubagentCompletedEvent, type ToolCallCompletedEvent, type ToolCallStartedEvent, type TurnCompletedEvent, type TurnFailedEvent, type TurnStartedEvent, createMessageAppended, createMessageCompleted, createMessageReceived, createReasoningAppended, createReasoningCompleted, createSessionCompleted, createSessionFailed, createSessionStarted, createSessionWaiting, createStepCompleted, createStepFailed, createStepStarted, createSubagentCalled, createSubagentCompleted, createToolCallCompleted, createToolCallStarted, createTurnCompleted, createTurnFailed, createTurnStarted, encodeEvent, encodeEvents };
1
+ export { createSessionStarted_alias_1 as createSessionStarted } from '../_tsup-dts-rollup.js';
2
+ export { createTurnStarted_alias_1 as createTurnStarted } from '../_tsup-dts-rollup.js';
3
+ export { createMessageReceived_alias_1 as createMessageReceived } from '../_tsup-dts-rollup.js';
4
+ export { createMessageAppended_alias_1 as createMessageAppended } from '../_tsup-dts-rollup.js';
5
+ export { createMessageCompleted_alias_1 as createMessageCompleted } from '../_tsup-dts-rollup.js';
6
+ export { createStepStarted_alias_1 as createStepStarted } from '../_tsup-dts-rollup.js';
7
+ export { createStepCompleted_alias_1 as createStepCompleted } from '../_tsup-dts-rollup.js';
8
+ export { createStepFailed_alias_1 as createStepFailed } from '../_tsup-dts-rollup.js';
9
+ export { createReasoningAppended_alias_1 as createReasoningAppended } from '../_tsup-dts-rollup.js';
10
+ export { createReasoningCompleted_alias_1 as createReasoningCompleted } from '../_tsup-dts-rollup.js';
11
+ export { createTurnCompleted_alias_1 as createTurnCompleted } from '../_tsup-dts-rollup.js';
12
+ export { createTurnFailed_alias_1 as createTurnFailed } from '../_tsup-dts-rollup.js';
13
+ export { createSessionFailed_alias_1 as createSessionFailed } from '../_tsup-dts-rollup.js';
14
+ export { createSessionWaiting_alias_1 as createSessionWaiting } from '../_tsup-dts-rollup.js';
15
+ export { createSessionCompleted_alias_1 as createSessionCompleted } from '../_tsup-dts-rollup.js';
16
+ export { createToolCallStarted_alias_1 as createToolCallStarted } from '../_tsup-dts-rollup.js';
17
+ export { createToolCallCompleted_alias_1 as createToolCallCompleted } from '../_tsup-dts-rollup.js';
18
+ export { createSubagentCalled_alias_1 as createSubagentCalled } from '../_tsup-dts-rollup.js';
19
+ export { createSubagentCompleted_alias_1 as createSubagentCompleted } from '../_tsup-dts-rollup.js';
20
+ export { encodeEvent_alias_1 as encodeEvent } from '../_tsup-dts-rollup.js';
21
+ export { encodeEvents_alias_1 as encodeEvents } from '../_tsup-dts-rollup.js';
22
+ export { AssistantStepFinishReason_alias_1 as AssistantStepFinishReason } from '../_tsup-dts-rollup.js';
23
+ export { ActionResultStatus_alias_1 as ActionResultStatus } from '../_tsup-dts-rollup.js';
24
+ export { ActionResultError_alias_1 as ActionResultError } from '../_tsup-dts-rollup.js';
25
+ export { SessionStartedEvent_alias_1 as SessionStartedEvent } from '../_tsup-dts-rollup.js';
26
+ export { TurnStartedEvent_alias_1 as TurnStartedEvent } from '../_tsup-dts-rollup.js';
27
+ export { MessageReceivedEvent_alias_1 as MessageReceivedEvent } from '../_tsup-dts-rollup.js';
28
+ export { MessageAppendedEvent_alias_1 as MessageAppendedEvent } from '../_tsup-dts-rollup.js';
29
+ export { MessageCompletedEvent_alias_1 as MessageCompletedEvent } from '../_tsup-dts-rollup.js';
30
+ export { ReasoningAppendedEvent_alias_1 as ReasoningAppendedEvent } from '../_tsup-dts-rollup.js';
31
+ export { ReasoningCompletedEvent_alias_1 as ReasoningCompletedEvent } from '../_tsup-dts-rollup.js';
32
+ export { StepStartedEvent_alias_1 as StepStartedEvent } from '../_tsup-dts-rollup.js';
33
+ export { StepCompletedEvent_alias_1 as StepCompletedEvent } from '../_tsup-dts-rollup.js';
34
+ export { StepFailedEvent_alias_1 as StepFailedEvent } from '../_tsup-dts-rollup.js';
35
+ export { ToolCallStartedEvent_alias_1 as ToolCallStartedEvent } from '../_tsup-dts-rollup.js';
36
+ export { ToolCallCompletedEvent_alias_1 as ToolCallCompletedEvent } from '../_tsup-dts-rollup.js';
37
+ export { TurnCompletedEvent_alias_1 as TurnCompletedEvent } from '../_tsup-dts-rollup.js';
38
+ export { TurnFailedEvent_alias_1 as TurnFailedEvent } from '../_tsup-dts-rollup.js';
39
+ export { SessionWaitingEvent_alias_1 as SessionWaitingEvent } from '../_tsup-dts-rollup.js';
40
+ export { SessionCompletedEvent_alias_1 as SessionCompletedEvent } from '../_tsup-dts-rollup.js';
41
+ export { SessionFailedEvent_alias_1 as SessionFailedEvent } from '../_tsup-dts-rollup.js';
42
+ export { SubagentCalledEvent_alias_1 as SubagentCalledEvent } from '../_tsup-dts-rollup.js';
43
+ export { SubagentCompletedEvent_alias_1 as SubagentCompletedEvent } from '../_tsup-dts-rollup.js';
44
+ export { StreamEvent_alias_1 as StreamEvent } from '../_tsup-dts-rollup.js';
@@ -1,4 +1,4 @@
1
- export { f as RunOptions, g as RunResult, r as runAgent, s as streamAgent } from '../index-CElLRVTP.js';
2
- import '../types-DwxwdSa2.js';
3
- import '../protocol/events.js';
4
- import 'zod';
1
+ export { runAgent_alias_1 as runAgent } from '../_tsup-dts-rollup.js';
2
+ export { streamAgent_alias_1 as streamAgent } from '../_tsup-dts-rollup.js';
3
+ export { RunOptions } from '../_tsup-dts-rollup.js';
4
+ export { RunResult } from '../_tsup-dts-rollup.js';
@@ -1,6 +1 @@
1
- import { i as ScheduleConfig } from '../types-DwxwdSa2.js';
2
- import 'zod';
3
-
4
- declare function defineSchedule(config: ScheduleConfig): ScheduleConfig;
5
-
6
- export { defineSchedule };
1
+ export { defineSchedule_alias_1 as defineSchedule } from '../_tsup-dts-rollup.js';
@@ -1,7 +1,2 @@
1
- import { k as SkillConfig } from '../types-DwxwdSa2.js';
2
- import 'zod';
3
-
4
- declare function defineSkill(config: SkillConfig): SkillConfig;
5
- declare function getSkill(agentDir: string, name: string): SkillConfig | null;
6
-
7
- export { defineSkill, getSkill };
1
+ export { defineSkill_alias_1 as defineSkill } from '../_tsup-dts-rollup.js';
2
+ export { getSkill_alias_1 as getSkill } from '../_tsup-dts-rollup.js';
@@ -1,13 +1,3 @@
1
- import { T as ToolConfig } from '../types-DwxwdSa2.js';
2
- import 'zod';
3
-
4
- declare function defineTool<TInput = unknown, TOutput = unknown>(config: ToolConfig<TInput, TOutput>): ToolConfig<TInput, TOutput>;
5
- interface ModelToolDefinition {
6
- name: string;
7
- description: string;
8
- input_schema?: Record<string, unknown>;
9
- type: "function";
10
- }
11
- declare function toModelOutput(name: string, tool: ToolConfig): ModelToolDefinition;
12
-
13
- export { type ModelToolDefinition, defineTool, toModelOutput };
1
+ export { defineTool_alias_1 as defineTool } from '../_tsup-dts-rollup.js';
2
+ export { toModelOutput_alias_1 as toModelOutput } from '../_tsup-dts-rollup.js';
3
+ export { ModelToolDefinition } from '../_tsup-dts-rollup.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arcie",
3
3
  "type": "module",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "description": "The electronic line — build agents at the speed of light.",
6
6
  "bin": {
7
7
  "arcie": "dist/cli/index.js"
@@ -70,6 +70,7 @@
70
70
  "zod-to-json-schema": "^3.25.2"
71
71
  },
72
72
  "devDependencies": {
73
+ "@microsoft/api-extractor": "^7.58.9",
73
74
  "@types/node": "^26.0.0",
74
75
  "tsup": "^8.5.1",
75
76
  "typescript": "^6.0.3",