@uluops/ops-sdk 3.4.0 → 4.0.1
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 +105 -3
- package/README.md +16 -4
- package/dist/config/constants.d.ts +1 -1
- package/dist/config/generated-version.d.ts +1 -1
- package/dist/config/generated-version.js +1 -1
- package/dist/config/validators.d.ts +1 -1
- package/dist/config/validators.js +1 -1
- package/dist/operations/analytics.d.ts +1 -1
- package/dist/operations/analytics.js +1 -1
- package/dist/operations/runs.d.ts +2 -1
- package/dist/operations/runs.d.ts.map +1 -1
- package/dist/operations/runs.js +2 -1
- package/dist/operations/runs.js.map +1 -1
- package/dist/types/analytics.d.ts +61 -328
- package/dist/types/analytics.d.ts.map +1 -1
- package/dist/types/response-schemas.d.ts +30 -30
- package/dist/types/response-schemas.d.ts.map +1 -1
- package/dist/types/response-schemas.js +20 -35
- package/dist/types/response-schemas.js.map +1 -1
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/schemas.js +6 -1
- package/dist/types/schemas.js.map +1 -1
- package/dist/utils/helpers.d.ts +2 -9
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/helpers.js +2 -13
- package/dist/utils/helpers.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,84 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [4.0.1] - 2026-06-17
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **`updateProfile` accepts canonical username slugs.** The client-side validator
|
|
14
|
+
used the old letter-start, underscore-only pattern (`^[a-z][a-z0-9_]{2,29}$`),
|
|
15
|
+
which rejected valid URL slugs like `ulu-labs` before the request reached the
|
|
16
|
+
API. Unified to the canonical slug pattern
|
|
17
|
+
`^[a-z0-9](?:[a-z0-9_-]{0,38}[a-z0-9])?$` (hyphens and digit-start allowed),
|
|
18
|
+
matching the ops-api username fold-in where setting a username confirms it.
|
|
19
|
+
|
|
20
|
+
## [4.0.0] - 2026-06-17
|
|
21
|
+
|
|
22
|
+
Analytics type system realigned to derive from the Zod response schemas, plus the
|
|
23
|
+
documentation and internal-hygiene fixes from a `consumer-validate` pipeline run
|
|
24
|
+
(run #5: docs 91 / public-interface 87 / dx 96, all gates passed). No runtime
|
|
25
|
+
behavior or endpoint changes — the breaking surface is limited to four removed
|
|
26
|
+
analytics **type** exports (see below).
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
|
|
30
|
+
- **Removed four analytics type exports** that had no SDK producer method and
|
|
31
|
+
existed only to annotate `getByMetric()` results by hand: `CrossProjectPattern`,
|
|
32
|
+
`RegressionEntry`, `CostEntry`, `CategoryPerformanceEntry` (and their
|
|
33
|
+
`*ResponseSchema` counterparts). The underlying metrics — `cross_project_patterns`,
|
|
34
|
+
`regression_analysis`, `cost_analysis` — remain available unchanged through the
|
|
35
|
+
untyped `getByMetric()` path. **Migration:** if you imported these types, inline
|
|
36
|
+
an equivalent local interface or inspect the `getByMetric()` return directly. No
|
|
37
|
+
method signatures or runtime behavior changed.
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
|
|
41
|
+
- **Analytics types are now schema-derived.** Hand-written `interface` declarations
|
|
42
|
+
(`Period`, `AgentLifecycleEntry`, `AgentReliability`, `BurndownResult`,
|
|
43
|
+
`VelocityResult`, `DiscoveryResult`, `AgentMatrixResult`, `TrendSummary`,
|
|
44
|
+
`BlindSpot`, `MatrixAnalysis`, `SinglePointFailure`, `HighOverlap`, and related
|
|
45
|
+
row/point shapes) are now `z.infer` aliases of their Zod response schemas, so the
|
|
46
|
+
compile-time types and runtime validation can no longer drift apart. The exported
|
|
47
|
+
type names are unchanged; shapes now track the schemas exactly. New backing
|
|
48
|
+
schemas (`BlindSpotResponseSchema`, `SinglePointFailureResponseSchema`,
|
|
49
|
+
`HighOverlapResponseSchema`, `MatrixAnalysisResponseSchema`) are internal
|
|
50
|
+
implementation detail — like all `*ResponseSchema`s, they are not exported through
|
|
51
|
+
any public subpath. This release introduces **no new public exports**; the surface
|
|
52
|
+
change is the four removed types below plus the `interface`→`type` conversion.
|
|
53
|
+
|
|
54
|
+
### Fixed
|
|
55
|
+
|
|
56
|
+
- **Overstated 3.4.0 changelog claim.** The 3.4.0 entry said every `OpsClient`
|
|
57
|
+
delegate carries an `@see` link to its underlying operation; delegates actually
|
|
58
|
+
carry a summary line only. Corrected the wording to match what shipped.
|
|
59
|
+
- **Stale `runs.validate()` JSDoc example.** The `@example` referenced a
|
|
60
|
+
non-existent `preview.correlation` field and omitted the required
|
|
61
|
+
`recommendations` input. Corrected to use the actual `ValidateRunResponse`
|
|
62
|
+
fields (`wouldCreate` / `wouldUpdate` / `wouldRegress`).
|
|
63
|
+
- **`getByMetric()` `@throws` type.** Documented `@throws {Error}` but the
|
|
64
|
+
implementation throws `InputValidationError`; the tag now names the precise
|
|
65
|
+
class so consumers can branch on `instanceof`.
|
|
66
|
+
- **README `auth.login()` example.** Destructured the legacy optional `token`
|
|
67
|
+
field instead of the required `sessionToken`; following the example as written
|
|
68
|
+
yielded `undefined`.
|
|
69
|
+
- **README `raw_markdown` size limit.** Documented as 100,000 characters but the
|
|
70
|
+
schema enforces 500,000; the prose now matches the enforced ceiling.
|
|
71
|
+
- **README `types/enums` coverage.** The exports table and a new "Failure Code
|
|
72
|
+
Utilities" example now document the shipped runtime helpers `parseFailureCode`,
|
|
73
|
+
`buildFailureCode`, and `severityFromCode`, previously discoverable only by
|
|
74
|
+
source-diving.
|
|
75
|
+
|
|
76
|
+
### Removed
|
|
77
|
+
|
|
78
|
+
- **(Breaking — see above)** `CrossProjectPattern`, `RegressionEntry`, `CostEntry`,
|
|
79
|
+
`CategoryPerformanceEntry` and their `*ResponseSchema` exports.
|
|
80
|
+
- **Internal-only dead utilities** (not part of any export path, no production
|
|
81
|
+
callers): `toCamelCase` and the `sleep`/`retry`/`truncate`/`isPlainObject`/`isUuid`
|
|
82
|
+
re-exports from `src/utils/helpers.ts`, plus their tests. The API returns
|
|
83
|
+
camelCase directly, so no client-side casing conversion was needed; shared
|
|
84
|
+
utilities remain available from `@uluops/sdk-core` for internal use. No consumer
|
|
85
|
+
impact — none were reachable through the package `exports` map.
|
|
86
|
+
|
|
9
87
|
## [3.4.0] - 2026-06-16
|
|
10
88
|
|
|
11
89
|
Consumer-experience polish from a `consumer-validate` pipeline run (docs 93 /
|
|
@@ -43,6 +121,29 @@ existing successful calls; one error type is now more specific (see Changed).
|
|
|
43
121
|
`query?: string`; filter-only searches are valid) — the parameter table previously
|
|
44
122
|
marked it required.
|
|
45
123
|
- **Stale README version header** (was `3.2.1`) updated.
|
|
124
|
+
- **Analytics response types no longer drift from their Zod schemas.** Every
|
|
125
|
+
analytics type in `src/types/analytics.ts` is now derived via `z.infer` from its
|
|
126
|
+
schema in `response-schemas.ts`, collapsing a second hand-written copy that had
|
|
127
|
+
already diverged in two places: `ResolutionRate` exposed `avgTimeToResolveDays`
|
|
128
|
+
where the wire field is `averageTimeToResolve`, and `TaxonomyDistribution`
|
|
129
|
+
declared a phantom `mode` field (and typed `domain` as the `FailureDomain` enum)
|
|
130
|
+
that the endpoint never returns. Both now match runtime exactly. No consumer
|
|
131
|
+
imported these interface types directly — they consume the method return types —
|
|
132
|
+
so the only break is for anyone who hand-typed against fields that were already
|
|
133
|
+
`undefined` at runtime. The agent-matrix sub-shapes (`BlindSpot`,
|
|
134
|
+
`SinglePointFailure`, `HighOverlap`, `MatrixAnalysis`) gained standalone schemas
|
|
135
|
+
so they derive from a single source too. `AgentInfo` remains a hand-written
|
|
136
|
+
interface by design — it is a client-side projection from `getAgentPerformance`
|
|
137
|
+
with no API endpoint, hence no schema.
|
|
138
|
+
|
|
139
|
+
### Removed
|
|
140
|
+
|
|
141
|
+
- **Four unreachable analytics types and their schemas** — `CrossProjectPattern`,
|
|
142
|
+
`RegressionEntry`, `CostEntry`, `CategoryPerformanceEntry`. No typed client method
|
|
143
|
+
returned them (reachable only via the generic `getByMetric()`, which returns
|
|
144
|
+
`unknown`) and they had zero references across the SDK and all consumers. The
|
|
145
|
+
corresponding metric strings (`cross_project_patterns`, `regression_analysis`,
|
|
146
|
+
`cost_analysis`) still work via `getByMetric()`.
|
|
46
147
|
|
|
47
148
|
### Changed
|
|
48
149
|
|
|
@@ -57,9 +158,10 @@ existing successful calls; one error type is now more specific (see Changed).
|
|
|
57
158
|
Operations section (previously the only public method with no README entry).
|
|
58
159
|
- **Error type guards documented.** Added a "Type Guards" section covering all twelve
|
|
59
160
|
guards (`isNotFoundError`, `isRateLimitError`, …) exported from `@uluops/ops-sdk/errors`.
|
|
60
|
-
- **Every `OpsClient` namespace delegate now carries
|
|
61
|
-
`client.runs.save`, `client.issues.search`, etc. surfaces a
|
|
62
|
-
|
|
161
|
+
- **Every `OpsClient` namespace delegate now carries a summary JSDoc line**, so IDE hover over
|
|
162
|
+
`client.runs.save`, `client.issues.search`, etc. surfaces a one-line description
|
|
163
|
+
instead of a bare signature. Full `@param`/`@returns`/`@throws` details live on the
|
|
164
|
+
underlying operation functions (visible in the generated TypeDoc).
|
|
63
165
|
- **`loadCredentials` / `loadConfig` gained full `@param`/`@returns` JSDoc** documenting
|
|
64
166
|
the `options > env > file` priority chain, plus a JSDoc block on the `OpsHttpClient`
|
|
65
167
|
constructor, `buildIssueListParams`, and the config import example at the package root
|
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
Official TypeScript SDK with Zod runtime validation for the UluOps platform API. Track execution runs, manage issues, analyze trends, and integrate agent pipelines into your workflow.
|
|
13
13
|
|
|
14
|
-
**Current version:
|
|
14
|
+
**Current version: 4.0.0** | [Changelog](./CHANGELOG.md)
|
|
15
15
|
|
|
16
16
|
## Quick Start
|
|
17
17
|
|
|
@@ -248,7 +248,7 @@ import {
|
|
|
248
248
|
| `@uluops/ops-sdk/types/issues` | Issue types only |
|
|
249
249
|
| `@uluops/ops-sdk/types/runs` | Run types only |
|
|
250
250
|
| `@uluops/ops-sdk/types/analytics` | Analytics types only |
|
|
251
|
-
| `@uluops/ops-sdk/types/enums` | Priority, Status, Severity enums |
|
|
251
|
+
| `@uluops/ops-sdk/types/enums` | Priority, Status, Severity enums + failure-code helpers (`parseFailureCode`, `buildFailureCode`, `severityFromCode`) |
|
|
252
252
|
| `@uluops/ops-sdk/types/responses` | API response types |
|
|
253
253
|
| `@uluops/ops-sdk/types/schemas` | Zod input validation schemas |
|
|
254
254
|
| `@uluops/ops-sdk/types/auth` | Auth/credential types |
|
|
@@ -269,6 +269,18 @@ import type { ApiResponse } from '@uluops/ops-sdk/types/responses';
|
|
|
269
269
|
import type { Credentials } from '@uluops/ops-sdk/config';
|
|
270
270
|
```
|
|
271
271
|
|
|
272
|
+
#### Failure Code Utilities
|
|
273
|
+
|
|
274
|
+
The `types/enums` subpath also ships runtime helpers for working with failure codes (the `DOMAIN-MODE/SEVERITY` taxonomy on recommendations):
|
|
275
|
+
|
|
276
|
+
```typescript
|
|
277
|
+
import { parseFailureCode, buildFailureCode, severityFromCode } from '@uluops/ops-sdk/types/enums';
|
|
278
|
+
|
|
279
|
+
parseFailureCode('SEM-INC/H'); // { domain: 'SEM', mode: 'INC', severityCode: 'H' } — or null if malformed
|
|
280
|
+
buildFailureCode('SEM', 'INC', 'H'); // 'SEM-INC/H'
|
|
281
|
+
severityFromCode('H'); // 'high' — or null if the code is unknown
|
|
282
|
+
```
|
|
283
|
+
|
|
272
284
|
## API Reference
|
|
273
285
|
|
|
274
286
|
### Client Configuration
|
|
@@ -332,7 +344,7 @@ Login with email and password.
|
|
|
332
344
|
| `password` | `string` | Yes | User password |
|
|
333
345
|
|
|
334
346
|
```typescript
|
|
335
|
-
const { user,
|
|
347
|
+
const { user, sessionToken } = await client.auth.login({
|
|
336
348
|
email: 'user@example.com',
|
|
337
349
|
password: 'password123',
|
|
338
350
|
});
|
|
@@ -1657,7 +1669,7 @@ const client = new OpsClient({
|
|
|
1657
1669
|
The API enforces the following payload limits:
|
|
1658
1670
|
|
|
1659
1671
|
- **Request body**: 1 MB maximum for most endpoints
|
|
1660
|
-
- **`raw_markdown`** field in `runs.save()`: up to
|
|
1672
|
+
- **`raw_markdown`** field in `runs.save()`: up to 500,000 characters
|
|
1661
1673
|
- **Recommendations array**: no hard limit, but very large arrays (1000+) may cause timeouts
|
|
1662
1674
|
- **Bulk operations**: capped at 100 items per request (e.g., `bulkUpdateStatus`)
|
|
1663
1675
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "4.0.1";
|
|
2
2
|
//# sourceMappingURL=generated-version.d.ts.map
|
|
@@ -40,7 +40,7 @@ export declare function validateLoginInput(data: unknown): z.infer<typeof LoginI
|
|
|
40
40
|
* Validate profile update input. At least one field must be provided.
|
|
41
41
|
* @param data - Raw input: `{ username?, name?, bio?, timezone?, websiteUrl?, avatar?, avatarMimeType? }`
|
|
42
42
|
* @returns Validated `UpdateProfileInput`
|
|
43
|
-
* @throws {InputValidationError} If no fields provided, or username doesn't match `^[a-
|
|
43
|
+
* @throws {InputValidationError} If no fields provided, or username doesn't match `^[a-z0-9](?:[a-z0-9_-]{0,38}[a-z0-9])?$`
|
|
44
44
|
*/
|
|
45
45
|
export declare function validateUpdateProfileInput(data: unknown): z.infer<typeof UpdateProfileInputSchema>;
|
|
46
46
|
/**
|
|
@@ -69,7 +69,7 @@ export function validateLoginInput(data) {
|
|
|
69
69
|
* Validate profile update input. At least one field must be provided.
|
|
70
70
|
* @param data - Raw input: `{ username?, name?, bio?, timezone?, websiteUrl?, avatar?, avatarMimeType? }`
|
|
71
71
|
* @returns Validated `UpdateProfileInput`
|
|
72
|
-
* @throws {InputValidationError} If no fields provided, or username doesn't match `^[a-
|
|
72
|
+
* @throws {InputValidationError} If no fields provided, or username doesn't match `^[a-z0-9](?:[a-z0-9_-]{0,38}[a-z0-9])?$`
|
|
73
73
|
*/
|
|
74
74
|
export function validateUpdateProfileInput(data) {
|
|
75
75
|
return validate(UpdateProfileInputSchema, data, 'profile update');
|
|
@@ -145,7 +145,7 @@ export declare function isValidMetric(metric: string): metric is AnalyticsMetric
|
|
|
145
145
|
* @param metric - One of: agent_performance, resolution_rates, cross_project_patterns, file_hotspots, regression_analysis, trend_summary, cost_analysis, taxonomy_distribution
|
|
146
146
|
* @param query - Optional: project, days
|
|
147
147
|
* @returns Unvalidated response data
|
|
148
|
-
* @throws {
|
|
148
|
+
* @throws {InputValidationError} If metric is not in ANALYTICS_METRICS
|
|
149
149
|
*/
|
|
150
150
|
export declare function getByMetric(client: OpsHttpClient, metric: AnalyticsMetric, query?: AnalyticsQuery): Promise<unknown>;
|
|
151
151
|
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -187,7 +187,7 @@ export function isValidMetric(metric) {
|
|
|
187
187
|
* @param metric - One of: agent_performance, resolution_rates, cross_project_patterns, file_hotspots, regression_analysis, trend_summary, cost_analysis, taxonomy_distribution
|
|
188
188
|
* @param query - Optional: project, days
|
|
189
189
|
* @returns Unvalidated response data
|
|
190
|
-
* @throws {
|
|
190
|
+
* @throws {InputValidationError} If metric is not in ANALYTICS_METRICS
|
|
191
191
|
*/
|
|
192
192
|
export async function getByMetric(client, metric, query) {
|
|
193
193
|
if (!isValidMetric(metric)) {
|
|
@@ -40,8 +40,9 @@ export declare function save(client: OpsHttpClient, input: SaveRunInput, options
|
|
|
40
40
|
* project: 'my-project',
|
|
41
41
|
* workflowType: 'post-implementation',
|
|
42
42
|
* agents: [{ name: 'code-validator', score: 85, decision: 'PASS' }],
|
|
43
|
+
* recommendations: [],
|
|
43
44
|
* });
|
|
44
|
-
* console.log(preview.
|
|
45
|
+
* console.log(preview.wouldCreate, preview.wouldUpdate, preview.wouldRegress); // e.g. 3 1 0
|
|
45
46
|
* ```
|
|
46
47
|
*/
|
|
47
48
|
export declare function validate(client: OpsHttpClient, input: SaveRunInput, options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/operations/runs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,KAAK,EACV,GAAG,EACH,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAEL,wBAAwB,EAOxB,yBAAyB,EACzB,iCAAiC,EACjC,iCAAiC,EACjC,+BAA+B,EAChC,MAAM,8BAA8B,CAAC;AAOtC;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,wBAAsB,IAAI,CACxB,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE;IAAE,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAAE,GAC5C,OAAO,CAAC,eAAe,CAAC,CAsB1B;AAED
|
|
1
|
+
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/operations/runs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,KAAK,EACV,GAAG,EACH,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,UAAU,EACV,oBAAoB,EACpB,o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xC,MAAM,EAAE,aAAa,EACrB,KAAK,CAAC,EAAE,oBAAoB,GAC3B,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC,CAQ5D;AAED;;;;;;;;;GASG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,EACrB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,sBAAsB,GAC5B,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC,CAK1D"}
|
package/dist/operations/runs.js
CHANGED
|
@@ -65,8 +65,9 @@ export async function save(client, input, options) {
|
|
|
65
65
|
* project: 'my-project',
|
|
66
66
|
* workflowType: 'post-implementation',
|
|
67
67
|
* agents: [{ name: 'code-validator', score: 85, decision: 'PASS' }],
|
|
68
|
+
* recommendations: [],
|
|
68
69
|
* });
|
|
69
|
-
* console.log(preview.
|
|
70
|
+
* console.log(preview.wouldCreate, preview.wouldUpdate, preview.wouldRegress); // e.g. 3 1 0
|
|
70
71
|
* ```
|
|
71
72
|
*/
|
|
72
73
|
export async function validate(client, input, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.js","sourceRoot":"","sources":["../../src/operations/runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAmBpD,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,2BAA2B,EAC3B,+BAA+B,EAC/B,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,iCAAiC,EACjC,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC;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