@sema-agent/server 1.310.0 → 1.312.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.
Files changed (72) hide show
  1. package/dist/auth-keys.d.ts +14 -0
  2. package/dist/auth-keys.js +31 -0
  3. package/dist/brain.d.ts +1 -1
  4. package/dist/capabilities/center-prompts.d.ts +3 -28
  5. package/dist/capabilities/center-prompts.js +2 -107
  6. package/dist/capabilities/select-environment-tool.d.ts +1 -1
  7. package/dist/config-lkg.js +1 -1
  8. package/dist/config-types.d.ts +306 -0
  9. package/dist/config-types.js +2 -0
  10. package/dist/config.d.ts +4 -305
  11. package/dist/config.js +1 -1
  12. package/dist/env-facts.d.ts +1 -1
  13. package/dist/hooks/hook-llm.d.ts +1 -1
  14. package/dist/http/server.d.ts +5 -85
  15. package/dist/http/wire-types.d.ts +84 -0
  16. package/dist/http/wire-types.js +2 -0
  17. package/dist/images/manifest.d.ts +1 -1
  18. package/dist/index.d.ts +2 -1
  19. package/dist/index.js +1 -1
  20. package/dist/main.js +134 -143
  21. package/dist/per-task-image.d.ts +2 -2
  22. package/dist/plugins/file-run-store.d.ts +1 -1
  23. package/dist/plugins/local-session-store.d.ts +2 -2
  24. package/dist/plugins/local-session-store.js +1 -1
  25. package/dist/plugins/memory-run-store.d.ts +1 -1
  26. package/dist/plugins/pg-approval-store.js +1 -27
  27. package/dist/plugins/pg-checkpoint-store.js +1 -5
  28. package/dist/plugins/pg-image-bake.d.ts +2 -2
  29. package/dist/plugins/pg-image-bake.js +2 -54
  30. package/dist/plugins/pg-image-index.d.ts +2 -2
  31. package/dist/plugins/pg-image-index.js +1 -44
  32. package/dist/plugins/pg-pool.d.ts +1 -1
  33. package/dist/plugins/pg-run-store.d.ts +1 -1
  34. package/dist/plugins/pg-run-store.js +2 -16
  35. package/dist/plugins/pg-session-storage.d.ts +2 -2
  36. package/dist/plugins/pg-session-storage.js +3 -7
  37. package/dist/plugins/pg-tool-result-store.js +1 -1
  38. package/dist/plugins/session-store.d.ts +1 -1
  39. package/dist/plugins/sql-escape.d.ts +2 -0
  40. package/dist/plugins/sql-escape.js +4 -0
  41. package/dist/plugins/sql-row-helpers.d.ts +7 -0
  42. package/dist/plugins/sql-row-helpers.js +43 -0
  43. package/dist/plugins/store-backend.d.ts +1 -1
  44. package/dist/plugins/store-contracts.d.ts +205 -0
  45. package/dist/plugins/store-contracts.js +61 -0
  46. package/dist/plugins/tidb-approval-store.d.ts +1 -0
  47. package/dist/plugins/tidb-approval-store.js +2 -11
  48. package/dist/plugins/tidb-checkpoint-store.js +1 -5
  49. package/dist/plugins/tidb-image-bake.d.ts +3 -64
  50. package/dist/plugins/tidb-image-bake.js +3 -54
  51. package/dist/plugins/tidb-image-index.d.ts +3 -52
  52. package/dist/plugins/tidb-image-index.js +2 -43
  53. package/dist/plugins/tidb-pool.d.ts +1 -1
  54. package/dist/plugins/tidb-run-store.d.ts +2 -32
  55. package/dist/plugins/tidb-run-store.js +2 -16
  56. package/dist/plugins/tidb-session-storage.js +1 -5
  57. package/dist/plugins/tidb-session-store.d.ts +2 -2
  58. package/dist/plugins/tidb-session-store.js +2 -2
  59. package/dist/plugins/tidb-tool-result-store.d.ts +1 -1
  60. package/dist/plugins/tidb-tool-result-store.js +2 -3
  61. package/dist/prompts-domain-validate.d.ts +29 -0
  62. package/dist/prompts-domain-validate.js +109 -0
  63. package/dist/security.d.ts +6 -16
  64. package/dist/security.js +1 -30
  65. package/dist/sema-registry.d.ts +1 -1
  66. package/dist/session-sync-kernel.d.ts +47 -0
  67. package/dist/session-sync-kernel.js +47 -0
  68. package/dist/session-sync.d.ts +3 -45
  69. package/dist/session-sync.js +2 -46
  70. package/dist/trace/artifacts.d.ts +1 -1
  71. package/dist/trace/project.d.ts +1 -1
  72. package/package.json +1 -1
package/dist/config.d.ts CHANGED
@@ -1,308 +1,7 @@
1
- import type { SealedKeyPoison } from "./sealed-key.js";
2
- import { type McpServerSpec, type Model, type ModelRoles } from "@sema-agent/core";
3
- import { type ApprovalHmacKey, type PrincipalJwtKey } from "./security.js";
4
- import { type ElicitationThrottle } from "./elicitation.js";
5
- import type { InfraCostRates } from "./finance/cost-taxonomy.js";
6
- import type { Autonomy, CommandRule } from "./runtime-governance.js";
7
- export interface ScopedMcpServer {
8
- scenarios: string[];
9
- spec: McpServerSpec;
10
- }
11
- export interface ImageBakeConfig {
12
- enabled: boolean;
13
- runnerPrincipal: string;
14
- registry: string | null;
15
- cacheBase: string | null;
16
- defaultBaseRef: string | null;
17
- leaseMs: number;
18
- staleMs: number;
19
- submitRateMax: number;
20
- submitRateWindowSec: number;
21
- }
22
- export interface ServiceConfig {
23
- port: number;
24
- gatewayBaseUrl: string;
25
- gatewayApiKey?: string;
26
- gatewayFallbackUrls: string[];
27
- anthropic?: {
28
- apiKey?: string;
29
- authToken?: string;
30
- baseUrl?: string;
31
- version?: string;
32
- cacheBreakpoints: boolean;
33
- maxRetries: number;
34
- };
35
- resilience: {
36
- connectTimeoutMs: number;
37
- firstTokenTimeoutMs: number;
38
- idleTimeoutMs: number;
39
- circuitBreaker: boolean;
40
- failureThreshold: number;
41
- cooldownMs: number;
42
- };
43
- model: Model;
44
- models: Record<string, Model>;
45
- modelApiKeyEnv: Record<string, string>;
46
- modelApiKeys: Record<string, string | SealedKeyPoison>;
47
- modelQuotaWeights: Record<string, number>;
48
- tiers: Record<string, string>;
49
- projects: Record<string, {
50
- displayName?: string;
51
- gitRemotes?: string[];
52
- defaultScopes?: string[];
53
- }>;
54
- roles: ModelRoles;
55
- sessionBackend: "memory" | "tidb" | "auto";
56
- sessionCacheTtlSec: number;
57
- rewindSnapshotMaxMb?: number;
58
- memoryEngineEnabled: boolean;
59
- memoryEngineDir?: string;
60
- memoryEngineRemoteLaneAllowed: boolean;
61
- memoryScope?: string;
62
- memorySync?: {
63
- url: string;
64
- token: string;
65
- scope: string;
66
- maxPushEntries?: number;
67
- maxPullEntries?: number;
68
- };
69
- remoteExec?: {
70
- provider: "e2b";
71
- apiKey: string;
72
- template?: string;
73
- timeoutMs?: number;
74
- livenessMs?: number;
75
- allowInternetAccess?: boolean;
76
- sandboxEnv?: Record<string, string>;
77
- mountPath?: string;
78
- } | {
79
- provider: "k8s";
80
- image: string;
81
- apiUrl?: string;
82
- token?: string;
83
- caCert?: string;
84
- insecureTls?: boolean;
85
- namespace?: string;
86
- runtimeClass?: string;
87
- mountPath?: string;
88
- timeoutMs?: number;
89
- memory?: string;
90
- cpu?: string;
91
- s3Snapshot?: {
92
- endpoint: string;
93
- bucket: string;
94
- accessKey: string;
95
- secretKey: string;
96
- region?: string;
97
- keyPrefix?: string;
98
- presignTtlSec?: number;
99
- };
100
- } | {
101
- provider: "ssh";
102
- host: string;
103
- port?: number;
104
- username: string;
105
- privateKey: string;
106
- mountPath?: string;
107
- } | {
108
- provider: "adb";
109
- serial: string;
110
- adbPath?: string;
111
- mountPath?: string;
112
- } | {
113
- provider: "host";
114
- workspaceBase?: string;
115
- commandTimeoutMs?: number;
116
- } | {
117
- provider: "local-docker";
118
- image: string;
119
- mountPath?: string;
120
- dockerPath?: string;
121
- dockerHost?: string;
122
- memory?: string;
123
- cpus?: number;
124
- pidsLimit?: number;
125
- dropAllCaps?: boolean;
126
- network?: "none" | "bridge" | "host";
127
- commandTimeoutMs?: number;
128
- env?: Record<string, string>;
129
- };
130
- worktreeIsolation?: {
131
- repoRoot: string;
132
- allowedRoots?: string[];
133
- commit?: string;
134
- };
135
- mcpServers?: ScopedMcpServer[];
136
- tidb?: {
137
- host: string;
138
- port: number;
139
- user: string;
140
- password: string;
141
- database: string;
142
- connectionLimit?: number;
143
- };
144
- dbBackend: "mysql" | "pg" | "local" | "memory";
145
- dbBackendExplicit: boolean;
146
- localDataRoot?: string;
147
- pg?: {
148
- host: string;
149
- port: number;
150
- user: string;
151
- password: string;
152
- database: string;
153
- connectionLimit?: number;
154
- };
155
- dbQueryTimeoutMs?: number;
156
- snapshotBlobStore?: {
157
- endpoint: string;
158
- bucket: string;
159
- accessKey: string;
160
- secretKey: string;
161
- region?: string;
162
- keyPrefix?: string;
163
- presignTtlSec?: number;
164
- };
165
- snapshotBlobSqlMaxBytes?: number;
166
- snapshotBlobAllowSql: boolean;
167
- pluginsAllowHosts: string[];
168
- bindHost?: string;
169
- attachmentOrphanGraceMs: number;
170
- workspaceFileMaxBytes: number;
171
- sendUserFile?: {
172
- endpoint: string;
173
- publicEndpoint?: string;
174
- publicBucket: string;
175
- privateBucket: string;
176
- privateKeyPrefix: string;
177
- sandboxPutEndpoint?: string;
178
- accessKey: string;
179
- secretKey: string;
180
- region?: string;
181
- defaultTtlSec: number;
182
- };
183
- authToken?: string;
184
- authTokens: Record<string, string>;
185
- allowUnauthedWrites?: boolean;
186
- metricsToken?: string;
187
- traceToken?: string;
188
- corsOrigins: string[];
189
- attachmentMaxBytes: number;
190
- attachmentMimeAllowlist?: string[];
191
- attachmentUnboundTtlMs: number;
192
- principalHeader: string;
193
- requirePrincipal: boolean;
194
- autonomy?: Autonomy;
195
- commandPolicy?: CommandRule[];
196
- approvalRequire: string[];
197
- operatorPrincipals: string[];
198
- approvalDeny: string[];
199
- approvalPollMs: number;
200
- durableApproval: boolean;
201
- resourceSuspend: boolean;
202
- resourceSuspendTtlSec: number;
203
- approvalAutoBudget: number;
204
- approvalNeverAuto: string[];
205
- approvalHmacKeys: ApprovalHmacKey[];
206
- directApprovalDoor: boolean;
207
- principalJwtPubkeys: PrincipalJwtKey[];
208
- principalJwtIss?: string;
209
- principalJwtAud?: string;
210
- principalJwtMaxTtlSec: number;
211
- directDoorActive: boolean;
212
- infraCostRates: InfraCostRates;
213
- leaderEnabled: boolean;
214
- leaderFanoutEnabled: boolean;
215
- routerEnabled: boolean;
216
- selfOrchestrationEnabled: boolean;
217
- forkEnabled: boolean;
218
- experimentalObserverAgents: boolean;
219
- selfOrchestrationModels: string[];
220
- selfOrchestrationWorkerIsolation: boolean;
221
- workflowRunStoreBackend: "auto" | "file" | "memory";
222
- workflowOrphanGraceMs: number;
223
- schedulerEnabled: boolean;
224
- projectMemoryDisabled: boolean;
225
- schedulerStorePath?: string;
226
- configBootFetchBudgetMs: number;
227
- schedulerSessionWakeup: boolean;
228
- planModeEnabled: boolean;
229
- workflowJournalRetentionMs: number;
230
- workflowRunRetentionMs: number;
231
- backgroundAgentRetentionMs: number;
232
- backgroundAgentStaleRunningMs: number;
233
- backgroundAgentParkClaimStaleMs: number;
234
- rosterRetentionMs: number;
235
- scratchpadSweepTtlMs: number;
236
- sandboxPkgSource?: string;
237
- sessionAutoTitle: boolean;
238
- selectEnvironmentTool: boolean;
239
- envFactsEnabled: boolean;
240
- sensitiveWritePatterns: string[];
241
- manualModeShellGate?: "always" | "classify";
242
- toolDeferLongtail: boolean;
243
- lspEnabled: boolean;
244
- lspHostEnabled: boolean;
245
- drainGraceMs: number;
246
- sighupIdleGraceMs: number;
247
- mcpElicitation: {
248
- enabled: boolean;
249
- throttle: ElicitationThrottle;
250
- };
251
- askQuestionEnabled: boolean;
252
- toolApprovalEnabled: boolean;
253
- workflowAgentsReadOnly: boolean;
254
- imageBakes: ImageBakeConfig;
255
- toolTrace: boolean;
256
- traceThinking: boolean;
257
- logLevel: "debug" | "info" | "warn" | "error";
258
- rateLimitPerMin: number;
259
- maxTaskCostUsd: number;
260
- maxTaskTokens: number;
261
- maxPrincipalCostUsd: number;
262
- costQuotaWindowSec: number;
263
- degrade?: {
264
- to: string;
265
- atCostFraction: number;
266
- reactive: boolean;
267
- downgradeOn?: ("rate_limit" | "breaker_open")[];
268
- toSupportsImages: boolean;
269
- };
270
- cascadeLadder: string[];
271
- otel?: {
272
- endpoint: string;
273
- intervalMs: number;
274
- serviceName: string;
275
- headers: Record<string, string>;
276
- };
277
- approvalTimeoutSec: number;
278
- reapIntervalSec: number;
279
- toolResultTtlSec: number;
280
- runStaleSec: number;
281
- syncImportLeaseStaleSec: number;
282
- gitApiBaseUrl?: string;
283
- gitApiToken?: string;
284
- memoryEngineBackend: "file" | "pg" | "tidb";
285
- workflowSizeGuideline?: "small" | "medium" | "large" | "unrestricted";
286
- defaultScenario: string;
287
- skillsDir: string;
288
- oaApiBaseUrl?: string;
289
- oaServiceToken?: string;
290
- oaIssue?: {
291
- baseUrl: string;
292
- owner: string;
293
- repo: string;
294
- token: string;
295
- defaultLabels?: number[];
296
- };
297
- configCenter?: {
298
- baseUrl: string;
299
- token: string;
300
- dryRun: boolean;
301
- worker?: string;
302
- };
303
- configProvider?: string;
304
- configLocalDir?: string;
305
- }
1
+ import { type Model } from "@sema-agent/core";
2
+ import type { Autonomy } from "./runtime-governance.js";
3
+ import type { ServiceConfig } from "./config-types.js";
4
+ export type { ServiceConfig, ScopedMcpServer, ImageBakeConfig } from "./config-types.js";
306
5
  export declare function parseAutonomy(raw: string | undefined): Autonomy | undefined;
307
6
  export declare function drainConfigWarnings(): Array<{
308
7
  env: string;
package/dist/config.js CHANGED
@@ -3,7 +3,7 @@ import { join } from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
4
  import { CODE_AGENT_PROMPT, formatUserScope, isThinkingLevel, RECOMMENDED_SENSITIVE_PATTERNS } from "@sema-agent/core";
5
5
  import { ROSTER_PRIMARY_ROLES, ROSTER_CHEAP_ROLES } from "@sema-agent/registry-core";
6
- import { parseApprovalHmacKeys, parsePrincipalJwks } from "./security.js";
6
+ import { parseApprovalHmacKeys, parsePrincipalJwks } from "./auth-keys.js";
7
7
  import { DEFAULT_ELICITATION_THROTTLE } from "./elicitation.js";
8
8
  function csv(name) {
9
9
  return (process.env[name] ?? "")
@@ -1,4 +1,4 @@
1
- import type { ImageCapabilities } from "./plugins/tidb-image-index.js";
1
+ import type { ImageCapabilities } from "./plugins/store-contracts.js";
2
2
  export interface SandboxEnvFacts {
3
3
  profile?: string;
4
4
  capabilities?: string[];
@@ -1,5 +1,5 @@
1
1
  import type { Model } from "@sema-agent/core";
2
- import type { ServiceConfig } from "../config.js";
2
+ import type { ServiceConfig } from "../config-types.js";
3
3
  import type { HookLlmCall } from "./hook-runner.js";
4
4
  export type HookModelPick = {
5
5
  ok: true;
@@ -1,10 +1,11 @@
1
1
  import http from "node:http";
2
2
  import type { IncomingMessage, ServerResponse } from "node:http";
3
- import { type McpServerSpec, type Runner, type TaskSpec, type TaskResult, type CascadeConfig, type QuestionAnswer, type WorkflowRunStore, type MemoryEntry, type AgentDefinition } from "@sema-agent/core";
4
- import type { ServiceConfig } from "../config.js";
3
+ import { type Runner, type TaskSpec, type TaskResult, type CascadeConfig, type QuestionAnswer, type WorkflowRunStore, type MemoryEntry } from "@sema-agent/core";
4
+ import type { TaskRequestBody } from "./wire-types.js";
5
+ import type { ServiceConfig } from "../config-types.js";
5
6
  import { type RestartSignal, type SessionMirrorRuling } from "../sema-registry.js";
6
7
  import { type OwnerAwareSessionStore } from "../security.js";
7
- import type { BakeState, BakeErrorCode } from "../plugins/tidb-image-bake.js";
8
+ import type { BakeState, BakeErrorCode } from "../plugins/store-contracts.js";
8
9
  import type { RunStore, ApprovalStore, ImageIndex, ImageBake, CheckpointStoreFull, ResumeAnchorStore, ApprovalExemptionStore, ServiceSessionPolicyStore, ServiceFileSnapshotStore, StoreBackend } from "../plugins/store-backend.js";
9
10
  import { type MemorySyncRequest, type MemorySyncResponse } from "../memory-sync.js";
10
11
  import type { TaskAttachmentStore } from "../plugins/task-attachment-store.js";
@@ -159,88 +160,7 @@ export interface ServiceDeps {
159
160
  blocked?: string[];
160
161
  } | undefined;
161
162
  }
162
- export interface TaskRequestBody {
163
- objective: string;
164
- sessionId?: string;
165
- images?: Array<{
166
- data: string;
167
- mimeType: string;
168
- } | {
169
- url: string;
170
- }>;
171
- attachmentIds?: string[];
172
- clientContext?: {
173
- timeZone?: string;
174
- userEmail?: string;
175
- };
176
- systemPrompt?: string;
177
- appendSystemPrompt?: string;
178
- model?: string;
179
- compactionModel?: string;
180
- maxCostUsd?: number;
181
- maxTokens?: number;
182
- verify?: boolean;
183
- verifyRounds?: number;
184
- cascade?: boolean;
185
- jobId?: string;
186
- skills?: Array<{
187
- name: string;
188
- description: string;
189
- content: string;
190
- }>;
191
- sandboxImageProfile?: string;
192
- capabilitiesNeeded?: string[];
193
- outputSchema?: Record<string, unknown>;
194
- reasoningEffort?: string;
195
- resumeAt?: string;
196
- resumeAtMode?: string;
197
- requireExistingSession?: boolean;
198
- suggestNextPrompts?: boolean | {
199
- count?: number;
200
- role?: string;
201
- };
202
- rewindFiles?: boolean;
203
- rewindFilesTo?: string;
204
- resilience?: {
205
- allowDegrade?: boolean;
206
- allowFailover?: boolean;
207
- bypassBreaker?: boolean;
208
- };
209
- finalVerification?: boolean;
210
- limits?: {
211
- timeoutSec?: number;
212
- maxOutputTokens?: number;
213
- maxTurns?: number;
214
- };
215
- attachments?: {
216
- todoReminder?: boolean;
217
- changedFiles?: boolean | {
218
- maxFiles?: number;
219
- };
220
- planModeReminder?: boolean;
221
- backgroundTasks?: boolean;
222
- toolsDelta?: boolean;
223
- };
224
- forwardSubagentEvents?: boolean;
225
- scratchpadDir?: string;
226
- retainSubagentSessions?: boolean | {
227
- ttlMs?: number;
228
- max?: number;
229
- };
230
- agents?: AgentDefinition[];
231
- retainBackgroundProcesses?: boolean;
232
- excludeTools?: string[];
233
- deferTools?: string[];
234
- promptProfile?: "simple" | "classic";
235
- permissionMode?: string;
236
- memoryWrite?: boolean;
237
- projectId?: string;
238
- cwd?: string;
239
- mcpServers?: McpServerSpec[];
240
- selfOrchestration?: boolean;
241
- enableFork?: boolean;
242
- [k: string]: unknown;
243
- }
163
+ export type { TaskRequestBody } from "./wire-types.js";
244
164
  export declare const MAX_USER_SKILLS = 10;
245
165
  export declare const MAX_SKILL_CONTENT_CHARS = 1048576;
246
166
  export declare const MAX_SYSTEM_PROMPT_CHARS = 16384;
@@ -0,0 +1,84 @@
1
+ import type { AgentDefinition, McpServerSpec } from "@sema-agent/core";
2
+ export interface TaskRequestBody {
3
+ objective: string;
4
+ sessionId?: string;
5
+ images?: Array<{
6
+ data: string;
7
+ mimeType: string;
8
+ } | {
9
+ url: string;
10
+ }>;
11
+ attachmentIds?: string[];
12
+ clientContext?: {
13
+ timeZone?: string;
14
+ userEmail?: string;
15
+ };
16
+ systemPrompt?: string;
17
+ appendSystemPrompt?: string;
18
+ model?: string;
19
+ compactionModel?: string;
20
+ maxCostUsd?: number;
21
+ maxTokens?: number;
22
+ verify?: boolean;
23
+ verifyRounds?: number;
24
+ cascade?: boolean;
25
+ jobId?: string;
26
+ skills?: Array<{
27
+ name: string;
28
+ description: string;
29
+ content: string;
30
+ }>;
31
+ sandboxImageProfile?: string;
32
+ capabilitiesNeeded?: string[];
33
+ outputSchema?: Record<string, unknown>;
34
+ reasoningEffort?: string;
35
+ resumeAt?: string;
36
+ resumeAtMode?: string;
37
+ requireExistingSession?: boolean;
38
+ suggestNextPrompts?: boolean | {
39
+ count?: number;
40
+ role?: string;
41
+ };
42
+ rewindFiles?: boolean;
43
+ rewindFilesTo?: string;
44
+ resilience?: {
45
+ allowDegrade?: boolean;
46
+ allowFailover?: boolean;
47
+ bypassBreaker?: boolean;
48
+ };
49
+ finalVerification?: boolean;
50
+ limits?: {
51
+ timeoutSec?: number;
52
+ maxOutputTokens?: number;
53
+ maxTurns?: number;
54
+ };
55
+ attachments?: {
56
+ todoReminder?: boolean;
57
+ changedFiles?: boolean | {
58
+ maxFiles?: number;
59
+ };
60
+ planModeReminder?: boolean;
61
+ backgroundTasks?: boolean;
62
+ toolsDelta?: boolean;
63
+ };
64
+ forwardSubagentEvents?: boolean;
65
+ scratchpadDir?: string;
66
+ retainSubagentSessions?: boolean | {
67
+ ttlMs?: number;
68
+ max?: number;
69
+ };
70
+ agents?: AgentDefinition[];
71
+ retainBackgroundProcesses?: boolean;
72
+ excludeTools?: string[];
73
+ deferTools?: string[];
74
+ promptProfile?: "simple" | "classic";
75
+ permissionMode?: string;
76
+ memoryWrite?: boolean;
77
+ projectId?: string;
78
+ cwd?: string;
79
+ mcpServers?: McpServerSpec[];
80
+ selfOrchestration?: boolean;
81
+ enableFork?: boolean;
82
+ [k: string]: unknown;
83
+ }
84
+ //# sourceMappingURL=wire-types.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=wire-types.js.map
@@ -1,4 +1,4 @@
1
- import type { ImageIndexUpsert, ImageNestedBuildMode, ImageStatus } from "../plugins/tidb-image-index.js";
1
+ import type { ImageIndexUpsert, ImageNestedBuildMode, ImageStatus } from "../plugins/store-contracts.js";
2
2
  export declare function nestedBuildModeOf(v: string | boolean | undefined): ImageNestedBuildMode;
3
3
  export interface BuildManifest {
4
4
  profile?: string;
package/dist/index.d.ts CHANGED
@@ -5,7 +5,8 @@ export { createTidbPool, ensureSchema, SCHEMA_STATEMENTS } from "./plugins/tidb-
5
5
  export { TiDBSessionStore } from "./plugins/tidb-session-store.js";
6
6
  export { TiDBSessionStorage } from "./plugins/tidb-session-storage.js";
7
7
  export { CachingSessionStore, type CachingOptions } from "./plugins/caching-session-store.js";
8
- export { TiDBRunStore, type RunRecord, type RunEvent, } from "./plugins/tidb-run-store.js";
8
+ export { TiDBRunStore } from "./plugins/tidb-run-store.js";
9
+ export type { RunRecord, RunEvent } from "./plugins/store-contracts.js";
9
10
  export { runInBackground } from "./runs.js";
10
11
  export { TiDBApprovalStore, type ApprovalRow, type ApprovalStatus, } from "./plugins/tidb-approval-store.js";
11
12
  export { createOaApprovalPolicy, type OaApprovalOptions } from "./approval.js";
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ export { createTidbPool, ensureSchema, SCHEMA_STATEMENTS } from "./plugins/tidb-
5
5
  export { TiDBSessionStore } from "./plugins/tidb-session-store.js";
6
6
  export { TiDBSessionStorage } from "./plugins/tidb-session-storage.js";
7
7
  export { CachingSessionStore } from "./plugins/caching-session-store.js";
8
- export { TiDBRunStore, } from "./plugins/tidb-run-store.js";
8
+ export { TiDBRunStore } from "./plugins/tidb-run-store.js";
9
9
  export { runInBackground } from "./runs.js";
10
10
  export { TiDBApprovalStore, } from "./plugins/tidb-approval-store.js";
11
11
  export { createOaApprovalPolicy } from "./approval.js";