@cbnventures/nova 0.41.2 → 0.42.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.
Files changed (53) hide show
  1. package/build/package.json +1 -1
  2. package/build/src/cli/generate/github/workflows-blueprint.d.ts +2 -1
  3. package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -1
  4. package/build/src/cli/generate/github/workflows-blueprint.js +54 -1
  5. package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -1
  6. package/build/src/cli/index.js +4 -2
  7. package/build/src/cli/index.js.map +1 -1
  8. package/build/src/cli/utility/configure.d.ts +1 -0
  9. package/build/src/cli/utility/configure.d.ts.map +1 -1
  10. package/build/src/cli/utility/configure.js +29 -0
  11. package/build/src/cli/utility/configure.js.map +1 -1
  12. package/build/src/lib/dotenv.d.ts.map +1 -1
  13. package/build/src/lib/dotenv.js +2 -8
  14. package/build/src/lib/dotenv.js.map +1 -1
  15. package/build/src/lib/env-profiles.d.ts.map +1 -1
  16. package/build/src/lib/env-profiles.js +2 -1
  17. package/build/src/lib/env-profiles.js.map +1 -1
  18. package/build/src/lib/item.d.ts +3 -1
  19. package/build/src/lib/item.d.ts.map +1 -1
  20. package/build/src/lib/item.js +13 -0
  21. package/build/src/lib/item.js.map +1 -1
  22. package/build/src/rules/vitest/dotenv/register.d.ts.map +1 -1
  23. package/build/src/rules/vitest/dotenv/register.js +5 -2
  24. package/build/src/rules/vitest/dotenv/register.js.map +1 -1
  25. package/build/src/toolkit/bootstrap.d.ts +4 -2
  26. package/build/src/toolkit/bootstrap.d.ts.map +1 -1
  27. package/build/src/toolkit/bootstrap.js +56 -4
  28. package/build/src/toolkit/bootstrap.js.map +1 -1
  29. package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +33 -2
  30. package/build/src/types/cli/index.d.ts +4 -0
  31. package/build/src/types/cli/utility/configure.d.ts +23 -0
  32. package/build/src/types/lib/item.d.ts +22 -0
  33. package/build/src/types/rules/vitest/dotenv/register.d.ts +2 -0
  34. package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +31 -0
  35. package/build/src/types/tests/cli/integration/app-store-connect.test.d.ts +1 -1
  36. package/build/src/types/tests/cli/utility/configure.test.d.ts +25 -0
  37. package/build/src/types/tests/rules/vitest/dotenv.test.d.ts +2 -0
  38. package/build/src/types/tests/toolkit/bootstrap.test.d.ts +61 -0
  39. package/build/src/types/toolkit/bootstrap.d.ts +50 -0
  40. package/build/templates/scaffold/app/android/package.json +1 -1
  41. package/build/templates/scaffold/app/apple/package.json +1 -1
  42. package/build/templates/scaffold/app/astro/package.json +1 -1
  43. package/build/templates/scaffold/app/discord-bot/package.json +1 -1
  44. package/build/templates/scaffold/app/express/package.json +1 -1
  45. package/build/templates/scaffold/app/nextjs/package.json +1 -1
  46. package/build/templates/scaffold/app/vite/package.json +1 -1
  47. package/build/templates/scaffold/docs/docusaurus/package.json +2 -2
  48. package/build/templates/scaffold/package/github-action/package.json +1 -1
  49. package/build/templates/scaffold/package/homebridge/package.json +1 -1
  50. package/build/templates/scaffold/package/pfsense/package.json +1 -1
  51. package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/package.json +1 -1
  52. package/build/templates/scaffold-options/tool/serverless/vercel-functions/package.json +1 -1
  53. package/package.json +1 -1
@@ -5,6 +5,8 @@ import type { vi } from 'vitest';
5
5
  import type {
6
6
  Cli_Utility_Configure_Runner_CheckPath_CurrentDirectory,
7
7
  Cli_Utility_Configure_Runner_CheckPath_Returns,
8
+ Cli_Utility_Configure_Runner_FindPlainSampleLeftovers_Config,
9
+ Cli_Utility_Configure_Runner_FindPlainSampleLeftovers_Returns,
8
10
  Cli_Utility_Configure_Runner_PromptAgents_Config,
9
11
  Cli_Utility_Configure_Runner_PromptAgents_Returns,
10
12
  Cli_Utility_Configure_Runner_PromptDockerHub_Config,
@@ -208,6 +210,29 @@ export type Tests_Cli_Utility_Configure_CliUtilityConfigureRun_SandboxRoot = str
208
210
  */
209
211
  export type Tests_Cli_Utility_Configure_CliUtilityConfigureRun_SetsExitCodeWhenNotAtProjectRoot_ProjectDirectory = string;
210
212
 
213
+ /**
214
+ * Tests - CLI - Utility - Configure - Find Plain Sample Leftovers - Flags A Plain Env Sample Only While Profiles Are Enabled.
215
+ *
216
+ * @since 0.42.0
217
+ */
218
+ export type Tests_Cli_Utility_Configure_FindPlainSampleLeftovers_FlagsAPlainEnvSampleOnlyWhileProfilesAreEnabled_SandboxRoot = string;
219
+
220
+ export type Tests_Cli_Utility_Configure_FindPlainSampleLeftovers_FlagsAPlainEnvSampleOnlyWhileProfilesAreEnabled_SiteDirectory = string;
221
+
222
+ export type Tests_Cli_Utility_Configure_FindPlainSampleLeftovers_FlagsAPlainEnvSampleOnlyWhileProfilesAreEnabled_WorkerDirectory = string;
223
+
224
+ export type Tests_Cli_Utility_Configure_FindPlainSampleLeftovers_FlagsAPlainEnvSampleOnlyWhileProfilesAreEnabled_ProfilesConfig = Shared_NovaConfig;
225
+
226
+ export type Tests_Cli_Utility_Configure_FindPlainSampleLeftovers_FlagsAPlainEnvSampleOnlyWhileProfilesAreEnabled_PlainConfig = Shared_NovaConfig;
227
+
228
+ export type Tests_Cli_Utility_Configure_FindPlainSampleLeftovers_FlagsAPlainEnvSampleOnlyWhileProfilesAreEnabled_CwdSpy = ReturnType<typeof vi['spyOn']>;
229
+
230
+ export type Tests_Cli_Utility_Configure_FindPlainSampleLeftovers_FlagsAPlainEnvSampleOnlyWhileProfilesAreEnabled_FindPlainSampleLeftovers = (config: Cli_Utility_Configure_Runner_FindPlainSampleLeftovers_Config) => Cli_Utility_Configure_Runner_FindPlainSampleLeftovers_Returns;
231
+
232
+ export type Tests_Cli_Utility_Configure_FindPlainSampleLeftovers_FlagsAPlainEnvSampleOnlyWhileProfilesAreEnabled_ProfilesLeftovers = string[];
233
+
234
+ export type Tests_Cli_Utility_Configure_FindPlainSampleLeftovers_FlagsAPlainEnvSampleOnlyWhileProfilesAreEnabled_PlainLeftovers = string[];
235
+
211
236
  /**
212
237
  * Tests - CLI - Utility - Configure - Prompt Agents - Removes The Optional Field When No Tools Are Selected.
213
238
  *
@@ -17,3 +17,5 @@ export type Tests_Rules_Vitest_Dotenv_Violation = {
17
17
  export type Tests_Rules_Vitest_Dotenv_PresentViolations = Tests_Rules_Vitest_Dotenv_Violation[];
18
18
 
19
19
  export type Tests_Rules_Vitest_Dotenv_MissingViolations = Tests_Rules_Vitest_Dotenv_Violation[];
20
+
21
+ export type Tests_Rules_Vitest_Dotenv_ProfilesFixtureRoot = string;
@@ -149,6 +149,67 @@ export type Tests_Toolkit_Bootstrap_BootstrapLoadEnv_LoadsKEYValue_EnvFilePath =
149
149
  */
150
150
  export type Tests_Toolkit_Bootstrap_BootstrapLoadEnv_LoadsSingleQuotedValue_EnvFilePath = string;
151
151
 
152
+ /**
153
+ * Tests - Toolkit - Bootstrap - Bootstrap Profile Env.
154
+ *
155
+ * @since 0.42.0
156
+ */
157
+ export type Tests_Toolkit_Bootstrap_BootstrapProfileEnv_TempDir = string | undefined;
158
+
159
+ export type Tests_Toolkit_Bootstrap_BootstrapProfileEnv_OriginalNodeEnv = string | undefined;
160
+
161
+ export type Tests_Toolkit_Bootstrap_BootstrapProfileEnv_TempDirPath = string;
162
+
163
+ export type Tests_Toolkit_Bootstrap_BootstrapProfileEnv_ConfigFilePath = string;
164
+
165
+ export type Tests_Toolkit_Bootstrap_BootstrapProfileEnv_ConfigContent = string;
166
+
167
+ export type Tests_Toolkit_Bootstrap_BootstrapProfileEnv_PlainFilePath = string;
168
+
169
+ /**
170
+ * Tests - Toolkit - Bootstrap - Bootstrap Profile Env - Falls Back To Env When The Profile File Is Missing.
171
+ *
172
+ * @since 0.42.0
173
+ */
174
+ export type Tests_Toolkit_Bootstrap_BootstrapProfileEnv_FallsBackToEnvWhenTheProfileFileIsMissing_EnvDirectory = string;
175
+
176
+ /**
177
+ * Tests - Toolkit - Bootstrap - Bootstrap Profile Env - Loads Env When Profiles Are Disabled.
178
+ *
179
+ * @since 0.42.0
180
+ */
181
+ export type Tests_Toolkit_Bootstrap_BootstrapProfileEnv_LoadsEnvWhenProfilesAreDisabled_ConfigFilePath = string;
182
+
183
+ export type Tests_Toolkit_Bootstrap_BootstrapProfileEnv_LoadsEnvWhenProfilesAreDisabled_ProfileFilePath = string;
184
+
185
+ /**
186
+ * Tests - Toolkit - Bootstrap - Bootstrap Profile Env - Loads The Development Profile File By Default.
187
+ *
188
+ * @since 0.42.0
189
+ */
190
+ export type Tests_Toolkit_Bootstrap_BootstrapProfileEnv_LoadsTheDevelopmentProfileFileByDefault_ProfileFilePath = string;
191
+
192
+ /**
193
+ * Tests - Toolkit - Bootstrap - Bootstrap Profile Env - Loads The Profile File Named By The Node Env.
194
+ *
195
+ * @since 0.42.0
196
+ */
197
+ export type Tests_Toolkit_Bootstrap_BootstrapProfileEnv_LoadsTheProfileFileNamedByTheNodeEnv_ProfileFilePath = string;
198
+
199
+ /**
200
+ * Tests - Toolkit - Bootstrap - Bootstrap Profile Env - Prefers An Explicit Profile Over The Node Env.
201
+ *
202
+ * @since 0.42.0
203
+ */
204
+ export type Tests_Toolkit_Bootstrap_BootstrapProfileEnv_PrefersAnExplicitProfileOverTheNodeEnv_ProfileFilePath = string;
205
+
206
+ /**
207
+ * Tests - Toolkit - Bootstrap - Bootstrap Profile Env - Reports Profiles Enabled From The Nearest Nova Config Json.
208
+ *
209
+ * @since 0.42.0
210
+ */
211
+ export type Tests_Toolkit_Bootstrap_BootstrapProfileEnv_ReportsProfilesEnabledFromTheNearestNovaConfigJson_NestedDirectory = string;
212
+
152
213
  /**
153
214
  * Tests - Toolkit - Bootstrap - Bootstrap ResolveFileDir.
154
215
  *
@@ -1,3 +1,5 @@
1
+ import type { Shared_NovaConfigEnvironmentProfile } from '../shared.d.ts';
2
+
1
3
  /**
2
4
  * Toolkit - Bootstrap - Get Cache Dir.
3
5
  *
@@ -63,6 +65,19 @@ export type Toolkit_Bootstrap_Runner_GetDataDir_DataPath = string;
63
65
 
64
66
  export type Toolkit_Bootstrap_Runner_GetDataDir_BasePath = string;
65
67
 
68
+ /**
69
+ * Toolkit - Bootstrap - Get Env Profile.
70
+ *
71
+ * @since 0.42.0
72
+ */
73
+ export type Toolkit_Bootstrap_Runner_GetEnvProfile_Profile = string | undefined;
74
+
75
+ export type Toolkit_Bootstrap_Runner_GetEnvProfile_Returns = Shared_NovaConfigEnvironmentProfile;
76
+
77
+ export type Toolkit_Bootstrap_Runner_GetEnvProfile_ExplicitProfile = Shared_NovaConfigEnvironmentProfile | undefined;
78
+
79
+ export type Toolkit_Bootstrap_Runner_GetEnvProfile_NodeEnvProfile = Shared_NovaConfigEnvironmentProfile | undefined;
80
+
66
81
  /**
67
82
  * Toolkit - Bootstrap - Get Project Root.
68
83
  *
@@ -82,6 +97,31 @@ export type Toolkit_Bootstrap_Runner_GetProjectRoot_Parsed = Record<string, unkn
82
97
 
83
98
  export type Toolkit_Bootstrap_Runner_GetProjectRoot_Parent = string;
84
99
 
100
+ /**
101
+ * Toolkit - Bootstrap - Is Env Profiles Enabled.
102
+ *
103
+ * @since 0.42.0
104
+ */
105
+ export type Toolkit_Bootstrap_Runner_IsEnvProfilesEnabled_Directory = string;
106
+
107
+ export type Toolkit_Bootstrap_Runner_IsEnvProfilesEnabled_Returns = boolean;
108
+
109
+ export type Toolkit_Bootstrap_Runner_IsEnvProfilesEnabled_Dir = string;
110
+
111
+ export type Toolkit_Bootstrap_Runner_IsEnvProfilesEnabled_ConfigPath = string;
112
+
113
+ export type Toolkit_Bootstrap_Runner_IsEnvProfilesEnabled_RawConfig = Record<string, unknown>;
114
+
115
+ export type Toolkit_Bootstrap_Runner_IsEnvProfilesEnabled_RawEnvironmentValue = unknown;
116
+
117
+ export type Toolkit_Bootstrap_Runner_IsEnvProfilesEnabled_RawEnvironment = Record<string, unknown>;
118
+
119
+ export type Toolkit_Bootstrap_Runner_IsEnvProfilesEnabled_RawProfilesValue = unknown;
120
+
121
+ export type Toolkit_Bootstrap_Runner_IsEnvProfilesEnabled_RawProfiles = Record<string, unknown>;
122
+
123
+ export type Toolkit_Bootstrap_Runner_IsEnvProfilesEnabled_Parent = string;
124
+
85
125
  /**
86
126
  * Toolkit - Bootstrap - Load Env.
87
127
  *
@@ -89,8 +129,18 @@ export type Toolkit_Bootstrap_Runner_GetProjectRoot_Parent = string;
89
129
  */
90
130
  export type Toolkit_Bootstrap_Runner_LoadEnv_Directory = string;
91
131
 
132
+ export type Toolkit_Bootstrap_Runner_LoadEnv_Profile = string | undefined;
133
+
92
134
  export type Toolkit_Bootstrap_Runner_LoadEnv_Returns = void;
93
135
 
136
+ export type Toolkit_Bootstrap_Runner_LoadEnv_FileName = string;
137
+
138
+ export type Toolkit_Bootstrap_Runner_LoadEnv_EnvProfile = Shared_NovaConfigEnvironmentProfile;
139
+
140
+ export type Toolkit_Bootstrap_Runner_LoadEnv_ProfileFileName = string;
141
+
142
+ export type Toolkit_Bootstrap_Runner_LoadEnv_ProfileFilePath = string;
143
+
94
144
  export type Toolkit_Bootstrap_Runner_LoadEnv_FilePath = string;
95
145
 
96
146
  export type Toolkit_Bootstrap_Runner_LoadEnv_Content = string;
@@ -22,7 +22,7 @@
22
22
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
23
23
  },
24
24
  "dependencies": {
25
- "@cbnventures/nova": "0.41.2"
25
+ "@cbnventures/nova": "0.42.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "[__SCAFFOLD_VERSION_TYPES_NODE_24__]",
@@ -23,7 +23,7 @@
23
23
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
24
24
  },
25
25
  "dependencies": {
26
- "@cbnventures/nova": "0.41.2"
26
+ "@cbnventures/nova": "0.42.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "[__SCAFFOLD_VERSION_TYPES_NODE_24__]",
@@ -23,7 +23,7 @@
23
23
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
24
24
  },
25
25
  "dependencies": {
26
- "@cbnventures/nova": "0.41.2",
26
+ "@cbnventures/nova": "0.42.0",
27
27
  "astro": "[__SCAFFOLD_VERSION_ASTRO__]",
28
28
  "cookie": "[__SCAFFOLD_VERSION_COOKIE__]"
29
29
  },
@@ -24,7 +24,7 @@
24
24
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
25
25
  },
26
26
  "dependencies": {
27
- "@cbnventures/nova": "0.41.2",
27
+ "@cbnventures/nova": "0.42.0",
28
28
  "discord.js": "[__SCAFFOLD_VERSION_DISCORD_JS__]"
29
29
  },
30
30
  "devDependencies": {
@@ -24,7 +24,7 @@
24
24
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
25
25
  },
26
26
  "dependencies": {
27
- "@cbnventures/nova": "0.41.2",
27
+ "@cbnventures/nova": "0.42.0",
28
28
  "express": "[__SCAFFOLD_VERSION_EXPRESS__]"
29
29
  },
30
30
  "devDependencies": {
@@ -24,7 +24,7 @@
24
24
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
25
25
  },
26
26
  "dependencies": {
27
- "@cbnventures/nova": "0.41.2",
27
+ "@cbnventures/nova": "0.42.0",
28
28
  "next": "[__SCAFFOLD_VERSION_NEXT__]",
29
29
  "react": "[__SCAFFOLD_VERSION_REACT__]",
30
30
  "react-dom": "[__SCAFFOLD_VERSION_REACT_DOM__]"
@@ -22,7 +22,7 @@
22
22
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
23
23
  },
24
24
  "dependencies": {
25
- "@cbnventures/nova": "0.41.2"
25
+ "@cbnventures/nova": "0.42.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "[__SCAFFOLD_VERSION_TYPES_NODE_22__]",
@@ -27,8 +27,8 @@
27
27
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
28
28
  },
29
29
  "dependencies": {
30
- "@cbnventures/docusaurus-preset-nova": "0.41.2",
31
- "@cbnventures/nova": "0.41.2",
30
+ "@cbnventures/docusaurus-preset-nova": "0.42.0",
31
+ "@cbnventures/nova": "0.42.0",
32
32
  "@docusaurus/core": "[__SCAFFOLD_VERSION_DOCUSAURUS__]",
33
33
  "react": "[__SCAFFOLD_VERSION_REACT__]",
34
34
  "react-dom": "[__SCAFFOLD_VERSION_REACT_DOM__]"
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@actions/core": "[__SCAFFOLD_VERSION_ACTIONS_CORE__]",
29
- "@cbnventures/nova": "0.41.2"
29
+ "@cbnventures/nova": "0.42.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@github/local-action": "[__SCAFFOLD_VERSION_GITHUB_LOCAL_ACTION__]",
@@ -43,7 +43,7 @@
43
43
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
44
44
  },
45
45
  "dependencies": {
46
- "@cbnventures/nova": "0.41.2"
46
+ "@cbnventures/nova": "0.42.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/node": "[__SCAFFOLD_VERSION_TYPES_NODE_24__]",
@@ -29,7 +29,7 @@
29
29
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
30
30
  },
31
31
  "dependencies": {
32
- "@cbnventures/nova": "0.41.2"
32
+ "@cbnventures/nova": "0.42.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "[__SCAFFOLD_VERSION_TYPES_NODE_24__]",
@@ -49,7 +49,7 @@
49
49
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
50
50
  },
51
51
  "dependencies": {
52
- "@cbnventures/nova": "0.41.2",
52
+ "@cbnventures/nova": "0.42.0",
53
53
  "chalk": "[__SCAFFOLD_VERSION_CHALK__]",
54
54
  "commander": "[__SCAFFOLD_VERSION_COMMANDER__]",
55
55
  "wrangler": "[__SCAFFOLD_VERSION_WRANGLER__]"
@@ -51,7 +51,7 @@
51
51
  "node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
52
52
  },
53
53
  "dependencies": {
54
- "@cbnventures/nova": "0.41.2",
54
+ "@cbnventures/nova": "0.42.0",
55
55
  "chalk": "[__SCAFFOLD_VERSION_CHALK__]",
56
56
  "commander": "[__SCAFFOLD_VERSION_COMMANDER__]",
57
57
  "vercel": "[__SCAFFOLD_VERSION_VERCEL__]"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbnventures/nova",
3
- "version": "0.41.2",
3
+ "version": "0.42.0",
4
4
  "description": "Scripts, templates, and project configuration for the common JavaScript and TypeScript developer",
5
5
  "keywords": [
6
6
  "eslint",