@re-cinq/agent-contracts 0.10.14 → 0.11.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.
@@ -71,11 +71,19 @@ export interface OutputSink {
71
71
  headers_secret?: string;
72
72
  path?: string;
73
73
  }
74
+ export interface WatchUpload {
75
+ /** URL the file is POSTed to; {agent} and {event} are expanded per run. */
76
+ url: string;
77
+ /** Secret key holding the header block sent with the upload. */
78
+ headers_secret?: string;
79
+ }
74
80
  export interface OutputWatch {
75
81
  /** Event name raised when the file is produced. */
76
82
  event: string;
77
83
  /** File to read; relative paths resolve against WORKSPACE_DIR. */
78
84
  path: string;
85
+ /** Upload the file to a URL instead of inlining its content. */
86
+ upload?: WatchUpload;
79
87
  }
80
88
  export interface OutputSpec {
81
89
  format?: OutputFormat;
@@ -129,6 +137,14 @@ export interface Station {
129
137
  metadata?: ObjectMeta;
130
138
  spec?: StationSpec;
131
139
  }
140
+ export interface InputFile {
141
+ /** Destination, relative to WORKSPACE_DIR; must stay inside it. */
142
+ path: string;
143
+ /** http(s) URL the file is downloaded from. */
144
+ url: string;
145
+ /** Secret key holding the header block sent with the download. */
146
+ headers_secret?: string;
147
+ }
132
148
  /** One run of a recipe in a Station. */
133
149
  export interface AgentSpec {
134
150
  /** The Station to run in (which selects the recipe). */
@@ -140,6 +156,8 @@ export interface AgentSpec {
140
156
  branch?: string;
141
157
  /** Per-run values; fill the prompt {placeholder} tokens and pass to the agent. */
142
158
  parameters?: Record<string, string>;
159
+ /** Files downloaded into the workspace before the agent starts; only references travel. */
160
+ files?: InputFile[];
143
161
  }
144
162
  export interface AgentStatus {
145
163
  phase?: Phase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@re-cinq/agent-contracts",
3
- "version": "0.10.14",
3
+ "version": "0.11.0",
4
4
  "description": "TypeScript types + client for the ai-agent-subsystem CRDs (Agent / Station / AgentDefinition). Types are generated from the D source so they cannot drift.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {