everything-dev 0.3.2 → 1.3.2
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 +64 -0
- package/cli.js +10 -0
- package/dist/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/api-contract.cjs +172 -0
- package/dist/api-contract.cjs.map +1 -0
- package/dist/api-contract.mjs +171 -0
- package/dist/api-contract.mjs.map +1 -0
- package/dist/api.cjs +124 -0
- package/dist/api.cjs.map +1 -0
- package/dist/api.d.cts +36 -0
- package/dist/api.d.cts.map +1 -0
- package/dist/api.d.mts +36 -0
- package/dist/api.d.mts.map +1 -0
- package/dist/api.mjs +119 -0
- package/dist/api.mjs.map +1 -0
- package/dist/app.cjs +156 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.mjs +153 -0
- package/dist/app.mjs.map +1 -0
- package/dist/cli/catalog.cjs +30 -0
- package/dist/cli/catalog.cjs.map +1 -0
- package/dist/cli/catalog.mjs +29 -0
- package/dist/cli/catalog.mjs.map +1 -0
- package/dist/cli/help.cjs +16 -0
- package/dist/cli/help.cjs.map +1 -0
- package/dist/cli/help.mjs +16 -0
- package/dist/cli/help.mjs.map +1 -0
- package/dist/cli/init.cjs +317 -0
- package/dist/cli/init.cjs.map +1 -0
- package/dist/cli/init.d.cts +36 -0
- package/dist/cli/init.d.cts.map +1 -0
- package/dist/cli/init.d.mts +36 -0
- package/dist/cli/init.d.mts.map +1 -0
- package/dist/cli/init.mjs +309 -0
- package/dist/cli/init.mjs.map +1 -0
- package/dist/cli/parse.cjs +96 -0
- package/dist/cli/parse.cjs.map +1 -0
- package/dist/cli/parse.mjs +95 -0
- package/dist/cli/parse.mjs.map +1 -0
- package/dist/cli/prompts.cjs +42 -0
- package/dist/cli/prompts.cjs.map +1 -0
- package/dist/cli/prompts.mjs +41 -0
- package/dist/cli/prompts.mjs.map +1 -0
- package/dist/cli.cjs +167 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +166 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/components/dev-view.cjs +307 -0
- package/dist/components/dev-view.cjs.map +1 -0
- package/dist/components/dev-view.mjs +306 -0
- package/dist/components/dev-view.mjs.map +1 -0
- package/dist/components/streaming-view.cjs +146 -0
- package/dist/components/streaming-view.cjs.map +1 -0
- package/dist/components/streaming-view.mjs +144 -0
- package/dist/components/streaming-view.mjs.map +1 -0
- package/dist/config.cjs +280 -0
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.cts +35 -0
- package/dist/config.d.cts.map +1 -0
- package/dist/config.d.mts +35 -0
- package/dist/config.d.mts.map +1 -0
- package/dist/config.mjs +266 -0
- package/dist/config.mjs.map +1 -0
- package/dist/contract.cjs +209 -0
- package/dist/contract.cjs.map +1 -0
- package/dist/contract.d.cts +490 -0
- package/dist/contract.d.cts.map +1 -0
- package/dist/contract.d.mts +490 -0
- package/dist/contract.d.mts.map +1 -0
- package/dist/contract.meta.cjs +104 -0
- package/dist/contract.meta.cjs.map +1 -0
- package/dist/contract.meta.d.cts +141 -0
- package/dist/contract.meta.d.cts.map +1 -0
- package/dist/contract.meta.d.mts +141 -0
- package/dist/contract.meta.d.mts.map +1 -0
- package/dist/contract.meta.mjs +102 -0
- package/dist/contract.meta.mjs.map +1 -0
- package/dist/contract.mjs +186 -0
- package/dist/contract.mjs.map +1 -0
- package/dist/dev-logs.cjs +53 -0
- package/dist/dev-logs.cjs.map +1 -0
- package/dist/dev-logs.mjs +51 -0
- package/dist/dev-logs.mjs.map +1 -0
- package/dist/dev-session.cjs +195 -0
- package/dist/dev-session.cjs.map +1 -0
- package/dist/dev-session.mjs +194 -0
- package/dist/dev-session.mjs.map +1 -0
- package/dist/fastkv.cjs +89 -0
- package/dist/fastkv.cjs.map +1 -0
- package/dist/fastkv.d.cts +11 -0
- package/dist/fastkv.d.cts.map +1 -0
- package/dist/fastkv.d.mts +11 -0
- package/dist/fastkv.d.mts.map +1 -0
- package/dist/fastkv.mjs +82 -0
- package/dist/fastkv.mjs.map +1 -0
- package/dist/federation.server.cjs +27 -0
- package/dist/federation.server.cjs.map +1 -0
- package/dist/federation.server.mjs +27 -0
- package/dist/federation.server.mjs.map +1 -0
- package/dist/host.cjs +367 -0
- package/dist/host.cjs.map +1 -0
- package/dist/host.d.cts +22 -0
- package/dist/host.d.cts.map +1 -0
- package/dist/host.d.mts +22 -0
- package/dist/host.d.mts.map +1 -0
- package/dist/host.mjs +364 -0
- package/dist/host.mjs.map +1 -0
- package/dist/index.cjs +122 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.mjs +9 -0
- package/dist/integrity.cjs +39 -0
- package/dist/integrity.cjs.map +1 -0
- package/dist/integrity.d.cts +7 -0
- package/dist/integrity.d.cts.map +1 -0
- package/dist/integrity.d.mts +7 -0
- package/dist/integrity.d.mts.map +1 -0
- package/dist/integrity.mjs +35 -0
- package/dist/integrity.mjs.map +1 -0
- package/dist/mf.cjs +77 -0
- package/dist/mf.cjs.map +1 -0
- package/dist/mf.d.cts +19 -0
- package/dist/mf.d.cts.map +1 -0
- package/dist/mf.d.mts +19 -0
- package/dist/mf.d.mts.map +1 -0
- package/dist/mf.mjs +71 -0
- package/dist/mf.mjs.map +1 -0
- package/dist/near-cli.cjs +196 -0
- package/dist/near-cli.cjs.map +1 -0
- package/dist/near-cli.mjs +193 -0
- package/dist/near-cli.mjs.map +1 -0
- package/dist/network.cjs +9 -0
- package/dist/network.cjs.map +1 -0
- package/dist/network.mjs +8 -0
- package/dist/network.mjs.map +1 -0
- package/dist/orchestrator.cjs +441 -0
- package/dist/orchestrator.cjs.map +1 -0
- package/dist/orchestrator.d.cts +40 -0
- package/dist/orchestrator.d.cts.map +1 -0
- package/dist/orchestrator.d.mts +40 -0
- package/dist/orchestrator.d.mts.map +1 -0
- package/dist/orchestrator.mjs +436 -0
- package/dist/orchestrator.mjs.map +1 -0
- package/dist/plugin.cjs +825 -0
- package/dist/plugin.cjs.map +1 -0
- package/dist/plugin.d.cts +347 -0
- package/dist/plugin.d.cts.map +1 -0
- package/dist/plugin.d.mts +348 -0
- package/dist/plugin.d.mts.map +1 -0
- package/dist/plugin.mjs +822 -0
- package/dist/plugin.mjs.map +1 -0
- package/dist/process-registry.cjs +120 -0
- package/dist/process-registry.cjs.map +1 -0
- package/dist/process-registry.d.cts +25 -0
- package/dist/process-registry.d.cts.map +1 -0
- package/dist/process-registry.d.mts +25 -0
- package/dist/process-registry.d.mts.map +1 -0
- package/dist/process-registry.mjs +119 -0
- package/dist/process-registry.mjs.map +1 -0
- package/dist/sdk.cjs +61 -0
- package/dist/sdk.d.cts +5 -0
- package/dist/sdk.d.mts +5 -0
- package/dist/sdk.mjs +6 -0
- package/dist/shared.cjs +143 -0
- package/dist/shared.cjs.map +1 -0
- package/dist/shared.d.cts +33 -0
- package/dist/shared.d.cts.map +1 -0
- package/dist/shared.d.mts +33 -0
- package/dist/shared.d.mts.map +1 -0
- package/dist/shared.mjs +140 -0
- package/dist/shared.mjs.map +1 -0
- package/dist/types.cjs +160 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +269 -0
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.mts +269 -0
- package/dist/types.d.mts.map +1 -0
- package/dist/types.mjs +144 -0
- package/dist/types.mjs.map +1 -0
- package/dist/ui/head.cjs +67 -0
- package/dist/ui/head.cjs.map +1 -0
- package/dist/ui/head.d.cts +19 -0
- package/dist/ui/head.d.cts.map +1 -0
- package/dist/ui/head.d.mts +19 -0
- package/dist/ui/head.d.mts.map +1 -0
- package/dist/ui/head.mjs +61 -0
- package/dist/ui/head.mjs.map +1 -0
- package/dist/ui/index.cjs +32 -0
- package/dist/ui/index.d.cts +7 -0
- package/dist/ui/index.d.mts +7 -0
- package/dist/ui/index.mjs +6 -0
- package/dist/ui/metadata.cjs +106 -0
- package/dist/ui/metadata.cjs.map +1 -0
- package/dist/ui/metadata.d.cts +35 -0
- package/dist/ui/metadata.d.cts.map +1 -0
- package/dist/ui/metadata.d.mts +35 -0
- package/dist/ui/metadata.d.mts.map +1 -0
- package/dist/ui/metadata.mjs +100 -0
- package/dist/ui/metadata.mjs.map +1 -0
- package/dist/ui/router.cjs +56 -0
- package/dist/ui/router.cjs.map +1 -0
- package/dist/ui/router.d.cts +11 -0
- package/dist/ui/router.d.cts.map +1 -0
- package/dist/ui/router.d.mts +11 -0
- package/dist/ui/router.d.mts.map +1 -0
- package/dist/ui/router.mjs +51 -0
- package/dist/ui/router.mjs.map +1 -0
- package/dist/ui/runtime.cjs +65 -0
- package/dist/ui/runtime.cjs.map +1 -0
- package/dist/ui/runtime.d.cts +29 -0
- package/dist/ui/runtime.d.cts.map +1 -0
- package/dist/ui/runtime.d.mts +29 -0
- package/dist/ui/runtime.d.mts.map +1 -0
- package/dist/ui/runtime.mjs +53 -0
- package/dist/ui/runtime.mjs.map +1 -0
- package/dist/ui/types.cjs +0 -0
- package/dist/ui/types.d.cts +52 -0
- package/dist/ui/types.d.cts.map +1 -0
- package/dist/ui/types.d.mts +52 -0
- package/dist/ui/types.d.mts.map +1 -0
- package/dist/ui/types.mjs +1 -0
- package/dist/utils/banner.cjs +24 -0
- package/dist/utils/banner.cjs.map +1 -0
- package/dist/utils/banner.mjs +23 -0
- package/dist/utils/banner.mjs.map +1 -0
- package/dist/utils/linkify.cjs +15 -0
- package/dist/utils/linkify.cjs.map +1 -0
- package/dist/utils/linkify.mjs +14 -0
- package/dist/utils/linkify.mjs.map +1 -0
- package/dist/utils/run.cjs +40 -0
- package/dist/utils/run.cjs.map +1 -0
- package/dist/utils/run.mjs +39 -0
- package/dist/utils/run.mjs.map +1 -0
- package/dist/utils/theme.cjs +44 -0
- package/dist/utils/theme.cjs.map +1 -0
- package/dist/utils/theme.mjs +37 -0
- package/dist/utils/theme.mjs.map +1 -0
- package/package.json +269 -80
- package/src/api-contract.ts +309 -0
- package/src/api.ts +181 -0
- package/src/app.ts +346 -0
- package/src/cli/catalog.ts +49 -0
- package/src/cli/help.ts +13 -0
- package/src/cli/init.ts +415 -0
- package/src/cli/parse.ts +130 -0
- package/src/cli/prompts.ts +64 -0
- package/src/cli.ts +203 -1507
- package/src/components/dev-view.tsx +104 -41
- package/src/components/streaming-view.ts +89 -22
- package/src/config.ts +462 -532
- package/src/contract.meta.ts +96 -0
- package/src/contract.ts +164 -561
- package/src/dev-logs.ts +85 -0
- package/src/dev-session.ts +318 -0
- package/src/fastkv.ts +153 -0
- package/src/federation.server.ts +43 -0
- package/src/host.ts +526 -0
- package/src/index.ts +6 -3
- package/src/integrity.ts +54 -0
- package/src/mf.ts +105 -0
- package/src/near-cli.ts +284 -0
- package/src/network.ts +3 -0
- package/src/orchestrator.ts +648 -0
- package/src/plugin.ts +1116 -2303
- package/src/process-registry.ts +154 -0
- package/src/scripts/sync-api-contract.ts +24 -0
- package/src/sdk.ts +14 -0
- package/src/shared.ts +206 -0
- package/src/types.ts +152 -206
- package/src/ui/head.ts +34 -27
- package/src/ui/index.ts +3 -3
- package/src/ui/metadata.ts +95 -0
- package/src/ui/router.ts +22 -6
- package/src/ui/runtime.ts +55 -6
- package/src/ui/types.ts +24 -11
- package/src/utils/banner.ts +10 -6
- package/src/utils/run.ts +26 -27
- package/src/utils/theme.ts +3 -66
- package/src/components/monitor-view.tsx +0 -475
- package/src/components/status-view.tsx +0 -173
- package/src/lib/env.ts +0 -109
- package/src/lib/near-cli.ts +0 -289
- package/src/lib/nova.ts +0 -266
- package/src/lib/orchestrator.ts +0 -276
- package/src/lib/process-registry.ts +0 -166
- package/src/lib/process.ts +0 -549
- package/src/lib/resource-monitor/assertions.ts +0 -234
- package/src/lib/resource-monitor/command.ts +0 -283
- package/src/lib/resource-monitor/diff.ts +0 -157
- package/src/lib/resource-monitor/errors.ts +0 -127
- package/src/lib/resource-monitor/index.ts +0 -305
- package/src/lib/resource-monitor/platform/darwin.ts +0 -306
- package/src/lib/resource-monitor/platform/index.ts +0 -35
- package/src/lib/resource-monitor/platform/linux.ts +0 -332
- package/src/lib/resource-monitor/platform/windows.ts +0 -298
- package/src/lib/resource-monitor/snapshot.ts +0 -217
- package/src/lib/resource-monitor/types.ts +0 -74
- package/src/lib/session-recorder/errors.ts +0 -102
- package/src/lib/session-recorder/flows/login.ts +0 -210
- package/src/lib/session-recorder/index.ts +0 -361
- package/src/lib/session-recorder/playwright.ts +0 -257
- package/src/lib/session-recorder/report.ts +0 -353
- package/src/lib/session-recorder/server.ts +0 -267
- package/src/lib/session-recorder/types.ts +0 -115
- package/src/lib/sync.ts +0 -1
- package/src/ui/files.ts +0 -134
package/src/contract.ts
CHANGED
|
@@ -1,610 +1,213 @@
|
|
|
1
|
-
import { oc } from "
|
|
2
|
-
import { z } from "every-plugin/zod";
|
|
1
|
+
import { oc, z } from "./sdk";
|
|
3
2
|
import { BosConfigSchema, SourceModeSchema } from "./types";
|
|
4
3
|
|
|
5
|
-
const DevOptionsSchema = z.object({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
export const DevOptionsSchema = z.object({
|
|
5
|
+
host: SourceModeSchema.default("local"),
|
|
6
|
+
ui: SourceModeSchema.default("local"),
|
|
7
|
+
api: SourceModeSchema.default("local"),
|
|
8
|
+
proxy: z.boolean().default(false),
|
|
9
|
+
ssr: z.boolean().default(false),
|
|
10
|
+
port: z.number().optional(),
|
|
11
|
+
interactive: z.boolean().optional(),
|
|
12
12
|
});
|
|
13
13
|
|
|
14
|
-
const DevResultSchema = z.object({
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
export const DevResultSchema = z.object({
|
|
15
|
+
status: z.enum(["started", "error"]),
|
|
16
|
+
description: z.string(),
|
|
17
|
+
processes: z.array(z.string()),
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
const StartOptionsSchema = z.object({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
export const StartOptionsSchema = z.object({
|
|
21
|
+
port: z.number().optional(),
|
|
22
|
+
interactive: z.boolean().optional(),
|
|
23
|
+
account: z.string().optional(),
|
|
24
|
+
domain: z.string().optional(),
|
|
25
|
+
env: z.enum(["production", "staging"]).default("production"),
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
const StartResultSchema = z.object({
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
export const StartResultSchema = z.object({
|
|
29
|
+
status: z.enum(["running", "error"]),
|
|
30
|
+
url: z.string(),
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
export const BuildOptionsSchema = z.object({
|
|
34
|
+
packages: z.string().default("all"),
|
|
35
|
+
force: z.boolean().default(false),
|
|
36
|
+
deploy: z.boolean().default(false),
|
|
35
37
|
});
|
|
36
38
|
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
docs: z.string(),
|
|
43
|
-
}),
|
|
39
|
+
export const BuildResultSchema = z.object({
|
|
40
|
+
status: z.enum(["success", "error"]),
|
|
41
|
+
built: z.array(z.string()),
|
|
42
|
+
skipped: z.array(z.string()).optional(),
|
|
43
|
+
deployed: z.boolean().optional(),
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
export const ConfigResultSchema = z.object({
|
|
47
|
+
config: BosConfigSchema.nullable(),
|
|
48
|
+
packages: z.array(z.string()),
|
|
49
|
+
remotes: z.array(z.string()),
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
export const PluginAddOptionsSchema = z.object({
|
|
53
|
+
source: z.string(),
|
|
54
|
+
as: z.string().optional(),
|
|
55
|
+
production: z.string().optional(),
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
]);
|
|
65
|
-
|
|
66
|
-
const PublishOptionsSchema = z.object({
|
|
67
|
-
signWith: SigningMethodSchema.optional(),
|
|
68
|
-
network: z.enum(["mainnet", "testnet"]).default("mainnet"),
|
|
69
|
-
path: z.string().default("bos.config.json"),
|
|
70
|
-
dryRun: z.boolean().default(false),
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
const PublishResultSchema = z.object({
|
|
74
|
-
status: z.enum(["published", "error", "dry-run"]),
|
|
75
|
-
txHash: z.string(),
|
|
76
|
-
registryUrl: z.string(),
|
|
77
|
-
error: z.string().optional(),
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
const CreateOptionsSchema = z.object({
|
|
81
|
-
type: z.enum(["project", "ui", "api", "host", "cli", "gateway"]),
|
|
82
|
-
name: z.string().optional(),
|
|
83
|
-
// New fields - all optional, if provided skip prompts:
|
|
84
|
-
account: z
|
|
85
|
-
.string()
|
|
86
|
-
.optional()
|
|
87
|
-
.describe("NEAR mainnet account (e.g., myname.near)"),
|
|
88
|
-
testnet: z.string().optional().describe("NEAR testnet account (optional)"),
|
|
89
|
-
template: z
|
|
90
|
-
.string()
|
|
91
|
-
.optional()
|
|
92
|
-
.describe("Template BOS URL (default: bos://every.near/everything.dev)"),
|
|
93
|
-
includeHost: z
|
|
94
|
-
.boolean()
|
|
95
|
-
.optional()
|
|
96
|
-
.describe("Include host package locally (default: false)"),
|
|
97
|
-
includeGateway: z
|
|
98
|
-
.boolean()
|
|
99
|
-
.optional()
|
|
100
|
-
.describe("Include gateway package locally (default: false)"),
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
const CreateResultSchema = z.object({
|
|
104
|
-
status: z.enum(["created", "error"]),
|
|
105
|
-
path: z.string(),
|
|
106
|
-
error: z.string().optional(),
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
const InfoResultSchema = z.object({
|
|
110
|
-
config: BosConfigSchema,
|
|
111
|
-
packages: z.array(z.string()),
|
|
112
|
-
remotes: z.array(z.string()),
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
const EndpointStatusSchema = z.object({
|
|
116
|
-
name: z.string(),
|
|
117
|
-
url: z.string(),
|
|
118
|
-
type: z.enum(["host", "remote", "ssr"]),
|
|
119
|
-
healthy: z.boolean(),
|
|
120
|
-
latency: z.number().optional(),
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
const StatusOptionsSchema = z.object({
|
|
124
|
-
env: z.enum(["development", "production"]).default("development"),
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
const StatusResultSchema = z.object({
|
|
128
|
-
endpoints: z.array(EndpointStatusSchema),
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
const CleanResultSchema = z.object({
|
|
132
|
-
status: z.enum(["cleaned", "error"]),
|
|
133
|
-
removed: z.array(z.string()),
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
const RegisterOptionsSchema = z.object({
|
|
137
|
-
name: z.string(),
|
|
138
|
-
network: z.enum(["mainnet", "testnet"]).default("mainnet"),
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
const RegisterResultSchema = z.object({
|
|
142
|
-
status: z.enum(["registered", "error"]),
|
|
143
|
-
account: z.string(),
|
|
144
|
-
novaGroup: z.string().optional(),
|
|
145
|
-
error: z.string().optional(),
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
const SecretsSyncOptionsSchema = z.object({
|
|
149
|
-
envPath: z.string(),
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
const SecretsSyncResultSchema = z.object({
|
|
153
|
-
status: z.enum(["synced", "error"]),
|
|
154
|
-
count: z.number(),
|
|
155
|
-
cid: z.string().optional(),
|
|
156
|
-
error: z.string().optional(),
|
|
157
|
-
});
|
|
158
|
-
|
|
159
|
-
const SecretsSetOptionsSchema = z.object({
|
|
160
|
-
key: z.string(),
|
|
161
|
-
value: z.string(),
|
|
58
|
+
export const PluginAddResultSchema = z.object({
|
|
59
|
+
status: z.enum(["added", "error"]),
|
|
60
|
+
key: z.string(),
|
|
61
|
+
development: z.string().optional(),
|
|
62
|
+
production: z.string().optional(),
|
|
63
|
+
error: z.string().optional(),
|
|
162
64
|
});
|
|
163
65
|
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
cid: z.string().optional(),
|
|
167
|
-
error: z.string().optional(),
|
|
66
|
+
export const PluginRemoveOptionsSchema = z.object({
|
|
67
|
+
key: z.string(),
|
|
168
68
|
});
|
|
169
69
|
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
70
|
+
export const PluginRemoveResultSchema = z.object({
|
|
71
|
+
status: z.enum(["removed", "error"]),
|
|
72
|
+
key: z.string(),
|
|
73
|
+
error: z.string().optional(),
|
|
174
74
|
});
|
|
175
75
|
|
|
176
|
-
const
|
|
177
|
-
|
|
76
|
+
export const PluginListResultSchema = z.object({
|
|
77
|
+
status: z.enum(["listed", "error"]),
|
|
78
|
+
plugins: z.array(
|
|
79
|
+
z.object({
|
|
80
|
+
key: z.string(),
|
|
81
|
+
development: z.string().optional(),
|
|
82
|
+
production: z.string().optional(),
|
|
83
|
+
localPath: z.string().optional(),
|
|
84
|
+
source: z.enum(["local", "remote"]),
|
|
85
|
+
}),
|
|
86
|
+
),
|
|
87
|
+
error: z.string().optional(),
|
|
178
88
|
});
|
|
179
89
|
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
cid: z.string().optional(),
|
|
183
|
-
error: z.string().optional(),
|
|
90
|
+
export const PluginPublishOptionsSchema = z.object({
|
|
91
|
+
key: z.string(),
|
|
184
92
|
});
|
|
185
93
|
|
|
186
|
-
const
|
|
187
|
-
|
|
188
|
-
|
|
94
|
+
export const PluginPublishResultSchema = z.object({
|
|
95
|
+
status: z.enum(["published", "error"]),
|
|
96
|
+
key: z.string(),
|
|
97
|
+
path: z.string().optional(),
|
|
98
|
+
script: z.string().optional(),
|
|
99
|
+
production: z.string().optional(),
|
|
100
|
+
error: z.string().optional(),
|
|
189
101
|
});
|
|
190
102
|
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
103
|
+
export const PublishOptionsSchema = z.object({
|
|
104
|
+
deploy: z.boolean().default(false),
|
|
105
|
+
dryRun: z.boolean().default(false),
|
|
106
|
+
packages: z.string().default("all"),
|
|
107
|
+
network: z.enum(["mainnet", "testnet"]).optional(),
|
|
108
|
+
privateKey: z.string().optional(),
|
|
195
109
|
});
|
|
196
110
|
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
|
|
111
|
+
export const PublishResultSchema = z.object({
|
|
112
|
+
status: z.enum(["published", "error", "dry-run"]),
|
|
113
|
+
registryUrl: z.string(),
|
|
114
|
+
txHash: z.string().optional(),
|
|
115
|
+
error: z.string().optional(),
|
|
116
|
+
built: z.array(z.string()).optional(),
|
|
117
|
+
skipped: z.array(z.string()).optional(),
|
|
200
118
|
});
|
|
201
119
|
|
|
202
|
-
const
|
|
203
|
-
|
|
204
|
-
const GatewayDevResultSchema = z.object({
|
|
205
|
-
status: z.enum(["started", "error"]),
|
|
206
|
-
url: z.string(),
|
|
207
|
-
error: z.string().optional(),
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
const GatewayDeployOptionsSchema = z.object({
|
|
211
|
-
env: z.enum(["production", "staging"]).optional(),
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
const GatewayDeployResultSchema = z.object({
|
|
215
|
-
status: z.enum(["deployed", "error"]),
|
|
216
|
-
url: z.string(),
|
|
217
|
-
error: z.string().optional(),
|
|
218
|
-
});
|
|
219
|
-
|
|
220
|
-
const GatewaySyncOptionsSchema = z.object({});
|
|
221
|
-
|
|
222
|
-
const GatewaySyncResultSchema = z.object({
|
|
223
|
-
status: z.enum(["synced", "error"]),
|
|
224
|
-
gatewayDomain: z.string().optional(),
|
|
225
|
-
gatewayAccount: z.string().optional(),
|
|
226
|
-
error: z.string().optional(),
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
const UpdateOptionsSchema = z.object({
|
|
230
|
-
account: z.string().optional(),
|
|
231
|
-
gateway: z.string().optional(),
|
|
232
|
-
network: z.enum(["mainnet", "testnet"]).default("mainnet"),
|
|
233
|
-
force: z.boolean().optional(),
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
const UpdateResultSchema = z.object({
|
|
237
|
-
status: z.enum(["updated", "error"]),
|
|
238
|
-
account: z.string(),
|
|
239
|
-
gateway: z.string(),
|
|
240
|
-
socialUrl: z.string().optional(),
|
|
241
|
-
hostUrl: z.string(),
|
|
242
|
-
catalogUpdated: z.boolean(),
|
|
243
|
-
packagesUpdated: z.array(z.string()),
|
|
244
|
-
filesSynced: z
|
|
245
|
-
.array(
|
|
246
|
-
z.object({
|
|
247
|
-
package: z.string(),
|
|
248
|
-
files: z.array(z.string()),
|
|
249
|
-
}),
|
|
250
|
-
)
|
|
251
|
-
.optional(),
|
|
252
|
-
error: z.string().optional(),
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
const FilesSyncOptionsSchema = z.object({
|
|
256
|
-
packages: z.array(z.string()).optional(),
|
|
257
|
-
force: z.boolean().optional(),
|
|
120
|
+
export const KeyPublishOptionsSchema = z.object({
|
|
121
|
+
allowance: z.string().default("0.25NEAR"),
|
|
258
122
|
});
|
|
259
123
|
|
|
260
|
-
const
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
error: z.string().optional(),
|
|
124
|
+
export const KeyPublishResultSchema = z.object({
|
|
125
|
+
status: z.enum(["published", "error"]),
|
|
126
|
+
account: z.string(),
|
|
127
|
+
network: z.enum(["mainnet", "testnet"]),
|
|
128
|
+
contract: z.string(),
|
|
129
|
+
allowance: z.string(),
|
|
130
|
+
functionNames: z.array(z.string()),
|
|
131
|
+
publicKey: z.string().optional(),
|
|
132
|
+
privateKey: z.string().optional(),
|
|
133
|
+
error: z.string().optional(),
|
|
271
134
|
});
|
|
272
135
|
|
|
273
|
-
const
|
|
274
|
-
|
|
136
|
+
export const InitOptionsSchema = z.object({
|
|
137
|
+
account: z.string().optional(),
|
|
138
|
+
gateway: z.string().optional(),
|
|
139
|
+
destination: z.string().optional(),
|
|
140
|
+
name: z.string().optional(),
|
|
141
|
+
domain: z.string().optional(),
|
|
142
|
+
source: z.string().optional(),
|
|
143
|
+
withHost: z.boolean().default(false),
|
|
144
|
+
noInteractive: z.boolean().default(false),
|
|
145
|
+
noInstall: z.boolean().default(false),
|
|
275
146
|
});
|
|
276
147
|
|
|
277
|
-
const
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
port: z.number(),
|
|
288
|
-
startedAt: z.number(),
|
|
289
|
-
command: z.string(),
|
|
290
|
-
});
|
|
291
|
-
|
|
292
|
-
const PsResultSchema = z.object({
|
|
293
|
-
status: z.enum(["listed", "error"]),
|
|
294
|
-
processes: z.array(ProcessStatusSchema),
|
|
295
|
-
error: z.string().optional(),
|
|
296
|
-
});
|
|
297
|
-
|
|
298
|
-
const DockerBuildOptionsSchema = z.object({
|
|
299
|
-
target: z.enum(["production", "development"]).default("production"),
|
|
300
|
-
tag: z.string().optional(),
|
|
301
|
-
noCache: z.boolean().default(false),
|
|
302
|
-
});
|
|
303
|
-
|
|
304
|
-
const DockerBuildResultSchema = z.object({
|
|
305
|
-
status: z.enum(["built", "error"]),
|
|
306
|
-
image: z.string(),
|
|
307
|
-
tag: z.string(),
|
|
308
|
-
error: z.string().optional(),
|
|
309
|
-
});
|
|
310
|
-
|
|
311
|
-
const DockerRunOptionsSchema = z.object({
|
|
312
|
-
target: z.enum(["production", "development"]).default("production"),
|
|
313
|
-
mode: z.enum(["start", "serve", "dev"]).default("start"),
|
|
314
|
-
port: z.number().optional(),
|
|
315
|
-
detach: z.boolean().default(false),
|
|
316
|
-
env: z.record(z.string(), z.string()).optional(),
|
|
317
|
-
});
|
|
318
|
-
|
|
319
|
-
const DockerRunResultSchema = z.object({
|
|
320
|
-
status: z.enum(["running", "error"]),
|
|
321
|
-
containerId: z.string(),
|
|
322
|
-
url: z.string(),
|
|
323
|
-
error: z.string().optional(),
|
|
324
|
-
});
|
|
325
|
-
|
|
326
|
-
const DockerStopOptionsSchema = z.object({
|
|
327
|
-
containerId: z.string().optional(),
|
|
328
|
-
all: z.boolean().default(false),
|
|
329
|
-
});
|
|
330
|
-
|
|
331
|
-
const DockerStopResultSchema = z.object({
|
|
332
|
-
status: z.enum(["stopped", "error"]),
|
|
333
|
-
stopped: z.array(z.string()),
|
|
334
|
-
error: z.string().optional(),
|
|
335
|
-
});
|
|
336
|
-
|
|
337
|
-
const MonitorOptionsSchema = z.object({
|
|
338
|
-
ports: z.array(z.number()).optional(),
|
|
339
|
-
json: z.boolean().default(false),
|
|
340
|
-
watch: z.boolean().default(false),
|
|
341
|
-
});
|
|
342
|
-
|
|
343
|
-
const PortInfoSchema = z.object({
|
|
344
|
-
port: z.number(),
|
|
345
|
-
pid: z.number().nullable(),
|
|
346
|
-
command: z.string().nullable(),
|
|
347
|
-
state: z.enum(["LISTEN", "ESTABLISHED", "TIME_WAIT", "FREE"]),
|
|
348
|
-
name: z.string().optional(),
|
|
349
|
-
});
|
|
350
|
-
|
|
351
|
-
const ProcessInfoSchema = z.object({
|
|
352
|
-
pid: z.number(),
|
|
353
|
-
ppid: z.number(),
|
|
354
|
-
command: z.string(),
|
|
355
|
-
args: z.array(z.string()),
|
|
356
|
-
rss: z.number(),
|
|
357
|
-
children: z.array(z.number()),
|
|
358
|
-
startTime: z.number().optional(),
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
const MemoryInfoSchema = z.object({
|
|
362
|
-
total: z.number(),
|
|
363
|
-
used: z.number(),
|
|
364
|
-
free: z.number(),
|
|
365
|
-
processRss: z.number(),
|
|
366
|
-
});
|
|
367
|
-
|
|
368
|
-
const SnapshotSchema = z.object({
|
|
369
|
-
timestamp: z.number(),
|
|
370
|
-
configPath: z.string().nullable(),
|
|
371
|
-
ports: z.record(z.string(), PortInfoSchema),
|
|
372
|
-
processes: z.array(ProcessInfoSchema),
|
|
373
|
-
memory: MemoryInfoSchema,
|
|
374
|
-
platform: z.string(),
|
|
375
|
-
});
|
|
376
|
-
|
|
377
|
-
const MonitorResultSchema = z.object({
|
|
378
|
-
status: z.enum(["snapshot", "watching", "error"]),
|
|
379
|
-
snapshot: SnapshotSchema.optional(),
|
|
380
|
-
error: z.string().optional(),
|
|
381
|
-
});
|
|
382
|
-
|
|
383
|
-
const SessionOptionsSchema = z.object({
|
|
384
|
-
headless: z.boolean().default(true),
|
|
385
|
-
timeout: z.number().default(120000),
|
|
386
|
-
output: z.string().default("./session-report.json"),
|
|
387
|
-
format: z.enum(["json", "html"]).default("json"),
|
|
388
|
-
flow: z.enum(["login", "navigation", "custom"]).default("login"),
|
|
389
|
-
routes: z.array(z.string()).optional(),
|
|
390
|
-
snapshotInterval: z.number().default(2000),
|
|
391
|
-
});
|
|
392
|
-
|
|
393
|
-
const SessionSummarySchema = z.object({
|
|
394
|
-
totalMemoryDeltaMb: z.number(),
|
|
395
|
-
peakMemoryMb: z.number(),
|
|
396
|
-
averageMemoryMb: z.number(),
|
|
397
|
-
processesSpawned: z.number(),
|
|
398
|
-
processesKilled: z.number(),
|
|
399
|
-
orphanedProcesses: z.number(),
|
|
400
|
-
portsUsed: z.array(z.number()),
|
|
401
|
-
portsLeaked: z.number(),
|
|
402
|
-
hasLeaks: z.boolean(),
|
|
403
|
-
eventCount: z.number(),
|
|
404
|
-
duration: z.number(),
|
|
405
|
-
});
|
|
406
|
-
|
|
407
|
-
const SessionResultSchema = z.object({
|
|
408
|
-
status: z.enum(["completed", "leaks_detected", "error", "timeout"]),
|
|
409
|
-
sessionId: z.string().optional(),
|
|
410
|
-
reportPath: z.string().optional(),
|
|
411
|
-
summary: SessionSummarySchema.optional(),
|
|
412
|
-
error: z.string().optional(),
|
|
413
|
-
});
|
|
414
|
-
|
|
415
|
-
const DepsUpdateOptionsSchema = z.object({
|
|
416
|
-
category: z.enum(["ui", "api"]).default("ui"),
|
|
417
|
-
packages: z.array(z.string()).optional(),
|
|
418
|
-
});
|
|
419
|
-
|
|
420
|
-
const DepsUpdateResultSchema = z.object({
|
|
421
|
-
status: z.enum(["updated", "cancelled", "error"]),
|
|
422
|
-
updated: z.array(
|
|
423
|
-
z.object({
|
|
424
|
-
name: z.string(),
|
|
425
|
-
from: z.string(),
|
|
426
|
-
to: z.string(),
|
|
427
|
-
}),
|
|
428
|
-
),
|
|
429
|
-
syncStatus: z.enum(["synced", "skipped", "error"]).optional(),
|
|
430
|
-
error: z.string().optional(),
|
|
148
|
+
export const InitResultSchema = z.object({
|
|
149
|
+
status: z.enum(["initialized", "error"]),
|
|
150
|
+
destination: z.string(),
|
|
151
|
+
parentAccount: z.string(),
|
|
152
|
+
parentGateway: z.string(),
|
|
153
|
+
name: z.string().optional(),
|
|
154
|
+
domain: z.string().optional(),
|
|
155
|
+
extends: z.string(),
|
|
156
|
+
filesCopied: z.number(),
|
|
157
|
+
error: z.string().optional(),
|
|
431
158
|
});
|
|
432
159
|
|
|
433
160
|
export const bosContract = oc.router({
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
.output(StatusResultSchema),
|
|
470
|
-
|
|
471
|
-
clean: oc.route({ method: "POST", path: "/clean" }).output(CleanResultSchema),
|
|
472
|
-
|
|
473
|
-
register: oc
|
|
474
|
-
.route({ method: "POST", path: "/register" })
|
|
475
|
-
.input(RegisterOptionsSchema)
|
|
476
|
-
.output(RegisterResultSchema),
|
|
477
|
-
|
|
478
|
-
secretsSync: oc
|
|
479
|
-
.route({ method: "POST", path: "/secrets/sync" })
|
|
480
|
-
.input(SecretsSyncOptionsSchema)
|
|
481
|
-
.output(SecretsSyncResultSchema),
|
|
482
|
-
|
|
483
|
-
secretsSet: oc
|
|
484
|
-
.route({ method: "POST", path: "/secrets/set" })
|
|
485
|
-
.input(SecretsSetOptionsSchema)
|
|
486
|
-
.output(SecretsSetResultSchema),
|
|
487
|
-
|
|
488
|
-
secretsList: oc
|
|
489
|
-
.route({ method: "GET", path: "/secrets/list" })
|
|
490
|
-
.output(SecretsListResultSchema),
|
|
491
|
-
|
|
492
|
-
secretsDelete: oc
|
|
493
|
-
.route({ method: "POST", path: "/secrets/delete" })
|
|
494
|
-
.input(SecretsDeleteOptionsSchema)
|
|
495
|
-
.output(SecretsDeleteResultSchema),
|
|
496
|
-
|
|
497
|
-
login: oc
|
|
498
|
-
.route({ method: "POST", path: "/login" })
|
|
499
|
-
.input(LoginOptionsSchema)
|
|
500
|
-
.output(LoginResultSchema),
|
|
501
|
-
|
|
502
|
-
logout: oc
|
|
503
|
-
.route({ method: "POST", path: "/logout" })
|
|
504
|
-
.output(LogoutResultSchema),
|
|
505
|
-
|
|
506
|
-
gatewayDev: oc
|
|
507
|
-
.route({ method: "POST", path: "/gateway/dev" })
|
|
508
|
-
.input(GatewayDevOptionsSchema)
|
|
509
|
-
.output(GatewayDevResultSchema),
|
|
510
|
-
|
|
511
|
-
gatewayDeploy: oc
|
|
512
|
-
.route({ method: "POST", path: "/gateway/deploy" })
|
|
513
|
-
.input(GatewayDeployOptionsSchema)
|
|
514
|
-
.output(GatewayDeployResultSchema),
|
|
515
|
-
|
|
516
|
-
gatewaySync: oc
|
|
517
|
-
.route({ method: "POST", path: "/gateway/sync" })
|
|
518
|
-
.input(GatewaySyncOptionsSchema)
|
|
519
|
-
.output(GatewaySyncResultSchema),
|
|
520
|
-
|
|
521
|
-
update: oc
|
|
522
|
-
.route({ method: "POST", path: "/update" })
|
|
523
|
-
.input(UpdateOptionsSchema)
|
|
524
|
-
.output(UpdateResultSchema),
|
|
525
|
-
|
|
526
|
-
depsUpdate: oc
|
|
527
|
-
.route({ method: "POST", path: "/deps/update" })
|
|
528
|
-
.input(DepsUpdateOptionsSchema)
|
|
529
|
-
.output(DepsUpdateResultSchema),
|
|
530
|
-
|
|
531
|
-
filesSync: oc
|
|
532
|
-
.route({ method: "POST", path: "/files/sync" })
|
|
533
|
-
.input(FilesSyncOptionsSchema)
|
|
534
|
-
.output(FilesSyncResultSchema),
|
|
535
|
-
|
|
536
|
-
kill: oc
|
|
537
|
-
.route({ method: "POST", path: "/kill" })
|
|
538
|
-
.input(KillOptionsSchema)
|
|
539
|
-
.output(KillResultSchema),
|
|
540
|
-
|
|
541
|
-
ps: oc.route({ method: "GET", path: "/ps" }).output(PsResultSchema),
|
|
542
|
-
|
|
543
|
-
dockerBuild: oc
|
|
544
|
-
.route({ method: "POST", path: "/docker/build" })
|
|
545
|
-
.input(DockerBuildOptionsSchema)
|
|
546
|
-
.output(DockerBuildResultSchema),
|
|
547
|
-
|
|
548
|
-
dockerRun: oc
|
|
549
|
-
.route({ method: "POST", path: "/docker/run" })
|
|
550
|
-
.input(DockerRunOptionsSchema)
|
|
551
|
-
.output(DockerRunResultSchema),
|
|
552
|
-
|
|
553
|
-
dockerStop: oc
|
|
554
|
-
.route({ method: "POST", path: "/docker/stop" })
|
|
555
|
-
.input(DockerStopOptionsSchema)
|
|
556
|
-
.output(DockerStopResultSchema),
|
|
557
|
-
|
|
558
|
-
monitor: oc
|
|
559
|
-
.route({ method: "GET", path: "/monitor" })
|
|
560
|
-
.input(MonitorOptionsSchema)
|
|
561
|
-
.output(MonitorResultSchema),
|
|
562
|
-
|
|
563
|
-
session: oc
|
|
564
|
-
.route({ method: "POST", path: "/session" })
|
|
565
|
-
.input(SessionOptionsSchema)
|
|
566
|
-
.output(SessionResultSchema),
|
|
161
|
+
dev: oc.route({ method: "POST", path: "/dev" }).input(DevOptionsSchema).output(DevResultSchema),
|
|
162
|
+
start: oc
|
|
163
|
+
.route({ method: "POST", path: "/start" })
|
|
164
|
+
.input(StartOptionsSchema)
|
|
165
|
+
.output(StartResultSchema),
|
|
166
|
+
build: oc
|
|
167
|
+
.route({ method: "POST", path: "/build" })
|
|
168
|
+
.input(BuildOptionsSchema)
|
|
169
|
+
.output(BuildResultSchema),
|
|
170
|
+
config: oc.route({ method: "GET", path: "/config" }).output(ConfigResultSchema),
|
|
171
|
+
pluginAdd: oc
|
|
172
|
+
.route({ method: "POST", path: "/plugin/add" })
|
|
173
|
+
.input(PluginAddOptionsSchema)
|
|
174
|
+
.output(PluginAddResultSchema),
|
|
175
|
+
pluginRemove: oc
|
|
176
|
+
.route({ method: "POST", path: "/plugin/remove" })
|
|
177
|
+
.input(PluginRemoveOptionsSchema)
|
|
178
|
+
.output(PluginRemoveResultSchema),
|
|
179
|
+
pluginList: oc.route({ method: "GET", path: "/plugin/list" }).output(PluginListResultSchema),
|
|
180
|
+
pluginPublish: oc
|
|
181
|
+
.route({ method: "POST", path: "/plugin/publish" })
|
|
182
|
+
.input(PluginPublishOptionsSchema)
|
|
183
|
+
.output(PluginPublishResultSchema),
|
|
184
|
+
publish: oc
|
|
185
|
+
.route({ method: "POST", path: "/publish" })
|
|
186
|
+
.input(PublishOptionsSchema)
|
|
187
|
+
.output(PublishResultSchema),
|
|
188
|
+
keyPublish: oc
|
|
189
|
+
.route({ method: "POST", path: "/key/publish" })
|
|
190
|
+
.input(KeyPublishOptionsSchema)
|
|
191
|
+
.output(KeyPublishResultSchema),
|
|
192
|
+
init: oc
|
|
193
|
+
.route({ method: "POST", path: "/init" })
|
|
194
|
+
.input(InitOptionsSchema)
|
|
195
|
+
.output(InitResultSchema),
|
|
567
196
|
});
|
|
568
197
|
|
|
569
|
-
export type BosContract = typeof bosContract;
|
|
570
198
|
export type DevOptions = z.infer<typeof DevOptionsSchema>;
|
|
571
|
-
export type DevResult = z.infer<typeof DevResultSchema>;
|
|
572
199
|
export type StartOptions = z.infer<typeof StartOptionsSchema>;
|
|
573
|
-
export type StartResult = z.infer<typeof StartResultSchema>;
|
|
574
|
-
export type ServeOptions = z.infer<typeof ServeOptionsSchema>;
|
|
575
|
-
export type ServeResult = z.infer<typeof ServeResultSchema>;
|
|
576
200
|
export type BuildOptions = z.infer<typeof BuildOptionsSchema>;
|
|
577
|
-
export type
|
|
578
|
-
export type
|
|
201
|
+
export type BosConfigResult = z.infer<typeof ConfigResultSchema>;
|
|
202
|
+
export type PluginAddOptions = z.infer<typeof PluginAddOptionsSchema>;
|
|
203
|
+
export type PluginAddResult = z.infer<typeof PluginAddResultSchema>;
|
|
204
|
+
export type PluginRemoveOptions = z.infer<typeof PluginRemoveOptionsSchema>;
|
|
205
|
+
export type PluginRemoveResult = z.infer<typeof PluginRemoveResultSchema>;
|
|
206
|
+
export type PluginListResult = z.infer<typeof PluginListResultSchema>;
|
|
207
|
+
export type PluginPublishOptions = z.infer<typeof PluginPublishOptionsSchema>;
|
|
208
|
+
export type PluginPublishResult = z.infer<typeof PluginPublishResultSchema>;
|
|
579
209
|
export type PublishOptions = z.infer<typeof PublishOptionsSchema>;
|
|
580
|
-
export type
|
|
581
|
-
export type
|
|
582
|
-
export type
|
|
583
|
-
export type
|
|
584
|
-
export type StatusOptions = z.infer<typeof StatusOptionsSchema>;
|
|
585
|
-
export type StatusResult = z.infer<typeof StatusResultSchema>;
|
|
586
|
-
export type CleanResult = z.infer<typeof CleanResultSchema>;
|
|
587
|
-
export type RegisterOptions = z.infer<typeof RegisterOptionsSchema>;
|
|
588
|
-
export type RegisterResult = z.infer<typeof RegisterResultSchema>;
|
|
589
|
-
export type SecretsSyncOptions = z.infer<typeof SecretsSyncOptionsSchema>;
|
|
590
|
-
export type SecretsSyncResult = z.infer<typeof SecretsSyncResultSchema>;
|
|
591
|
-
export type SecretsSetOptions = z.infer<typeof SecretsSetOptionsSchema>;
|
|
592
|
-
export type SecretsSetResult = z.infer<typeof SecretsSetResultSchema>;
|
|
593
|
-
export type SecretsListResult = z.infer<typeof SecretsListResultSchema>;
|
|
594
|
-
export type SecretsDeleteOptions = z.infer<typeof SecretsDeleteOptionsSchema>;
|
|
595
|
-
export type SecretsDeleteResult = z.infer<typeof SecretsDeleteResultSchema>;
|
|
596
|
-
export type LoginOptions = z.infer<typeof LoginOptionsSchema>;
|
|
597
|
-
export type LoginResult = z.infer<typeof LoginResultSchema>;
|
|
598
|
-
export type LogoutResult = z.infer<typeof LogoutResultSchema>;
|
|
599
|
-
export type UpdateOptions = z.infer<typeof UpdateOptionsSchema>;
|
|
600
|
-
export type UpdateResult = z.infer<typeof UpdateResultSchema>;
|
|
601
|
-
export type DepsUpdateOptions = z.infer<typeof DepsUpdateOptionsSchema>;
|
|
602
|
-
export type DepsUpdateResult = z.infer<typeof DepsUpdateResultSchema>;
|
|
603
|
-
export type FilesSyncOptions = z.infer<typeof FilesSyncOptionsSchema>;
|
|
604
|
-
export type FilesSyncResult = z.infer<typeof FilesSyncResultSchema>;
|
|
605
|
-
export type MonitorOptions = z.infer<typeof MonitorOptionsSchema>;
|
|
606
|
-
export type MonitorResult = z.infer<typeof MonitorResultSchema>;
|
|
607
|
-
export type MonitorSnapshot = z.infer<typeof SnapshotSchema>;
|
|
608
|
-
export type SessionOptions = z.infer<typeof SessionOptionsSchema>;
|
|
609
|
-
export type SessionResult = z.infer<typeof SessionResultSchema>;
|
|
610
|
-
export type SessionSummary = z.infer<typeof SessionSummarySchema>;
|
|
210
|
+
export type KeyPublishOptions = z.infer<typeof KeyPublishOptionsSchema>;
|
|
211
|
+
export type KeyPublishResult = z.infer<typeof KeyPublishResultSchema>;
|
|
212
|
+
export type InitOptions = z.infer<typeof InitOptionsSchema>;
|
|
213
|
+
export type InitResult = z.infer<typeof InitResultSchema>;
|