@hype-stack/cli 0.1.0 → 0.2.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/dist/cli-B_p3GdS8.js +4845 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/commands/compose.d.ts +16 -0
- package/dist/commands/compose.d.ts.map +1 -0
- package/dist/commands/create.d.ts +1 -1
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/init.d.ts +24 -2
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/install-helpers.d.ts +41 -0
- package/dist/commands/install-helpers.d.ts.map +1 -0
- package/dist/commands/login.d.ts +2 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/logout.d.ts +2 -0
- package/dist/commands/logout.d.ts.map +1 -0
- package/dist/commands/template.d.ts +13 -0
- package/dist/commands/template.d.ts.map +1 -0
- package/dist/config/bin.d.ts.map +1 -0
- package/dist/config/bin.js +2439 -0
- package/dist/config/env.d.ts +8 -0
- package/dist/config/env.d.ts.map +1 -0
- package/dist/constants/constants.d.ts +58 -0
- package/dist/constants/constants.d.ts.map +1 -0
- package/dist/constants/themes.d.ts +40 -0
- package/dist/constants/themes.d.ts.map +1 -0
- package/dist/core/access-prompts.d.ts +15 -0
- package/dist/core/access-prompts.d.ts.map +1 -0
- package/dist/core/apply-theme.d.ts +17 -0
- package/dist/core/apply-theme.d.ts.map +1 -0
- package/dist/core/auth-api.d.ts +9 -0
- package/dist/core/auth-api.d.ts.map +1 -0
- package/dist/core/auth-store.d.ts +16 -0
- package/dist/core/auth-store.d.ts.map +1 -0
- package/dist/core/client.d.ts +2 -0
- package/dist/core/client.d.ts.map +1 -0
- package/dist/core/clone.d.ts.map +1 -1
- package/dist/core/codegen.d.ts +18 -0
- package/dist/core/codegen.d.ts.map +1 -0
- package/dist/core/codemods.d.ts +58 -0
- package/dist/core/codemods.d.ts.map +1 -0
- package/dist/core/device.d.ts +3 -0
- package/dist/core/device.d.ts.map +1 -0
- package/dist/core/editor-config.d.ts +1 -1
- package/dist/core/editor-config.d.ts.map +1 -1
- package/dist/core/env-files.d.ts +2 -0
- package/dist/core/env-files.d.ts.map +1 -0
- package/dist/core/installer.d.ts +104 -0
- package/dist/core/installer.d.ts.map +1 -0
- package/dist/core/license.d.ts +7 -0
- package/dist/core/license.d.ts.map +1 -0
- package/dist/core/login.d.ts +13 -0
- package/dist/core/login.d.ts.map +1 -0
- package/dist/core/npm-deps.d.ts +32 -0
- package/dist/core/npm-deps.d.ts.map +1 -0
- package/dist/core/open-browser.d.ts +2 -0
- package/dist/core/open-browser.d.ts.map +1 -0
- package/dist/core/pack-categories.d.ts +40 -0
- package/dist/core/pack-categories.d.ts.map +1 -0
- package/dist/core/post-clone.d.ts.map +1 -1
- package/dist/core/post-setup.d.ts +6 -0
- package/dist/core/post-setup.d.ts.map +1 -0
- package/dist/core/readme.d.ts +10 -0
- package/dist/core/readme.d.ts.map +1 -0
- package/dist/core/registry.d.ts +35 -0
- package/dist/core/registry.d.ts.map +1 -0
- package/dist/core/resolve.d.ts +44 -0
- package/dist/core/resolve.d.ts.map +1 -0
- package/dist/core/stack-config.d.ts +3 -1
- package/dist/core/stack-config.d.ts.map +1 -1
- package/dist/core/templates.d.ts +15 -0
- package/dist/core/templates.d.ts.map +1 -0
- package/dist/core/tracking.d.ts +9 -0
- package/dist/core/tracking.d.ts.map +1 -0
- package/dist/core/variants.d.ts +47 -0
- package/dist/core/variants.d.ts.map +1 -0
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/themes.js +833 -0
- package/dist/types/types.d.ts +303 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/logger.d.ts.map +1 -1
- package/dist/ui/theme.d.ts +13 -0
- package/dist/ui/theme.d.ts.map +1 -1
- package/package.json +37 -3
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js +0 -5
- package/dist/cli-B_f7CCee.js +0 -548
- package/dist/commands/add.d.ts +0 -2
- package/dist/commands/add.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -30
- package/dist/constants.d.ts.map +0 -1
- package/dist/types.d.ts +0 -23
- package/dist/types.d.ts.map +0 -1
- /package/dist/{bin.d.ts → config/bin.d.ts} +0 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
export type CodeEditor = "cursor" | "claude" | "windsurf" | "copilot";
|
|
2
|
+
export interface AppPaths {
|
|
3
|
+
root: string;
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
6
|
+
export interface StackPaths {
|
|
7
|
+
backend: AppPaths;
|
|
8
|
+
frontend: AppPaths;
|
|
9
|
+
admin?: AppPaths;
|
|
10
|
+
enums?: AppPaths;
|
|
11
|
+
[key: string]: AppPaths | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface StackConfig {
|
|
14
|
+
$schema?: string;
|
|
15
|
+
version: number;
|
|
16
|
+
name: string;
|
|
17
|
+
apps: Record<string, string>;
|
|
18
|
+
packages: Record<string, string>;
|
|
19
|
+
paths?: StackPaths;
|
|
20
|
+
installedPacks?: string[];
|
|
21
|
+
licenseKey?: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface CreateOptions {
|
|
24
|
+
name?: string;
|
|
25
|
+
directory?: string;
|
|
26
|
+
install?: boolean;
|
|
27
|
+
editor?: CodeEditor;
|
|
28
|
+
/** Bundled color theme id to apply to the frontend styles.css. */
|
|
29
|
+
theme?: string;
|
|
30
|
+
yes?: boolean;
|
|
31
|
+
/** Skip the post-create Docker boot and database migrations. Defaults to true (run setup). */
|
|
32
|
+
setup?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface InitOptions {
|
|
35
|
+
cwd?: string;
|
|
36
|
+
silent?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface DetectedWorkspace {
|
|
39
|
+
apps: Record<string, string>;
|
|
40
|
+
packages: Record<string, string>;
|
|
41
|
+
}
|
|
42
|
+
export type PackTier = "free" | "paid";
|
|
43
|
+
export type FileStrategy = "create" | "merge" | "skip-if-exists" | "override";
|
|
44
|
+
/**
|
|
45
|
+
* The app shell a layout pack file targets. Layout packs tag their file entries
|
|
46
|
+
* with a slot so the installer can copy only the frontend or admin shell when the
|
|
47
|
+
* pack is picked for that slot. Files without a slot are always installed (shared).
|
|
48
|
+
*/
|
|
49
|
+
export type PackSlot = "frontend" | "admin";
|
|
50
|
+
export interface PackFile {
|
|
51
|
+
source: string;
|
|
52
|
+
target: string;
|
|
53
|
+
strategy: FileStrategy;
|
|
54
|
+
marker?: string;
|
|
55
|
+
/** When set, the file only installs when the pack was chosen for this slot. */
|
|
56
|
+
slot?: PackSlot;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* A pack chosen in the compose picker. Layout packs carry a `slot` so the same
|
|
60
|
+
* layout pack can be installed independently for the frontend and the admin app.
|
|
61
|
+
* Non-layout packs omit `slot` and install all their files.
|
|
62
|
+
*/
|
|
63
|
+
export interface PackSelection {
|
|
64
|
+
name: string;
|
|
65
|
+
slot?: PackSlot;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Per-pack selected slots, keyed by pack name. A pack present in this map installs
|
|
69
|
+
* only the file entries tagged with one of its slots. A pack absent from the map
|
|
70
|
+
* (or mapped to an empty list) installs every file, preserving the pre-slot behavior
|
|
71
|
+
* for non-layout packs.
|
|
72
|
+
*/
|
|
73
|
+
export type SlotsByPack = Map<string, PackSlot[]>;
|
|
74
|
+
export interface PackRoute {
|
|
75
|
+
import: string;
|
|
76
|
+
from: string;
|
|
77
|
+
prefix: string;
|
|
78
|
+
}
|
|
79
|
+
export interface PackSocket {
|
|
80
|
+
import: string;
|
|
81
|
+
from: string;
|
|
82
|
+
prefix: string;
|
|
83
|
+
}
|
|
84
|
+
export interface PackSdkConfiguration {
|
|
85
|
+
import: string;
|
|
86
|
+
from: string;
|
|
87
|
+
}
|
|
88
|
+
export interface PackContextEntry {
|
|
89
|
+
export: string;
|
|
90
|
+
type: string;
|
|
91
|
+
typeImport: {
|
|
92
|
+
name: string;
|
|
93
|
+
from: string;
|
|
94
|
+
};
|
|
95
|
+
init: string;
|
|
96
|
+
}
|
|
97
|
+
export interface PackEnumEntry {
|
|
98
|
+
from: string;
|
|
99
|
+
}
|
|
100
|
+
export interface PackFrontendRoute {
|
|
101
|
+
path: string;
|
|
102
|
+
search: string;
|
|
103
|
+
}
|
|
104
|
+
export interface PackEnvEntry {
|
|
105
|
+
import: string;
|
|
106
|
+
from: string;
|
|
107
|
+
envExample: {
|
|
108
|
+
section: string;
|
|
109
|
+
vars: Record<string, string>;
|
|
110
|
+
};
|
|
111
|
+
envTest: Record<string, string>;
|
|
112
|
+
}
|
|
113
|
+
export interface PackNavSubItem {
|
|
114
|
+
label: string;
|
|
115
|
+
icon: string;
|
|
116
|
+
to: string;
|
|
117
|
+
params?: string;
|
|
118
|
+
}
|
|
119
|
+
export interface PackNavEntry {
|
|
120
|
+
group: "primary" | "secondary" | "tertiary" | "settings";
|
|
121
|
+
label: string;
|
|
122
|
+
icon: string;
|
|
123
|
+
to?: string;
|
|
124
|
+
params?: string;
|
|
125
|
+
items?: PackNavSubItem[];
|
|
126
|
+
}
|
|
127
|
+
export interface PackOnboardingStep {
|
|
128
|
+
id: string;
|
|
129
|
+
import: string;
|
|
130
|
+
from: string;
|
|
131
|
+
}
|
|
132
|
+
export interface PackNavbarAction {
|
|
133
|
+
id: string;
|
|
134
|
+
import: string;
|
|
135
|
+
from: string;
|
|
136
|
+
}
|
|
137
|
+
export interface PackFeaturePage {
|
|
138
|
+
to: string;
|
|
139
|
+
title: string;
|
|
140
|
+
description: string;
|
|
141
|
+
}
|
|
142
|
+
export interface PackPreviewConfig {
|
|
143
|
+
startRoute?: string;
|
|
144
|
+
featurePages?: PackFeaturePage[];
|
|
145
|
+
}
|
|
146
|
+
export interface PackManifest {
|
|
147
|
+
$schema?: string;
|
|
148
|
+
name: string;
|
|
149
|
+
version: string;
|
|
150
|
+
displayName: string;
|
|
151
|
+
description: string;
|
|
152
|
+
tier: PackTier;
|
|
153
|
+
dependencies: string[];
|
|
154
|
+
peerPacks?: string[];
|
|
155
|
+
files: PackFile[];
|
|
156
|
+
routes?: PackRoute[];
|
|
157
|
+
sockets?: PackSocket[];
|
|
158
|
+
sdkConfigurations?: PackSdkConfiguration[];
|
|
159
|
+
context?: PackContextEntry[];
|
|
160
|
+
env?: PackEnvEntry[];
|
|
161
|
+
enums?: PackEnumEntry[];
|
|
162
|
+
frontendRoutes?: PackFrontendRoute[];
|
|
163
|
+
nav?: PackNavEntry[];
|
|
164
|
+
navbarActions?: PackNavbarAction[];
|
|
165
|
+
userMenuActions?: PackNavbarAction[];
|
|
166
|
+
onboardingSteps?: PackOnboardingStep[];
|
|
167
|
+
preview?: PackPreviewConfig;
|
|
168
|
+
dependencies_npm?: Record<string, Record<string, string>>;
|
|
169
|
+
postInstall?: string[];
|
|
170
|
+
postLoginRedirect?: string;
|
|
171
|
+
}
|
|
172
|
+
export interface PackValidationResult {
|
|
173
|
+
allowed: boolean;
|
|
174
|
+
tier: PackTier;
|
|
175
|
+
packs: string[];
|
|
176
|
+
purchaseUrl?: string;
|
|
177
|
+
downloadsUsed?: number;
|
|
178
|
+
expiresAt?: string | null;
|
|
179
|
+
expired?: boolean;
|
|
180
|
+
}
|
|
181
|
+
/** Pack modules the compose picker groups by. Matches the backend PackCategory values. */
|
|
182
|
+
export type PackCategory = "starter" | "layout" | "feature";
|
|
183
|
+
export interface PackListItem {
|
|
184
|
+
name: string;
|
|
185
|
+
displayName: string;
|
|
186
|
+
description: string;
|
|
187
|
+
price: number;
|
|
188
|
+
tier: PackTier;
|
|
189
|
+
category: PackCategory;
|
|
190
|
+
/**
|
|
191
|
+
* Swappable family this pack belongs to (e.g. `starter-saas`, `layout`), or null when the pack
|
|
192
|
+
* is not a variant. Sourced from the backend pack list so the standalone CLI can remap
|
|
193
|
+
* same-family dependencies to the chosen variant without depending on `@internal/enums`.
|
|
194
|
+
*/
|
|
195
|
+
family?: string | null;
|
|
196
|
+
dependencies: string[];
|
|
197
|
+
peerPacks: string[];
|
|
198
|
+
}
|
|
199
|
+
export interface PackAuthorization {
|
|
200
|
+
owned: boolean;
|
|
201
|
+
reason?: "no-access" | "expired";
|
|
202
|
+
expiresAt?: string | null;
|
|
203
|
+
}
|
|
204
|
+
export type PackAuthorizationMap = Record<string, PackAuthorization>;
|
|
205
|
+
export type PackDownloadResult = {
|
|
206
|
+
status: "ok";
|
|
207
|
+
packDir: string;
|
|
208
|
+
} | {
|
|
209
|
+
status: "denied";
|
|
210
|
+
reason: "no-license" | "no-access" | "expired";
|
|
211
|
+
packs: string[];
|
|
212
|
+
expiresAt?: string | null;
|
|
213
|
+
};
|
|
214
|
+
export interface ComposeOptions {
|
|
215
|
+
cwd?: string;
|
|
216
|
+
licenseKey?: string;
|
|
217
|
+
force?: boolean;
|
|
218
|
+
yes?: boolean;
|
|
219
|
+
/** Comma-separated pack names parsed into a list for non-interactive (CI) use. */
|
|
220
|
+
packs?: string[];
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Options for the `template` command. A template expands to a starter, a
|
|
224
|
+
* layout, and a fixed set of feature packs, then layers its own frontend
|
|
225
|
+
* override files on top. The command is built for template making: you can
|
|
226
|
+
* swap the starter/layout slot variants and tack on extra packs that are not
|
|
227
|
+
* part of the template's predefined scope.
|
|
228
|
+
*/
|
|
229
|
+
export interface TemplateCommandOptions {
|
|
230
|
+
cwd?: string;
|
|
231
|
+
licenseKey?: string;
|
|
232
|
+
force?: boolean;
|
|
233
|
+
yes?: boolean;
|
|
234
|
+
/** Template id to install. When omitted, the command prompts for one (requires interactive mode). */
|
|
235
|
+
templateId?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Preselected variant overrides for the template's slots, keyed by family id
|
|
238
|
+
* (e.g. { "starter-saas": "starter-saas-better-auth" }). Used in non-interactive
|
|
239
|
+
* mode; interactive mode prompts instead.
|
|
240
|
+
*/
|
|
241
|
+
variants?: Record<string, string>;
|
|
242
|
+
/** Extra packs to add beyond the template's slots + fixed packs (non-interactive). */
|
|
243
|
+
packs?: string[];
|
|
244
|
+
}
|
|
245
|
+
/** A swappable slot in a template, resolved to a pack family by the backend. */
|
|
246
|
+
export interface TemplateSlot {
|
|
247
|
+
family: string;
|
|
248
|
+
default: string;
|
|
249
|
+
variants: string[];
|
|
250
|
+
}
|
|
251
|
+
export interface TemplateListItem {
|
|
252
|
+
id: string;
|
|
253
|
+
name: string;
|
|
254
|
+
description: string;
|
|
255
|
+
packs: string[];
|
|
256
|
+
slots: TemplateSlot[];
|
|
257
|
+
price: number;
|
|
258
|
+
theme: {
|
|
259
|
+
primary: string;
|
|
260
|
+
secondary: string;
|
|
261
|
+
pageBackground: string;
|
|
262
|
+
contentBackground: string;
|
|
263
|
+
};
|
|
264
|
+
extras: string[];
|
|
265
|
+
category: string;
|
|
266
|
+
tags: string[];
|
|
267
|
+
previewImage?: string;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Template manifest as served by the backend. Carries the override files list
|
|
271
|
+
* and codemod wiring (frontend routes, nav) the CLI applies after the packs.
|
|
272
|
+
* Slot/variant selection comes from the template list item, not the manifest.
|
|
273
|
+
*/
|
|
274
|
+
export interface TemplateManifest {
|
|
275
|
+
$schema?: string;
|
|
276
|
+
id: string;
|
|
277
|
+
version: string;
|
|
278
|
+
displayName: string;
|
|
279
|
+
description: string;
|
|
280
|
+
files: PackFile[];
|
|
281
|
+
frontendRoutes?: PackFrontendRoute[];
|
|
282
|
+
nav?: PackNavEntry[];
|
|
283
|
+
/** Canonical theme id the template ships with (e.g. `zinc-mono`), from the registry manifest. */
|
|
284
|
+
theme?: string;
|
|
285
|
+
dependencies_npm?: Record<string, Record<string, string>>;
|
|
286
|
+
postInstall?: string[];
|
|
287
|
+
postLoginRedirect?: string;
|
|
288
|
+
}
|
|
289
|
+
export type TemplateDownloadResult = {
|
|
290
|
+
status: "ok";
|
|
291
|
+
templateDir: string;
|
|
292
|
+
} | {
|
|
293
|
+
status: "denied";
|
|
294
|
+
reason: "no-license" | "no-access" | "expired";
|
|
295
|
+
packs: string[];
|
|
296
|
+
expiresAt?: string | null;
|
|
297
|
+
};
|
|
298
|
+
export interface PreparedTemplate {
|
|
299
|
+
manifest: TemplateManifest;
|
|
300
|
+
/** Directory holding the template override files downloaded from the backend. */
|
|
301
|
+
templateDir: string;
|
|
302
|
+
}
|
|
303
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAItE,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,QAAQ,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;CACrC;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,a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AAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,iFAAiF;IACjF,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
package/dist/ui/banner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../src/ui/banner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../src/ui/banner.ts"],"names":[],"mappings":"AAmCA,wBAAgB,WAAW,IAAI,IAAI,CAelC;AAED,wBAAgB,kBAAkB,IAAI,IAAI,CAIzC"}
|
package/dist/ui/logger.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/ui/logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/ui/logger.ts"],"names":[],"mappings":"AAIA,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE7C;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE3C;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAEzD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAE/C;AAED,wBAAgB,YAAY,IAAI,KAAK,CAGpC"}
|
package/dist/ui/theme.d.ts
CHANGED
|
@@ -34,4 +34,17 @@ export declare const symbols: {
|
|
|
34
34
|
};
|
|
35
35
|
export declare function gradient(text: string): string;
|
|
36
36
|
export declare function gradientVertical(lines: string[], topColor: (s: string) => string, bottomColor: (s: string) => string): string[];
|
|
37
|
+
type RGB = [number, number, number];
|
|
38
|
+
/**
|
|
39
|
+
* Colors a block of ASCII art with a diagonal (top-left -> bottom-right) truecolor
|
|
40
|
+
* gradient, so the shine angles across the glyphs like the real logo instead of
|
|
41
|
+
* banding flatly per row. `angle` weights how much the vertical axis contributes
|
|
42
|
+
* relative to the horizontal one (1 = pure 45deg diagonal).
|
|
43
|
+
*/
|
|
44
|
+
export declare function gradientDiagonal(lines: string[], options: {
|
|
45
|
+
start: RGB;
|
|
46
|
+
end: RGB;
|
|
47
|
+
angle?: number;
|
|
48
|
+
}): string[];
|
|
49
|
+
export {};
|
|
37
50
|
//# sourceMappingURL=theme.d.ts.map
|
package/dist/ui/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/ui/theme.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK;mBAPI,MAAM;yBACA,MAAM;kBACb,MAAM;qBACH,MAAM;oBACP,MAAM;sBACJ,MAAM;CAEmD,CAAC;AAEnF,eAAO,MAAM,MAAM;kBACH,MAAM;sBACF,MAAM;mBACT,MAAM;uBACF,MAAM;oBACT,MAAM;kBACR,MAAM;oBACJ,MAAM;kBACR,MAAM;iBACP,MAAM;sBACD,MAAM;iBACX,MAAM;oBACH,MAAM;kBACR,MAAM;CACrB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;CAUnB,CAAC;AAIF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAY7C;AAED,wBAAgB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/ui/theme.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK;mBAPI,MAAM;yBACA,MAAM;kBACb,MAAM;qBACH,MAAM;oBACP,MAAM;sBACJ,MAAM;CAEmD,CAAC;AAEnF,eAAO,MAAM,MAAM;kBACH,MAAM;sBACF,MAAM;mBACT,MAAM;uBACF,MAAM;oBACT,MAAM;kBACR,MAAM;oBACJ,MAAM;kBACR,MAAM;iBACP,MAAM;sBACD,MAAM;iBACX,MAAM;oBACH,MAAM;kBACR,MAAM;CACrB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;CAUnB,CAAC;AAIF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAY7C;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EAAE,EACf,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EAC/B,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,GACjC,MAAM,EAAE,CASV;AAED,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAMpC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,GAAG,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,EAAE,CAqB7G"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hype-stack/cli",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./themes": {
|
|
13
|
+
"types": "./dist/constants/themes.d.ts",
|
|
14
|
+
"import": "./dist/themes.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
7
17
|
"files": [
|
|
8
18
|
"dist"
|
|
9
19
|
],
|
|
10
20
|
"bin": {
|
|
11
|
-
"hype-stack": "./dist/bin.js"
|
|
21
|
+
"hype-stack": "./dist/config/bin.js"
|
|
12
22
|
},
|
|
13
23
|
"repository": {
|
|
14
24
|
"type": "git",
|
|
@@ -20,16 +30,40 @@
|
|
|
20
30
|
},
|
|
21
31
|
"dependencies": {
|
|
22
32
|
"@clack/prompts": "^1.2.0",
|
|
33
|
+
"@hyper-fetch/core": "^8.1.1",
|
|
23
34
|
"commander": "^13.0.0",
|
|
24
35
|
"giget": "^3.2.0",
|
|
25
|
-
"picocolors": "^1.1.0"
|
|
36
|
+
"picocolors": "^1.1.0",
|
|
37
|
+
"zod": "^4.3.6"
|
|
26
38
|
},
|
|
27
39
|
"devDependencies": {
|
|
28
40
|
"@types/node": "^25.6.0"
|
|
29
41
|
},
|
|
42
|
+
"nx": {
|
|
43
|
+
"targets": {
|
|
44
|
+
"local": {
|
|
45
|
+
"executor": "nx:run-commands",
|
|
46
|
+
"dependsOn": [
|
|
47
|
+
"build"
|
|
48
|
+
],
|
|
49
|
+
"options": {
|
|
50
|
+
"command": "node ./dist/config/bin.js",
|
|
51
|
+
"cwd": "packages/cli",
|
|
52
|
+
"env": {
|
|
53
|
+
"HYPE_STACK_API_URL": "http://localhost:3000",
|
|
54
|
+
"HYPE_STACK_WEB_URL": "http://localhost:3000"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
30
60
|
"scripts": {
|
|
61
|
+
"check:bin": "node ./scripts/check-bin-entry.mjs",
|
|
62
|
+
"prebuild": "pnpm run check:bin",
|
|
31
63
|
"build": "vite build",
|
|
32
64
|
"dev": "vite build --watch",
|
|
65
|
+
"local": "pnpm run build && HYPE_STACK_API_URL=${HYPE_STACK_API_URL:-http://localhost:3000} HYPE_STACK_WEB_URL=${HYPE_STACK_WEB_URL:-http://localhost:4200} node ./dist/config/bin.js",
|
|
66
|
+
"local:run": "HYPE_STACK_API_URL=${HYPE_STACK_API_URL:-http://localhost:3000} HYPE_STACK_WEB_URL=${HYPE_STACK_WEB_URL:-http://localhost:4200} node ./dist/config/bin.js",
|
|
33
67
|
"format": "pnpm --dir ../.. exec oxfmt --write packages/cli",
|
|
34
68
|
"typecheck": "pnpm --dir ../.. exec tsgo -p packages/cli/tsconfig.json --noEmit",
|
|
35
69
|
"lint": "pnpm --dir ../.. exec oxlint --fix packages/cli"
|
package/dist/bin.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
|