anhedral 0.15.0 → 0.17.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 +82 -34
- package/assets/stack/ai-schema.ts.txt +5 -0
- package/assets/stack/ai.ts.txt +30 -0
- package/assets/stack/api-index.ts.txt +15 -0
- package/assets/stack/auth-features.ts.txt +4 -0
- package/assets/stack/auth-journal.json.txt +13 -0
- package/assets/stack/auth-migration.sql.txt +53 -0
- package/assets/stack/auth-routes.ts.txt +11 -0
- package/assets/stack/auth-schema.ts.txt +64 -0
- package/assets/stack/auth-snapshot.json.txt +346 -0
- package/assets/stack/auth.ts.txt +32 -0
- package/assets/stack/billing-mode.ts.txt +8 -0
- package/assets/stack/billing-schema.ts.txt +11 -0
- package/assets/stack/desktop.rs.txt +21 -0
- package/assets/stack/entitlement-guard.ts.txt +32 -0
- package/assets/stack/entitlements.ts.txt +8 -0
- package/assets/stack/events-schema.ts.txt +12 -0
- package/assets/stack/events.ts.txt +59 -0
- package/assets/stack/mobile-auth.ts.txt +25 -0
- package/assets/stack/mobile-billing.tsx.txt +63 -0
- package/assets/stack/mobile-session.tsx.txt +83 -0
- package/assets/stack/native-button.tsx.txt +108 -0
- package/assets/stack/native-global.css.txt +4 -0
- package/assets/stack/native-lib-utils.ts.txt +5 -0
- package/assets/stack/native-metro.config.js.txt +6 -0
- package/assets/stack/native-nativewind-env.d.ts.txt +1 -0
- package/assets/stack/native-tailwind.config.js.txt +73 -0
- package/assets/stack/native-text.tsx.txt +89 -0
- package/assets/stack/purchases.ts.txt +65 -0
- package/assets/stack/revenuecat.ts.txt +88 -0
- package/assets/stack/rtc-schema.ts.txt +10 -0
- package/assets/stack/rtc.ts.txt +122 -0
- package/assets/stack/security.ts.txt +31 -0
- package/assets/stack/storage.ts.txt +36 -0
- package/assets/stack/stripe.ts.txt +126 -0
- package/assets/stack/web-sign-in.tsx.txt +51 -0
- package/assets/ui/LICENSE.react-native-reusables +21 -0
- package/assets/ui/UPSTREAM.json +0 -11
- package/assets/ui/catalog.json +891 -0
- package/assets/ui/extensions/registry.json +6 -0
- package/dist/bin.js +7 -12
- package/dist/capabilities.d.ts +4 -33
- package/dist/capabilities.js +2 -66
- package/dist/capability-catalog.d.ts +83 -0
- package/dist/capability-catalog.js +121 -0
- package/dist/capability-command.d.ts +3 -0
- package/dist/capability-command.js +188 -0
- package/dist/capability-editor.d.ts +17 -0
- package/dist/capability-editor.js +97 -0
- package/dist/capability-recipes.d.ts +4 -0
- package/dist/capability-recipes.js +520 -0
- package/dist/capability-references.d.ts +4 -0
- package/dist/capability-references.js +7 -0
- package/dist/cli-commands.d.ts +1 -2
- package/dist/cli-commands.js +10 -104
- package/dist/cli-output.d.ts +1 -2
- package/dist/cli-output.js +6 -251
- package/dist/command-schema.js +39 -322
- package/dist/dependencies.d.ts +29 -9
- package/dist/dependencies.js +57 -64
- package/dist/index.d.ts +1 -42
- package/dist/index.js +1 -27
- package/dist/platforms/web.d.ts +1 -1
- package/dist/platforms/web.js +27 -75
- package/dist/project-config.d.ts +2 -13
- package/dist/project-config.js +10 -82
- package/dist/registry/options.js +1 -5
- package/dist/registry/resolve.d.ts +1 -1
- package/dist/registry/resolve.js +4 -10
- package/dist/registry/usage.js +3 -9
- package/dist/scaffold/backend.js +0 -3
- package/dist/scaffold/database.js +2 -1
- package/dist/scaffold/documentation.js +56 -25
- package/dist/scaffold/stack-documentation.js +1 -1
- package/dist/scaffold/storage.d.ts +2 -0
- package/dist/scaffold/storage.js +21 -0
- package/dist/scaffold/workspace.js +21 -22
- package/dist/stack-registry.d.ts +2 -10
- package/dist/stack-registry.js +12 -98
- package/dist/standard.js +1 -11
- package/dist/ui-catalog.d.ts +26 -0
- package/dist/ui-catalog.js +31 -0
- package/dist/ui-command.d.ts +3 -0
- package/dist/ui-command.js +219 -0
- package/dist/ui-project.d.ts +22 -0
- package/dist/ui-project.js +110 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/anhedral-stack.md +12 -23
- package/docs/assets/anhedral-stack-light.png +0 -0
- package/docs/assets/anhedral-stack.png +0 -0
- package/docs/capabilities.md +110 -0
- package/docs/native-ui.md +47 -0
- package/docs/software-factory.md +35 -50
- package/docs/stack-standard.md +19 -70
- package/docs/ui.md +33 -0
- package/docs/verification.md +6 -876
- package/package.json +21 -16
- package/assets/ui/native/button.tsx +0 -85
- package/assets/ui/native/card.tsx +0 -33
- package/assets/ui/native/dialog.tsx +0 -75
- package/assets/ui/native/input.tsx +0 -27
- package/assets/ui/native/label.tsx +0 -4
- package/assets/ui/native/layout.tsx +0 -26
- package/assets/ui/native/text.tsx +0 -20
- package/assets/ui/native/theme-switcher.tsx +0 -22
- package/assets/ui/theme-storage.ts +0 -25
- package/assets/ui/theme.tsx +0 -66
- package/dist/access.d.ts +0 -10
- package/dist/access.js +0 -93
- package/dist/auth-schema-snapshot.d.ts +0 -346
- package/dist/auth-schema-snapshot.js +0 -347
- package/dist/auth-schema.d.ts +0 -1
- package/dist/auth-schema.js +0 -57
- package/dist/capability-contract.d.ts +0 -47
- package/dist/capability-contract.js +0 -129
- package/dist/catalog-model.d.ts +0 -24
- package/dist/catalog-model.js +0 -1
- package/dist/catalog-registration.d.ts +0 -16
- package/dist/catalog-registration.js +0 -22
- package/dist/catalog-snapshot.d.ts +0 -5
- package/dist/catalog-snapshot.js +0 -97
- package/dist/cli-delivery.d.ts +0 -3
- package/dist/cli-delivery.js +0 -112
- package/dist/cloudflare.d.ts +0 -25
- package/dist/cloudflare.js +0 -226
- package/dist/delivery-evidence.d.ts +0 -62
- package/dist/delivery-evidence.js +0 -157
- package/dist/delivery.d.ts +0 -82
- package/dist/delivery.js +0 -489
- package/dist/inspector-model.d.ts +0 -123
- package/dist/inspector-model.js +0 -1
- package/dist/integration-service-readers.d.ts +0 -12
- package/dist/integration-service-readers.js +0 -92
- package/dist/lifecycle-model.d.ts +0 -15
- package/dist/lifecycle-model.js +0 -20
- package/dist/lifecycle.d.ts +0 -11
- package/dist/lifecycle.js +0 -91
- package/dist/management.d.ts +0 -3
- package/dist/management.js +0 -47
- package/dist/mobile-delivery.d.ts +0 -77
- package/dist/mobile-delivery.js +0 -370
- package/dist/platforms/mobile.d.ts +0 -2
- package/dist/platforms/mobile.js +0 -156
- package/dist/project-catalog.d.ts +0 -41
- package/dist/project-catalog.js +0 -288
- package/dist/project-inspector.d.ts +0 -4
- package/dist/project-inspector.js +0 -671
- package/dist/project-lifecycle.d.ts +0 -25
- package/dist/project-lifecycle.js +0 -57
- package/dist/project-state.d.ts +0 -47
- package/dist/project-state.js +0 -480
- package/dist/provider-auth.d.ts +0 -41
- package/dist/provider-auth.js +0 -180
- package/dist/provider-readiness.d.ts +0 -30
- package/dist/provider-readiness.js +0 -85
- package/dist/providers/adapters.d.ts +0 -17
- package/dist/providers/adapters.js +0 -103
- package/dist/providers/api.d.ts +0 -29
- package/dist/providers/api.js +0 -253
- package/dist/providers/config.d.ts +0 -15
- package/dist/providers/config.js +0 -136
- package/dist/providers/definitions.d.ts +0 -115
- package/dist/providers/definitions.js +0 -42
- package/dist/providers/provision.d.ts +0 -24
- package/dist/providers/provision.js +0 -76
- package/dist/providers/receipts.d.ts +0 -20
- package/dist/providers/receipts.js +0 -56
- package/dist/providers/recovery-verification.d.ts +0 -7
- package/dist/providers/recovery-verification.js +0 -52
- package/dist/providers/recovery.d.ts +0 -30
- package/dist/providers/recovery.js +0 -34
- package/dist/providers/runtime.d.ts +0 -10
- package/dist/providers/runtime.js +0 -234
- package/dist/providers/schema.d.ts +0 -28
- package/dist/providers/schema.js +0 -49
- package/dist/providers/state.d.ts +0 -55
- package/dist/providers/state.js +0 -283
- package/dist/provision.d.ts +0 -47
- package/dist/provision.js +0 -208
- package/dist/r2-service-data.d.ts +0 -2
- package/dist/r2-service-data.js +0 -136
- package/dist/readiness.d.ts +0 -23
- package/dist/readiness.js +0 -117
- package/dist/registry/add.d.ts +0 -24
- package/dist/registry/add.js +0 -210
- package/dist/registry/bootstrap.d.ts +0 -3
- package/dist/registry/bootstrap.js +0 -5
- package/dist/registry/commands.d.ts +0 -3
- package/dist/registry/commands.js +0 -83
- package/dist/registry/preview.d.ts +0 -11
- package/dist/registry/preview.js +0 -91
- package/dist/registry/receipt.d.ts +0 -3
- package/dist/registry/receipt.js +0 -68
- package/dist/repository.d.ts +0 -24
- package/dist/repository.js +0 -96
- package/dist/scaffold/auth.d.ts +0 -2
- package/dist/scaffold/auth.js +0 -76
- package/dist/scaffold/billing-config.d.ts +0 -1
- package/dist/scaffold/billing-config.js +0 -73
- package/dist/scaffold/billing-contracts.d.ts +0 -2
- package/dist/scaffold/billing-contracts.js +0 -48
- package/dist/scaffold/billing-providers.d.ts +0 -1
- package/dist/scaffold/billing-providers.js +0 -249
- package/dist/scaffold/billing-schema.d.ts +0 -1
- package/dist/scaffold/billing-schema.js +0 -34
- package/dist/scaffold/billing-security.d.ts +0 -1
- package/dist/scaffold/billing-security.js +0 -46
- package/dist/scaffold/billing-server.d.ts +0 -1
- package/dist/scaffold/billing-server.js +0 -139
- package/dist/scaffold/billing-store.d.ts +0 -1
- package/dist/scaffold/billing-store.js +0 -72
- package/dist/scaffold/billing.d.ts +0 -2
- package/dist/scaffold/billing.js +0 -208
- package/dist/scaffold/expo-auth.d.ts +0 -3
- package/dist/scaffold/expo-auth.js +0 -203
- package/dist/scaffold/expo-billing.d.ts +0 -3
- package/dist/scaffold/expo-billing.js +0 -257
- package/dist/scaffold/expo-runtime.d.ts +0 -3
- package/dist/scaffold/expo-runtime.js +0 -43
- package/dist/scaffold/integrations.d.ts +0 -2
- package/dist/scaffold/integrations.js +0 -11
- package/dist/scaffold/managed-email.d.ts +0 -3
- package/dist/scaffold/managed-email.js +0 -47
- package/dist/scaffold/native-ui.d.ts +0 -2
- package/dist/scaffold/native-ui.js +0 -69
- package/dist/scaffold/password-reset.d.ts +0 -1
- package/dist/scaffold/password-reset.js +0 -99
- package/dist/scaffold/private-files.d.ts +0 -2
- package/dist/scaffold/private-files.js +0 -78
- package/dist/scaffold/web-billing.d.ts +0 -2
- package/dist/scaffold/web-billing.js +0 -48
- package/dist/service-deletion.d.ts +0 -29
- package/dist/service-deletion.js +0 -195
- package/dist/service-descriptor.d.ts +0 -10
- package/dist/service-descriptor.js +0 -71
- package/dist/service-model.d.ts +0 -49
- package/dist/service-model.js +0 -8
- package/dist/service-operations.d.ts +0 -29
- package/dist/service-operations.js +0 -48
- package/dist/service-readers.d.ts +0 -8
- package/dist/service-readers.js +0 -216
- package/dist/services-command.d.ts +0 -39
- package/dist/services-command.js +0 -96
- package/dist/ship.d.ts +0 -35
- package/dist/ship.js +0 -107
package/dist/mobile-delivery.js
DELETED
|
@@ -1,370 +0,0 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
|
-
import { realpathSync, existsSync, writeFileSync, rmSync } from 'node:fs';
|
|
3
|
-
import { tmpdir } from 'node:os';
|
|
4
|
-
import { randomUUID } from 'node:crypto';
|
|
5
|
-
import { EAS_CLI_VERSION } from './dependencies.js';
|
|
6
|
-
import { readBoundedFile, MAX_PROJECT_JSON_BYTES } from './bounded-file.js';
|
|
7
|
-
import { requiredProviders } from './provider-auth.js';
|
|
8
|
-
import { planProviderProvisioning, provisionSelectedProviders } from './providers/provision.js';
|
|
9
|
-
import { configuredRuntime, runtimeTargets, RUNTIME_KEYS } from './providers/runtime.js';
|
|
10
|
-
import { CREDENTIALS } from './providers/api.js';
|
|
11
|
-
import { atomicJson, defaultRunner } from './project-state.js';
|
|
12
|
-
import { withLifecycleOperation } from './lifecycle.js';
|
|
13
|
-
function artifactUrl(value) {
|
|
14
|
-
if (typeof value !== 'string')
|
|
15
|
-
return undefined;
|
|
16
|
-
try {
|
|
17
|
-
const url = new URL(value);
|
|
18
|
-
if (url.protocol !== 'https:' || url.username || url.password)
|
|
19
|
-
return undefined;
|
|
20
|
-
return url.href;
|
|
21
|
-
}
|
|
22
|
-
catch {
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function pendingBuild(root, commit, options, projectId) {
|
|
27
|
-
const file = path.join(root, '.anhedral/mobile-build.pending.json');
|
|
28
|
-
if (!existsSync(file))
|
|
29
|
-
return undefined;
|
|
30
|
-
let pending;
|
|
31
|
-
try {
|
|
32
|
-
pending = JSON.parse(readBoundedFile(file, MAX_PROJECT_JSON_BYTES).toString('utf8'));
|
|
33
|
-
}
|
|
34
|
-
catch {
|
|
35
|
-
throw new Error('Invalid pending EAS build. Inspect the selected project before retrying.');
|
|
36
|
-
}
|
|
37
|
-
if (!pending ||
|
|
38
|
-
typeof pending !== 'object' ||
|
|
39
|
-
Array.isArray(pending) ||
|
|
40
|
-
pending.schemaVersion !== 1 ||
|
|
41
|
-
Object.keys(pending).some((key) => ![
|
|
42
|
-
'schemaVersion',
|
|
43
|
-
'status',
|
|
44
|
-
'commit',
|
|
45
|
-
'platform',
|
|
46
|
-
'profile',
|
|
47
|
-
'projectId',
|
|
48
|
-
'buildId',
|
|
49
|
-
].includes(key)) ||
|
|
50
|
-
![undefined, 'submitting', 'queued'].includes(pending.status) ||
|
|
51
|
-
pending.commit !== commit ||
|
|
52
|
-
pending.platform !== options.platform ||
|
|
53
|
-
pending.profile !== options.profile ||
|
|
54
|
-
pending.projectId !== projectId ||
|
|
55
|
-
(pending.status === 'submitting'
|
|
56
|
-
? Object.hasOwn(pending, 'buildId')
|
|
57
|
-
: typeof pending.buildId !== 'string' || !/^[a-zA-Z0-9-]{1,255}$/.test(pending.buildId)))
|
|
58
|
-
throw new Error('Pending EAS build differs from the selected source or profile.');
|
|
59
|
-
if (pending.status === 'submitting')
|
|
60
|
-
throw new Error('EAS submission has an unknown outcome. Reconcile the selected project before retrying.');
|
|
61
|
-
return pending;
|
|
62
|
-
}
|
|
63
|
-
/** EAS builds produce artifacts; store submission is a separate user action. */
|
|
64
|
-
export async function buildMobileApplication(root, options, run = defaultRunner) {
|
|
65
|
-
if (options.dryRun)
|
|
66
|
-
return executeMobileBuild(root, options, run);
|
|
67
|
-
// Validate local build configuration before creating an execution record.
|
|
68
|
-
await executeMobileBuild(root, { ...options, dryRun: true }, run);
|
|
69
|
-
return withLifecycleOperation(root, 'mobile', run, (session) => session.phase('mobile-build', () => executeMobileBuild(root, options, run)));
|
|
70
|
-
}
|
|
71
|
-
function mobileConfiguration(root, options) {
|
|
72
|
-
root = realpathSync(root);
|
|
73
|
-
if (!['ios', 'android'].includes(options.platform) ||
|
|
74
|
-
!/^[a-z][a-z0-9-]{0,63}$/.test(options.profile))
|
|
75
|
-
throw new Error('Select an explicit mobile platform and build profile.');
|
|
76
|
-
if (!requiredProviders(root).some((provider) => provider.id === 'expo'))
|
|
77
|
-
throw new Error('This project does not select Expo.');
|
|
78
|
-
const directory = realpathSync(path.join(root, 'apps/mobile'));
|
|
79
|
-
if (!directory.startsWith(root + path.sep))
|
|
80
|
-
throw new Error('Mobile app escapes project directory.');
|
|
81
|
-
let configuration;
|
|
82
|
-
try {
|
|
83
|
-
configuration = JSON.parse(readBoundedFile(path.join(directory, 'eas.json'), MAX_PROJECT_JSON_BYTES).toString('utf8'));
|
|
84
|
-
}
|
|
85
|
-
catch {
|
|
86
|
-
throw new Error('A valid EAS build configuration is required.');
|
|
87
|
-
}
|
|
88
|
-
const profile = configuration?.build?.[options.profile];
|
|
89
|
-
if (!profile || typeof profile !== 'object' || Array.isArray(profile))
|
|
90
|
-
throw new Error('Requested EAS profile is not configured.');
|
|
91
|
-
if (profile.extends)
|
|
92
|
-
throw new Error('Resolve inherited EAS profiles before automatic delivery.');
|
|
93
|
-
const selectedEnvironment = profile.environment ??
|
|
94
|
-
(profile.developmentClient
|
|
95
|
-
? 'development'
|
|
96
|
-
: profile.distribution === 'internal'
|
|
97
|
-
? 'preview'
|
|
98
|
-
: 'production');
|
|
99
|
-
if (!['development', 'preview', 'production'].includes(selectedEnvironment))
|
|
100
|
-
throw new Error('Select an explicit supported EAS environment.');
|
|
101
|
-
const args = [
|
|
102
|
-
'dlx',
|
|
103
|
-
`eas-cli@${EAS_CLI_VERSION}`,
|
|
104
|
-
'build',
|
|
105
|
-
'--platform',
|
|
106
|
-
options.platform,
|
|
107
|
-
'--profile',
|
|
108
|
-
options.profile,
|
|
109
|
-
'--non-interactive',
|
|
110
|
-
'--json',
|
|
111
|
-
'--no-wait',
|
|
112
|
-
];
|
|
113
|
-
return { root, options, directory, profile, selectedEnvironment, args };
|
|
114
|
-
}
|
|
115
|
-
function readMobileApplication(directory) {
|
|
116
|
-
const app = JSON.parse(readBoundedFile(path.join(directory, 'app.json'), MAX_PROJECT_JSON_BYTES).toString('utf8')).expo;
|
|
117
|
-
if (['app.config.js', 'app.config.ts'].some((file) => existsSync(path.join(directory, file))))
|
|
118
|
-
throw new Error('Automatic EAS setup requires a static app.json with explicit owner and slug.');
|
|
119
|
-
if (typeof app?.owner !== 'string' ||
|
|
120
|
-
!/^[a-zA-Z0-9_-]+$/.test(app.owner) ||
|
|
121
|
-
typeof app.slug !== 'string' ||
|
|
122
|
-
!/^[a-zA-Z0-9_-]+$/.test(app.slug))
|
|
123
|
-
throw new Error('Set the intended Expo owner and slug in app.json before shipping.');
|
|
124
|
-
return app;
|
|
125
|
-
}
|
|
126
|
-
function mobileEnvironment() {
|
|
127
|
-
const environment = { ...process.env, CI: '1', NO_COLOR: '1' };
|
|
128
|
-
// Expo keeps its own login credential; server/provider keys never reach native builds.
|
|
129
|
-
for (const key of [...Object.values(CREDENTIALS), ...RUNTIME_KEYS])
|
|
130
|
-
if (!key.startsWith('EXPO_PUBLIC_'))
|
|
131
|
-
delete environment[key];
|
|
132
|
-
for (const name of Object.keys(environment))
|
|
133
|
-
if (!name.startsWith('EXPO_PUBLIC_') &&
|
|
134
|
-
/SECRET|PASSWORD|ADMIN_KEY|API_KEY|DATABASE_URL|AUTHORIZATION/.test(name))
|
|
135
|
-
delete environment[name];
|
|
136
|
-
return environment;
|
|
137
|
-
}
|
|
138
|
-
async function mobileSource(root, environment, run) {
|
|
139
|
-
if (realpathSync((await run('git', ['rev-parse', '--show-toplevel'], root, environment)).trim()) !==
|
|
140
|
-
root ||
|
|
141
|
-
(await run('git', ['status', '--porcelain'], root, environment)).trim())
|
|
142
|
-
throw new Error('Mobile delivery requires a clean application Git repository.');
|
|
143
|
-
const commit = (await run('git', ['rev-parse', 'HEAD'], root, environment)).trim();
|
|
144
|
-
if (!/^[a-f0-9]{40,64}$/.test(commit))
|
|
145
|
-
throw new Error('Invalid mobile source commit.');
|
|
146
|
-
return commit;
|
|
147
|
-
}
|
|
148
|
-
const easCli = ['dlx', `eas-cli@${EAS_CLI_VERSION}`];
|
|
149
|
-
async function linkMobileProject({ configuration: { directory }, app, environment, run, }) {
|
|
150
|
-
const cli = easCli;
|
|
151
|
-
await run('pnpm', [...cli, 'project:init', '--non-interactive', '--force'], directory, environment);
|
|
152
|
-
const linked = JSON.parse(readBoundedFile(path.join(directory, 'app.json'), MAX_PROJECT_JSON_BYTES).toString('utf8')).expo;
|
|
153
|
-
if (linked?.owner !== app.owner ||
|
|
154
|
-
linked.slug !== app.slug ||
|
|
155
|
-
typeof linked.extra?.eas?.projectId !== 'string' ||
|
|
156
|
-
!/^[a-f0-9-]{36}$/i.test(linked.extra.eas.projectId))
|
|
157
|
-
throw new Error('EAS did not confirm a project link for the selected owner and slug. Inspect the account before retrying.');
|
|
158
|
-
return {
|
|
159
|
-
state: 'configuration-required',
|
|
160
|
-
deployed: false,
|
|
161
|
-
storeSubmission: false,
|
|
162
|
-
nextAction: 'Review and commit the EAS project link written to app.json, then run ship again.',
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
async function verifyMobileProject(session, projectId) {
|
|
166
|
-
const { configuration: { directory }, app, environment, run, } = session;
|
|
167
|
-
const cli = easCli;
|
|
168
|
-
const remote = await run('pnpm', [...cli, 'project:info'], directory, environment);
|
|
169
|
-
const remoteName = remote
|
|
170
|
-
.split(/\r?\n/)
|
|
171
|
-
.find((line) => /^fullName\s+/.test(line.trim()))
|
|
172
|
-
?.trim()
|
|
173
|
-
.split(/\s+/)[1];
|
|
174
|
-
const remoteId = remote
|
|
175
|
-
.split(/\r?\n/)
|
|
176
|
-
.find((line) => /^ID\s+/.test(line.trim()))
|
|
177
|
-
?.trim()
|
|
178
|
-
.split(/\s+/)[1];
|
|
179
|
-
if (remoteId !== projectId || remoteName !== `@${app.owner}/${app.slug}`)
|
|
180
|
-
throw new Error('EAS project identity differs from the selected owner and project.');
|
|
181
|
-
}
|
|
182
|
-
async function configureMobileEnvironment(session, values) {
|
|
183
|
-
const { configuration: { directory, selectedEnvironment }, environment, run, } = session;
|
|
184
|
-
const cli = easCli;
|
|
185
|
-
if (values && Object.keys(values).length) {
|
|
186
|
-
const file = path.join(tmpdir(), `anhedral-expo-${randomUUID()}.env`);
|
|
187
|
-
try {
|
|
188
|
-
writeFileSync(file, Object.entries(values)
|
|
189
|
-
.map(([key, value]) => `${key}=${JSON.stringify(value)}\n`)
|
|
190
|
-
.join(''), { mode: 0o600, flag: 'wx' });
|
|
191
|
-
await run('pnpm', [...cli, 'env:push', '--environment', selectedEnvironment, '--path', file, '--force'], directory, environment);
|
|
192
|
-
}
|
|
193
|
-
finally {
|
|
194
|
-
rmSync(file, { force: true });
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
async function requestMobileBuild(session, selection) {
|
|
199
|
-
const { configuration: { root, options, directory, args }, environment, run, } = session;
|
|
200
|
-
const { commit, projectId, values } = selection;
|
|
201
|
-
const cli = easCli;
|
|
202
|
-
const source = () => mobileSource(root, environment, run);
|
|
203
|
-
let builds;
|
|
204
|
-
let expectedBuildId;
|
|
205
|
-
const pendingFile = path.join(root, '.anhedral/mobile-build.pending.json');
|
|
206
|
-
try {
|
|
207
|
-
const pending = pendingBuild(root, commit, options, projectId);
|
|
208
|
-
if (pending) {
|
|
209
|
-
const buildId = pending.buildId;
|
|
210
|
-
if (!buildId)
|
|
211
|
-
throw new Error('Pending EAS build has no verified ID.');
|
|
212
|
-
expectedBuildId = buildId;
|
|
213
|
-
builds = [
|
|
214
|
-
JSON.parse(await run('pnpm', [...cli, 'build:view', buildId, '--json'], directory, environment)),
|
|
215
|
-
];
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
if ((await source()) !== commit)
|
|
219
|
-
throw new Error('Source changed before EAS build submission.');
|
|
220
|
-
// Record intent before the remote queue mutation, including lost or invalid responses.
|
|
221
|
-
atomicJson(pendingFile, {
|
|
222
|
-
schemaVersion: 1,
|
|
223
|
-
status: 'submitting',
|
|
224
|
-
commit,
|
|
225
|
-
platform: options.platform,
|
|
226
|
-
profile: options.profile,
|
|
227
|
-
projectId,
|
|
228
|
-
});
|
|
229
|
-
builds = JSON.parse(await run('pnpm', args, directory, { ...environment, ...values }));
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
catch {
|
|
233
|
-
throw new Error('EAS build did not return verified completion; inspect the selected Expo project before retrying.');
|
|
234
|
-
}
|
|
235
|
-
return { builds, expectedBuildId, pendingFile };
|
|
236
|
-
}
|
|
237
|
-
function validateMobileBuild(session, selection, builds, expectedBuildId) {
|
|
238
|
-
const { configuration: { options, profile, selectedEnvironment }, app, } = session;
|
|
239
|
-
const { commit, projectId } = selection;
|
|
240
|
-
if (!Array.isArray(builds) || builds.length !== 1)
|
|
241
|
-
throw new Error('EAS returned an unexpected build selection.');
|
|
242
|
-
const build = builds[0];
|
|
243
|
-
if (typeof build?.id !== 'string' || !/^[a-zA-Z0-9-]{1,255}$/.test(build.id))
|
|
244
|
-
throw new Error('EAS did not return a valid build ID.');
|
|
245
|
-
if (build.project?.id !== projectId ||
|
|
246
|
-
build.project?.ownerAccount?.name !== app.owner ||
|
|
247
|
-
build.project?.slug !== app.slug)
|
|
248
|
-
throw new Error('EAS build belongs to a different project.');
|
|
249
|
-
validateBuildProfile(build, options, profile, selectedEnvironment);
|
|
250
|
-
if (build.gitCommitHash !== commit)
|
|
251
|
-
throw new Error('EAS build source differs from the selected source commit.');
|
|
252
|
-
if (expectedBuildId && build.id !== expectedBuildId)
|
|
253
|
-
throw new Error('EAS returned a different build than the recorded selection.');
|
|
254
|
-
return build;
|
|
255
|
-
}
|
|
256
|
-
function validateBuildProfile(build, options, profile, selectedEnvironment) {
|
|
257
|
-
if (build.platform !== options.platform.toUpperCase() ||
|
|
258
|
-
build.buildProfile !== options.profile ||
|
|
259
|
-
(build.environment !== undefined && build.environment !== selectedEnvironment) ||
|
|
260
|
-
(options.platform === 'ios' && build.isForIosSimulator !== (profile.ios?.simulator === true)))
|
|
261
|
-
throw new Error('EAS build platform, profile or environment differs from the selected configuration.');
|
|
262
|
-
}
|
|
263
|
-
function mobileArtifact(options, profile) {
|
|
264
|
-
if (options.platform === 'ios')
|
|
265
|
-
return profile.ios?.simulator === true ? 'ios-simulator' : 'ipa';
|
|
266
|
-
return profile.android?.buildType === 'apk' ||
|
|
267
|
-
profile.distribution === 'internal' ||
|
|
268
|
-
profile.developmentClient === true
|
|
269
|
-
? 'apk'
|
|
270
|
-
: 'aab';
|
|
271
|
-
}
|
|
272
|
-
async function recordMobileBuild(session, selection, build, pendingFile) {
|
|
273
|
-
const { configuration: { root, options, profile }, app, environment, run, } = session;
|
|
274
|
-
const { commit, projectId } = selection;
|
|
275
|
-
const source = () => mobileSource(root, environment, run);
|
|
276
|
-
const downloadUrl = artifactUrl(build.artifacts?.applicationArchiveUrl ?? build.artifacts?.buildUrl);
|
|
277
|
-
atomicJson(pendingFile, {
|
|
278
|
-
schemaVersion: 1,
|
|
279
|
-
status: 'queued',
|
|
280
|
-
commit,
|
|
281
|
-
platform: options.platform,
|
|
282
|
-
profile: options.profile,
|
|
283
|
-
projectId,
|
|
284
|
-
buildId: build.id,
|
|
285
|
-
});
|
|
286
|
-
const buildPage = `https://expo.dev/accounts/${app.owner}/projects/${app.slug}/builds/${build.id}`;
|
|
287
|
-
if (['NEW', 'IN_QUEUE', 'IN_PROGRESS', 'PENDING_CANCEL'].includes(build.status ?? ''))
|
|
288
|
-
return {
|
|
289
|
-
schemaVersion: 1,
|
|
290
|
-
state: 'building',
|
|
291
|
-
buildId: build.id,
|
|
292
|
-
buildPageUrl: buildPage,
|
|
293
|
-
commit,
|
|
294
|
-
platform: options.platform,
|
|
295
|
-
profile: options.profile,
|
|
296
|
-
storeSubmission: false,
|
|
297
|
-
nextAction: 'Run the same ship command again to inspect this build without creating another build.',
|
|
298
|
-
};
|
|
299
|
-
if (build.status !== 'FINISHED' || !downloadUrl)
|
|
300
|
-
throw new Error('EAS has not confirmed a completed downloadable build. Inspect the recorded build before retrying.');
|
|
301
|
-
if ((await source()) !== commit)
|
|
302
|
-
throw new Error('Source changed during mobile build; do not treat this artifact as the current release.');
|
|
303
|
-
const result = {
|
|
304
|
-
schemaVersion: 1,
|
|
305
|
-
projectId,
|
|
306
|
-
owner: app.owner,
|
|
307
|
-
slug: app.slug,
|
|
308
|
-
recordedAt: new Date().toISOString(),
|
|
309
|
-
// Identity validation already matched the provider owner/slug to the local app.
|
|
310
|
-
buildPageUrl: buildPage,
|
|
311
|
-
commit,
|
|
312
|
-
platform: options.platform,
|
|
313
|
-
profile: options.profile,
|
|
314
|
-
buildId: build.id,
|
|
315
|
-
downloadUrl,
|
|
316
|
-
state: 'built',
|
|
317
|
-
storeSubmission: false,
|
|
318
|
-
artifact: mobileArtifact(options, profile),
|
|
319
|
-
};
|
|
320
|
-
atomicJson(path.join(root, '.anhedral/mobile-build.json'), result);
|
|
321
|
-
rmSync(pendingFile, { force: true });
|
|
322
|
-
return result;
|
|
323
|
-
}
|
|
324
|
-
async function executeMobileBuild(root, options, run) {
|
|
325
|
-
const configuration = mobileConfiguration(root, options);
|
|
326
|
-
root = configuration.root;
|
|
327
|
-
if (options.dryRun)
|
|
328
|
-
return {
|
|
329
|
-
platform: options.platform,
|
|
330
|
-
profile: options.profile,
|
|
331
|
-
command: ['pnpm', ...configuration.args],
|
|
332
|
-
mutation: false,
|
|
333
|
-
storeSubmission: false,
|
|
334
|
-
integrations: planProviderProvisioning(root),
|
|
335
|
-
};
|
|
336
|
-
const app = readMobileApplication(configuration.directory);
|
|
337
|
-
const environment = mobileEnvironment();
|
|
338
|
-
const session = { configuration, app, environment, run };
|
|
339
|
-
const source = () => mobileSource(root, environment, run);
|
|
340
|
-
const initialCommit = await source();
|
|
341
|
-
// Unknown submissions must stop before checks, provisioning or remote configuration.
|
|
342
|
-
pendingBuild(root, initialCommit, options, app.extra?.eas?.projectId);
|
|
343
|
-
await run('pnpm', ['run', 'check'], root, environment);
|
|
344
|
-
if ((await source()) !== initialCommit)
|
|
345
|
-
throw new Error('Source changed during mobile checks.');
|
|
346
|
-
const configured = await provisionSelectedProviders(root, false, run);
|
|
347
|
-
if (!configured.ready)
|
|
348
|
-
return {
|
|
349
|
-
state: 'provider-configuration-required',
|
|
350
|
-
deployed: false,
|
|
351
|
-
integrations: configured,
|
|
352
|
-
storeSubmission: false,
|
|
353
|
-
};
|
|
354
|
-
const runtime = configuredRuntime(root);
|
|
355
|
-
const commit = await source();
|
|
356
|
-
if (commit !== initialCommit)
|
|
357
|
-
throw new Error('Source changed during provider configuration.');
|
|
358
|
-
if (!app.extra?.eas?.projectId)
|
|
359
|
-
return linkMobileProject(session);
|
|
360
|
-
const projectId = app.extra.eas.projectId;
|
|
361
|
-
if (typeof projectId !== 'string' || !/^[a-f0-9-]{36}$/i.test(projectId))
|
|
362
|
-
throw new Error('Invalid EAS project ID.');
|
|
363
|
-
await verifyMobileProject(session, projectId);
|
|
364
|
-
const values = runtimeTargets(root, runtime)['apps/mobile/.env.local'];
|
|
365
|
-
await configureMobileEnvironment(session, values);
|
|
366
|
-
const selection = { commit, projectId, values };
|
|
367
|
-
const { builds, expectedBuildId, pendingFile } = await requestMobileBuild(session, selection);
|
|
368
|
-
const build = validateMobileBuild(session, selection, builds, expectedBuildId);
|
|
369
|
-
return recordMobileBuild(session, selection, build, pendingFile);
|
|
370
|
-
}
|
package/dist/platforms/mobile.js
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { NATIVE_ESLINT_VERSION } from '../dependencies.js';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import { writeReactLintConfig } from './lint.js';
|
|
4
|
-
import { appendGitignore, writeFile } from '../util.js';
|
|
5
|
-
import { childPackageName, jsString } from '../render.js';
|
|
6
|
-
import { MOBILE_APP_DEPENDENCIES, EAS_CLI_VERSION } from '../dependencies.js';
|
|
7
|
-
import { scaffoldNativeUI } from '../scaffold/native-ui.js';
|
|
8
|
-
import { scaffoldExpoRuntime } from '../scaffold/expo-runtime.js';
|
|
9
|
-
function expoScheme(projectName) {
|
|
10
|
-
const unscoped = projectName.replace(/^@[^/]+\//, '');
|
|
11
|
-
const safe = unscoped.toLowerCase().replace(/[^a-z0-9+.-]+/g, '-');
|
|
12
|
-
let start = 0;
|
|
13
|
-
let end = safe.length;
|
|
14
|
-
while (start < end && '+.-'.includes(safe[start]))
|
|
15
|
-
start++;
|
|
16
|
-
while (end > start && '+.-'.includes(safe[end - 1]))
|
|
17
|
-
end--;
|
|
18
|
-
const normalized = safe.slice(start, end);
|
|
19
|
-
const candidate = normalized || 'app';
|
|
20
|
-
return /^[a-z]/.test(candidate) ? candidate : `app-${candidate}`;
|
|
21
|
-
}
|
|
22
|
-
export async function scaffoldExpo(context) {
|
|
23
|
-
const { root, options } = context;
|
|
24
|
-
const dir = path.join(root, 'apps/mobile');
|
|
25
|
-
const projectName = options.name;
|
|
26
|
-
const displayName = options.name;
|
|
27
|
-
const nameLiteral = jsString(displayName);
|
|
28
|
-
writeReactLintConfig(dir);
|
|
29
|
-
writeFile(path.join(dir, 'babel.config.js'), "module.exports = function(api) { api.cache(true); return { presets: ['babel-preset-expo'] }; };\n");
|
|
30
|
-
writeFile(path.join(dir, 'package.json'), JSON.stringify({
|
|
31
|
-
name: childPackageName(projectName, 'mobile'),
|
|
32
|
-
version: '0.1.0',
|
|
33
|
-
private: true,
|
|
34
|
-
main: 'expo-router/entry',
|
|
35
|
-
scripts: {
|
|
36
|
-
android: 'expo start -c --android',
|
|
37
|
-
ios: 'expo start -c --ios',
|
|
38
|
-
start: 'expo start -c',
|
|
39
|
-
build: 'pnpm typecheck',
|
|
40
|
-
typecheck: 'tsc --noEmit',
|
|
41
|
-
lint: 'eslint . --max-warnings 0',
|
|
42
|
-
'eas:login': `pnpm dlx eas-cli@${EAS_CLI_VERSION} login`,
|
|
43
|
-
'build:simulator:ios': `pnpm dlx eas-cli@${EAS_CLI_VERSION} build --platform ios --profile simulator`,
|
|
44
|
-
'build:internal:ios': `pnpm dlx eas-cli@${EAS_CLI_VERSION} build --platform ios --profile preview`,
|
|
45
|
-
'build:internal:android': `pnpm dlx eas-cli@${EAS_CLI_VERSION} build --platform android --profile preview`,
|
|
46
|
-
'build:production:ios': `pnpm dlx eas-cli@${EAS_CLI_VERSION} build --platform ios --profile production`,
|
|
47
|
-
'build:production:android': `pnpm dlx eas-cli@${EAS_CLI_VERSION} build --platform android --profile production`,
|
|
48
|
-
},
|
|
49
|
-
dependencies: {
|
|
50
|
-
...MOBILE_APP_DEPENDENCIES.dependencies,
|
|
51
|
-
'@workspace/native-ui': 'workspace:*',
|
|
52
|
-
'@workspace/styling': 'workspace:*',
|
|
53
|
-
},
|
|
54
|
-
devDependencies: {
|
|
55
|
-
...MOBILE_APP_DEPENDENCIES.devDependencies,
|
|
56
|
-
'@workspace/eslint-config': 'workspace:*',
|
|
57
|
-
eslint: NATIVE_ESLINT_VERSION,
|
|
58
|
-
},
|
|
59
|
-
}, null, 2) + '\n');
|
|
60
|
-
writeFile(path.join(dir, 'app.json'), JSON.stringify({
|
|
61
|
-
expo: {
|
|
62
|
-
name: displayName,
|
|
63
|
-
slug: projectName.replace(/^@[^/]+\//, ''),
|
|
64
|
-
version: '1.0.0',
|
|
65
|
-
orientation: 'portrait',
|
|
66
|
-
userInterfaceStyle: 'automatic',
|
|
67
|
-
scheme: expoScheme(projectName),
|
|
68
|
-
platforms: ['ios', 'android'],
|
|
69
|
-
plugins: ['expo-router', 'expo-status-bar'],
|
|
70
|
-
experiments: { reactCompiler: true, typedRoutes: true },
|
|
71
|
-
},
|
|
72
|
-
}, null, 2) + '\n');
|
|
73
|
-
writeFile(path.join(dir, 'tsconfig.json'), JSON.stringify({
|
|
74
|
-
extends: 'expo/tsconfig.base',
|
|
75
|
-
compilerOptions: {
|
|
76
|
-
strict: true,
|
|
77
|
-
noUncheckedIndexedAccess: true,
|
|
78
|
-
paths: { '@/*': ['./*'] },
|
|
79
|
-
},
|
|
80
|
-
include: ['**/*.ts', '**/*.tsx', '.expo/types/**/*.ts', 'expo-env.d.ts'],
|
|
81
|
-
exclude: ['node_modules', 'worker', '.output', 'worker-configuration.d.ts'],
|
|
82
|
-
}, null, 2) + '\n');
|
|
83
|
-
scaffoldNativeUI(root);
|
|
84
|
-
writeFile(path.join(dir, 'components/ui/button.tsx'), "export { Button } from '@workspace/native-ui';\n");
|
|
85
|
-
writeFile(path.join(dir, 'app/_layout.tsx'), `import '@/lib/development-client';
|
|
86
|
-
import { ThemeProvider } from '@workspace/native-ui';
|
|
87
|
-
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
88
|
-
import { Stack } from 'expo-router';
|
|
89
|
-
|
|
90
|
-
export default function RootLayout() {
|
|
91
|
-
return <SafeAreaProvider><ThemeProvider><Stack /></ThemeProvider></SafeAreaProvider>;
|
|
92
|
-
}
|
|
93
|
-
`);
|
|
94
|
-
writeFile(path.join(dir, 'lib/development-client.ts'), 'export {};\n');
|
|
95
|
-
writeFile(path.join(dir, 'lib/development-client.native.ts'), "import 'expo-dev-client';\n");
|
|
96
|
-
writeFile(path.join(dir, 'app/index.tsx'), `import { useEffect, useState } from 'react';
|
|
97
|
-
import { api } from '@/lib/api-client';
|
|
98
|
-
import { StatusBar } from 'expo-status-bar';
|
|
99
|
-
import { Linking } from 'react-native';
|
|
100
|
-
import { Screen, Stack, Text } from '@workspace/native-ui';
|
|
101
|
-
import { Button } from '@/components/ui/button';
|
|
102
|
-
|
|
103
|
-
export default function HomeScreen() {
|
|
104
|
-
const [connection, setConnection] = useState('Connecting to the API…');
|
|
105
|
-
const [pending, setPending] = useState(true);
|
|
106
|
-
useEffect(() => {
|
|
107
|
-
let active = true;
|
|
108
|
-
void api.health().then(
|
|
109
|
-
() => { if (active) setConnection('API connected'); },
|
|
110
|
-
() => { if (active) setConnection('Unable to reach the API. Check the server and device API origin.'); },
|
|
111
|
-
).finally(() => { if (active) setPending(false); });
|
|
112
|
-
return () => { active = false; };
|
|
113
|
-
}, []);
|
|
114
|
-
async function checkConnection() {
|
|
115
|
-
setPending(true);
|
|
116
|
-
setConnection('Connecting to the API…');
|
|
117
|
-
try { await api.health(); setConnection('API connected'); }
|
|
118
|
-
catch { setConnection('Unable to reach the API. Check the server and device API origin.'); }
|
|
119
|
-
finally { setPending(false); }
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
return <Screen><StatusBar style="auto" /><Stack>
|
|
123
|
-
<Text variant="heading" accessibilityRole="header">{${nameLiteral}}</Text>
|
|
124
|
-
<Text variant="muted">Native iOS and Android application generated by Anhedral.</Text>
|
|
125
|
-
<Text accessibilityLiveRegion="polite">{connection}</Text>
|
|
126
|
-
<Button disabled={pending} onPress={() => void checkConnection()}>{pending ? 'Connecting…' : 'Check API connection'}</Button>
|
|
127
|
-
<Button onPress={() => void Linking.openURL('https://docs.expo.dev')}>Learn more</Button>
|
|
128
|
-
</Stack></Screen>;
|
|
129
|
-
}
|
|
130
|
-
`);
|
|
131
|
-
writeFile(path.join(dir, '.env.example'), '');
|
|
132
|
-
writeFile(path.join(dir, 'eas.json'), JSON.stringify({
|
|
133
|
-
cli: { version: '>= 16.0.0' },
|
|
134
|
-
build: {
|
|
135
|
-
development: { developmentClient: true, distribution: 'internal' },
|
|
136
|
-
preview: {
|
|
137
|
-
environment: 'preview',
|
|
138
|
-
distribution: 'internal',
|
|
139
|
-
android: { buildType: 'apk' },
|
|
140
|
-
},
|
|
141
|
-
simulator: { environment: 'preview', ios: { simulator: true } },
|
|
142
|
-
production: { environment: 'production', autoIncrement: true },
|
|
143
|
-
},
|
|
144
|
-
}, null, 2) + '\n');
|
|
145
|
-
scaffoldExpoRuntime(context);
|
|
146
|
-
appendGitignore(dir, [
|
|
147
|
-
'.env',
|
|
148
|
-
'.env.*',
|
|
149
|
-
'!.env.example',
|
|
150
|
-
'.expo',
|
|
151
|
-
'.wrangler',
|
|
152
|
-
'.output',
|
|
153
|
-
'dist',
|
|
154
|
-
'node_modules',
|
|
155
|
-
]);
|
|
156
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import type { Dashboard, DashboardTool, ToolArguments } from './catalog-model.js';
|
|
3
|
-
export type CatalogErrorCode = 'CATALOG_BUSY' | 'CATALOG_INVALID' | 'PROJECT_NOT_FOUND' | 'PROJECT_UNAVAILABLE' | 'INVALID_INPUT' | 'CATALOG_FAILURE';
|
|
4
|
-
export declare class CatalogError extends Error {
|
|
5
|
-
readonly code: CatalogErrorCode;
|
|
6
|
-
constructor(code: CatalogErrorCode);
|
|
7
|
-
}
|
|
8
|
-
export declare function catalogFailure(error: unknown): {
|
|
9
|
-
message: string;
|
|
10
|
-
nextAction: string;
|
|
11
|
-
code: CatalogErrorCode;
|
|
12
|
-
};
|
|
13
|
-
declare const entrySchema: z.ZodObject<{
|
|
14
|
-
id: z.ZodString;
|
|
15
|
-
root: z.ZodString;
|
|
16
|
-
name: z.ZodString;
|
|
17
|
-
updatedAt: z.ZodString;
|
|
18
|
-
sourceIdentity: z.ZodOptional<z.ZodString>;
|
|
19
|
-
}, z.core.$strict>;
|
|
20
|
-
export type ProjectEntry = z.infer<typeof entrySchema>;
|
|
21
|
-
export declare class ProjectStore {
|
|
22
|
-
readonly directory: string;
|
|
23
|
-
readonly file: string;
|
|
24
|
-
constructor(directory: string);
|
|
25
|
-
private read;
|
|
26
|
-
private write;
|
|
27
|
-
register(root: string, displayName?: string): string;
|
|
28
|
-
private mutate;
|
|
29
|
-
/** Explicit local operator recovery only; uncertain ownership never removes a lock. */
|
|
30
|
-
recoverCatalogLock(): {
|
|
31
|
-
recovered: boolean;
|
|
32
|
-
};
|
|
33
|
-
context(id: string): {
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
directory: string;
|
|
37
|
-
};
|
|
38
|
-
snapshot(selectedId?: string | null): Dashboard;
|
|
39
|
-
call(tool: DashboardTool, raw: ToolArguments): Dashboard;
|
|
40
|
-
}
|
|
41
|
-
export {};
|