@layers/amba 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +56 -0
- package/dist/_internal/codegen.d.ts +29 -0
- package/dist/_internal/shared.d.ts +42 -0
- package/dist/api-client.d.ts +671 -0
- package/dist/auth.d.ts +69 -0
- package/dist/bundle.d.ts +69 -0
- package/dist/commands/ai.d.ts +35 -0
- package/dist/commands/analytics.d.ts +14 -0
- package/dist/commands/collections.d.ts +48 -0
- package/dist/commands/config.d.ts +2 -0
- package/dist/commands/db.d.ts +4 -0
- package/dist/commands/functions-logs.d.ts +30 -0
- package/dist/commands/functions.d.ts +79 -0
- package/dist/commands/init.d.ts +12 -0
- package/dist/commands/login.d.ts +1 -0
- package/dist/commands/logs.d.ts +16 -0
- package/dist/commands/projects.d.ts +11 -0
- package/dist/commands/push.d.ts +1 -0
- package/dist/commands/schema.d.ts +7 -0
- package/dist/commands/secrets.d.ts +29 -0
- package/dist/commands/seed.d.ts +6 -0
- package/dist/commands/sites.d.ts +84 -0
- package/dist/commands/status.d.ts +4 -0
- package/dist/commands/types.d.ts +14 -0
- package/dist/context-files.d.ts +12 -0
- package/dist/env.d.ts +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3716 -0
- package/dist/project-config.d.ts +16 -0
- package/package.json +57 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Local project config loader.
|
|
3
|
+
*
|
|
4
|
+
* `amba init` writes `.env.local` with `AMBA_PROJECT_ID` + `AMBA_API_KEY`.
|
|
5
|
+
* Subsequent commands resolve the active project by reading `.env.local`
|
|
6
|
+
* (or the OS env if exported); fail with a clear "run amba init first"
|
|
7
|
+
* error if neither is set.
|
|
8
|
+
*
|
|
9
|
+
* Kept tiny on purpose — the CLI's full config story (per-environment
|
|
10
|
+
* dev/prod selection) is a v2 follow-up; v1 just needs project id.
|
|
11
|
+
*/
|
|
12
|
+
export interface ProjectConfig {
|
|
13
|
+
projectId: string;
|
|
14
|
+
apiUrl: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function loadProjectConfig(cwd?: string): Promise<ProjectConfig>;
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@layers/amba",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "amba — agent-native backend-as-a-service. Functions, collections, storage, AI gateway, email, queues, sites — one CLI, per-tenant Postgres + Cloudflare edge. `npx amba init` to start.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"amba": "dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=22"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://amba.dev",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/layers/amba-cli.git"
|
|
23
|
+
},
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/layers/amba-cli/issues"
|
|
26
|
+
},
|
|
27
|
+
"license": "Apache-2.0",
|
|
28
|
+
"keywords": [
|
|
29
|
+
"amba",
|
|
30
|
+
"baas",
|
|
31
|
+
"backend",
|
|
32
|
+
"cli",
|
|
33
|
+
"cloudflare-workers",
|
|
34
|
+
"neon",
|
|
35
|
+
"postgres",
|
|
36
|
+
"agent",
|
|
37
|
+
"functions",
|
|
38
|
+
"collections"
|
|
39
|
+
],
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"commander": "^13.1.0",
|
|
42
|
+
"esbuild": "^0.24.2",
|
|
43
|
+
"open": "^10.1.2",
|
|
44
|
+
"picocolors": "^1.1.1"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@types/node": "^22.10.2",
|
|
48
|
+
"tsdown": "^0.12.5",
|
|
49
|
+
"typescript": "^5.8.3"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "tsdown && tsc --emitDeclarationOnly",
|
|
53
|
+
"dev": "tsdown --watch",
|
|
54
|
+
"typecheck": "tsc --noEmit",
|
|
55
|
+
"clean": "rm -rf dist"
|
|
56
|
+
}
|
|
57
|
+
}
|