@fias/arche-sdk 2.26.0 → 2.28.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.
- package/dist/generated/permissions.d.ts +1 -1
- package/dist/generated/permissions.d.ts.map +1 -1
- package/dist/generated/permissions.js +5 -1
- package/dist/generated/permissions.js.map +1 -1
- package/dist/hooks.d.ts +113 -4
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +420 -4
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.test.js +329 -0
- package/dist/hooks.test.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +335 -3
- package/dist/types.d.ts +252 -11
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/templates/default/AGENTS.md +257 -35
- package/templates/default/CLAUDE.md +257 -35
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* `tests/architecture/sdk-permissions-match-db-types.test.ts` ensures
|
|
10
10
|
* this file stays in lockstep with the canonical source.
|
|
11
11
|
*/
|
|
12
|
-
export type PluginPermission = 'ai:actions' | 'assets:community:publish' | 'assets:community:read' | 'assets:read' | 'data:search' | 'data:store' | 'data:workspace' | 'docsign:envelopes:read' | 'email:company:send' | 'entities:audio_generate' | 'entities:client_invoke' | 'entities:image_edit' | 'entities:image_generate' | 'entities:invoke' | 'entities:web_search' | 'navigation:open_arche' | 'sandbox:vendored-libraries' | 'storage:sandbox' | 'store:purchase' | 'theme:read' | 'user:profile:read' | 'vault:arche-saves:write' | 'vault:documents:read' | 'vault:documents:write' | 'vault:user-documents:edit' | 'vault:user-documents:read' | 'vault:user-documents:write' | 'vault:workspace-documents:read';
|
|
12
|
+
export type PluginPermission = 'ai:actions' | 'assets:community:publish' | 'assets:community:read' | 'assets:read' | 'data:agents' | 'data:search' | 'data:store' | 'data:workspace' | 'docsign:envelopes:read' | 'email:company:send' | 'entities:audio_generate' | 'entities:client_invoke' | 'entities:image_edit' | 'entities:image_generate' | 'entities:invoke' | 'entities:web_search' | 'navigation:open_arche' | 'sandbox:vendored-libraries' | 'storage:local' | 'storage:sandbox' | 'store:purchase' | 'theme:read' | 'user:profile:read' | 'vault:arche-saves:write' | 'vault:documents:read' | 'vault:documents:write' | 'vault:user-documents:edit' | 'vault:user-documents:read' | 'vault:user-documents:write' | 'vault:workspace-documents:read';
|
|
13
13
|
export declare const VALID_PLUGIN_PERMISSIONS: readonly PluginPermission[];
|
|
14
14
|
export declare function isValidPluginPermission(perm: string): perm is PluginPermission;
|
|
15
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/generated/permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,gBAAgB,GACxB,YAAY,GACZ,0BAA0B,GAC1B,uBAAuB,GACvB,aAAa,GACb,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,wBAAwB,GACxB,oBAAoB,GACpB,yBAAyB,GACzB,wBAAwB,GACxB,qBAAqB,GACrB,yBAAyB,GACzB,iBAAiB,GACjB,qBAAqB,GACrB,uBAAuB,GACvB,4BAA4B,GAC5B,iBAAiB,GACjB,gBAAgB,GAChB,YAAY,GACZ,mBAAmB,GACnB,yBAAyB,GACzB,sBAAsB,GACtB,uBAAuB,GACvB,2BAA2B,GAC3B,2BAA2B,GAC3B,4BAA4B,GAC5B,gCAAgC,CAAC;AAErC,eAAO,MAAM,wBAAwB,EAAE,SAAS,gBAAgB,
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/generated/permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,gBAAgB,GACxB,YAAY,GACZ,0BAA0B,GAC1B,uBAAuB,GACvB,aAAa,GACb,aAAa,GACb,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,wBAAwB,GACxB,oBAAoB,GACpB,yBAAyB,GACzB,wBAAwB,GACxB,qBAAqB,GACrB,yBAAyB,GACzB,iBAAiB,GACjB,qBAAqB,GACrB,uBAAuB,GACvB,4BAA4B,GAC5B,eAAe,GACf,iBAAiB,GACjB,gBAAgB,GAChB,YAAY,GACZ,mBAAmB,GACnB,yBAAyB,GACzB,sBAAsB,GACtB,uBAAuB,GACvB,2BAA2B,GAC3B,2BAA2B,GAC3B,4BAA4B,GAC5B,gCAAgC,CAAC;AAErC,eAAO,MAAM,wBAAwB,EAAE,SAAS,gBAAgB,EA+BtD,CAAC;AAEX,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,gBAAgB,CAE9E;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CA4CrF,CAAC"}
|
|
@@ -18,6 +18,7 @@ exports.VALID_PLUGIN_PERMISSIONS = [
|
|
|
18
18
|
'assets:community:publish',
|
|
19
19
|
'assets:community:read',
|
|
20
20
|
'assets:read',
|
|
21
|
+
'data:agents',
|
|
21
22
|
'data:search',
|
|
22
23
|
'data:store',
|
|
23
24
|
'data:workspace',
|
|
@@ -31,6 +32,7 @@ exports.VALID_PLUGIN_PERMISSIONS = [
|
|
|
31
32
|
'entities:web_search',
|
|
32
33
|
'navigation:open_arche',
|
|
33
34
|
'sandbox:vendored-libraries',
|
|
35
|
+
'storage:local',
|
|
34
36
|
'storage:sandbox',
|
|
35
37
|
'store:purchase',
|
|
36
38
|
'theme:read',
|
|
@@ -55,7 +57,8 @@ exports.PLUGIN_PERMISSION_DESCRIPTIONS = {
|
|
|
55
57
|
'ai:actions': 'Let Fias AI operate this arche for you — only actions you could do yourself in its interface, and risky ones ask you first.',
|
|
56
58
|
'assets:community:publish': 'Share images you made here so other people using this arche can see them, and manage what you have shared.',
|
|
57
59
|
'assets:community:read': 'Show you images that other people using this arche have shared. Everything shared is checked before anyone can see it.',
|
|
58
|
-
'assets:read': "Show images from this arche's published asset library.",
|
|
60
|
+
'assets:read': "Show images and play sounds from this arche's published asset library.",
|
|
61
|
+
'data:agents': "Let Fias AI, and assistants you connect with an API key and allow here, read this arche's data — and change it where it says so — even while it is closed.",
|
|
59
62
|
'data:search': "Search this arche's own data semantically — costs credits per search.",
|
|
60
63
|
'data:store': "Save structured data in this arche's own private database.",
|
|
61
64
|
'data:workspace': 'Create team workspaces and manage their members.',
|
|
@@ -69,6 +72,7 @@ exports.PLUGIN_PERMISSION_DESCRIPTIONS = {
|
|
|
69
72
|
'entities:web_search': 'Search the live web on your behalf — costs credits.',
|
|
70
73
|
'navigation:open_arche': 'Open other arches for you (navigation only).',
|
|
71
74
|
'sandbox:vendored-libraries': 'Load platform-hosted libraries (like the PDF renderer) from the trusted CDN.',
|
|
75
|
+
'storage:local': 'Keep its working files on this device, so a refresh or crash does not lose your work. Nothing leaves your device; cleared when you sign out or when someone else signs in here.',
|
|
72
76
|
'storage:sandbox': "Save files in this arche's own private storage.",
|
|
73
77
|
'store:purchase': 'Offer purchases inside the arche (you approve each purchase).',
|
|
74
78
|
'theme:read': 'Match your platform theme.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../src/generated/permissions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;
|
|
1
|
+
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../src/generated/permissions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAmEH,0DAEC;AAnCY,QAAA,wBAAwB,GAAgC;IACnE,YAAY;IACZ,0BAA0B;IAC1B,uBAAuB;IACvB,aAAa;IACb,aAAa;IACb,aAAa;IACb,YAAY;IACZ,gBAAgB;IAChB,wBAAwB;IACxB,oBAAoB;IACpB,yBAAyB;IACzB,wBAAwB;IACxB,qBAAqB;IACrB,yBAAyB;IACzB,iBAAiB;IACjB,qB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J;CAC5J,CAAC"}
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ArcheHandoffPayload, FiasUser, FiasTheme, FiasStorageApi, DataSubscriptionState, EntityInvocationApi, FiasTextModel, ClientEntityApi, ImageGenerationApi, ImageEntityFilter, ImageEntitySummary, NllbLanguageOption, AudioGenerationApi, FiasNavigationApi, StepNavigationApi, StepNavigationOptions, FiasDataStoreApi, FiasWorkspacesApi, FiasStoreApi, VaultDocumentsApi, VaultDocumentDownloadUrl, VaultUserDocumentSaveContentResult, ArcheAssetsApi, FiasContentApi, FiasContentErrorCode, CommunityAssetsApi, CompanyEmailApi, FiasAIActionsDeclaration } from './types';
|
|
1
|
+
import type { ArcheHandoffPayload, FiasUser, FiasTheme, FiasStorageApi, DataSubscriptionState, EntityInvocationApi, FiasTextModel, ClientEntityApi, ImageGenerationApi, ImageEntityFilter, ImageEntitySummary, NllbLanguageOption, AudioGenerationApi, FiasNavigationApi, StepNavigationApi, StepNavigationOptions, FiasDataStoreApi, FiasWorkspacesApi, FiasStoreApi, VaultDocumentsApi, VaultDocumentDownloadUrl, VaultUserDocumentSaveContentResult, ArcheAssetsApi, ArcheAssetBytesApi, ArcheAssetErrorCode, FiasContentApi, FiasContentErrorCode, FiasLocalStoreApi, FiasLocalStoreErrorCode, CommunityAssetsApi, CompanyEmailApi, FiasAIActionsDeclaration } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Access the current user's profile information.
|
|
4
4
|
* Requires the `user:profile:read` permission in fias-plugin.json.
|
|
@@ -355,6 +355,16 @@ export declare function useVaultDocuments(): VaultDocumentsApi;
|
|
|
355
355
|
* state, and refresh `signedUrl` via `getUrl(assetId)` when it's about
|
|
356
356
|
* to expire.
|
|
357
357
|
*
|
|
358
|
+
* The library holds images and short sound effects (MP3 / WAV). `list` and
|
|
359
|
+
* `index` return images unless you pass `kinds` (e.g. `{ kinds: ['audio'] }`),
|
|
360
|
+
* and with `kinds` the entries are typed `ArcheLibraryAsset` — narrow on
|
|
361
|
+
* `contentType` before using an image's size. Keeping sounds here is
|
|
362
|
+
* optional; music is not accepted. Sound effects that must play on cue need
|
|
363
|
+
* decoded Web Audio buffers: load library sounds with
|
|
364
|
+
* {@link useArcheAssetBytes}`().getMany` once per session, or bundle them in
|
|
365
|
+
* the plugin's JS (base64) — not in `public/`, which only an `<audio>`
|
|
366
|
+
* element can play.
|
|
367
|
+
*
|
|
358
368
|
* Permission: `assets:read`.
|
|
359
369
|
*
|
|
360
370
|
* @example
|
|
@@ -363,6 +373,55 @@ export declare function useVaultDocuments(): VaultDocumentsApi;
|
|
|
363
373
|
* // entries[i].signedUrl is a short-lived URL you can use as <img src>
|
|
364
374
|
*/
|
|
365
375
|
export declare function useArcheAssets(): ArcheAssetsApi;
|
|
376
|
+
/**
|
|
377
|
+
* Read the bytes of assets in this arche's asset library — for Web Audio
|
|
378
|
+
* (`AudioContext.decodeAudioData`), canvas pixel work, or anything else a
|
|
379
|
+
* signed URL cannot do (the plugin sandbox has no network). Read each sound
|
|
380
|
+
* once per session and keep the decoded buffer.
|
|
381
|
+
*
|
|
382
|
+
* To load a set of sounds, pass the listed entries to `getMany`: up to 100
|
|
383
|
+
* are read per call, so a whole sound set takes one or two calls. One call
|
|
384
|
+
* per sound would trip the bridge's runaway-loop guard (more than 50 calls in
|
|
385
|
+
* 5 seconds), which blocks every read for 10 seconds — `getBytes` calls made
|
|
386
|
+
* together are batched for the same reason. The host page fetches each asset,
|
|
387
|
+
* so each read costs one asset load like an `<img>` does. Unavailable in the
|
|
388
|
+
* builder preview.
|
|
389
|
+
*
|
|
390
|
+
* Sounds are ready to trigger only once their buffers are decoded: wait for
|
|
391
|
+
* the load before the first cue, and resume the `AudioContext` on the first
|
|
392
|
+
* user gesture.
|
|
393
|
+
*
|
|
394
|
+
* Permissions: `entities:client_invoke` AND `assets:read`.
|
|
395
|
+
*
|
|
396
|
+
* @example
|
|
397
|
+
* const { list } = useArcheAssets();
|
|
398
|
+
* const { getMany } = useArcheAssetBytes();
|
|
399
|
+
* const { entries } = await list({ kinds: ['audio'], tags: ['sfx:ui'] });
|
|
400
|
+
* const ctx = new AudioContext();
|
|
401
|
+
* const loaded = await getMany(entries);
|
|
402
|
+
* const buffers = new Map<string, AudioBuffer>();
|
|
403
|
+
* for (const entry of entries) {
|
|
404
|
+
* const result = loaded[entry.assetId];
|
|
405
|
+
* if (result instanceof Error) continue; // result.code says why
|
|
406
|
+
* buffers.set(entry.name ?? entry.assetId, await ctx.decodeAudioData(result.bytes));
|
|
407
|
+
* }
|
|
408
|
+
*/
|
|
409
|
+
export declare function useArcheAssetBytes(): ArcheAssetBytesApi;
|
|
410
|
+
/**
|
|
411
|
+
* Entity ID of the arche asset bytes client-side entity — the host-side
|
|
412
|
+
* reader behind {@link useArcheAssetBytes}. Literal here so the SDK
|
|
413
|
+
* stays bundle-clean (no `@fias/entities` runtime dep).
|
|
414
|
+
*
|
|
415
|
+
* SYNC NOTE: must match `ARCHE_ASSET_BYTES_ENTITY_ID` in
|
|
416
|
+
* `packages/entities/src/integrations/arche-asset-bytes/config.ts`. The
|
|
417
|
+
* architecture test `sdk-entity-id-constants-match.test.ts` pins this.
|
|
418
|
+
*/
|
|
419
|
+
export declare const ARCHE_ASSET_BYTES_ENTITY_ID = "ent_intg_arche_asset_bytes_00000";
|
|
420
|
+
/** A failed asset byte read (`useArcheAssetBytes`): `code` says why. */
|
|
421
|
+
export declare class ArcheAssetError extends Error {
|
|
422
|
+
readonly code: ArcheAssetErrorCode;
|
|
423
|
+
constructor(message: string, code: ArcheAssetErrorCode);
|
|
424
|
+
}
|
|
366
425
|
/**
|
|
367
426
|
* Entity ID of the plugin content pack client-side entity (ADR-021) — the
|
|
368
427
|
* host-side reader behind {@link useFiasContent}. Literal here so the SDK
|
|
@@ -373,6 +432,54 @@ export declare function useArcheAssets(): ArcheAssetsApi;
|
|
|
373
432
|
* architecture test `sdk-entity-id-constants-match.test.ts` pins this.
|
|
374
433
|
*/
|
|
375
434
|
export declare const PLUGIN_CONTENT_ENTITY_ID = "ent_intg_plugin_content_00000000";
|
|
435
|
+
/**
|
|
436
|
+
* Entity ID of the plugin local store client-side entity (ADR-031) — the
|
|
437
|
+
* host-side store behind {@link useLocalStore}. Literal here so the SDK stays
|
|
438
|
+
* bundle-clean (no `@fias/entities` runtime dep).
|
|
439
|
+
*
|
|
440
|
+
* SYNC NOTE: must match `PLUGIN_LOCAL_STORE_ENTITY_ID` in
|
|
441
|
+
* `packages/entities/src/integrations/plugin-local-store/config.ts`. The
|
|
442
|
+
* architecture test `sdk-entity-id-constants-match.test.ts` pins this.
|
|
443
|
+
*/
|
|
444
|
+
export declare const PLUGIN_LOCAL_STORE_ENTITY_ID = "ent_intg_plugin_local_store_0000";
|
|
445
|
+
/** A failed local-store call: `code` says why. */
|
|
446
|
+
export declare class FiasLocalStoreError extends Error {
|
|
447
|
+
readonly code: FiasLocalStoreErrorCode;
|
|
448
|
+
constructor(message: string, code: FiasLocalStoreErrorCode);
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* Keep working data on the user's device — a recovery journal, drafts, a
|
|
452
|
+
* cache — so a refresh, a crash or a closed tab loses nothing. Writes take
|
|
453
|
+
* milliseconds and never touch the network: the host page keeps the data in
|
|
454
|
+
* its own browser storage, in a space only this plugin can read, for the
|
|
455
|
+
* signed-in user in the workspace they are working in (Personal and each org
|
|
456
|
+
* workspace keep separate data; switching workspace switches the store).
|
|
457
|
+
* Signing out clears it.
|
|
458
|
+
*
|
|
459
|
+
* This is NOT where a user's work is kept. It is best-effort device storage —
|
|
460
|
+
* a browser may clear site data, and nothing here reaches another device —
|
|
461
|
+
* so write the journal here and save the user's files through the Vault
|
|
462
|
+
* (`useVaultUserDocuments().saveContent`, `upload`, or the Save dialog).
|
|
463
|
+
*
|
|
464
|
+
* Values: a string, bytes (`ArrayBuffer` / `Uint8Array`), or any JSON value;
|
|
465
|
+
* `get` returns the same kind. One value ≤ 64 MB; the whole store for this
|
|
466
|
+
* user ≤ 256 MB. Over budget, `put` throws `LOCAL_STORE_QUOTA_EXCEEDED`
|
|
467
|
+
* rather than evicting — decide what to keep with `estimate()` and `list()`.
|
|
468
|
+
* For a large snapshot (an image, a big document), put BYTES: a JSON value is
|
|
469
|
+
* validated and serialized on the host page, which costs time proportional
|
|
470
|
+
* to its size on every write, while bytes are only copied. Restore a journal
|
|
471
|
+
* with `getMany(keys)` — one call for up to 100 entries, instead of one call
|
|
472
|
+
* per key.
|
|
473
|
+
*
|
|
474
|
+
* Permission: `storage:local`.
|
|
475
|
+
*
|
|
476
|
+
* @example
|
|
477
|
+
* const store = useLocalStore();
|
|
478
|
+
* await store.put(`session/${docId}`, snapshotJson); // on every change
|
|
479
|
+
* const saved = await store.getJson<Snapshot>(`session/${docId}`); // on load
|
|
480
|
+
* await store.delete(`session/${docId}`); // on close
|
|
481
|
+
*/
|
|
482
|
+
export declare function useLocalStore(): FiasLocalStoreApi;
|
|
376
483
|
/** A failed content read: `code` says why, `path` names the file when there is one. */
|
|
377
484
|
export declare class FiasContentError extends Error {
|
|
378
485
|
readonly code: FiasContentErrorCode;
|
|
@@ -768,9 +875,11 @@ export interface FiasAIActionsConfig extends FiasAIActionsDeclaration {
|
|
|
768
875
|
* mutate the source. And you are the authoritative type gate — if you cannot
|
|
769
876
|
* open this file, tell the user plainly rather than opening something broken.
|
|
770
877
|
*
|
|
771
|
-
* To be offered as a destination at all,
|
|
772
|
-
*
|
|
773
|
-
*
|
|
878
|
+
* To be offered as a destination at all, declare what you open in
|
|
879
|
+
* `fias-plugin.json` (`"fileIntake": { "kinds": ["document"], "types": [".docx"] }`;
|
|
880
|
+
* `types` narrows a kind to the files you really open) and have Fias approve
|
|
881
|
+
* it; declaring this hook alone does not enrol you. A kind or type added later
|
|
882
|
+
* stays off until it is approved too.
|
|
774
883
|
*/
|
|
775
884
|
export declare function useArcheHandoff(onHandoff: (payload: ArcheHandoffPayload) => void): void;
|
|
776
885
|
/** One recipient of an envelope your app started.
|
package/dist/hooks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,mBAAmB,EACnB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EAInB,aAAa,EACb,eAAe,EACf,kBAAkB,EAGlB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAGlB,iBAAiB,EAEjB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAchB,iBAAiB,EAIjB,YAAY,EAMZ,iBAAiB,EAGjB,wBAAwB,EAKxB,kCAAkC,EASlC,cAAc,EACd,cAAc,EACd,oBAAoB,
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,mBAAmB,EACnB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EAInB,aAAa,EACb,eAAe,EACf,kBAAkB,EAGlB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAGlB,iBAAiB,EAEjB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAchB,iBAAiB,EAIjB,YAAY,EAMZ,iBAAiB,EAGjB,wBAAwB,EAKxB,kCAAkC,EASlC,cAAc,EACd,kBAAkB,EAGlB,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EAGpB,iBAAiB,EACjB,uBAAuB,EAYvB,kBAAkB,EAMlB,eAAe,EAGf,wBAAwB,EACzB,MAAM,SAAS,CAAC;AA4FjB;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,IAAI,QAAQ,GAAG,IAAI,CAuB7C;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,IAAI,SAAS,GAAG,IAAI,CAS/C;AAED;;;;;;;;;;;;;;GAcG;AACH,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