@ankhorage/projects 0.7.3 → 0.9.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/README.md +20 -12
- package/dist/capabilities/index.d.ts +330 -0
- package/dist/capabilities/index.js +194 -0
- package/dist/capabilities/socialManagerMediaAnalytics.d.ts +92 -0
- package/dist/capabilities/socialManagerMediaAnalytics.js +75 -0
- package/dist/features/projects/composition/composeGeneratedRuntimeMaterialization.d.ts +1 -0
- package/dist/features/projects/composition/composeGeneratedRuntimeMaterialization.js +13 -5
- package/dist/features/projects/composition/createExpoProjectMaterializer.d.ts +4 -6
- package/dist/features/projects/composition/createExpoProjectMaterializer.js +29 -36
- package/dist/features/projects/composition/createNavigatorMaterializationFiles.d.ts +14 -0
- package/dist/features/projects/composition/createNavigatorMaterializationFiles.js +19 -0
- package/dist/features/projects/composition/createRootNavigatorGenerationOptions.d.ts +9 -0
- package/dist/features/projects/composition/createRootNavigatorGenerationOptions.js +10 -0
- package/dist/features/projects/composition/createSocialManagerServerFiles.d.ts +6 -0
- package/dist/features/projects/composition/createSocialManagerServerFiles.js +16 -0
- package/dist/features/trusted-social-manager-host/adapters/createConnectionFileSystemRepositories.d.ts +16 -0
- package/dist/features/trusted-social-manager-host/adapters/createConnectionFileSystemRepositories.js +201 -0
- package/dist/features/trusted-social-manager-host/adapters/createConnectionFileSystemStoreAsync.d.ts +25 -0
- package/dist/features/trusted-social-manager-host/adapters/createConnectionFileSystemStoreAsync.js +72 -0
- package/dist/features/trusted-social-manager-host/adapters/createSocialManagerDraftStoreAsync.d.ts +7 -0
- package/dist/features/trusted-social-manager-host/adapters/createSocialManagerDraftStoreAsync.js +160 -0
- package/dist/features/trusted-social-manager-host/adapters/createSocialManagerFlowSecurityAsync.d.ts +19 -0
- package/dist/features/trusted-social-manager-host/adapters/createSocialManagerFlowSecurityAsync.js +176 -0
- package/dist/features/trusted-social-manager-host/adapters/createSocialManagerMediaPreflight.d.ts +4 -0
- package/dist/features/trusted-social-manager-host/adapters/createSocialManagerMediaPreflight.js +37 -0
- package/dist/features/trusted-social-manager-host/adapters/createSocialManagerMediaStoreAsync.d.ts +7 -0
- package/dist/features/trusted-social-manager-host/adapters/createSocialManagerMediaStoreAsync.js +242 -0
- package/dist/features/trusted-social-manager-host/adapters/createSocialOperationStoresAsync.d.ts +13 -0
- package/dist/features/trusted-social-manager-host/adapters/createSocialOperationStoresAsync.js +244 -0
- package/dist/features/trusted-social-manager-host/adapters/projectSocialManagerConnection.d.ts +53 -0
- package/dist/features/trusted-social-manager-host/adapters/projectSocialManagerConnection.js +42 -0
- package/dist/features/trusted-social-manager-host/application/createSocialManagerPublicationRuntime.d.ts +10 -0
- package/dist/features/trusted-social-manager-host/application/createSocialManagerPublicationRuntime.js +240 -0
- package/dist/features/trusted-social-manager-host/application/resolveSocialManagerPublication.d.ts +22 -0
- package/dist/features/trusted-social-manager-host/application/resolveSocialManagerPublication.js +97 -0
- package/dist/features/trusted-social-manager-host/composition/createSocialManagerCapabilityOperations.d.ts +22 -0
- package/dist/features/trusted-social-manager-host/composition/createSocialManagerCapabilityOperations.js +224 -0
- package/dist/features/trusted-social-manager-host/composition/createSocialManagerConnectionOperations.d.ts +20 -0
- package/dist/features/trusted-social-manager-host/composition/createSocialManagerConnectionOperations.js +152 -0
- package/dist/features/trusted-social-manager-host/composition/createSocialManagerLocalProviderFixtures.d.ts +22 -0
- package/dist/features/trusted-social-manager-host/composition/createSocialManagerLocalProviderFixtures.js +271 -0
- package/dist/features/trusted-social-manager-host/composition/createSocialManagerMediaOperations.d.ts +14 -0
- package/dist/features/trusted-social-manager-host/composition/createSocialManagerMediaOperations.js +72 -0
- package/dist/features/trusted-social-manager-host/composition/createSocialManagerProvider.d.ts +20 -0
- package/dist/features/trusted-social-manager-host/composition/createSocialManagerProvider.js +20 -0
- package/dist/features/trusted-social-manager-host/composition/createSocialManagerPublicationOperations.d.ts +15 -0
- package/dist/features/trusted-social-manager-host/composition/createSocialManagerPublicationOperations.js +185 -0
- package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerFileSystemPersistenceAsync.d.ts +14 -0
- package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerFileSystemPersistenceAsync.js +17 -0
- package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerHost.d.ts +51 -0
- package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerHost.js +188 -0
- package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerLocalHostAsync.d.ts +18 -0
- package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerLocalHostAsync.js +177 -0
- package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerLocalServerAsync.d.ts +26 -0
- package/dist/features/trusted-social-manager-host/composition/createTrustedSocialManagerLocalServerAsync.js +66 -0
- package/dist/features/trusted-social-manager-host/domain/publicationConfig.d.ts +18 -0
- package/dist/features/trusted-social-manager-host/domain/publicationConfig.js +77 -0
- package/dist/features/trusted-social-manager-host/domain/readSocialManagerConnectionRequest.d.ts +54 -0
- package/dist/features/trusted-social-manager-host/domain/readSocialManagerConnectionRequest.js +77 -0
- package/dist/features/trusted-social-manager-host/domain/readSocialManagerDraftContent.d.ts +3 -0
- package/dist/features/trusted-social-manager-host/domain/readSocialManagerDraftContent.js +47 -0
- package/dist/features/trusted-social-manager-host/domain/socialManagerConnectionIdentity.d.ts +17 -0
- package/dist/features/trusted-social-manager-host/domain/socialManagerConnectionIdentity.js +17 -0
- package/dist/features/trusted-zefix-host/composition/createTrustedZefixHost.d.ts +1 -2
- package/dist/features/trusted-zefix-host/composition/createTrustedZefixHost.js +3 -59
- package/dist/features/trusted-zefix-host/composition/createTrustedZefixWorkerEntry.d.ts +36 -0
- package/dist/features/trusted-zefix-host/composition/createTrustedZefixWorkerEntry.js +105 -0
- package/dist/features/trusted-zefix-host/composition/createTrustedZefixWorkerHandler.d.ts +35 -0
- package/dist/features/trusted-zefix-host/composition/createTrustedZefixWorkerHandler.js +92 -0
- package/dist/features/trusted-zefix-host/composition/zefixOperations.d.ts +20 -0
- package/dist/features/trusted-zefix-host/composition/zefixOperations.js +57 -0
- package/dist/features/worker-materialization/composition/composeWorkerMaterialization.d.ts +13 -0
- package/dist/features/worker-materialization/composition/composeWorkerMaterialization.js +90 -0
- package/dist/features/worker-materialization/composition/createWorkerMaterializationFile.d.ts +13 -0
- package/dist/features/worker-materialization/composition/createWorkerMaterializationFile.js +48 -0
- package/dist/features/worker-materialization/constants/worker.d.ts +6 -0
- package/dist/features/worker-materialization/constants/worker.js +6 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +16 -0
- package/dist/types/socialManager.d.ts +77 -0
- package/dist/types/socialManager.js +1 -0
- package/dist/types/socialManagerPublication.d.ts +27 -0
- package/dist/types/socialManagerPublication.js +1 -0
- package/dist/worker/index.d.ts +3 -0
- package/dist/worker/index.js +3 -0
- package/package.json +511 -9
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*** Publish static media, validation, preview, and analytics descriptors for the Social Manager host. */
|
|
2
|
+
export const SOCIAL_MANAGER_MEDIA_ANALYTICS_CAPABILITIES = [
|
|
3
|
+
{
|
|
4
|
+
id: 'projects.social.media.upload',
|
|
5
|
+
owner: '@ankhorage/projects',
|
|
6
|
+
access: ['write'],
|
|
7
|
+
binding: { kind: 'action', bindableAs: ['target'] },
|
|
8
|
+
label: 'Upload social media',
|
|
9
|
+
description: 'Persist immutable caller-owned social media content.',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
id: 'projects.social.media.list',
|
|
13
|
+
owner: '@ankhorage/projects',
|
|
14
|
+
access: ['read'],
|
|
15
|
+
binding: { kind: 'action', bindableAs: ['target'] },
|
|
16
|
+
label: 'List social media',
|
|
17
|
+
description: 'List immutable social media metadata in the authenticated caller scope.',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 'projects.social.media.read',
|
|
21
|
+
owner: '@ankhorage/projects',
|
|
22
|
+
access: ['read'],
|
|
23
|
+
binding: { kind: 'action', bindableAs: ['target'] },
|
|
24
|
+
label: 'Read social media',
|
|
25
|
+
description: 'Read one immutable social media metadata record.',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 'projects.social.media.remove',
|
|
29
|
+
owner: '@ankhorage/projects',
|
|
30
|
+
access: ['write'],
|
|
31
|
+
binding: { kind: 'action', bindableAs: ['target'] },
|
|
32
|
+
label: 'Remove social media',
|
|
33
|
+
description: 'Remove unreferenced immutable social media content.',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: 'projects.social.capabilities.read',
|
|
37
|
+
owner: '@ankhorage/projects',
|
|
38
|
+
access: ['read'],
|
|
39
|
+
binding: { kind: 'action', bindableAs: ['target'] },
|
|
40
|
+
label: 'Read social capability',
|
|
41
|
+
description: 'Read the authenticated destination provider capability.',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 'projects.social.content.validate',
|
|
45
|
+
owner: '@ankhorage/projects',
|
|
46
|
+
access: ['write'],
|
|
47
|
+
binding: { kind: 'action', bindableAs: ['target'] },
|
|
48
|
+
label: 'Validate social content',
|
|
49
|
+
description: 'Validate an immutable social draft destination against provider constraints.',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'projects.social.preview.prepare',
|
|
53
|
+
owner: '@ankhorage/projects',
|
|
54
|
+
access: ['write'],
|
|
55
|
+
binding: { kind: 'action', bindableAs: ['target'] },
|
|
56
|
+
label: 'Prepare social preview',
|
|
57
|
+
description: 'Prepare a validated redaction-safe social publication preview.',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: 'projects.social.analytics.capabilities',
|
|
61
|
+
owner: '@ankhorage/projects',
|
|
62
|
+
access: ['read'],
|
|
63
|
+
binding: { kind: 'action', bindableAs: ['target'] },
|
|
64
|
+
label: 'Read social analytics capabilities',
|
|
65
|
+
description: 'Read provider-native availability for social analytics metrics.',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: 'projects.social.analytics.retrieve',
|
|
69
|
+
owner: '@ankhorage/projects',
|
|
70
|
+
access: ['write'],
|
|
71
|
+
binding: { kind: 'action', bindableAs: ['target'] },
|
|
72
|
+
label: 'Retrieve social analytics',
|
|
73
|
+
description: 'Retrieve provider-native social analytics observations.',
|
|
74
|
+
},
|
|
75
|
+
];
|
|
@@ -5,6 +5,7 @@ export declare function composeGeneratedRuntimeMaterialization(input: Readonly<{
|
|
|
5
5
|
readonly packageSource: string;
|
|
6
6
|
readonly runtimeBindings: NavigatorGenerationBindings;
|
|
7
7
|
readonly runtimeDependencies: Readonly<Record<string, string>>;
|
|
8
|
+
readonly socialManager: boolean;
|
|
8
9
|
}>): Readonly<{
|
|
9
10
|
navigatorBindings: NavigatorGenerationBindings;
|
|
10
11
|
packageSource: string;
|
|
@@ -3,9 +3,7 @@ const generatedDevelopmentDependencies = {
|
|
|
3
3
|
'@ankhorage/devtools': '^2.12.2',
|
|
4
4
|
typescript: '~6.0.3',
|
|
5
5
|
};
|
|
6
|
-
const generatedScripts = {
|
|
7
|
-
'devtools:sync': 'ankh devtools sync .',
|
|
8
|
-
};
|
|
6
|
+
const generatedScripts = { 'devtools:sync': 'ankh devtools sync .' };
|
|
9
7
|
/*** Compose generated Runtime dependencies and bindings with caller-owned Navigator extensions. */
|
|
10
8
|
export function composeGeneratedRuntimeMaterialization(input) {
|
|
11
9
|
assertNoConflictingRuntimeBindings(input.callerBindings, input.runtimeBindings);
|
|
@@ -17,12 +15,22 @@ export function composeGeneratedRuntimeMaterialization(input) {
|
|
|
17
15
|
},
|
|
18
16
|
packageSource: `${JSON.stringify({
|
|
19
17
|
...packageJson,
|
|
20
|
-
dependencies: {
|
|
18
|
+
dependencies: {
|
|
19
|
+
...packageJson.dependencies,
|
|
20
|
+
...input.runtimeDependencies,
|
|
21
|
+
...(input.socialManager ? { '@ankhorage/projects': '^0.9.0' } : {}),
|
|
22
|
+
},
|
|
21
23
|
devDependencies: {
|
|
22
24
|
...packageJson.devDependencies,
|
|
23
25
|
...generatedDevelopmentDependencies,
|
|
24
26
|
},
|
|
25
|
-
scripts: {
|
|
27
|
+
scripts: {
|
|
28
|
+
...packageJson.scripts,
|
|
29
|
+
...generatedScripts,
|
|
30
|
+
...(input.socialManager
|
|
31
|
+
? { 'social-manager:server': 'bun src/server/socialManager.ts' }
|
|
32
|
+
: {}),
|
|
33
|
+
},
|
|
26
34
|
}, null, 2)}\n`,
|
|
27
35
|
};
|
|
28
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AppCategory } from '@ankhorage/contracts';
|
|
2
|
-
import type { NavigatorGenerationBindings, NavigatorRuntimePlatform } from '@ankhorage/contracts/navigator';
|
|
3
2
|
import type { Project, ProjectManifestRevision } from '../../../types/projects.js';
|
|
3
|
+
import { type NavigatorMaterializationInput } from './createNavigatorMaterializationFiles.js';
|
|
4
4
|
/*** Inputs fixed by the host before materializing one immutable Projects revision. */
|
|
5
5
|
export interface CreateExpoProjectMaterializerInput {
|
|
6
6
|
readonly targetDirectory: string;
|
|
@@ -8,11 +8,9 @@ export interface CreateExpoProjectMaterializerInput {
|
|
|
8
8
|
category: AppCategory;
|
|
9
9
|
slug: string;
|
|
10
10
|
}>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
readonly expoRouterVersion: string;
|
|
15
|
-
}>;
|
|
11
|
+
/** Manifest environment this build targets; Worker hosting is generated only when it runs on Workers. */
|
|
12
|
+
readonly targetEnvironment?: string;
|
|
13
|
+
readonly navigator: NavigatorMaterializationInput;
|
|
16
14
|
}
|
|
17
15
|
/*** The public result of materializing one runnable, self-contained Expo project directory. */
|
|
18
16
|
export interface ExpoProjectMaterializationResult {
|
|
@@ -2,9 +2,11 @@ import { lstat, mkdir, mkdtemp, readdir, readFile, realpath, rm, writeFile, } fr
|
|
|
2
2
|
import { basename, dirname, relative, resolve } from 'node:path';
|
|
3
3
|
import { resolveExpoRuntimeGeneratedAppScaffold, resolveExpoRuntimeGeneratedAppSources, } from '@ankhorage/expo-runtime/generated-app';
|
|
4
4
|
import { resolveExpoRuntimePlan } from '@ankhorage/expo-runtime/planning';
|
|
5
|
-
import { createNavigatorPlan, generateNavigator } from '@ankhorage/navigator';
|
|
6
5
|
import { materializeTemplateRevision } from '@ankhorage/templates';
|
|
6
|
+
import { applyWorkerMaterialization } from '../../worker-materialization/composition/composeWorkerMaterialization.js';
|
|
7
7
|
import { composeGeneratedRuntimeMaterialization } from './composeGeneratedRuntimeMaterialization.js';
|
|
8
|
+
import { createNavigatorMaterializationFiles, } from './createNavigatorMaterializationFiles.js';
|
|
9
|
+
import { createSocialManagerServerFiles } from './createSocialManagerServerFiles.js';
|
|
8
10
|
import { formatTypeScriptLiteral } from './formatTypeScriptLiteral.js';
|
|
9
11
|
/*** Create the public, caller-targeted Expo materializer for stored immutable project revisions. */
|
|
10
12
|
export function createExpoProjectMaterializer(input) {
|
|
@@ -16,7 +18,7 @@ export function createExpoProjectMaterializer(input) {
|
|
|
16
18
|
async function materializeExpoProjectAsync(input, project, revision) {
|
|
17
19
|
assertReleasedOwnerApis();
|
|
18
20
|
const targetDirectory = await assertEmptyTargetDirectoryAsync(input.targetDirectory);
|
|
19
|
-
const generatedFiles = createGeneratedFiles(revision.manifest, input.navigator);
|
|
21
|
+
const generatedFiles = createGeneratedFiles(revision.manifest, project.id, input.navigator, input.targetEnvironment);
|
|
20
22
|
const stagingDirectory = await mkdtemp(`${dirname(targetDirectory)}/.ankhorage-projects-`);
|
|
21
23
|
try {
|
|
22
24
|
const template = await ownerApis.materializeTemplateRevision({
|
|
@@ -35,32 +37,22 @@ async function materializeExpoProjectAsync(input, project, revision) {
|
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
/*** Produce every Runtime- and Navigator-owned file before Template or target filesystem writes. */
|
|
38
|
-
function createGeneratedFiles(manifest, navigatorInput) {
|
|
40
|
+
function createGeneratedFiles(manifest, projectId, navigatorInput, targetEnvironment) {
|
|
39
41
|
const runtimePlan = ownerApis.resolveExpoRuntimePlan(manifest);
|
|
40
42
|
assertNoErrors(runtimePlan.diagnostics, 'Expo Runtime');
|
|
41
|
-
const runtime =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
});
|
|
45
|
-
assertNoErrors(runtime.diagnostics, 'Expo Runtime');
|
|
46
|
-
const scaffold = ownerApis.resolveExpoRuntimeGeneratedAppScaffold(manifest, runtimePlan);
|
|
43
|
+
const runtime = createRuntimeSources(manifest, runtimePlan);
|
|
44
|
+
const scaffold = ownerApis.resolveExpoRuntimeGeneratedAppScaffold(manifest, runtimePlan, targetEnvironment === undefined ? {} : { environment: targetEnvironment });
|
|
45
|
+
const socialManagerFiles = createSocialManagerServerFiles(manifest);
|
|
47
46
|
const packageSource = composeGeneratedRuntimeMaterialization({
|
|
48
47
|
callerBindings: navigatorInput.bindings,
|
|
49
48
|
packageSource: scaffold.files.find(({ relativePath }) => relativePath === 'package.json')?.source ?? '',
|
|
50
49
|
runtimeBindings: runtime.navigatorBindings,
|
|
51
50
|
runtimeDependencies: runtime.dependencies,
|
|
51
|
+
socialManager: socialManagerFiles.length > 0,
|
|
52
52
|
});
|
|
53
|
-
const
|
|
54
|
-
platform: navigatorInput.platform,
|
|
55
|
-
expoRouterVersion: navigatorInput.expoRouterVersion,
|
|
56
|
-
});
|
|
57
|
-
const navigator = ownerApis.generateNavigator(navigatorPlan, packageSource.navigatorBindings, createRootNavigatorGenerationOptions(manifest));
|
|
58
|
-
assertNoErrors(navigator.diagnostics, 'Navigator');
|
|
53
|
+
const app = applyWorkerMaterialization(manifest, projectId, packageSource.packageSource, targetEnvironment);
|
|
59
54
|
const files = [
|
|
60
|
-
...scaffold.files.
|
|
61
|
-
relativePath: file.relativePath,
|
|
62
|
-
source: file.relativePath === 'package.json' ? packageSource.packageSource : file.source,
|
|
63
|
-
})),
|
|
55
|
+
...createScaffoldMaterializationFiles(scaffold.files, app.packageSource),
|
|
64
56
|
...runtime.files.map((file) => ({
|
|
65
57
|
relativePath: file.relativePath,
|
|
66
58
|
source: file.source,
|
|
@@ -69,23 +61,28 @@ function createGeneratedFiles(manifest, navigatorInput) {
|
|
|
69
61
|
relativePath: 'src/ankh.manifest.ts',
|
|
70
62
|
source: `export default ${formatTypeScriptLiteral(manifest)} as const;\n`,
|
|
71
63
|
},
|
|
72
|
-
...
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
})),
|
|
64
|
+
...app.files,
|
|
65
|
+
...createNavigatorMaterializationFiles(manifest, navigatorInput, packageSource.navigatorBindings),
|
|
66
|
+
...socialManagerFiles,
|
|
76
67
|
];
|
|
77
68
|
assertUniqueRelativePaths(files.map(({ relativePath }) => relativePath));
|
|
78
69
|
return files;
|
|
79
70
|
}
|
|
80
|
-
/***
|
|
81
|
-
function
|
|
82
|
-
return {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
71
|
+
/*** Replace only the scaffold package manifest with the fully composed generated application manifest. */
|
|
72
|
+
function createScaffoldMaterializationFiles(files, packageSource) {
|
|
73
|
+
return files.map((file) => ({
|
|
74
|
+
relativePath: file.relativePath,
|
|
75
|
+
source: file.relativePath === 'package.json' ? packageSource : file.source,
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
/*** Emit and validate the Runtime-owned source plan before it is composed with Navigator or Worker files. */
|
|
79
|
+
function createRuntimeSources(manifest, runtimePlan) {
|
|
80
|
+
const runtime = ownerApis.resolveExpoRuntimeGeneratedAppSources(manifest, runtimePlan, {
|
|
81
|
+
manifestModuleSpecifier: '../ankh.manifest',
|
|
82
|
+
screenModuleSpecifier: '../generated/runtimeManifestScreens',
|
|
83
|
+
});
|
|
84
|
+
assertNoErrors(runtime.diagnostics, 'Expo Runtime');
|
|
85
|
+
return runtime;
|
|
89
86
|
}
|
|
90
87
|
/*** Return the stable public materialization identity and complete sorted generated-file inventory. */
|
|
91
88
|
function createMaterializationResult(project, revision, targetDirectory, templateFiles, generatedFiles) {
|
|
@@ -101,8 +98,6 @@ function createMaterializationResult(project, revision, targetDirectory, templat
|
|
|
101
98
|
/*** Narrow the released owner API boundary so optional peer implementations cannot leak into Projects. */
|
|
102
99
|
const ownerApis = {
|
|
103
100
|
materializeTemplateRevision: materializeTemplateRevision,
|
|
104
|
-
createNavigatorPlan: createNavigatorPlan,
|
|
105
|
-
generateNavigator: generateNavigator,
|
|
106
101
|
resolveExpoRuntimePlan: resolveExpoRuntimePlan,
|
|
107
102
|
resolveExpoRuntimeGeneratedAppSources: resolveExpoRuntimeGeneratedAppSources,
|
|
108
103
|
resolveExpoRuntimeGeneratedAppScaffold: resolveExpoRuntimeGeneratedAppScaffold,
|
|
@@ -110,8 +105,6 @@ const ownerApis = {
|
|
|
110
105
|
/*** Reject unavailable owner emitters rather than reproducing their source in Projects. */
|
|
111
106
|
function assertReleasedOwnerApis() {
|
|
112
107
|
if (typeof ownerApis.materializeTemplateRevision !== 'function' ||
|
|
113
|
-
typeof ownerApis.createNavigatorPlan !== 'function' ||
|
|
114
|
-
typeof ownerApis.generateNavigator !== 'function' ||
|
|
115
108
|
typeof ownerApis.resolveExpoRuntimePlan !== 'function' ||
|
|
116
109
|
typeof ownerApis.resolveExpoRuntimeGeneratedAppSources !== 'function' ||
|
|
117
110
|
typeof ownerApis.resolveExpoRuntimeGeneratedAppScaffold !== 'function') {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AppManifest } from '@ankhorage/contracts';
|
|
2
|
+
import type { NavigatorGenerationBindings, NavigatorRuntimePlatform } from '@ankhorage/contracts/navigator';
|
|
3
|
+
export interface NavigatorMaterializationInput {
|
|
4
|
+
readonly bindings: NavigatorGenerationBindings;
|
|
5
|
+
readonly platform: NavigatorRuntimePlatform;
|
|
6
|
+
readonly expoRouterVersion: string;
|
|
7
|
+
}
|
|
8
|
+
interface MaterializedFile {
|
|
9
|
+
readonly relativePath: string;
|
|
10
|
+
readonly source: string;
|
|
11
|
+
}
|
|
12
|
+
/*** Generate Navigator's route files from the composed Runtime and caller bindings. */
|
|
13
|
+
export declare function createNavigatorMaterializationFiles(manifest: AppManifest, navigatorInput: NavigatorMaterializationInput, bindings: NavigatorGenerationBindings): readonly MaterializedFile[];
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createNavigatorPlan, generateNavigator } from '@ankhorage/navigator';
|
|
2
|
+
import { createRootNavigatorGenerationOptions } from './createRootNavigatorGenerationOptions.js';
|
|
3
|
+
/*** Generate Navigator's route files from the composed Runtime and caller bindings. */
|
|
4
|
+
export function createNavigatorMaterializationFiles(manifest, navigatorInput, bindings) {
|
|
5
|
+
const navigatorPlan = createNavigatorPlan(manifest.navigator, {
|
|
6
|
+
platform: navigatorInput.platform,
|
|
7
|
+
expoRouterVersion: navigatorInput.expoRouterVersion,
|
|
8
|
+
});
|
|
9
|
+
const navigator = generateNavigator(navigatorPlan, bindings, createRootNavigatorGenerationOptions(manifest));
|
|
10
|
+
assertNoErrors(navigator.diagnostics);
|
|
11
|
+
return navigator.files.map((file) => ({ relativePath: file.path, source: file.contents }));
|
|
12
|
+
}
|
|
13
|
+
/*** Reject Navigator diagnostics that make a generated application invalid before filesystem side effects. */
|
|
14
|
+
function assertNoErrors(diagnostics) {
|
|
15
|
+
const errors = diagnostics.filter(({ severity }) => severity === 'error');
|
|
16
|
+
if (errors.length > 0) {
|
|
17
|
+
throw new Error(`Navigator cannot materialize this revision: ${errors.map(({ message }) => message).join(' ')}`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AppManifest } from '@ankhorage/contracts';
|
|
2
|
+
/*** Opt into the generated Runtime provider shell and preserve each manifest's configured public start route. */
|
|
3
|
+
export declare function createRootNavigatorGenerationOptions(manifest: AppManifest): {
|
|
4
|
+
rootLayoutWrapper: {
|
|
5
|
+
module: string;
|
|
6
|
+
exportName: string;
|
|
7
|
+
};
|
|
8
|
+
rootRedirect?: true;
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*** Opt into the generated Runtime provider shell and preserve each manifest's configured public start route. */
|
|
2
|
+
export function createRootNavigatorGenerationOptions(manifest) {
|
|
3
|
+
return {
|
|
4
|
+
...(manifest.navigator.initialRouteName === undefined ? {} : { rootRedirect: true }),
|
|
5
|
+
rootLayoutWrapper: {
|
|
6
|
+
module: '@/generated/runtimeShell',
|
|
7
|
+
exportName: 'GeneratedRuntimeShell',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AppManifest } from '@ankhorage/contracts';
|
|
2
|
+
/*** Generate the thin local Social Manager entrypoint only from declared internal API capabilities. */
|
|
3
|
+
export declare function createSocialManagerServerFiles(manifest: AppManifest): readonly Readonly<{
|
|
4
|
+
relativePath: string;
|
|
5
|
+
source: string;
|
|
6
|
+
}>[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*** Generate the thin local Social Manager entrypoint only from declared internal API capabilities. */
|
|
2
|
+
export function createSocialManagerServerFiles(manifest) {
|
|
3
|
+
return hasSocialManagerApiDeclaration(manifest)
|
|
4
|
+
? [
|
|
5
|
+
{
|
|
6
|
+
relativePath: 'src/server/socialManager.ts',
|
|
7
|
+
source: `import manifest from '../ankh.manifest';\nimport { createTrustedSocialManagerLocalServerAsync, findTrustedSocialManagerApiDefinition } from '@ankhorage/projects';\n\nconst definition = findTrustedSocialManagerApiDefinition(manifest);\nif (!definition) throw new Error('Social Manager API declaration is missing.');\nconst token = process.env.SOCIAL_MANAGER_DEVELOPMENT_TOKEN;\nif (!token) throw new Error('SOCIAL_MANAGER_DEVELOPMENT_TOKEN is required.');\nconst server = await createTrustedSocialManagerLocalServerAsync({\n appId: manifest.metadata.slug,\n dataDirectory: process.env.SOCIAL_MANAGER_DATA_DIRECTORY ?? '.social-manager-data',\n definition,\n development: { enabled: true, hostname: '127.0.0.1', token },\n scope: { tenantId: 'local', projectId: manifest.metadata.slug, environmentId: 'local' },\n caller: { tenantId: 'local', projectId: manifest.metadata.slug, environmentId: 'local', actorId: 'local-developer' },\n});\nawait server.listenAsync(Number(process.env.SOCIAL_MANAGER_PORT ?? '4310'));\nconst shutdownAsync = async () => { await server.closeAsync(); process.exitCode = 0; };\nprocess.once('SIGINT', shutdownAsync);\nprocess.once('SIGTERM', shutdownAsync);\n`,
|
|
8
|
+
},
|
|
9
|
+
]
|
|
10
|
+
: [];
|
|
11
|
+
}
|
|
12
|
+
/*** Detect only manifest-bound internal Social Manager operations; template identity is irrelevant. */
|
|
13
|
+
function hasSocialManagerApiDeclaration(manifest) {
|
|
14
|
+
return Object.values(manifest.infra.apis ?? {}).some((api) => api.origin === 'internal' &&
|
|
15
|
+
Object.values(api.handlers ?? {}).some((handler) => handler.capability.startsWith('projects.social.')));
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ConnectionRepositoryPort, ConnectionTargetDiscoveryPort, DelegatedAuthorizationRepositoryPort, RevocationRepositoryPort } from '@ankhorage/connection';
|
|
2
|
+
import type { ConnectionFileSystemDocument } from './createConnectionFileSystemStoreAsync.js';
|
|
3
|
+
export type ConnectionFileSystemMutationAsync = <Value>(operation: (document: ConnectionFileSystemDocument) => readonly [ConnectionFileSystemDocument, Value]) => Promise<Value>;
|
|
4
|
+
type CreateRepositoriesInput = Readonly<{
|
|
5
|
+
documentPath: string;
|
|
6
|
+
mutateAsync: ConnectionFileSystemMutationAsync;
|
|
7
|
+
readDocumentAsync: (path: string) => Promise<ConnectionFileSystemDocument>;
|
|
8
|
+
}>;
|
|
9
|
+
/*** Construct Connection ports over one validated, atomically rewritten state document. */
|
|
10
|
+
export declare function createConnectionFileSystemRepositories(input: CreateRepositoriesInput): Readonly<{
|
|
11
|
+
delegatedAuthorizationRepository: DelegatedAuthorizationRepositoryPort;
|
|
12
|
+
connectionRepository: ConnectionRepositoryPort;
|
|
13
|
+
targetDiscovery: ConnectionTargetDiscoveryPort;
|
|
14
|
+
revocationRepository: RevocationRepositoryPort;
|
|
15
|
+
}>;
|
|
16
|
+
export {};
|
package/dist/features/trusted-social-manager-host/adapters/createConnectionFileSystemRepositories.js
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
/*** Construct Connection ports over one validated, atomically rewritten state document. */
|
|
3
|
+
export function createConnectionFileSystemRepositories(input) {
|
|
4
|
+
return {
|
|
5
|
+
delegatedAuthorizationRepository: createDelegatedAuthorizationRepository(input),
|
|
6
|
+
connectionRepository: createConnectionRepository(input),
|
|
7
|
+
targetDiscovery: createTargetDiscovery(input),
|
|
8
|
+
revocationRepository: createRevocationRepository(input),
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/*** Build the repository that owns authorization-attempt consumption and connection revisions. */
|
|
12
|
+
function createDelegatedAuthorizationRepository(input) {
|
|
13
|
+
return {
|
|
14
|
+
createAttemptAsync: (value) => createAttemptAsync(input.mutateAsync, value),
|
|
15
|
+
loadAttemptAsync: (attemptId) => loadAttemptAsync(input, attemptId),
|
|
16
|
+
consumeAttemptAsync: (attemptId, now) => transitionAttemptAsync(input.mutateAsync, attemptId, now, 'consumed'),
|
|
17
|
+
cancelAttemptAsync: (attemptId, now) => transitionAttemptAsync(input.mutateAsync, attemptId, now, 'cancelled'),
|
|
18
|
+
loadConnectionAsync: (connectionId) => loadConnectionAsync(input, connectionId),
|
|
19
|
+
saveConnectionAsync: (connection, expectedRevision) => saveConnectionAsync(input.mutateAsync, connection, expectedRevision),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/*** Persist one complete pending authorization attempt under the serialized state mutation. */
|
|
23
|
+
function createAttemptAsync(mutateAsync, input) {
|
|
24
|
+
assertBinding(input);
|
|
25
|
+
const attempt = {
|
|
26
|
+
...input,
|
|
27
|
+
attemptId: randomUUID(),
|
|
28
|
+
purpose: input.purpose ?? 'connect',
|
|
29
|
+
status: 'pending',
|
|
30
|
+
expiresAt: new Date(Date.now() + 10 * 60 * 1000).toISOString(),
|
|
31
|
+
};
|
|
32
|
+
return mutateAsync((document) => [
|
|
33
|
+
{ ...document, attempts: [...document.attempts, attempt] },
|
|
34
|
+
attempt,
|
|
35
|
+
]);
|
|
36
|
+
}
|
|
37
|
+
/*** Read an exact persisted delegated authorization attempt. */
|
|
38
|
+
async function loadAttemptAsync(input, attemptId) {
|
|
39
|
+
return ((await input.readDocumentAsync(input.documentPath)).attempts.find((attempt) => attempt.attemptId === attemptId) ?? null);
|
|
40
|
+
}
|
|
41
|
+
/*** Atomically transition exactly one pending and unexpired delegated attempt. */
|
|
42
|
+
function transitionAttemptAsync(mutateAsync, attemptId, now, status) {
|
|
43
|
+
return mutateAsync((document) => {
|
|
44
|
+
const current = document.attempts.find((attempt) => attempt.attemptId === attemptId);
|
|
45
|
+
if (current?.status !== 'pending')
|
|
46
|
+
return [document, null];
|
|
47
|
+
const nextStatus = Date.parse(current.expiresAt) <= Date.parse(now) ? 'expired' : status;
|
|
48
|
+
const replacement = { ...current, status: nextStatus };
|
|
49
|
+
const attempts = document.attempts.map((attempt) => attempt.attemptId === attemptId ? replacement : attempt);
|
|
50
|
+
return [{ ...document, attempts }, nextStatus === status ? replacement : null];
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/*** Read an exact managed connection from the durable document. */
|
|
54
|
+
async function loadConnectionAsync(input, connectionId) {
|
|
55
|
+
return ((await input.readDocumentAsync(input.documentPath)).connections.find((connection) => connection.connectionId === connectionId) ?? null);
|
|
56
|
+
}
|
|
57
|
+
/*** Compare and replace a managed connection only at its expected durable revision. */
|
|
58
|
+
function saveConnectionAsync(mutateAsync, connection, expectedRevision) {
|
|
59
|
+
assertManagedConnection(connection);
|
|
60
|
+
return mutateAsync((document) => {
|
|
61
|
+
const existing = document.connections.find((item) => item.connectionId === connection.connectionId);
|
|
62
|
+
if ((existing?.revision ?? null) !== expectedRevision)
|
|
63
|
+
return [document, null];
|
|
64
|
+
const connections = existing
|
|
65
|
+
? document.connections.map((item) => item.connectionId === connection.connectionId ? connection : item)
|
|
66
|
+
: [...document.connections, connection];
|
|
67
|
+
return [{ ...document, connections }, connection];
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/*** Build the Connection read-only access port. */
|
|
71
|
+
function createConnectionRepository(input) {
|
|
72
|
+
return {
|
|
73
|
+
loadAsync: async (id) => {
|
|
74
|
+
const connection = await loadConnectionAsync(input, id);
|
|
75
|
+
return connection ? toConnectionDescriptor(connection) : null;
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/*** Build the authorized target discovery port with exact authorization scope matching. */
|
|
80
|
+
function createTargetDiscovery(input) {
|
|
81
|
+
return {
|
|
82
|
+
discoverAuthorizedTargetsAsync: async (reference) => {
|
|
83
|
+
const connection = await loadExactConnectionAsync(input, reference);
|
|
84
|
+
return connection?.targets.filter((target) => matchesReference(target, reference)) ?? [];
|
|
85
|
+
},
|
|
86
|
+
resolveAuthorizedTargetAsync: async (reference) => {
|
|
87
|
+
const connection = await loadExactConnectionAsync(input, reference);
|
|
88
|
+
return connection?.targets.find((target) => matchesReference(target, reference)) ?? null;
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
/*** Build the durable exact-effect repository used by revocation recovery. */
|
|
93
|
+
function createRevocationRepository(input) {
|
|
94
|
+
return {
|
|
95
|
+
loadAsync: async (effectId) => (await input.readDocumentAsync(input.documentPath)).revocations.find((record) => record.operation.effectId === effectId) ?? null,
|
|
96
|
+
recordIntentAsync: (operation) => recordIntentAsync(input.mutateAsync, operation),
|
|
97
|
+
saveAsync: (record) => saveRevocationAsync(input.mutateAsync, record),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
/*** Record the first exact revocation intent while retaining any recovery record. */
|
|
101
|
+
function recordIntentAsync(mutateAsync, operation) {
|
|
102
|
+
assertRevocationOperation(operation);
|
|
103
|
+
return mutateAsync((document) => {
|
|
104
|
+
const existing = document.revocations.find((record) => record.operation.effectId === operation.effectId);
|
|
105
|
+
if (existing)
|
|
106
|
+
return [document, existing];
|
|
107
|
+
const record = { operation, state: 'revocation-pending' };
|
|
108
|
+
return [{ ...document, revocations: [...document.revocations, record] }, record];
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/*** Persist a recovery state only for its original immutable revocation operation. */
|
|
112
|
+
function saveRevocationAsync(mutateAsync, record) {
|
|
113
|
+
assertRevocationRecord(record);
|
|
114
|
+
return mutateAsync((document) => {
|
|
115
|
+
const existing = document.revocations.find((item) => item.operation.effectId === record.operation.effectId);
|
|
116
|
+
if (!existing || JSON.stringify(existing.operation) !== JSON.stringify(record.operation))
|
|
117
|
+
throw new Error('Revocation record operation is unknown or does not match its durable identity.');
|
|
118
|
+
const revocations = document.revocations.map((item) => item.operation.effectId === record.operation.effectId ? record : item);
|
|
119
|
+
return [{ ...document, revocations }, record];
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/*** Validate the immutable binding dimensions shared by attempts and connections. */
|
|
123
|
+
function assertBinding(value) {
|
|
124
|
+
if ([
|
|
125
|
+
value.tenantId,
|
|
126
|
+
value.projectId,
|
|
127
|
+
value.environmentId,
|
|
128
|
+
value.actorId,
|
|
129
|
+
value.connectionId,
|
|
130
|
+
value.provider,
|
|
131
|
+
...value.requestedScopes,
|
|
132
|
+
].some((item) => !item.trim()) ||
|
|
133
|
+
value.requestedScopes.length === 0)
|
|
134
|
+
throw new Error('Connection binding is incomplete.');
|
|
135
|
+
}
|
|
136
|
+
/*** Validate a managed connection before it enters durable state. */
|
|
137
|
+
function assertManagedConnection(value) {
|
|
138
|
+
if (!value.connectionId.trim() || !value.revision.trim())
|
|
139
|
+
throw new Error('Managed connection is invalid.');
|
|
140
|
+
}
|
|
141
|
+
/*** Translate Connection's managed reconnect state into the read-only access contract. */
|
|
142
|
+
function toConnectionDescriptor(connection) {
|
|
143
|
+
return {
|
|
144
|
+
id: connection.connectionId,
|
|
145
|
+
provider: connection.provider,
|
|
146
|
+
accountId: connection.accountId,
|
|
147
|
+
status: connection.status === 'connected'
|
|
148
|
+
? 'connected'
|
|
149
|
+
: connection.status === 'disconnected'
|
|
150
|
+
? 'disconnected'
|
|
151
|
+
: 'expired',
|
|
152
|
+
scopes: connection.grantedScopes,
|
|
153
|
+
authorizationRef: connection.authorizationRef,
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
/*** Load a connection only when every requested authorization dimension agrees. */
|
|
157
|
+
async function loadExactConnectionAsync(input, reference) {
|
|
158
|
+
const connection = await loadConnectionAsync(input, reference.connectionId);
|
|
159
|
+
const connectionReference = {
|
|
160
|
+
tenantId: reference.tenantId,
|
|
161
|
+
projectId: reference.projectId,
|
|
162
|
+
environmentId: reference.environmentId,
|
|
163
|
+
actorId: reference.actorId,
|
|
164
|
+
provider: reference.provider,
|
|
165
|
+
connectionId: reference.connectionId,
|
|
166
|
+
accountId: reference.accountId,
|
|
167
|
+
};
|
|
168
|
+
return connection && matchesReference(connection, connectionReference) ? connection : null;
|
|
169
|
+
}
|
|
170
|
+
/*** Compare every authorization dimension without allowing partial identity matches. */
|
|
171
|
+
function matchesReference(value, reference) {
|
|
172
|
+
return (value.tenantId === reference.tenantId &&
|
|
173
|
+
value.projectId === reference.projectId &&
|
|
174
|
+
value.environmentId === reference.environmentId &&
|
|
175
|
+
value.actorId === reference.actorId &&
|
|
176
|
+
value.provider === reference.provider &&
|
|
177
|
+
value.connectionId === reference.connectionId &&
|
|
178
|
+
value.accountId === reference.accountId &&
|
|
179
|
+
(reference.targetId === undefined || value.targetId === reference.targetId));
|
|
180
|
+
}
|
|
181
|
+
/*** Reject incomplete revocation effects before making their intent durable. */
|
|
182
|
+
function assertRevocationOperation(value) {
|
|
183
|
+
if ([
|
|
184
|
+
value.effectId,
|
|
185
|
+
value.tenantId,
|
|
186
|
+
value.projectId,
|
|
187
|
+
value.environmentId,
|
|
188
|
+
value.actorId,
|
|
189
|
+
value.provider,
|
|
190
|
+
value.authorizationId,
|
|
191
|
+
value.connectionId,
|
|
192
|
+
value.accountId,
|
|
193
|
+
value.targetId,
|
|
194
|
+
].some((item) => !item.trim()))
|
|
195
|
+
throw new Error('Revocation operation is incomplete.');
|
|
196
|
+
}
|
|
197
|
+
/*** Guard state updates from swapping the immutable revocation operation. */
|
|
198
|
+
function assertRevocationRecord(value) {
|
|
199
|
+
if (!value.operation.effectId.trim())
|
|
200
|
+
throw new Error('Revocation record is invalid.');
|
|
201
|
+
}
|
package/dist/features/trusted-social-manager-host/adapters/createConnectionFileSystemStoreAsync.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ConnectionRepositoryPort, ConnectionTargetDiscoveryPort, DelegatedAuthorizationAttempt, DelegatedAuthorizationRepositoryPort, ManagedConnection, RevocationRecord, RevocationRepositoryPort } from '@ankhorage/connection';
|
|
2
|
+
export type ConnectionFileSystemStore = Readonly<{
|
|
3
|
+
delegatedAuthorizationRepository: DelegatedAuthorizationRepositoryPort;
|
|
4
|
+
connectionRepository: ConnectionRepositoryPort;
|
|
5
|
+
targetDiscovery: ConnectionTargetDiscoveryPort;
|
|
6
|
+
revocationRepository: RevocationRepositoryPort;
|
|
7
|
+
listConnectionsAsync: (scope: Readonly<{
|
|
8
|
+
tenantId: string;
|
|
9
|
+
projectId: string;
|
|
10
|
+
environmentId: string;
|
|
11
|
+
actorId: string;
|
|
12
|
+
}>) => Promise<readonly ManagedConnection[]>;
|
|
13
|
+
}>;
|
|
14
|
+
export type ConnectionFileSystemDocument = Readonly<{
|
|
15
|
+
version: 1;
|
|
16
|
+
attempts: readonly DelegatedAuthorizationAttempt[];
|
|
17
|
+
connections: readonly ManagedConnection[];
|
|
18
|
+
revocations: readonly RevocationRecord[];
|
|
19
|
+
}>;
|
|
20
|
+
/***
|
|
21
|
+
* Create private single-writer filesystem persistence for Connection's credential-free ports.
|
|
22
|
+
* The directory is assigned to one process and one adapter instance; cross-process writers are
|
|
23
|
+
* deliberately unsupported and require a database adapter with external coordination.
|
|
24
|
+
*/
|
|
25
|
+
export declare function createConnectionFileSystemStoreAsync(directory: string): Promise<ConnectionFileSystemStore>;
|