@auersperg/flare 0.3.14 → 0.3.15

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/cli/flare.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // packages/flare/package.json
4
4
  var package_default = {
5
5
  name: "@auersperg/flare",
6
- version: "0.3.14",
6
+ version: "0.3.15",
7
7
  license: "MIT",
8
8
  type: "module",
9
9
  description: "Flare client, server declarations and development CLI",
@@ -309,7 +309,7 @@ async function collectCatalog(database, now = Date.now()) {
309
309
  // packages/core/package.json
310
310
  var package_default = {
311
311
  name: "@flare/platform",
312
- version: "0.3.14",
312
+ version: "0.3.15",
313
313
  type: "module",
314
314
  license: "MIT",
315
315
  private: true,
@@ -183,7 +183,7 @@ var app_default = defineApp({ schema: {}, functions: {} });
183
183
  // packages/flare/dist/sdk/codex.js
184
184
  function codexInput(op, input) {
185
185
  boundedJson(input, 40000);
186
- if (!input || Array.isArray(input) || !/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/.test(input.id) || !["start", "status", "cancel"].includes(op) || Object.keys(input).some((k) => ![
186
+ if (!input || Array.isArray(input) || !/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/.test(input.id) || !["start", "status", "cancel", "discardArtifact"].includes(op) || Object.keys(input).some((k) => ![
187
187
  "id",
188
188
  ...op === "start" ? ["prompt", "instructions", "outputFile"] : []
189
189
  ].includes(k)) || op === "start" && (typeof input.prompt !== "string" || !input.prompt.trim() || new TextEncoder().encode(input.prompt).length > 16384 || input.instructions !== undefined && (typeof input.instructions !== "string" || new TextEncoder().encode(input.instructions).length > 16384) || input.outputFile !== undefined && (typeof input.outputFile !== "string" || !/^[a-zA-Z0-9_-]{1,64}\.json$/.test(input.outputFile))))
@@ -197,7 +197,10 @@ function codexContext(call) {
197
197
  return {
198
198
  start: (input) => invoke("start", input),
199
199
  status: (id) => invoke("status", { id }),
200
- cancel: (id) => invoke("cancel", { id })
200
+ cancel: (id) => invoke("cancel", { id }),
201
+ discardArtifact: async (id) => {
202
+ await invoke("discardArtifact", { id });
203
+ }
201
204
  };
202
205
  }
203
206
 
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Flare application contract",
5
- "version": "a5f93cbd24227159ecc0c47ead156b68be6f27f40e91405d56b89018fa143817"
5
+ "version": "46e95c497319ce515538fb3788f93111df98c76d7ca3eafbc6fd8bcbb4cfbff1"
6
6
  },
7
7
  "components": {
8
8
  "schemas": {},
@@ -3,9 +3,9 @@
3
3
  "compatibilityDate": "2026-10-10",
4
4
  "checksums": {
5
5
  "facet": "8d7880b99b69d141a58da4c7574b26c39dbc529785512298683239dee657a38b",
6
- "action": "26abefd1ce745df855b5b45927482e41efa262d5a1dc1991e8a20298113903e7",
6
+ "action": "551610f76cc588409c0d5f51f23b132a7da1d90f851d49fea5186f6c8e5f7383",
7
7
  "schema": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
8
8
  "manifest": "006a07907dfd7619fa66152627bc761e581cf8ac538f5002f3b89b71ce92d733"
9
9
  },
10
- "hash": "a5f93cbd24227159ecc0c47ead156b68be6f27f40e91405d56b89018fa143817"
10
+ "hash": "46e95c497319ce515538fb3788f93111df98c76d7ca3eafbc6fd8bcbb4cfbff1"
11
11
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "format": 1,
3
- "version": "0.3.14",
3
+ "version": "0.3.15",
4
4
  "stateFormat": 1,
5
5
  "protocol": 1,
6
6
  "runtimeAbi": 4,
@@ -13,7 +13,7 @@
13
13
  {
14
14
  "path": "admin.js",
15
15
  "bytes": 37491,
16
- "sha256": "e0516a358bfec9dc25595256203afab95107d4bf0d476ea68d21e81ed43336df"
16
+ "sha256": "4fe2f7a229b217bfc26c0ec5708f6ae1b06306dcacdc1068f642abc901202d5a"
17
17
  },
18
18
  {
19
19
  "path": "dashboard/_astro/ai-view.D6ouaMiL.js",
@@ -122,8 +122,8 @@
122
122
  },
123
123
  {
124
124
  "path": "dashboard/bootstrap/action.js",
125
- "bytes": 13691,
126
- "sha256": "26abefd1ce745df855b5b45927482e41efa262d5a1dc1991e8a20298113903e7"
125
+ "bytes": 13801,
126
+ "sha256": "551610f76cc588409c0d5f51f23b132a7da1d90f851d49fea5186f6c8e5f7383"
127
127
  },
128
128
  {
129
129
  "path": "dashboard/bootstrap/api.ts",
@@ -143,12 +143,12 @@
143
143
  {
144
144
  "path": "dashboard/bootstrap/openapi.json",
145
145
  "bytes": 362,
146
- "sha256": "2fe4f2a8ca9639e9569496acc03a6afc69c39990de2eff3801e164404b68b7f3"
146
+ "sha256": "d9672f489689ae8053324a9599477a438495609b1034f52b4599f1a154f4f157"
147
147
  },
148
148
  {
149
149
  "path": "dashboard/bootstrap/release.json",
150
150
  "bytes": 484,
151
- "sha256": "4b783cdea07d7a5c9552a123b1eb6abe50f2fc541f97243ec037205bd7f143fb"
151
+ "sha256": "46bd000ed0f4b7fe3b3e71d3555849103a773bf8b434af5e52e3060e5d5e4630"
152
152
  },
153
153
  {
154
154
  "path": "dashboard/bootstrap/schema.json",
@@ -192,9 +192,9 @@
192
192
  },
193
193
  {
194
194
  "path": "runtime.js",
195
- "bytes": 1229425,
196
- "sha256": "a7b31f4527681d371d1f685ed214d57e6f86224ea37cc41da854e454c071f50e"
195
+ "bytes": 1229444,
196
+ "sha256": "3ffb8eb5dafee479a222d97cb661e49f6f4f919b2f8403ec3d2f689cb5d15082"
197
197
  }
198
198
  ],
199
- "digest": "c8f963abf219c645320eb30f3b997bac9c46ff434e3cc73903f78d8b3c80ed07"
199
+ "digest": "53eb87d966d0698a5dab31c3bb1d3279e170df76d77ddcb67e5d8e5190c7b374"
200
200
  }
@@ -23058,7 +23058,7 @@ async function outbound(request, policy) {
23058
23058
  // packages/flare/src/sdk/codex.ts
23059
23059
  function codexInput(op, input) {
23060
23060
  boundedJson(input, 40000);
23061
- if (!input || Array.isArray(input) || !/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/.test(input.id) || !["start", "status", "cancel"].includes(op) || Object.keys(input).some((k) => ![
23061
+ if (!input || Array.isArray(input) || !/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/.test(input.id) || !["start", "status", "cancel", "discardArtifact"].includes(op) || Object.keys(input).some((k) => ![
23062
23062
  "id",
23063
23063
  ...op === "start" ? ["prompt", "instructions", "outputFile"] : []
23064
23064
  ].includes(k)) || op === "start" && (typeof input.prompt !== "string" || !input.prompt.trim() || new TextEncoder().encode(input.prompt).length > 16384 || input.instructions !== undefined && (typeof input.instructions !== "string" || new TextEncoder().encode(input.instructions).length > 16384) || input.outputFile !== undefined && (typeof input.outputFile !== "string" || !/^[a-zA-Z0-9_-]{1,64}\.json$/.test(input.outputFile))))
@@ -24349,7 +24349,7 @@ function dashboardIdentity(value) {
24349
24349
  // packages/core/package.json
24350
24350
  var package_default = {
24351
24351
  name: "@flare/platform",
24352
- version: "0.3.14",
24352
+ version: "0.3.15",
24353
24353
  type: "module",
24354
24354
  license: "MIT",
24355
24355
  private: true,
@@ -20,6 +20,8 @@ export interface CodexContext {
20
20
  start(input: CodexTaskInput): Promise<CodexTask>;
21
21
  status(id: string): Promise<CodexTask | null>;
22
22
  cancel(id: string): Promise<CodexTask | null>;
23
+ /** Erase the temporary artifact and prevent its later retention. An unstarted ID is fenced. */
24
+ discardArtifact(id: string): Promise<void>;
23
25
  }
24
26
  export declare function codexInput(op: string, input: any): void;
25
27
  export declare function codexContext(call: (op: string, input: unknown) => Promise<any>): CodexContext;
package/dist/sdk/codex.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { FlareError, boundedJson } from "./protocol.js";
2
2
  export function codexInput(op, input) {
3
3
  boundedJson(input, 40000);
4
- if (!input || Array.isArray(input) || !/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/.test(input.id) || !["start", "status", "cancel"].includes(op) || Object.keys(input).some((k) => ![
4
+ if (!input || Array.isArray(input) || !/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/.test(input.id) || !["start", "status", "cancel", "discardArtifact"].includes(op) || Object.keys(input).some((k) => ![
5
5
  "id",
6
6
  ...op === "start" ? ["prompt", "instructions", "outputFile"] : []
7
7
  ].includes(k)) || op === "start" && (typeof input.prompt !== "string" || !input.prompt.trim() || new TextEncoder().encode(input.prompt).length > 16384 || input.instructions !== undefined && (typeof input.instructions !== "string" || new TextEncoder().encode(input.instructions).length > 16384) || input.outputFile !== undefined && (typeof input.outputFile !== "string" || !/^[a-zA-Z0-9_-]{1,64}\.json$/.test(input.outputFile))))
@@ -15,6 +15,9 @@ export function codexContext(call) {
15
15
  return {
16
16
  start: (input) => invoke("start", input),
17
17
  status: (id) => invoke("status", { id }),
18
- cancel: (id) => invoke("cancel", { id })
18
+ cancel: (id) => invoke("cancel", { id }),
19
+ discardArtifact: async (id) => {
20
+ await invoke("discardArtifact", { id });
21
+ }
19
22
  };
20
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auersperg/flare",
3
- "version": "0.3.14",
3
+ "version": "0.3.15",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Flare client, server declarations and development CLI",