@tangle-network/agent-app 0.63.41 → 0.63.42
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/chat-routes/default-backend.d.ts +2 -4
- package/dist/chat-routes/hybrid-producer.d.ts +1 -1
- package/dist/chat-routes/index.js +2 -3
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/{chunk-RLQRWCPB.js → chunk-JUGXFBOS.js} +5 -4
- package/dist/chunk-JUGXFBOS.js.map +1 -0
- package/dist/{chunk-Y4RVCT7Z.js → chunk-NMDKUCUJ.js} +32 -48
- package/dist/chunk-NMDKUCUJ.js.map +1 -0
- package/dist/public-consultation/index.d.ts +1 -1
- package/dist/public-consultation/index.js +2 -3
- package/dist/public-consultation/index.js.map +1 -1
- package/dist/sandbox/computer-files.d.ts +9 -4
- package/dist/sandbox/computer-step.d.ts +23 -13
- package/dist/sandbox/index.d.ts +0 -1
- package/dist/sandbox/index.js +1 -9
- package/dist/sandbox/prompt-events.d.ts +2 -0
- package/dist/sandbox/prompt-result.d.ts +3 -2
- package/dist/workspace-export/d1.d.ts +1 -1
- package/dist/workspace-export/index.js +1 -7
- package/dist/workspace-export/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-GY4IPYG4.js +0 -40
- package/dist/chunk-GY4IPYG4.js.map +0 -1
- package/dist/chunk-RLQRWCPB.js.map +0 -1
- package/dist/chunk-Y4RVCT7Z.js.map +0 -1
- package/dist/sandbox/computer-receipts.d.ts +0 -46
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Computer-step receipts: the durable record of one `sandbox_run` call, keyed
|
|
3
|
-
* by its step id (the turn's execution, the session and the tool call).
|
|
4
|
-
*
|
|
5
|
-
* `prepared` is written before the task is sent and holds the Vault listing
|
|
6
|
-
* taken then, so a repeated call after a lost request still copies the files
|
|
7
|
-
* the first send wrote. `settled` holds the answer the model read, the model
|
|
8
|
-
* that ran and the file receipt; a repeated call returns it and sends nothing.
|
|
9
|
-
* A receipt holds no credential.
|
|
10
|
-
*/
|
|
11
|
-
import type { ComputerFileListing, ComputerFileReceipt } from './computer-files';
|
|
12
|
-
export interface ComputerStepReceipt {
|
|
13
|
-
stepId: string;
|
|
14
|
-
state: 'prepared' | 'settled';
|
|
15
|
-
sessionId: string;
|
|
16
|
-
model?: string;
|
|
17
|
-
/** The Vault listing before the first send, while `prepared`. */
|
|
18
|
-
before?: ComputerFileListing;
|
|
19
|
-
/** The answer the model read, file receipt line included, once `settled`. */
|
|
20
|
-
answer?: string;
|
|
21
|
-
files?: ComputerFileReceipt;
|
|
22
|
-
updatedAt: number;
|
|
23
|
-
}
|
|
24
|
-
export interface ComputerStepReceipts {
|
|
25
|
-
read(stepId: string): Promise<ComputerStepReceipt | null>;
|
|
26
|
-
/** A `settled` receipt is final: a later `prepared` write for the same step never replaces it. */
|
|
27
|
-
write(receipt: ComputerStepReceipt): Promise<void>;
|
|
28
|
-
}
|
|
29
|
-
/** The D1 surface the store uses. A real `D1Database` satisfies it. */
|
|
30
|
-
export interface ComputerStepReceiptD1Like {
|
|
31
|
-
prepare(query: string): {
|
|
32
|
-
bind(...values: unknown[]): {
|
|
33
|
-
first<T = Record<string, unknown>>(): Promise<T | null>;
|
|
34
|
-
run(): Promise<unknown>;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export declare const DEFAULT_COMPUTER_STEP_RECEIPT_TABLE = "computer_step_receipts";
|
|
39
|
-
/** Paste into a product migration; the store never runs DDL. Times are epoch ms. */
|
|
40
|
-
export declare const COMPUTER_STEP_RECEIPT_TABLE_DDL = "CREATE TABLE IF NOT EXISTS computer_step_receipts (\n step_id TEXT PRIMARY KEY,\n state TEXT NOT NULL,\n receipt TEXT NOT NULL,\n updated_at INTEGER NOT NULL\n);\nCREATE INDEX IF NOT EXISTS computer_step_receipts_by_age ON computer_step_receipts (updated_at);";
|
|
41
|
-
/** Receipts in one D1 table, shared by every isolate. Rows older than `retentionMs` (default 30 days) are pruned. */
|
|
42
|
-
export declare function createD1ComputerStepReceipts(db: ComputerStepReceiptD1Like, options?: {
|
|
43
|
-
table?: string;
|
|
44
|
-
retentionMs?: number;
|
|
45
|
-
now?: () => number;
|
|
46
|
-
}): ComputerStepReceipts;
|