@trigger.dev/sdk 4.7.3 → 4.7.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.
Files changed (119) hide show
  1. package/dist/commonjs/v3/ai.d.ts +26 -0
  2. package/dist/commonjs/v3/ai.js +7 -5
  3. package/dist/commonjs/v3/ai.js.map +1 -1
  4. package/dist/commonjs/v3/concurrencyLimits.d.ts +37 -7
  5. package/dist/commonjs/v3/concurrencyLimits.js +38 -70
  6. package/dist/commonjs/v3/concurrencyLimits.js.map +1 -1
  7. package/dist/commonjs/v3/index.d.ts +1 -1
  8. package/dist/commonjs/v3/index.js.map +1 -1
  9. package/dist/commonjs/v3/query.d.ts +434 -1
  10. package/dist/commonjs/v3/query.js +115 -0
  11. package/dist/commonjs/v3/query.js.map +1 -1
  12. package/dist/commonjs/v3/runs.d.ts +22 -1
  13. package/dist/commonjs/v3/runs.js +6 -3
  14. package/dist/commonjs/v3/runs.js.map +1 -1
  15. package/dist/commonjs/version.js +1 -1
  16. package/dist/esm/v3/ai.d.ts +26 -0
  17. package/dist/esm/v3/ai.js +7 -5
  18. package/dist/esm/v3/ai.js.map +1 -1
  19. package/dist/esm/v3/concurrencyLimits.d.ts +37 -7
  20. package/dist/esm/v3/concurrencyLimits.js +38 -70
  21. package/dist/esm/v3/concurrencyLimits.js.map +1 -1
  22. package/dist/esm/v3/index.d.ts +1 -1
  23. package/dist/esm/v3/index.js.map +1 -1
  24. package/dist/esm/v3/query.d.ts +434 -1
  25. package/dist/esm/v3/query.js +115 -0
  26. package/dist/esm/v3/query.js.map +1 -1
  27. package/dist/esm/v3/runs.d.ts +22 -1
  28. package/dist/esm/v3/runs.js +6 -3
  29. package/dist/esm/v3/runs.js.map +1 -1
  30. package/dist/esm/version.js +1 -1
  31. package/docs/ai-chat/actions.mdx +6 -1
  32. package/docs/ai-chat/backend.mdx +47 -0
  33. package/docs/ai-chat/patterns/redacting-telemetry.mdx +117 -0
  34. package/docs/ai-chat/patterns/sub-agents.mdx +33 -0
  35. package/docs/ai-chat/pending-messages.mdx +2 -0
  36. package/docs/ai-chat/reference.mdx +53 -2
  37. package/docs/ai-chat/transcript-storage.mdx +1 -1
  38. package/docs/apikeys.mdx +9 -7
  39. package/docs/billing-limits.mdx +1 -1
  40. package/docs/cli-env-commands.mdx +5 -4
  41. package/docs/cli-init-commands.mdx +27 -1
  42. package/docs/cli-login-commands.mdx +20 -0
  43. package/docs/cli-projects-commands.mdx +13 -1
  44. package/docs/cli-runs-commands.mdx +3 -2
  45. package/docs/cli-tasks-commands.mdx +95 -0
  46. package/docs/cli-update-commands.mdx +9 -3
  47. package/docs/cli-whoami-commands.mdx +12 -0
  48. package/docs/concurrency.mdx +32 -0
  49. package/docs/config/config-file.mdx +58 -0
  50. package/docs/config/extensions/audioWaveform.mdx +4 -1
  51. package/docs/config/extensions/overview.mdx +2 -0
  52. package/docs/config/extensions/prismaExtension.mdx +6 -7
  53. package/docs/config/extensions/puppeteer.mdx +3 -5
  54. package/docs/config/extensions/pythonExtension.mdx +9 -1
  55. package/docs/config/extensions/syncEnvVars.mdx +6 -0
  56. package/docs/deploy-environment-variables.mdx +5 -1
  57. package/docs/deployment/atomic-deployment.mdx +5 -3
  58. package/docs/deployment/dev-branches.mdx +5 -5
  59. package/docs/deployment/overview.mdx +9 -8
  60. package/docs/deployment/preview-branches.mdx +7 -4
  61. package/docs/errors-retrying.mdx +4 -4
  62. package/docs/github-actions.mdx +3 -3
  63. package/docs/how-it-works.mdx +5 -5
  64. package/docs/introduction.mdx +6 -0
  65. package/docs/limits.mdx +32 -8
  66. package/docs/logging.mdx +1 -1
  67. package/docs/machines.mdx +1 -1
  68. package/docs/manual-setup.mdx +1 -1
  69. package/docs/mcp-introduction.mdx +8 -7
  70. package/docs/mcp-tools.mdx +113 -3
  71. package/docs/migrating-from-v3.mdx +1 -1
  72. package/docs/observability/dashboards.mdx +64 -0
  73. package/docs/observability/query.mdx +6 -2
  74. package/docs/private-networking/aws-console-setup.mdx +1 -1
  75. package/docs/private-networking/overview.mdx +1 -1
  76. package/docs/quick-start.mdx +3 -40
  77. package/docs/realtime/auth.mdx +1 -1
  78. package/docs/realtime/backend/input-streams.mdx +159 -0
  79. package/docs/realtime/backend/streams.mdx +25 -10
  80. package/docs/realtime/how-it-works.mdx +1 -1
  81. package/docs/realtime/react-hooks/overview.mdx +1 -1
  82. package/docs/realtime/react-hooks/streams.mdx +2 -2
  83. package/docs/realtime/react-hooks/subscribe.mdx +19 -3
  84. package/docs/realtime/react-hooks/triggering.mdx +2 -2
  85. package/docs/realtime/react-hooks/use-wait-token.mdx +1 -1
  86. package/docs/realtime/run-object.mdx +47 -24
  87. package/docs/replaying.mdx +26 -1
  88. package/docs/reports.mdx +4 -2
  89. package/docs/run-tests.mdx +2 -2
  90. package/docs/run-usage.mdx +3 -3
  91. package/docs/runs/heartbeats.mdx +2 -2
  92. package/docs/runs/list-best-practices.mdx +234 -0
  93. package/docs/runs/max-duration.mdx +4 -0
  94. package/docs/runs/metadata.mdx +7 -10
  95. package/docs/runs.mdx +18 -8
  96. package/docs/self-hosting/env/supervisor.mdx +3 -0
  97. package/docs/self-hosting/env/webapp.mdx +5 -0
  98. package/docs/self-hosting/overview.mdx +26 -0
  99. package/docs/tags.mdx +6 -0
  100. package/docs/tasks/scheduled.mdx +11 -5
  101. package/docs/triggering.mdx +8 -0
  102. package/docs/troubleshooting-alerts.mdx +102 -3
  103. package/docs/troubleshooting.mdx +1 -1
  104. package/docs/upgrading-packages.mdx +3 -3
  105. package/docs/vercel-integration.mdx +13 -3
  106. package/docs/versioning.mdx +1 -1
  107. package/docs/wait-for-token.mdx +3 -3
  108. package/docs/webhooks/channels.mdx +158 -0
  109. package/docs/webhooks/connect.mdx +84 -0
  110. package/docs/webhooks/deliveries.mdx +103 -0
  111. package/docs/webhooks/filters.mdx +144 -0
  112. package/docs/webhooks/human-in-the-loop.mdx +162 -0
  113. package/docs/webhooks/linear.mdx +190 -0
  114. package/docs/webhooks/overview.mdx +119 -0
  115. package/docs/webhooks/session-routing.mdx +145 -0
  116. package/docs/webhooks/slack.mdx +397 -0
  117. package/docs/webhooks/sources.mdx +221 -0
  118. package/docs/webhooks/waiters.mdx +194 -0
  119. package/package.json +3 -2
@@ -1,4 +1,9 @@
1
- import type { ApiPromise, ApiRequestOptions, ConcurrencyLimitItem, ListConcurrencyLimitOptions, OffsetLimitPagePromise, OverrideConcurrencyLimitRequestBody } from "@trigger.dev/core/v3";
1
+ import type { ApiPromise, ApiRequestOptions, ConcurrencyLimitItem, ConcurrencyLimitKeyItem, ListConcurrencyLimitOptions, OffsetLimitPagePromise, OverrideConcurrencyLimitBoundsBody, OverrideConcurrencyLimitKeyBody, OverrideConcurrencyLimitRequestBody } from "@trigger.dev/core/v3";
2
+ /** Options that address one concurrencyKey of a limit. */
3
+ export type ConcurrencyLimitKeyOptions = {
4
+ /** The concurrencyKey whose view, or whose override, the call is about. */
5
+ concurrencyKey: string;
6
+ };
2
7
  /**
3
8
  * Lists the environment's named concurrency limits (anonymous inline limits appear
4
9
  * under their derived `task/<taskId>` names).
@@ -10,17 +15,23 @@ import type { ApiPromise, ApiRequestOptions, ConcurrencyLimitItem, ListConcurren
10
15
  */
11
16
  export declare function list(options?: ListConcurrencyLimitOptions, requestOptions?: ApiRequestOptions): OffsetLimitPagePromise<typeof ConcurrencyLimitItem>;
12
17
  /**
13
- * Retrieves a concurrency limit by name.
18
+ * Retrieves a concurrency limit by name, or, with `{ concurrencyKey }`, the limit's
19
+ * view for one key: its per-key bound (including any override and when it expires)
20
+ * and the runs executing for that key.
14
21
  *
15
22
  * @example
16
23
  *
17
24
  * ```ts
18
25
  * const limit = await concurrencyLimits.retrieve("openai");
19
26
  * console.log(limit.running, limit.queued, limit.total.current);
27
+ *
28
+ * const session = await concurrencyLimits.retrieve("subagents", { concurrencyKey: sessionId });
29
+ * console.log(session.perKey.override, session.perKey.expiresAt);
20
30
  * ```
21
31
  * @param name - The limit's name, as declared with `concurrencyLimit()`
22
- * @returns The concurrency limit
32
+ * @returns The concurrency limit, or its view for the given key
23
33
  */
34
+ export declare function retrieve(name: string, options: ConcurrencyLimitKeyOptions, requestOptions?: ApiRequestOptions): ApiPromise<ConcurrencyLimitKeyItem>;
24
35
  export declare function retrieve(name: string, requestOptions?: ApiRequestOptions): ApiPromise<ConcurrencyLimitItem>;
25
36
  /**
26
37
  * Overrides a concurrency limit's bounds. Only the given fields change; the
@@ -28,22 +39,41 @@ export declare function retrieve(name: string, requestOptions?: ApiRequestOption
28
39
  * holding a limit, prefer `pause` (it keeps the configured bounds); overriding
29
40
  * `total` to `0` also blocks every run holding the limit.
30
41
  *
42
+ * With `concurrencyKey`, the override is a temporary per-key cap for that one key:
43
+ * it replaces the limit's `perKey` for the key, applies to every task holding the
44
+ * limit, and expires after `ttl` (default 7 days, at most 30 days). The limit itself
45
+ * is untouched, and other keys keep the declared `perKey`.
46
+ *
31
47
  * @example
32
48
  *
33
49
  * ```ts
34
50
  * await concurrencyLimits.override("openai", { total: 50 });
51
+ *
52
+ * // this session may run 3 sub-agents at once, for the next 7 days
53
+ * await concurrencyLimits.override("subagents", { concurrencyKey: sessionId, perKey: 3 });
35
54
  * ```
36
55
  * @param name - The limit's name
37
- * @param override - The bounds to change (`perKey` and/or `total`)
38
- * @returns The updated concurrency limit
56
+ * @param override - The bounds to change (`perKey` and/or `total`), or `concurrencyKey` with the key's `perKey` cap (and optional `ttl`)
57
+ * @returns The updated concurrency limit, or the key's view when `concurrencyKey` was given
39
58
  */
40
- export declare function override(name: string, override: OverrideConcurrencyLimitRequestBody, requestOptions?: ApiRequestOptions): ApiPromise<ConcurrencyLimitItem>;
59
+ export declare function override(name: string, override: OverrideConcurrencyLimitKeyBody, requestOptions?: ApiRequestOptions): ApiPromise<ConcurrencyLimitKeyItem>;
60
+ export declare function override(name: string, override: OverrideConcurrencyLimitBoundsBody, requestOptions?: ApiRequestOptions): ApiPromise<ConcurrencyLimitItem>;
61
+ export declare function override(name: string, override: OverrideConcurrencyLimitRequestBody, requestOptions?: ApiRequestOptions): ApiPromise<ConcurrencyLimitItem | ConcurrencyLimitKeyItem>;
41
62
  /**
42
63
  * Resets a concurrency limit back to its declared values, clearing any override.
64
+ * With `{ concurrencyKey }`, clears that key's override instead and leaves the
65
+ * limit itself alone.
43
66
  *
67
+ * @example
68
+ *
69
+ * ```ts
70
+ * await concurrencyLimits.reset("openai");
71
+ * await concurrencyLimits.reset("subagents", { concurrencyKey: sessionId });
72
+ * ```
44
73
  * @param name - The limit's name
45
- * @returns The updated concurrency limit
74
+ * @returns The updated concurrency limit, or the key's view when `concurrencyKey` was given
46
75
  */
76
+ export declare function reset(name: string, options: ConcurrencyLimitKeyOptions, requestOptions?: ApiRequestOptions): ApiPromise<ConcurrencyLimitKeyItem>;
47
77
  export declare function reset(name: string, requestOptions?: ApiRequestOptions): ApiPromise<ConcurrencyLimitItem>;
48
78
  /**
49
79
  * Pauses a concurrency limit. Nothing holding the limit is admitted until it is
@@ -1,5 +1,25 @@
1
1
  import { accessoryAttributes, apiClientManager, flattenAttributes, mergeRequestOptions, } from "@trigger.dev/core/v3";
2
2
  import { tracer } from "./tracer.js";
3
+ /**
4
+ * `retrieve` and `reset` take an optional key-options object before the request
5
+ * options. The two are told apart by the `concurrencyKey` property, so existing
6
+ * callers that pass request options in the second position keep working.
7
+ */
8
+ function splitKeyOptions(first, second) {
9
+ if (first && typeof first === "object" && "concurrencyKey" in first) {
10
+ return { keyOptions: first, requestOptions: second };
11
+ }
12
+ return { keyOptions: undefined, requestOptions: first };
13
+ }
14
+ function limitAttributes(name, extra = {}) {
15
+ return {
16
+ ...flattenAttributes({ name, ...extra }),
17
+ ...accessoryAttributes({
18
+ items: [{ text: name, variant: "normal" }],
19
+ style: "codepath",
20
+ }),
21
+ };
22
+ }
3
23
  /**
4
24
  * Lists the environment's named concurrency limits (anonymous inline limits appear
5
25
  * under their derived `task/<taskId>` names).
@@ -18,85 +38,45 @@ export function list(options, requestOptions) {
18
38
  }, requestOptions);
19
39
  return apiClient.listConcurrencyLimits(options, $requestOptions);
20
40
  }
21
- /**
22
- * Retrieves a concurrency limit by name.
23
- *
24
- * @example
25
- *
26
- * ```ts
27
- * const limit = await concurrencyLimits.retrieve("openai");
28
- * console.log(limit.running, limit.queued, limit.total.current);
29
- * ```
30
- * @param name - The limit's name, as declared with `concurrencyLimit()`
31
- * @returns The concurrency limit
32
- */
33
- export function retrieve(name, requestOptions) {
41
+ export function retrieve(name, optionsOrRequestOptions, maybeRequestOptions) {
34
42
  const apiClient = apiClientManager.clientOrThrow();
43
+ const { keyOptions, requestOptions } = splitKeyOptions(optionsOrRequestOptions, maybeRequestOptions);
35
44
  const $requestOptions = mergeRequestOptions({
36
45
  tracer,
37
46
  name: "concurrencyLimits.retrieve()",
38
47
  icon: "queue",
39
- attributes: {
40
- ...flattenAttributes({ name }),
41
- ...accessoryAttributes({
42
- items: [{ text: name, variant: "normal" }],
43
- style: "codepath",
44
- }),
45
- },
48
+ attributes: limitAttributes(name, keyOptions ? { concurrencyKey: keyOptions.concurrencyKey } : {}),
46
49
  }, requestOptions);
50
+ if (keyOptions) {
51
+ return apiClient.retrieveConcurrencyLimitKey(name, keyOptions.concurrencyKey, $requestOptions);
52
+ }
47
53
  return apiClient.retrieveConcurrencyLimit(name, $requestOptions);
48
54
  }
49
- /**
50
- * Overrides a concurrency limit's bounds. Only the given fields change; the
51
- * declared values are kept as the base and restored by `reset`. To stop runs
52
- * holding a limit, prefer `pause` (it keeps the configured bounds); overriding
53
- * `total` to `0` also blocks every run holding the limit.
54
- *
55
- * @example
56
- *
57
- * ```ts
58
- * await concurrencyLimits.override("openai", { total: 50 });
59
- * ```
60
- * @param name - The limit's name
61
- * @param override - The bounds to change (`perKey` and/or `total`)
62
- * @returns The updated concurrency limit
63
- */
64
55
  export function override(name, override, requestOptions) {
65
56
  const apiClient = apiClientManager.clientOrThrow();
66
57
  const $requestOptions = mergeRequestOptions({
67
58
  tracer,
68
59
  name: "concurrencyLimits.override()",
69
60
  icon: "queue",
70
- attributes: {
71
- ...flattenAttributes({ name, override }),
72
- ...accessoryAttributes({
73
- items: [{ text: name, variant: "normal" }],
74
- style: "codepath",
75
- }),
76
- },
61
+ attributes: limitAttributes(name, { override }),
77
62
  }, requestOptions);
63
+ if (override.concurrencyKey !== undefined) {
64
+ return apiClient.overrideConcurrencyLimitKey(name, override, $requestOptions);
65
+ }
78
66
  return apiClient.overrideConcurrencyLimit(name, override, $requestOptions);
79
67
  }
80
- /**
81
- * Resets a concurrency limit back to its declared values, clearing any override.
82
- *
83
- * @param name - The limit's name
84
- * @returns The updated concurrency limit
85
- */
86
- export function reset(name, requestOptions) {
68
+ export function reset(name, optionsOrRequestOptions, maybeRequestOptions) {
87
69
  const apiClient = apiClientManager.clientOrThrow();
70
+ const { keyOptions, requestOptions } = splitKeyOptions(optionsOrRequestOptions, maybeRequestOptions);
88
71
  const $requestOptions = mergeRequestOptions({
89
72
  tracer,
90
73
  name: "concurrencyLimits.reset()",
91
74
  icon: "queue",
92
- attributes: {
93
- ...flattenAttributes({ name }),
94
- ...accessoryAttributes({
95
- items: [{ text: name, variant: "normal" }],
96
- style: "codepath",
97
- }),
98
- },
75
+ attributes: limitAttributes(name, keyOptions ? { concurrencyKey: keyOptions.concurrencyKey } : {}),
99
76
  }, requestOptions);
77
+ if (keyOptions) {
78
+ return apiClient.resetConcurrencyLimitKey(name, { concurrencyKey: keyOptions.concurrencyKey }, $requestOptions);
79
+ }
100
80
  return apiClient.resetConcurrencyLimit(name, $requestOptions);
101
81
  }
102
82
  /**
@@ -117,13 +97,7 @@ export function pause(name, requestOptions) {
117
97
  tracer,
118
98
  name: "concurrencyLimits.pause()",
119
99
  icon: "queue",
120
- attributes: {
121
- ...flattenAttributes({ name }),
122
- ...accessoryAttributes({
123
- items: [{ text: name, variant: "normal" }],
124
- style: "codepath",
125
- }),
126
- },
100
+ attributes: limitAttributes(name),
127
101
  }, requestOptions);
128
102
  return apiClient.pauseConcurrencyLimit(name, "pause", $requestOptions);
129
103
  }
@@ -145,13 +119,7 @@ export function resume(name, requestOptions) {
145
119
  tracer,
146
120
  name: "concurrencyLimits.resume()",
147
121
  icon: "queue",
148
- attributes: {
149
- ...flattenAttributes({ name }),
150
- ...accessoryAttributes({
151
- items: [{ text: name, variant: "normal" }],
152
- style: "codepath",
153
- }),
154
- },
122
+ attributes: limitAttributes(name),
155
123
  }, requestOptions);
156
124
  return apiClient.pauseConcurrencyLimit(name, "resume", $requestOptions);
157
125
  }
@@ -1 +1 @@
1
- {"version":3,"file":"concurrencyLimits.js","sourceRoot":"","sources":["../../../src/v3/concurrencyLimits.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;GAQG;AACH,MAAM,UAAU,IAAI,CAClB,OAAqC,EACrC,cAAkC;IAElC,MAAM,SAAS,GAAG,gBAAgB,CAAC,aAAa,EAAE,CAAC;IAEnD,MAAM,eAAe,GAAG,mBAAmB,CACzC;QACE,MAAM;QACN,IAAI,EAAE,0BAA0B;QAChC,IAAI,EAAE,OAAO;KACd,EACD,cAAc,CACf,CAAC;IAEF,OAAO,SAAS,CAAC,qBAAqB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;AACnE,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,QAAQ,CACtB,IAAY,EACZ,cAAkC;IAElC,MAAM,SAAS,GAAG,gBAAgB,CAAC,aAAa,EAAE,CAAC;IAEnD,MAAM,eAAe,GAAG,mBAAmB,CACzC;QACE,MAAM;QACN,IAAI,EAAE,8BAA8B;QACpC,IAAI,EAAE,OAAO;QACb,UAAU,EAAE;YACV,GAAG,iBAAiB,CAAC,EAAE,IAAI,EAAE,CAAC;YAC9B,GAAG,mBAAmB,CAAC;gBACrB,KAAK,EAAE,CAAC,EAAE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CAAC,aAAa,EAAE,CAAC;IAEnD,MAAM,eAAe,GAAG,mBAAmB,CACzC;QACE,MAAM;QACN,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,OAAO;QACb,UAAU,EAAE,eAAe,CAAC,IAAI,CAAC;KAClC,EACD,cAAc,CACf,CAAC;IAEF,OAAO,SAAS,CAAC,qBAAqB,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC;AAC1E,CAAC"}
@@ -24,7 +24,7 @@ import type { Context } from "./shared.js";
24
24
  import type { ApiClientConfiguration, TaskRunContext } from "@trigger.dev/core/v3";
25
25
  export type { ApiClientConfiguration, TaskRunContext };
26
26
  export { ApiError, AuthenticationError, BadRequestError, ConflictError, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, UnprocessableEntityError, AbortTaskRunError, OutOfMemoryError, CompleteTaskWithOutput, ChatChunkTooLargeError, isChatChunkTooLargeError, logger, type LogLevel, } from "@trigger.dev/core/v3";
27
- export { runs, type RunShape, type AnyRunShape, type TaskRunShape, type RealtimeRun, type AnyRealtimeRun, type RetrieveRunResult, type AnyRetrieveRunResult, type BulkAction, } from "./runs.js";
27
+ export { runs, type RunShape, type AnyRunShape, type TaskRunShape, type RealtimeRun, type AnyRealtimeRun, type RetrieveRunResult, type AnyRetrieveRunResult, type BulkAction, type ReplayRunOptions, } from "./runs.js";
28
28
  export * as schedules from "./schedules/index.js";
29
29
  export { deployments, type RetrieveCurrentDeploymentResponseBody, type ApiDeploymentListResponseItem, } from "./deployments.js";
30
30
  export * as envvars from "./envvars.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAqB,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;A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