@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 +1 -1
- package/dist/platform/admin.js +1 -1
- package/dist/platform/dashboard/bootstrap/action.js +5 -2
- package/dist/platform/dashboard/bootstrap/openapi.json +1 -1
- package/dist/platform/dashboard/bootstrap/release.json +2 -2
- package/dist/platform/manifest.json +9 -9
- package/dist/platform/runtime.js +2 -2
- package/dist/sdk/codex.d.ts +2 -0
- package/dist/sdk/codex.js +5 -2
- package/package.json +1 -1
package/dist/cli/flare.js
CHANGED
package/dist/platform/admin.js
CHANGED
|
@@ -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.
|
|
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": "
|
|
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": "
|
|
6
|
+
"action": "551610f76cc588409c0d5f51f23b132a7da1d90f851d49fea5186f6c8e5f7383",
|
|
7
7
|
"schema": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
|
|
8
8
|
"manifest": "006a07907dfd7619fa66152627bc761e581cf8ac538f5002f3b89b71ce92d733"
|
|
9
9
|
},
|
|
10
|
-
"hash": "
|
|
10
|
+
"hash": "46e95c497319ce515538fb3788f93111df98c76d7ca3eafbc6fd8bcbb4cfbff1"
|
|
11
11
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 1,
|
|
3
|
-
"version": "0.3.
|
|
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": "
|
|
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":
|
|
126
|
-
"sha256": "
|
|
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": "
|
|
146
|
+
"sha256": "d9672f489689ae8053324a9599477a438495609b1034f52b4599f1a154f4f157"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
"path": "dashboard/bootstrap/release.json",
|
|
150
150
|
"bytes": 484,
|
|
151
|
-
"sha256": "
|
|
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":
|
|
196
|
-
"sha256": "
|
|
195
|
+
"bytes": 1229444,
|
|
196
|
+
"sha256": "3ffb8eb5dafee479a222d97cb661e49f6f4f919b2f8403ec3d2f689cb5d15082"
|
|
197
197
|
}
|
|
198
198
|
],
|
|
199
|
-
"digest": "
|
|
199
|
+
"digest": "53eb87d966d0698a5dab31c3bb1d3279e170df76d77ddcb67e5d8e5190c7b374"
|
|
200
200
|
}
|
package/dist/platform/runtime.js
CHANGED
|
@@ -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.
|
|
24352
|
+
version: "0.3.15",
|
|
24353
24353
|
type: "module",
|
|
24354
24354
|
license: "MIT",
|
|
24355
24355
|
private: true,
|
package/dist/sdk/codex.d.ts
CHANGED
|
@@ -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
|
}
|