@cortexkit/aft-opencode 0.30.1 → 0.30.2

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.
@@ -13,7 +13,8 @@
13
13
  * Messages are identified by markers and cleaned up on subsequent startups
14
14
  * when no longer relevant (Desktop only — TUI toasts are inherently transient).
15
15
  */
16
- import type { BinaryBridge } from "@cortexkit/aft-bridge";
16
+ import { type BinaryBridge } from "@cortexkit/aft-bridge";
17
+ export declare function __resetNotificationStateForTests(): void;
17
18
  type SdkMessage = {
18
19
  info?: {
19
20
  id?: string;
@@ -35,8 +36,10 @@ export declare function getSessionMessages(client: unknown, sessionId: string):
35
36
  export interface NotificationOptions {
36
37
  /** The OpenCode SDK client */
37
38
  client: unknown;
38
- /** Project directory for Desktop state lookup */
39
+ /** Project directory used as the queue key for delayed Desktop notices. */
39
40
  directory: string;
41
+ /** Concrete OpenCode session/window to receive Desktop notifications. */
42
+ sessionId?: string;
40
43
  /** Server URL for message deletion (optional — from ctx.serverUrl) */
41
44
  serverUrl?: string;
42
45
  }
@@ -58,20 +61,20 @@ export interface ConfigureWarningOptions {
58
61
  }
59
62
  /**
60
63
  * Send a persistent warning notification.
61
- * Desktop: ignored message, cleaned up on next startup when resolved.
64
+ * Desktop: ignored message when sessionId is explicit; otherwise queued.
62
65
  * TUI: toast with warning variant (inherently transient).
63
66
  */
64
67
  export declare function sendWarning(opts: NotificationOptions, message: string): Promise<void>;
65
68
  /**
66
69
  * Send a transient status notification.
67
- * Desktop: ignored message, auto-deletes after 3 seconds.
70
+ * Desktop: ignored message when sessionId is explicit, auto-deletes after 3 seconds.
68
71
  * TUI: toast with success variant, auto-dismissed by the TUI.
69
72
  */
70
73
  export declare function sendStatus(opts: NotificationOptions, message: string): Promise<void>;
71
74
  /**
72
75
  * Send a feature announcement for a new version.
73
76
  * Tracked via a version file in storageDir — only fires once per version across all sessions.
74
- * Desktop: ignored message in the active session.
77
+ * Desktop: ignored message when sessionId is explicit; otherwise queued.
75
78
  * TUI: toast with info variant.
76
79
  */
77
80
  export declare function sendFeatureAnnouncement(opts: NotificationOptions, version: string, features: string[], footer: string, storageDir?: string): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAmI1D,KAAK,UAAU,GAAG;IAChB,IAAI,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CACpE,CAAC;AAyBF,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,OAAO,EACf,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,UAAU,EAAE,CAAC,CAqBvB;AAqED,MAAM,WAAW,mBAAmB;IAClC,8BAA8B;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,yBAAyB,GAAG,uBAAuB,GAAG,oBAAoB,CAAC;IACjF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC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U,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA2C1F;AAED;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,mBAAmB,EACzB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAAE,EAClB,MAAM,EAAE,MAAM,EACd,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC,CA2Cf;AA2GD,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,uBAAuB,EAC7B,QAAQ,EAAE,gBAAgB,EAAE,GAC3B,OAAO,CAAC,IAAI,CAAC,CA2Bf;AAED;;;GAGG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0C9E"}
@@ -8,12 +8,11 @@
8
8
  * prefix cache that the previous assistant turn warmed.
9
9
  *
10
10
  * APPROACH: Mirror what `opencode-xtra` does in production. Read recent
11
- * messages from `client.session.messages()`, prefer the most recent
12
- * assistant message, fall back to any role, MERGE across messages so
13
- * partial fields (e.g. agent set on user message but not assistant) are
14
- * filled in, and read BOTH the flat shape (`info.providerID`) used by
15
- * AssistantMessage and the nested shape (`info.model.providerID`) used
16
- * by UserMessage.
11
+ * messages from `client.session.messages()`, walk newest→oldest across
12
+ * roles, and MERGE field-by-field so the newest context-bearing message
13
+ * wins while older messages only fill fields it did not provide. Read BOTH
14
+ * the flat shape (`info.providerID`) used by AssistantMessage and the
15
+ * nested shape (`info.model.providerID`) used by UserMessage.
17
16
  *
18
17
  * IMPORTANT: This context is only meaningful for callers that DO trigger
19
18
  * LLM inference (e.g. background-bash idle wakes with `noReply: false`).
@@ -1 +1 @@
1
- {"version":3,"file":"last-assistant-model.d.ts","sourceRoot":"","sources":["../../src/shared/last-assistant-model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAkGD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,OAAO,EACf,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CA8CvC;AAID,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,6EAA6E;AAC7E,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,OAAO,EACf,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAQpC"}
1
+ {"version":3,"file":"last-assistant-model.d.ts","sourceRoot":"","sources":["../../src/shared/last-assistant-model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AA6FD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,OAAO,EACf,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAkCvC;AAID,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,6EAA6E;AAC7E,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,OAAO,EACf,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAQpC"}
@@ -23,11 +23,12 @@
23
23
  * reachable. OpenCode Desktop (Electron+Node) and TUI launched with
24
24
  * `opencode --port 0` bind a real API listener; plain TUI binds an
25
25
  * internal-only listener that 404s for `/session/*`. We probe once at
26
- * plugin init and cache the result. When the listener is unreachable
27
- * the wake path silently uses the in-process `input.client.session.promptAsync`,
28
- * which keeps wakes flowing (at the cost of the upstream duplicate-runner
29
- * bug) instead of producing no notification at all or nagging the user
30
- * to relaunch with a different flag.
26
+ * plugin init and cache the result by `serverUrl`. When that server is
27
+ * unreachable, the wake path silently uses the in-process
28
+ * `input.client.session.promptAsync`, which keeps wakes flowing (at the
29
+ * cost of the upstream duplicate-runner bug) instead of producing no
30
+ * notification at all or nagging the user to relaunch with a different
31
+ * flag.
31
32
  *
32
33
  * Tracked upstream as anomalyco/opencode#28202. When OpenCode fixes the
33
34
  * runtime split, this helper and its single consumer in `bg-notifications.ts`
@@ -49,31 +50,32 @@ export declare function getLiveServerClient(serverUrl: string, directory: string
49
50
  /** Test helper — drop the cache between cases so each test starts clean. */
50
51
  export declare function __resetLiveServerClientCacheForTests(): void;
51
52
  /**
52
- * Probe whether `serverUrl` accepts a connection within `timeoutMs`.
53
- * Returns `true` for any HTTP response (including 4xx / 5xx) since the
54
- * goal is to confirm the listener exists. Returns `false` on connection
55
- * refused, DNS failure, timeout, or undefined URL.
53
+ * Probe whether `serverUrl` serves OpenCode's HTTP API within `timeoutMs`.
54
+ * Returns `true` only when `/session` proves the API is usable: any 2xx
55
+ * response is reachable, and 401/403 also count as reachable because an
56
+ * auth-protected listener still exists. Returns `false` for 404 (plain
57
+ * TUI's internal listener), 5xx, connection refused, DNS failure, timeout,
58
+ * malformed URL, or undefined URL.
56
59
  *
57
- * Used at plugin init to decide whether bg-notifications should use the
58
- * live-server wake transport (workaround for anomalyco/opencode#28202)
59
- * or fall back to the in-process `input.client.session.promptAsync`
60
- * path. Plain TUI (no `--port 0`) binds an internal-only listener that
61
- * 404s for `/session/...`, so this returns false there; OpenCode
62
- * Desktop, `opencode run`, and `opencode --port 0` TUI return true.
60
+ * The probe records its result in the per-`serverUrl` wake-availability
61
+ * cache. That keeps multiple OpenCode windows with different live listener
62
+ * URLs from sharing one process-global transport decision.
63
63
  */
64
64
  export declare function probeServerReachable(serverUrl: string | undefined, timeoutMs?: number): Promise<boolean>;
65
65
  /**
66
- * Record the probe result. Idempotent; if you record twice, the latest
67
- * value wins. The wake path reads through `useLiveServerWake()`.
66
+ * Record a probe result. Prefer the `(serverUrl, available)` form; the
67
+ * single-boolean form is a compatibility fallback for old call sites and
68
+ * tests that do not yet have a URL to key by.
68
69
  */
69
70
  export declare function setLiveServerWakeAvailable(available: boolean): void;
71
+ export declare function setLiveServerWakeAvailable(serverUrl: string | undefined, available: boolean): void;
70
72
  /**
71
- * Read the cached probe decision. `true` means the wake path should use
72
- * `getLiveServerClient(serverUrl, directory)` and POST through the live
73
- * HTTP listener. `false` means fall back to the in-process client passed
74
- * via plugin context (`input.client`).
73
+ * Read the cached probe decision for `serverUrl`. `true` means the wake path
74
+ * should use `getLiveServerClient(serverUrl, directory)` and POST through
75
+ * the live HTTP listener. `false` means fall back to the in-process client
76
+ * passed via plugin context (`input.client`).
75
77
  */
76
- export declare function useLiveServerWake(): boolean;
78
+ export declare function useLiveServerWake(serverUrl?: string): boolean;
77
79
  /** Test helper — reset the decision cache between cases. */
78
80
  export declare function __resetLiveServerWakeForTests(): void;
79
81
  //# sourceMappingURL=live-server-client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"live-server-client.d.ts","sourceRoot":"","sources":["../../src/shared/live-server-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AA6Bv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G,IAAI,CAAC;AAmBpG;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAG7D;AAED,4DAA4D;AAC5D,wBAAgB,6BAA6B,IAAI,IAAI,CAGpD"}
@@ -1,11 +1,15 @@
1
+ export interface AftRpcCallOptions {
2
+ signal?: AbortSignal;
3
+ }
1
4
  export declare class AftRpcClient {
2
5
  private port;
3
6
  private token;
4
7
  private portsDir;
5
8
  private legacyPortFile;
9
+ private stalePortFailures;
6
10
  constructor(storageDir: string, directory: string);
7
11
  /** Call an RPC method. Retries port resolution if the server isn't ready yet. */
8
- call<T = Record<string, unknown>>(method: string, params?: Record<string, unknown>): Promise<T>;
12
+ call<T = Record<string, unknown>>(method: string, params?: Record<string, unknown>, options?: AftRpcCallOptions): Promise<T>;
9
13
  private callOne;
10
14
  /**
11
15
  * Heuristic for "this response is the lazy-spawn placeholder, not the real
@@ -17,12 +21,15 @@ export declare class AftRpcClient {
17
21
  isAvailable(): Promise<boolean>;
18
22
  /**
19
23
  * Discover all live RPC port files for this project. Tries the per-instance
20
- * directory first (v0.28.2+), then falls back to the single legacy `port`
21
- * file (older plugin versions in mixed deployments).
24
+ * directory first (v0.28.2+), then the single legacy `port` file (older
25
+ * plugin versions in mixed deployments) as the final fallback candidate.
22
26
  */
23
27
  private resolvePortInfos;
24
28
  private readAllPortFiles;
25
29
  private parsePortFile;
30
+ private portFailureKey;
31
+ private clearPortFailure;
32
+ private recordPortFailure;
26
33
  private healthCheck;
27
34
  private fetchWithTimeout;
28
35
  reset(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"rpc-client.d.ts","sourceRoot":"","sources":["../../src/shared/rpc-client.ts"],"names":[],"mappings":"AAWA,qBAAa,YAAY;IACvB,OAAO,CAAC,IAAI,CAAuB;IACnC,OAAO,CAAC,KAAK,CAAuB;IACpC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,cAAc,CAAS;gBAEnB,UAAU,EA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AO,CAAC,gBAAgB;IAiCxB,OAAO,CAAC,aAAa;IAuBrB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,gBAAgB;IAKxB,OAAO,CAAC,iBAAiB;YAsBX,WAAW;YAcX,gBAAgB;IAmB9B,KAAK,IAAI,IAAI;CAKd"}
@@ -0,0 +1,2 @@
1
+ export declare function resolveCortexKitStorageRoot(): string;
2
+ //# sourceMappingURL=storage-paths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage-paths.d.ts","sourceRoot":"","sources":["../../src/shared/storage-paths.ts"],"names":[],"mappings":"AAmBA,wBAAgB,2BAA2B,IAAI,MAAM,CAEpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../src/tools/bash.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAavE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA0EjD,wBAAgB,cAAc,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAkQjE;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAyBvE;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAuBrE"}
1
+ {"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../src/tools/bash.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAavE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA0EjD,wBAAgB,cAAc,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAsQjE;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAyBvE;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAuBrE"}
@@ -20,5 +20,9 @@ type BashStatusWithWait = Record<string, unknown> & {
20
20
  export declare function createBashWatchTool(ctx: PluginContext): ToolDefinition;
21
21
  export declare function waitForBashStatus(ctx: PluginContext, runtime: ToolContext, taskId: string, outputMode: string | undefined, waitFor: BashWaitPattern | undefined, effectiveWaitMs: number): Promise<BashStatusWithWait>;
22
22
  export declare function parseWaitPattern(value: unknown): BashWaitPattern | undefined;
23
+ export declare function __trimWaitScanBufferForTests(text: string, baseOffset: number, pattern: BashWaitPattern): {
24
+ text: string;
25
+ baseOffset: number;
26
+ };
23
27
  export {};
24
28
  //# sourceMappingURL=bash_watch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bash_watch.d.ts","sourceRoot":"","sources":["../../src/tools/bash_watch.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAavE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AASjD,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AACrD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AACF,KAAK,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAAE,CAAC;AAElF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAyFtE;AAiDD,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,aAAa,EAClB,OAAO,E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AAE,MAAM,GACtB,OAAO,CAAC,kBAAkB,CAAC,CA+D7B;AA6DD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,GAAG,SAAS,CAK5E;AA4DD,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,eAAe,GACvB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAEtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/tools/search.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA8DjD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CA0BrD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAoI9E"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/tools/search.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAgHjD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CA0BrD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CA6H9E"}