@sapiom/harness 0.1.3 → 0.1.5
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/CHANGELOG.md +57 -0
- package/dist/core/adapters/adapter.d.ts +9 -0
- package/dist/core/adapters/adapter.d.ts.map +1 -1
- package/dist/core/adapters/claude-code-info.d.ts.map +1 -1
- package/dist/core/adapters/claude-code-info.js +2 -0
- package/dist/core/adapters/claude-code-info.js.map +1 -1
- package/dist/core/adapters/claude-code.d.ts +4 -0
- package/dist/core/adapters/claude-code.d.ts.map +1 -1
- package/dist/core/adapters/claude-code.js +133 -47
- package/dist/core/adapters/claude-code.js.map +1 -1
- package/dist/core/adapters/codex-info.d.ts.map +1 -1
- package/dist/core/adapters/codex-info.js +2 -0
- package/dist/core/adapters/codex-info.js.map +1 -1
- package/dist/core/adapters/conductor.d.ts.map +1 -1
- package/dist/core/adapters/conductor.js +2 -0
- package/dist/core/adapters/conductor.js.map +1 -1
- package/dist/core/adapters/opencode.d.ts.map +1 -1
- package/dist/core/adapters/opencode.js +2 -0
- package/dist/core/adapters/opencode.js.map +1 -1
- package/dist/core/adapters/pi.d.ts.map +1 -1
- package/dist/core/adapters/pi.js +2 -0
- package/dist/core/adapters/pi.js.map +1 -1
- package/dist/core/canvas-run-state.d.ts +95 -0
- package/dist/core/canvas-run-state.d.ts.map +1 -0
- package/dist/core/canvas-run-state.js +162 -0
- package/dist/core/canvas-run-state.js.map +1 -0
- package/dist/core/canvas-svg.d.ts.map +1 -1
- package/dist/core/canvas-svg.js +28 -8
- package/dist/core/canvas-svg.js.map +1 -1
- package/dist/core/canvas-template.d.ts +4 -3
- package/dist/core/canvas-template.d.ts.map +1 -1
- package/dist/core/canvas-template.js +75 -3
- package/dist/core/canvas-template.js.map +1 -1
- package/dist/core/definition-slug-resolver.d.ts +33 -0
- package/dist/core/definition-slug-resolver.d.ts.map +1 -0
- package/dist/core/definition-slug-resolver.js +81 -0
- package/dist/core/definition-slug-resolver.js.map +1 -0
- package/dist/core/execution-detector.d.ts +59 -0
- package/dist/core/execution-detector.d.ts.map +1 -0
- package/dist/core/execution-detector.js +110 -0
- package/dist/core/execution-detector.js.map +1 -0
- package/dist/core/inject/mcp-config.d.ts.map +1 -1
- package/dist/core/inject/mcp-config.js +9 -1
- package/dist/core/inject/mcp-config.js.map +1 -1
- package/dist/core/render-run-state.d.ts +9 -0
- package/dist/core/render-run-state.d.ts.map +1 -0
- package/dist/core/render-run-state.js +139 -0
- package/dist/core/render-run-state.js.map +1 -0
- package/dist/core/run-spend.d.ts +55 -0
- package/dist/core/run-spend.d.ts.map +1 -0
- package/dist/core/run-spend.js +109 -0
- package/dist/core/run-spend.js.map +1 -0
- package/dist/core/run-state.d.ts +45 -0
- package/dist/core/run-state.d.ts.map +1 -0
- package/dist/core/run-state.js +72 -0
- package/dist/core/run-state.js.map +1 -0
- package/dist/core/run-transactions.d.ts +60 -0
- package/dist/core/run-transactions.d.ts.map +1 -0
- package/dist/core/run-transactions.js +129 -0
- package/dist/core/run-transactions.js.map +1 -0
- package/dist/core/workflow-registry.d.ts +12 -1
- package/dist/core/workflow-registry.d.ts.map +1 -1
- package/dist/core/workflow-registry.js +2 -0
- package/dist/core/workflow-registry.js.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +0 -0
- package/dist/server/index.js.map +1 -1
- package/dist/server/rest.d.ts +5 -0
- package/dist/server/rest.d.ts.map +1 -1
- package/dist/server/rest.js +151 -12
- package/dist/server/rest.js.map +1 -1
- package/dist/server/runs.d.ts +33 -0
- package/dist/server/runs.d.ts.map +1 -0
- package/dist/server/runs.js +124 -0
- package/dist/server/runs.js.map +1 -0
- package/dist/shared/types.d.ts +157 -0
- package/dist/shared/types.d.ts.map +1 -1
- package/dist/shared/types.js +30 -0
- package/dist/shared/types.js.map +1 -1
- package/dist/web/assets/index-DM84J83Y.js +234 -0
- package/dist/web/assets/index-DemtWW4L.css +32 -0
- package/dist/web/index.html +2 -2
- package/package.json +4 -4
- package/dist/web/assets/index-BTm-QNRt.css +0 -32
- package/dist/web/assets/index-CvNiFngP.js +0 -204
package/dist/shared/types.d.ts
CHANGED
|
@@ -50,6 +50,32 @@ export declare const CANVAS_RENDERS_DIR = ".sapiom/canvas/renders";
|
|
|
50
50
|
* until a re-run replaces it — see core/canvas-enrich.ts.
|
|
51
51
|
*/
|
|
52
52
|
export declare const CANVAS_CACHE_DIR = ".sapiom/canvas/cache";
|
|
53
|
+
/**
|
|
54
|
+
* Composer image attachments (upload / paste / drag-drop) land here, relative
|
|
55
|
+
* to the session cwd, before their path is relayed into the agent's prompt.
|
|
56
|
+
* Co-located under `.sapiom/` with the canvas + context conventions so a single
|
|
57
|
+
* ignore/clean of that directory covers everything the harness writes.
|
|
58
|
+
*/
|
|
59
|
+
export declare const HARNESS_UPLOADS_DIR = ".sapiom/uploads";
|
|
60
|
+
/**
|
|
61
|
+
* Image content types the composer accepts for attach. Kept deliberately small
|
|
62
|
+
* — the formats every supported coding agent can actually read from a file path
|
|
63
|
+
* — and shared by the client (pre-flight validation) and the server (the real
|
|
64
|
+
* gate) so the two can't drift.
|
|
65
|
+
*/
|
|
66
|
+
export declare const ALLOWED_IMAGE_MEDIA_TYPES: readonly ["image/png", "image/jpeg", "image/gif", "image/webp"];
|
|
67
|
+
export type ImageMediaType = (typeof ALLOWED_IMAGE_MEDIA_TYPES)[number];
|
|
68
|
+
/** Hard cap on a single attached image (decoded bytes). 10 MiB. */
|
|
69
|
+
export declare const MAX_IMAGE_UPLOAD_BYTES: number;
|
|
70
|
+
/**
|
|
71
|
+
* Body-parser byte limit for JSON `/api` routes. express.json defaults to
|
|
72
|
+
* 100 KiB — far below a base64-encoded image (~1.37× the decoded size). Sized
|
|
73
|
+
* to clear MAX_IMAGE_UPLOAD_BYTES base64'd plus 1 MiB of envelope overhead, and
|
|
74
|
+
* shared by the app-level `/api` parser (server/index.ts) and the rest router
|
|
75
|
+
* so the two can't disagree. The real per-image cap is still enforced (after
|
|
76
|
+
* decode) in the image handler; other routes validate their own small shapes.
|
|
77
|
+
*/
|
|
78
|
+
export declare const JSON_BODY_LIMIT_BYTES: number;
|
|
53
79
|
/**
|
|
54
80
|
* Workspace-state convention: the harness mirrors this session's binding,
|
|
55
81
|
* the full workflow registry, and its own identity here, relative to the
|
|
@@ -128,6 +154,19 @@ export interface SessionSummary {
|
|
|
128
154
|
title: string;
|
|
129
155
|
lastActiveAt: string;
|
|
130
156
|
source: "registry" | "transcript";
|
|
157
|
+
/**
|
|
158
|
+
* Git branch the session was last active on, when the transcript records it.
|
|
159
|
+
* The strongest within-directory differentiator between otherwise-similar
|
|
160
|
+
* rows (many sessions in one repo often differ only by branch). Undefined
|
|
161
|
+
* for harnesses/transcripts that don't record a branch.
|
|
162
|
+
*/
|
|
163
|
+
gitBranch?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Number of human prompts (turns) in the session, when cheaply knowable.
|
|
166
|
+
* Undefined for transcripts too large to scan for an exact count without a
|
|
167
|
+
* full read (see the claude-code adapter's full-scan size cap).
|
|
168
|
+
*/
|
|
169
|
+
messageCount?: number;
|
|
131
170
|
}
|
|
132
171
|
export interface DoctorCheck {
|
|
133
172
|
name: string;
|
|
@@ -262,6 +301,18 @@ export type BusMessage = {
|
|
|
262
301
|
harnessSessionId: string;
|
|
263
302
|
port: number;
|
|
264
303
|
url: string;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* A run just started (the CLI printed `✓ Started execution <id>`, caught by
|
|
307
|
+
* the ExecutionDetector). The SPA starts polling `/api/runs/:id/state` on
|
|
308
|
+
* receipt. `target` is `"prod"` today — local runs render from their final
|
|
309
|
+
* result rather than polling.
|
|
310
|
+
*/
|
|
311
|
+
| {
|
|
312
|
+
type: "execution.started";
|
|
313
|
+
harnessSessionId: string;
|
|
314
|
+
executionId: string;
|
|
315
|
+
target: "prod" | "local";
|
|
265
316
|
} | {
|
|
266
317
|
type: "workflows.changed";
|
|
267
318
|
}
|
|
@@ -287,6 +338,72 @@ export type BusMessage = {
|
|
|
287
338
|
harnessSessionId: string;
|
|
288
339
|
at: string;
|
|
289
340
|
};
|
|
341
|
+
/** Per-step cost summary from the spend endpoint. */
|
|
342
|
+
export interface RunStepSpend {
|
|
343
|
+
name: string;
|
|
344
|
+
totalUsd: string;
|
|
345
|
+
entryCount: number;
|
|
346
|
+
}
|
|
347
|
+
/** Full spend summary for one execution, keyed by executionId. */
|
|
348
|
+
export interface RunSpend {
|
|
349
|
+
executionId: string;
|
|
350
|
+
totalUsd: string;
|
|
351
|
+
settleState: string;
|
|
352
|
+
byStep: RunStepSpend[];
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* One billable capability call within a run — the per-call drill-down behind a
|
|
356
|
+
* step's cost ("why is this step costly"). Derived from the transactions
|
|
357
|
+
* endpoint. Deliberately provider-AGNOSTIC: `capability` is a generic label
|
|
358
|
+
* ("LLM", "sandbox", "web search") mapped server-side from the operation, so
|
|
359
|
+
* neither the browser nor this file ever carries the upstream provider/model
|
|
360
|
+
* name. Token counts are intentionally absent — the platform does not record
|
|
361
|
+
* per-call tokens for gateway LLM calls (see SAP ticket for the backend work).
|
|
362
|
+
*/
|
|
363
|
+
export interface RunCall {
|
|
364
|
+
/** Step this call is attributed to (workflowStepName ?? capability op). */
|
|
365
|
+
stepName: string;
|
|
366
|
+
/** Provider-agnostic capability label, e.g. "LLM" / "sandbox" / "web search". */
|
|
367
|
+
capability: string;
|
|
368
|
+
/** The capability operation, e.g. "generate" / "create" / "execute". */
|
|
369
|
+
op: string;
|
|
370
|
+
/** Captured USD for this single call. */
|
|
371
|
+
usd: string;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* A step's render status, folded from the raw projection step status into the
|
|
375
|
+
* four states the canvas draws. `cancelled`/`failed` both fold to `failed`
|
|
376
|
+
* (a cancelled step did not pass — mirrors run-local.ts); anything not yet
|
|
377
|
+
* `running`/`passed`/`failed` is `pending`.
|
|
378
|
+
*/
|
|
379
|
+
export type StepStatus = "pending" | "running" | "passed" | "failed";
|
|
380
|
+
/** One step as the canvas renders it — status plus the deterministically
|
|
381
|
+
* derived cost/latency/error/log slice. Optional fields are ABSENT (not
|
|
382
|
+
* `undefined`/`0`) when the decoded projection carries no value — honest
|
|
383
|
+
* absence, matching the SDK's cost-is-nullable philosophy. */
|
|
384
|
+
export interface StepView {
|
|
385
|
+
/** Stable id for keyed rendering — the OTel span id, else a step-order key. */
|
|
386
|
+
id: string;
|
|
387
|
+
/** Human step label (the projection's stepName). */
|
|
388
|
+
name: string;
|
|
389
|
+
status: StepStatus;
|
|
390
|
+
/** Captured USD for this step; absent when the read carries no cost. */
|
|
391
|
+
costUsd?: number;
|
|
392
|
+
/** finishedAt − startedAt in ms; absent while running or on bad timestamps. */
|
|
393
|
+
latencyMs?: number;
|
|
394
|
+
/** Terminal error message; present only for a failed step that recorded one. */
|
|
395
|
+
error?: string;
|
|
396
|
+
/** Tail-preserving, character-capped executor log text — the debug-macro
|
|
397
|
+
* context source (trimmed further before injection). Absent when no logs. */
|
|
398
|
+
logSlice?: string;
|
|
399
|
+
}
|
|
400
|
+
/** A whole run as the canvas renders it. `status` is the run lifecycle folded
|
|
401
|
+
* to the four states the UI distinguishes; `steps` is order-preserving. */
|
|
402
|
+
export interface RunView {
|
|
403
|
+
executionId: string;
|
|
404
|
+
status: "running" | "completed" | "failed" | "cancelled";
|
|
405
|
+
steps: StepView[];
|
|
406
|
+
}
|
|
290
407
|
/** One entry in the adapter registry, as the SPA sees it (GET /api/harnesses). */
|
|
291
408
|
export interface HarnessEntry {
|
|
292
409
|
/** Stable adapter identifier — one of the known HarnessAdapterId values (e.g. "claude-code", "codex", "conductor"). */
|
|
@@ -300,6 +417,9 @@ export interface HarnessEntry {
|
|
|
300
417
|
installed: boolean;
|
|
301
418
|
/** Per-agent copy-paste instructions for installing and configuring the Sapiom MCP server. */
|
|
302
419
|
installMcpPrompt: string;
|
|
420
|
+
/** True when this harness can read an image the composer relays into its
|
|
421
|
+
* prompt (as a file path) — the SPA only offers image attach for these. */
|
|
422
|
+
imageInput: boolean;
|
|
303
423
|
}
|
|
304
424
|
/**
|
|
305
425
|
* Canonical UI event names. Dot-separated, source "harness", surface marker
|
|
@@ -379,6 +499,31 @@ export interface InjectInputRequest {
|
|
|
379
499
|
/** Append a carriage return (submit). Default true. */
|
|
380
500
|
submit?: boolean;
|
|
381
501
|
}
|
|
502
|
+
/**
|
|
503
|
+
* `POST /api/sessions/:id/image` body — one attached image from the composer
|
|
504
|
+
* (file picker, clipboard paste, or drag-drop). The image rides as a `data:`
|
|
505
|
+
* URL rather than multipart so it flows through the same JSON pipeline as every
|
|
506
|
+
* other endpoint. The server decodes it, writes it under
|
|
507
|
+
* {@link HARNESS_UPLOADS_DIR} in the session cwd, and relays its path into the
|
|
508
|
+
* agent's prompt.
|
|
509
|
+
*/
|
|
510
|
+
export interface AttachImageRequest {
|
|
511
|
+
/** `data:<mediaType>;base64,<payload>` — mediaType must be one of
|
|
512
|
+
* {@link ALLOWED_IMAGE_MEDIA_TYPES}; decoded size ≤ {@link MAX_IMAGE_UPLOAD_BYTES}. */
|
|
513
|
+
dataUrl: string;
|
|
514
|
+
/** Original filename, if the browser knew one — used only to derive a
|
|
515
|
+
* friendly extension; the stored name is always a fresh uuid. */
|
|
516
|
+
filename?: string;
|
|
517
|
+
}
|
|
518
|
+
/** `POST /api/sessions/:id/image` response — where the image landed. */
|
|
519
|
+
export interface AttachImageResponse {
|
|
520
|
+
/** Absolute path of the written image, relayed into the agent's prompt. */
|
|
521
|
+
path: string;
|
|
522
|
+
/** The media type the server accepted the image as. */
|
|
523
|
+
mediaType: ImageMediaType;
|
|
524
|
+
/** Decoded bytes written to disk. */
|
|
525
|
+
bytes: number;
|
|
526
|
+
}
|
|
382
527
|
/** `PATCH /api/sessions/:id/workflow` body. `null` unbinds. `workflowPath`
|
|
383
528
|
* must be a path already known to the workflow registry (scan/connect). */
|
|
384
529
|
export interface BindWorkflowRequest {
|
|
@@ -459,6 +604,14 @@ export interface AppState {
|
|
|
459
604
|
* terminal. Optional so AppState constructed without the CLI (tests,
|
|
460
605
|
* mocks) reads as a returning user by default. */
|
|
461
606
|
firstRun?: boolean;
|
|
607
|
+
/** The Agents API base URL this harness resolves and triggers against — the
|
|
608
|
+
* same env-configurable base the server uses to resolve deployed-agent slugs
|
|
609
|
+
* (`SAPIOM_AGENTS_URL` / `SAPIOM_TOOLS_BASE`, else the prod default). The
|
|
610
|
+
* snippet panel renders it as the executions host so the copy-paste cURL/SDK
|
|
611
|
+
* call hits the same environment the agent was deployed to. Optional: omitted
|
|
612
|
+
* by callers that construct AppState without the CLI (tests, mocks); the SPA
|
|
613
|
+
* then falls back to the SDK's own default host. */
|
|
614
|
+
agentsBaseUrl?: string;
|
|
462
615
|
}
|
|
463
616
|
/** `POST /api/sample-project` response — the seeded (or reused) example. */
|
|
464
617
|
export interface SampleProjectSeedResponse {
|
|
@@ -503,6 +656,10 @@ export interface WorkflowInfo {
|
|
|
503
656
|
path: string;
|
|
504
657
|
/** From sapiom.json once linked; null before first link. */
|
|
505
658
|
definitionId: number | null;
|
|
659
|
+
/** The deployed agent's slug — the `defineAgent({ name })` that sapiom.json
|
|
660
|
+
* caches as `name`, used as the executions-API handle
|
|
661
|
+
* (`/agents/v1/definitions/{slug}/executions`). Null before first link. */
|
|
662
|
+
definitionSlug: string | null;
|
|
506
663
|
/** How it entered the registry. */
|
|
507
664
|
source: "scan" | "connect";
|
|
508
665
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/shared/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,iFAAiF;AACjF,eAAO,MAAM,YAAY,sBAAsB,CAAC;AAEhD,eAAO,MAAM,aAAa;IACxB,gEAAgE;;IAEhE,mDAAmD;;IAEnD,kDAAkD;;IAElD,0EAA0E;;IAE1E,sDAAs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,CAAC;CAClB"}
|
package/dist/shared/types.js
CHANGED
|
@@ -53,6 +53,36 @@ export const CANVAS_RENDERS_DIR = `${CANVAS_DIR}/renders`;
|
|
|
53
53
|
* until a re-run replaces it — see core/canvas-enrich.ts.
|
|
54
54
|
*/
|
|
55
55
|
export const CANVAS_CACHE_DIR = `${CANVAS_DIR}/cache`;
|
|
56
|
+
/**
|
|
57
|
+
* Composer image attachments (upload / paste / drag-drop) land here, relative
|
|
58
|
+
* to the session cwd, before their path is relayed into the agent's prompt.
|
|
59
|
+
* Co-located under `.sapiom/` with the canvas + context conventions so a single
|
|
60
|
+
* ignore/clean of that directory covers everything the harness writes.
|
|
61
|
+
*/
|
|
62
|
+
export const HARNESS_UPLOADS_DIR = ".sapiom/uploads";
|
|
63
|
+
/**
|
|
64
|
+
* Image content types the composer accepts for attach. Kept deliberately small
|
|
65
|
+
* — the formats every supported coding agent can actually read from a file path
|
|
66
|
+
* — and shared by the client (pre-flight validation) and the server (the real
|
|
67
|
+
* gate) so the two can't drift.
|
|
68
|
+
*/
|
|
69
|
+
export const ALLOWED_IMAGE_MEDIA_TYPES = [
|
|
70
|
+
"image/png",
|
|
71
|
+
"image/jpeg",
|
|
72
|
+
"image/gif",
|
|
73
|
+
"image/webp",
|
|
74
|
+
];
|
|
75
|
+
/** Hard cap on a single attached image (decoded bytes). 10 MiB. */
|
|
76
|
+
export const MAX_IMAGE_UPLOAD_BYTES = 10 * 1024 * 1024;
|
|
77
|
+
/**
|
|
78
|
+
* Body-parser byte limit for JSON `/api` routes. express.json defaults to
|
|
79
|
+
* 100 KiB — far below a base64-encoded image (~1.37× the decoded size). Sized
|
|
80
|
+
* to clear MAX_IMAGE_UPLOAD_BYTES base64'd plus 1 MiB of envelope overhead, and
|
|
81
|
+
* shared by the app-level `/api` parser (server/index.ts) and the rest router
|
|
82
|
+
* so the two can't disagree. The real per-image cap is still enforced (after
|
|
83
|
+
* decode) in the image handler; other routes validate their own small shapes.
|
|
84
|
+
*/
|
|
85
|
+
export const JSON_BODY_LIMIT_BYTES = Math.ceil((MAX_IMAGE_UPLOAD_BYTES * 4) / 3) + 1024 * 1024;
|
|
56
86
|
/**
|
|
57
87
|
* Workspace-state convention: the harness mirrors this session's binding,
|
|
58
88
|
* the full workflow registry, and its own identity here, relative to the
|
package/dist/shared/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/shared/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,8EAA8E;AAC9E,+BAA+B;AAC/B,8EAA8E;AAE9E,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC;AAEjC,iFAAiF;AACjF,MAAM,CAAC,MAAM,YAAY,GAAG,mBAAmB,CAAC;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,gEAAgE;IAChE,SAAS,EAAE,GAAG,YAAY,aAAa;IACvC,mDAAmD;IACnD,QAAQ,EAAE,GAAG,YAAY,gBAAgB;IACzC,kDAAkD;IAClD,SAAS,EAAE,GAAG,YAAY,iBAAiB;IAC3C,0EAA0E;IAC1E,MAAM,EAAE,GAAG,YAAY,gBAAgB;IACvC,sDAAsD;IACtD,QAAQ,EAAE,GAAG,YAAY,gBAAgB;IACzC,6EAA6E;IAC7E,SAAS,EAAE,GAAG,YAAY,YAAY;IACtC;;4EAEwE;IACxE,aAAa,EAAE,GAAG,YAAY,iBAAiB;CACvC,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC;AAC3C,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,UAAU,aAAa,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,UAAU,UAAU,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,UAAU,QAAQ,CAAC;AAEtD;;;;;;;;GAQG;AACH,MAAM,CAAC,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