@agentstorm/server 0.2.5

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/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ // @agentstorm/server — resident Pipeline service primitives used by the unified daemon.
2
+ export { createPipelineService, PipelineServiceRequestError } from "./pipeline-service.js";
3
+ export { nowBeijing, toBeijingIso, RUNTIME_PROMPT_TEMPLATE_FILES, readAgentStormPrompt, runtimePromptTemplates, runtimePromptSupplementPreview, updateRuntimePromptTemplates, } from "@agentstorm/kernel";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,58 @@
1
+ import type { AgentRuntime } from "@agentstorm/agent-runtime";
2
+ import { type WorkflowSpec, type Task, type AgentStormEvent } from "@agentstorm/protocol";
3
+ export interface PipelineServiceOptions {
4
+ cwd: string;
5
+ /** Resident daemon lifecycle adapter. */
6
+ agentRuntime: AgentRuntime;
7
+ }
8
+ export interface PipelineServiceRequestOptions {
9
+ method?: "GET" | "POST" | "PUT" | "DELETE";
10
+ body?: unknown;
11
+ etag?: string;
12
+ }
13
+ export interface PipelineService {
14
+ readonly serverId: string;
15
+ request(pathname: string, options?: PipelineServiceRequestOptions): Promise<unknown>;
16
+ readEventsFromOffset(runId: string, offset: number): {
17
+ events: AgentStormEvent[];
18
+ nextOffset: number;
19
+ };
20
+ close(): Promise<void>;
21
+ }
22
+ export declare function statusWithRunKind<T extends object>(status: T, events: readonly AgentStormEvent[]): T & {
23
+ runKind?: "plan" | "execute";
24
+ };
25
+ export declare function taskBelongsToMainAgent(task: Pick<Task, "agentId" | "mainAgentId">, mainAgentId: string): boolean;
26
+ export declare function createPipelineService(opts: PipelineServiceOptions): Promise<PipelineService>;
27
+ export declare class PipelineServiceRequestError extends Error {
28
+ readonly status: number;
29
+ readonly body: unknown;
30
+ constructor(status: number, body: unknown);
31
+ }
32
+ /**
33
+ * Check the parts of a Workflow that AgentStorm can prove before spawning a
34
+ * Paseo Agent. Provider/model resolution remains delegated to the Paseo
35
+ * daemon's live provider snapshot; this check deliberately reports the
36
+ * configured values rather than pretending PipelineService owns that registry.
37
+ */
38
+ export declare function workflowReadiness(rootPath: string, spec: WorkflowSpec): {
39
+ ready: boolean;
40
+ errors: string[];
41
+ missingPromptAssets: {
42
+ agentId: string;
43
+ reference: string;
44
+ reason: "outside_workspace" | "not_found";
45
+ }[];
46
+ missingSkills: {
47
+ agentId: string;
48
+ skill: string;
49
+ }[];
50
+ agents: {
51
+ agentId: string;
52
+ provider: string;
53
+ model: string;
54
+ status: "configured";
55
+ }[];
56
+ };
57
+ export declare function workflowReadinessWithBackend(rootPath: string, spec: WorkflowSpec, backend: AgentRuntime, skillCwd?: string): Promise<ReturnType<typeof workflowReadiness>>;
58
+ //# sourceMappingURL=pipeline-service.d.ts.map