@cyberskill/shared 1.46.0 → 1.48.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 (134) hide show
  1. package/README.md +12 -18
  2. package/dist/_tsup-dts-rollup.d.cts +413 -31
  3. package/dist/_tsup-dts-rollup.d.ts +413 -31
  4. package/dist/cli.cjs +2136 -1
  5. package/dist/cli.d.cts +2 -1
  6. package/dist/cli.d.ts +2 -1
  7. package/dist/cli.js +2056 -1
  8. package/dist/configs/commitlint/base.cjs +64 -1
  9. package/dist/configs/commitlint/base.js +7 -1
  10. package/dist/configs/eslint/base.cjs +121 -1
  11. package/dist/configs/eslint/base.js +52 -1
  12. package/dist/configs/eslint/nestjs.cjs +155 -1
  13. package/dist/configs/eslint/nestjs.js +85 -1
  14. package/dist/configs/eslint/nextjs.cjs +155 -1
  15. package/dist/configs/eslint/nextjs.js +85 -1
  16. package/dist/configs/eslint/nodejs.cjs +156 -1
  17. package/dist/configs/eslint/nodejs.js +86 -1
  18. package/dist/configs/eslint/vite-react.cjs +159 -1
  19. package/dist/configs/eslint/vite-react.js +89 -1
  20. package/dist/configs/graphql/graphql-codegen.cjs +125 -1
  21. package/dist/configs/graphql/graphql-codegen.js +64 -1
  22. package/dist/configs/graphql/index.cjs +126 -1
  23. package/dist/configs/graphql/index.js +64 -1
  24. package/dist/configs/i18n/react/i18next.cjs +80 -1
  25. package/dist/configs/i18n/react/i18next.js +7 -1
  26. package/dist/configs/i18n/react/index.cjs +81 -1
  27. package/dist/configs/i18n/react/index.js +7 -1
  28. package/dist/configs/index.cjs +232 -1
  29. package/dist/configs/index.js +166 -1
  30. package/dist/configs/lint-staged/base.cjs +64 -1
  31. package/dist/configs/lint-staged/base.js +7 -1
  32. package/dist/configs/vitest/react/e2e.cjs +128 -1
  33. package/dist/configs/vitest/react/e2e.js +59 -1
  34. package/dist/configs/vitest/react/unit.cjs +305 -1
  35. package/dist/configs/vitest/react/unit.js +228 -1
  36. package/dist/configs/vitest/react/unit.setup.cjs +60 -1
  37. package/dist/configs/vitest/react/unit.setup.js +8 -1
  38. package/dist/constants/index.cjs +678 -1
  39. package/dist/constants/index.d.cts +31 -1
  40. package/dist/constants/index.d.ts +31 -1
  41. package/dist/constants/index.js +469 -1
  42. package/dist/constants/path.cjs +423 -1
  43. package/dist/constants/path.d.cts +31 -1
  44. package/dist/constants/path.d.ts +31 -1
  45. package/dist/constants/path.js +218 -1
  46. package/dist/constants/response-status.cjs +313 -1
  47. package/dist/constants/response-status.js +252 -1
  48. package/dist/index.cjs +4546 -1
  49. package/dist/index.d.cts +51 -6
  50. package/dist/index.d.ts +51 -6
  51. package/dist/index.js +4133 -1
  52. package/dist/nodejs/index.cjs +2138 -1
  53. package/dist/nodejs/index.js +2054 -1
  54. package/dist/nodejs/mongo.cjs +2137 -1
  55. package/dist/nodejs/mongo.js +2054 -1
  56. package/dist/react/apollo-client.cjs +177 -1
  57. package/dist/react/apollo-client.js +116 -1
  58. package/dist/react/index.cjs +990 -1
  59. package/dist/react/index.js +876 -1
  60. package/dist/react/loading.cjs +301 -1
  61. package/dist/react/loading.js +216 -1
  62. package/dist/react/next-intl.cjs +744 -1
  63. package/dist/react/next-intl.js +655 -1
  64. package/dist/react/storage.cjs +631 -1
  65. package/dist/react/storage.js +558 -1
  66. package/dist/typescript/api-response.cjs +48 -1
  67. package/dist/typescript/apollo.cjs +48 -1
  68. package/dist/typescript/command.cjs +68 -1
  69. package/dist/typescript/command.d.cts +4 -0
  70. package/dist/typescript/command.d.ts +4 -0
  71. package/dist/typescript/command.js +7 -1
  72. package/dist/typescript/config.cjs +48 -1
  73. package/dist/typescript/fs.cjs +48 -0
  74. package/dist/typescript/fs.d.cts +1 -0
  75. package/dist/typescript/fs.d.ts +1 -0
  76. package/dist/typescript/fs.js +0 -0
  77. package/dist/typescript/graphql-codegen.cjs +48 -1
  78. package/dist/typescript/index.cjs +175 -1
  79. package/dist/typescript/index.d.cts +5 -0
  80. package/dist/typescript/index.d.ts +5 -0
  81. package/dist/typescript/index.js +151 -1
  82. package/dist/typescript/loading.cjs +48 -1
  83. package/dist/typescript/log.cjs +48 -1
  84. package/dist/typescript/mongo.cjs +164 -1
  85. package/dist/typescript/mongo.js +145 -1
  86. package/dist/typescript/next-intl.cjs +48 -1
  87. package/dist/typescript/react.cjs +48 -1
  88. package/dist/typescript/serializer.cjs +48 -1
  89. package/dist/typescript/string.cjs +48 -1
  90. package/dist/utils/command.cjs +1387 -1
  91. package/dist/utils/command.d.cts +2 -0
  92. package/dist/utils/command.d.ts +2 -0
  93. package/dist/utils/command.js +1287 -1
  94. package/dist/utils/common.cjs +300 -1
  95. package/dist/utils/common.js +219 -1
  96. package/dist/utils/config.cjs +146 -1
  97. package/dist/utils/config.js +89 -1
  98. package/dist/utils/fs.cjs +118 -1
  99. package/dist/utils/fs.d.cts +4 -1
  100. package/dist/utils/fs.d.ts +4 -1
  101. package/dist/utils/fs.js +37 -1
  102. package/dist/utils/index-nodejs.cjs +1738 -1
  103. package/dist/utils/index-nodejs.d.cts +15 -5
  104. package/dist/utils/index-nodejs.d.ts +15 -5
  105. package/dist/utils/index-nodejs.js +1571 -1
  106. package/dist/utils/index.cjs +727 -1
  107. package/dist/utils/index.js +625 -1
  108. package/dist/utils/log.cjs +330 -1
  109. package/dist/utils/log.js +269 -1
  110. package/dist/utils/package.cjs +941 -0
  111. package/dist/utils/package.d.cts +3 -0
  112. package/dist/utils/package.d.ts +3 -0
  113. package/dist/utils/package.js +857 -0
  114. package/dist/utils/path.cjs +291 -0
  115. package/dist/utils/path.d.cts +6 -0
  116. package/dist/utils/path.d.ts +6 -0
  117. package/dist/utils/path.js +191 -0
  118. package/dist/utils/serializer.cjs +91 -1
  119. package/dist/utils/serializer.js +30 -1
  120. package/dist/utils/storage-client.cjs +349 -1
  121. package/dist/utils/storage-client.js +276 -1
  122. package/dist/utils/storage-server.cjs +636 -1
  123. package/dist/utils/storage-server.d.cts +1 -1
  124. package/dist/utils/storage-server.d.ts +1 -1
  125. package/dist/utils/storage-server.js +550 -1
  126. package/dist/utils/string.cjs +152 -1
  127. package/dist/utils/string.js +75 -1
  128. package/dist/utils/validate.cjs +90 -1
  129. package/dist/utils/validate.js +33 -1
  130. package/package.json +19 -16
  131. package/dist/utils/npm-package.cjs +0 -1
  132. package/dist/utils/npm-package.d.cts +0 -4
  133. package/dist/utils/npm-package.d.ts +0 -4
  134. package/dist/utils/npm-package.js +0 -1
package/README.md CHANGED
@@ -39,32 +39,26 @@ CyberSkill Shared is a modular utility library designed to:
39
39
 
40
40
  ## 🚀 **Installation**
41
41
 
42
- Install via **npm**:
42
+ Install via **pnpm**:
43
43
 
44
44
  ```bash
45
- npm install @cyberskill/shared
46
- ```
47
-
48
- Install via **yarn**:
49
-
50
- ```bash
51
- yarn add @cyberskill/shared
45
+ pnpm install @cyberskill/shared
52
46
  ```
53
47
 
54
48
  ---
55
49
 
56
50
  ## 🛠️ **Scripts**
57
51
 
58
- | Command | Description |
59
- | ---------------------- | ----------------------------------- |
60
- | `npm run dev` | Start development mode 🚧 |
61
- | `npm run build` | Build for production 🚀 |
62
- | `npm run lint` | Check for linting issues ✅ |
63
- | `npm run lint:fix` | Fix linting issues 🔧 |
64
- | `npm run lint:inspect` | Inspect linting config 🧐 |
65
- | `npm run setup` | Project setup 🏗️ |
66
- | `npm run reset` | Reset the project ♻️ |
67
- | `npm run inspect` | Inspect the project dependencies 🔍 |
52
+ | Command | Description |
53
+ | ----------------------- | ----------------------------------- |
54
+ | `pnpm run dev` | Start development mode 🚧 |
55
+ | `pnpm run build` | Build for production 🚀 |
56
+ | `pnpm run lint` | Check for linting issues ✅ |
57
+ | `pnpm run lint:fix` | Fix linting issues 🔧 |
58
+ | `pnpm run lint:inspect` | Inspect linting config 🧐 |
59
+ | `pnpm run setup` | Project setup 🏗️ |
60
+ | `pnpm run reset` | Reset the project ♻️ |
61
+ | `pnpm run inspect` | Inspect the project dependencies 🔍 |
68
62
 
69
63
  ---
70
64
 
@@ -9,7 +9,6 @@ import type { ClientSession } from 'mongoose';
9
9
  import type { CodegenConfig } from '@graphql-codegen/cli';
10
10
  import { Collection } from 'mongodb';
11
11
  import type { ComponentType } from 'react';
12
- import { ConfigNames } from '@antfu/eslint-config';
13
12
  import { Context } from 'react';
14
13
  import { Db } from 'mongodb';
15
14
  import type { DeleteResult } from 'mongodb';
@@ -18,7 +17,6 @@ import type { ErrorHandlingMiddlewareFunction } from 'mongoose';
18
17
  import type { ErrorHandlingMiddlewareWithOption } from 'mongoose';
19
18
  import type { Filter } from 'mongodb';
20
19
  import type { FilterQuery } from 'mongoose';
21
- import { FlatConfigComposer } from 'eslint-flat-config-utils';
22
20
  import type { InitOptions } from 'i18next';
23
21
  import type { InsertManyOptions } from 'mongoose';
24
22
  import type { InsertManyResult } from 'mongodb';
@@ -49,11 +47,10 @@ import type { Schema } from 'mongoose';
49
47
  import type { SchemaDefinition } from 'mongoose';
50
48
  import { TFunction } from 'i18next';
51
49
  import type { Timezone } from 'next-intl';
52
- import { TypedFlatConfigItem } from '@antfu/eslint-config';
53
50
  import type { UpdateQuery } from 'mongoose';
54
51
  import type { UpdateResult } from 'mongodb';
55
52
  import type { UserConfig } from 'vite';
56
- import { useTranslations } from 'use-intl';
53
+ import { useTranslations } from 'next-intl';
57
54
  import type { WithId } from 'mongodb';
58
55
 
59
56
  export { aggregatePaginate }
@@ -77,6 +74,18 @@ export { ApolloProvider }
77
74
  export { ApolloProvider as ApolloProvider_alias_1 }
78
75
  export { ApolloProvider as ApolloProvider_alias_2 }
79
76
 
77
+ declare function appendFileSync(filePath: string, data: string | object, options?: {
78
+ isJson?: boolean;
79
+ }): void;
80
+ export { appendFileSync }
81
+ export { appendFileSync as appendFileSync_alias_1 }
82
+ export { appendFileSync as appendFileSync_alias_2 }
83
+
84
+ declare const BUILD_DIRECTORY = "dist";
85
+ export { BUILD_DIRECTORY }
86
+ export { BUILD_DIRECTORY as BUILD_DIRECTORY_alias_1 }
87
+ export { BUILD_DIRECTORY as BUILD_DIRECTORY_alias_2 }
88
+
80
89
  declare class C_Collection<T extends Partial<C_Document>> extends Collection<T> {
81
90
  }
82
91
  export { C_Collection }
@@ -105,11 +114,115 @@ export { C_Model }
105
114
  export { C_Model as C_Model_alias_1 }
106
115
  export { C_Model as C_Model_alias_2 }
107
116
 
117
+ declare function checkPackage(packageName: string): Promise<{
118
+ isInstalled: boolean;
119
+ isCurrentProject: boolean;
120
+ installedPath: string;
121
+ installedVersion: string;
122
+ latestVersion: string;
123
+ file: I_JSON_2;
124
+ }>;
125
+ export { checkPackage }
126
+ export { checkPackage as checkPackage_alias_1 }
127
+ export { checkPackage as checkPackage_alias_2 }
128
+
108
129
  declare function clearAllErrorLists(): Promise<void>;
109
130
  export { clearAllErrorLists }
110
131
  export { clearAllErrorLists as clearAllErrorLists_alias_1 }
111
132
  export { clearAllErrorLists as clearAllErrorLists_alias_2 }
112
133
 
134
+ declare const COMMAND: {
135
+ SIMPLE_GIT_HOOKS: {
136
+ readonly raw: true;
137
+ readonly cmd: string;
138
+ };
139
+ ESLINT_INSPECT: {
140
+ readonly raw: true;
141
+ readonly cmd: string;
142
+ };
143
+ NODE_MODULES_INSPECT: {
144
+ readonly raw: true;
145
+ readonly cmd: string;
146
+ };
147
+ RESET: {
148
+ readonly raw: true;
149
+ readonly cmd: string;
150
+ };
151
+ ESLINT_CHECK: {
152
+ readonly raw: true;
153
+ readonly cmd: string;
154
+ };
155
+ ESLINT_FIX: {
156
+ readonly raw: true;
157
+ readonly cmd: string;
158
+ };
159
+ TYPESCRIPT_CHECK: {
160
+ readonly raw: true;
161
+ readonly cmd: string;
162
+ };
163
+ CYBERSKILL: {
164
+ TEST_UNIT: {
165
+ readonly raw: true;
166
+ readonly cmd: string;
167
+ };
168
+ TEST_E2E: {
169
+ readonly raw: true;
170
+ readonly cmd: string;
171
+ };
172
+ COMMIT_LINT: {
173
+ readonly raw: true;
174
+ readonly cmd: string;
175
+ };
176
+ LINT_STAGED: {
177
+ readonly raw: true;
178
+ readonly cmd: string;
179
+ };
180
+ };
181
+ CONFIGURE_GIT_HOOK: {
182
+ readonly raw: true;
183
+ readonly cmd: string;
184
+ };
185
+ BUILD: {
186
+ readonly raw: true;
187
+ readonly cmd: string;
188
+ };
189
+ STAGE_BUILD_DIRECTORY: {
190
+ readonly raw: true;
191
+ readonly cmd: string;
192
+ };
193
+ PNPM_INSTALL_STANDARD: {
194
+ readonly raw: true;
195
+ readonly cmd: string;
196
+ };
197
+ PNPM_INSTALL_LEGACY: {
198
+ readonly raw: true;
199
+ readonly cmd: string;
200
+ };
201
+ PNPM_INSTALL_FORCE: {
202
+ readonly raw: true;
203
+ readonly cmd: string;
204
+ };
205
+ };
206
+ export { COMMAND }
207
+ export { COMMAND as COMMAND_alias_1 }
208
+ export { COMMAND as COMMAND_alias_2 }
209
+
210
+ declare const commandFormatter: {
211
+ raw: (cmd: string) => {
212
+ readonly raw: true;
213
+ readonly cmd: string;
214
+ };
215
+ isRaw(cmd: any): cmd is {
216
+ raw: true;
217
+ cmd: string;
218
+ };
219
+ format(command: T_Command_2, context?: I_CommandContext_2): string;
220
+ formatCLI(command: string, context?: I_CommandContext_2): string;
221
+ };
222
+ export { commandFormatter }
223
+ export { commandFormatter as commandFormatter_alias_1 }
224
+ export { commandFormatter as commandFormatter_alias_2 }
225
+
113
226
  declare const commandLog: {
114
227
  success: (message: string) => void;
115
228
  error: (message: string) => void;
@@ -121,17 +234,42 @@ export { commandLog }
121
234
  export { commandLog as commandLog_alias_1 }
122
235
  export { commandLog as commandLog_alias_2 }
123
236
 
237
+ declare const COMMIT_LINT_CLI = "commitlint";
238
+ export { COMMIT_LINT_CLI }
239
+ export { COMMIT_LINT_CLI as COMMIT_LINT_CLI_alias_1 }
240
+ export { COMMIT_LINT_CLI as COMMIT_LINT_CLI_alias_2 }
241
+
124
242
  declare function createGraphqlCodegenConfig({ uri, from, to, withComponent, withHOC, withHooks, withMutationFn, withRefetchFn, }: I_GraphqlCodegenConfig_2): CodegenConfig;
125
243
  export { createGraphqlCodegenConfig }
126
244
  export { createGraphqlCodegenConfig as createGraphqlCodegenConfig_alias_1 }
127
245
 
246
+ declare const CYBERSKILL_CLI = "cyberskill";
247
+ export { CYBERSKILL_CLI }
248
+ export { CYBERSKILL_CLI as CYBERSKILL_CLI_alias_1 }
249
+ export { CYBERSKILL_CLI as CYBERSKILL_CLI_alias_2 }
250
+
251
+ declare const CYBERSKILL_DIRECTORY: string;
252
+ export { CYBERSKILL_DIRECTORY }
253
+ export { CYBERSKILL_DIRECTORY as CYBERSKILL_DIRECTORY_alias_1 }
254
+ export { CYBERSKILL_DIRECTORY as CYBERSKILL_DIRECTORY_alias_2 }
255
+
256
+ declare const CYBERSKILL_PACKAGE_NAME = "@cyberskill/shared";
257
+ export { CYBERSKILL_PACKAGE_NAME }
258
+ export { CYBERSKILL_PACKAGE_NAME as CYBERSKILL_PACKAGE_NAME_alias_1 }
259
+ export { CYBERSKILL_PACKAGE_NAME as CYBERSKILL_PACKAGE_NAME_alias_2 }
260
+
261
+ declare const CYBERSKILL_STORAGE = ".cyberskill-storage";
262
+ export { CYBERSKILL_STORAGE }
263
+ export { CYBERSKILL_STORAGE as CYBERSKILL_STORAGE_alias_1 }
264
+ export { CYBERSKILL_STORAGE as CYBERSKILL_STORAGE_alias_2 }
265
+
128
266
  declare function deepMerge(...configs: (I_Config_2 | I_Config_2[])[]): I_Config_2;
129
267
  export { deepMerge }
130
268
  export { deepMerge as deepMerge_alias_1 }
131
269
  export { deepMerge as deepMerge_alias_2 }
132
270
 
133
271
  export declare const default_alias: {
134
- merge: (type?: string, ...configs: I_Config_2[]) => I_Config_2 | FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
272
+ merge: (type: string, ...configs: I_Config_2[]) => Promise<object>;
135
273
  };
136
274
 
137
275
  export declare const default_alias_1: {
@@ -5920,6 +6058,11 @@ export declare const default_alias_8: (options: UserConfig) => UserConfig;
5920
6058
 
5921
6059
  export declare const default_alias_9: (options: UserConfig) => UserConfig;
5922
6060
 
6061
+ declare function dirname(url: string): string;
6062
+ export { dirname }
6063
+ export { dirname as dirname_alias_1 }
6064
+ export { dirname as dirname_alias_2 }
6065
+
5923
6066
  declare enum E_ErrorType {
5924
6067
  Error = "error",
5925
6068
  Warning = "warning"
@@ -5933,15 +6076,25 @@ declare enum E_ErrorType_2 {
5933
6076
  Warning = 'warning',
5934
6077
  }
5935
6078
 
6079
+ declare const ESLINT_CLI = "eslint";
6080
+ export { ESLINT_CLI }
6081
+ export { ESLINT_CLI as ESLINT_CLI_alias_1 }
6082
+ export { ESLINT_CLI as ESLINT_CLI_alias_2 }
6083
+
6084
+ declare const ESLINT_INSPECT_CLI = "@eslint/config-inspector";
6085
+ export { ESLINT_INSPECT_CLI }
6086
+ export { ESLINT_INSPECT_CLI as ESLINT_INSPECT_CLI_alias_1 }
6087
+ export { ESLINT_INSPECT_CLI as ESLINT_INSPECT_CLI_alias_2 }
6088
+
5936
6089
  declare function executeCommand(command: string, parser?: typeof parseCommandOutput): Promise<void>;
5937
6090
  export { executeCommand }
5938
6091
  export { executeCommand as executeCommand_alias_1 }
5939
6092
  export { executeCommand as executeCommand_alias_2 }
5940
6093
 
5941
- declare const fileExists: (filePath: string) => boolean;
5942
- export { fileExists }
5943
- export { fileExists as fileExists_alias_1 }
5944
- export { fileExists as fileExists_alias_2 }
6094
+ declare const existsSync: (filePath: string) => boolean;
6095
+ export { existsSync }
6096
+ export { existsSync as existsSync_alias_1 }
6097
+ export { existsSync as existsSync_alias_2 }
5945
6098
 
5946
6099
  declare function generateShortId(uuid: string, length?: number): string;
5947
6100
  export { generateShortId }
@@ -5958,11 +6111,57 @@ export { getLatestPackageVersion }
5958
6111
  export { getLatestPackageVersion as getLatestPackageVersion_alias_1 }
5959
6112
  export { getLatestPackageVersion as getLatestPackageVersion_alias_2 }
5960
6113
 
6114
+ declare function getPackageJson(packageName: string): {
6115
+ path: string;
6116
+ file: I_JSON_2;
6117
+ } | false;
6118
+ export { getPackageJson }
6119
+ export { getPackageJson as getPackageJson_alias_1 }
6120
+ export { getPackageJson as getPackageJson_alias_2 }
6121
+
6122
+ declare function getStorageDir(): string;
6123
+ export { getStorageDir }
6124
+ export { getStorageDir as getStorageDir_alias_1 }
6125
+ export { getStorageDir as getStorageDir_alias_2 }
6126
+
5961
6127
  declare function getStoredErrorLists(): Promise<I_ErrorEntry_2[]>;
5962
6128
  export { getStoredErrorLists }
5963
6129
  export { getStoredErrorLists as getStoredErrorLists_alias_1 }
5964
6130
  export { getStoredErrorLists as getStoredErrorLists_alias_2 }
5965
6131
 
6132
+ declare const GIT_CLI = "git";
6133
+ export { GIT_CLI }
6134
+ export { GIT_CLI as GIT_CLI_alias_1 }
6135
+ export { GIT_CLI as GIT_CLI_alias_2 }
6136
+
6137
+ declare const GIT_COMMIT_EDITMSG = ".git/COMMIT_EDITMSG";
6138
+ export { GIT_COMMIT_EDITMSG }
6139
+ export { GIT_COMMIT_EDITMSG as GIT_COMMIT_EDITMSG_alias_1 }
6140
+ export { GIT_COMMIT_EDITMSG as GIT_COMMIT_EDITMSG_alias_2 }
6141
+
6142
+ declare const GIT_HOOK = ".git/hooks";
6143
+ export { GIT_HOOK }
6144
+ export { GIT_HOOK as GIT_HOOK_alias_1 }
6145
+ export { GIT_HOOK as GIT_HOOK_alias_2 }
6146
+
6147
+ declare const GIT_IGNORE = ".gitignore";
6148
+ export { GIT_IGNORE }
6149
+ export { GIT_IGNORE as GIT_IGNORE_alias_1 }
6150
+ export { GIT_IGNORE as GIT_IGNORE_alias_2 }
6151
+
6152
+ declare function HOOK({ isCurrentProject }: Partial<I_CommandContext_2>): {
6153
+ 'pre-push'?: {
6154
+ readonly raw: true;
6155
+ readonly cmd: string;
6156
+ } | undefined;
6157
+ postinstall: string;
6158
+ 'pre-commit': string;
6159
+ 'commit-msg': string;
6160
+ };
6161
+ export { HOOK }
6162
+ export { HOOK as HOOK_alias_1 }
6163
+ export { HOOK as HOOK_alias_2 }
6164
+
5966
6165
  declare interface I_ApolloOptions extends Omit<ApolloClientOptions<unknown>, 'cache'> {
5967
6166
  uri?: string;
5968
6167
  wsUrl?: string;
@@ -6020,6 +6219,19 @@ declare interface I_BoxedLogOptions_2 {
6020
6219
  titleColor?: string;
6021
6220
  }
6022
6221
 
6222
+ declare interface I_CommandContext {
6223
+ isRemote: boolean;
6224
+ isCurrentProject: boolean;
6225
+ }
6226
+ export { I_CommandContext }
6227
+ export { I_CommandContext as I_CommandContext_alias_1 }
6228
+ export { I_CommandContext as I_CommandContext_alias_2 }
6229
+
6230
+ declare interface I_CommandContext_2 {
6231
+ isRemote: boolean;
6232
+ isCurrentProject: boolean;
6233
+ }
6234
+
6023
6235
  declare interface I_Config {
6024
6236
  [key: string]: string | number | boolean | I_Config | I_Config[];
6025
6237
  }
@@ -6243,6 +6455,17 @@ export { I_Input_UpdateOne }
6243
6455
  export { I_Input_UpdateOne as I_Input_UpdateOne_alias_1 }
6244
6456
  export { I_Input_UpdateOne as I_Input_UpdateOne_alias_2 }
6245
6457
 
6458
+ declare interface I_JSON {
6459
+ [key: string]: any;
6460
+ }
6461
+ export { I_JSON }
6462
+ export { I_JSON as I_JSON_alias_1 }
6463
+ export { I_JSON as I_JSON_alias_2 }
6464
+
6465
+ declare interface I_JSON_2 {
6466
+ [key: string]: any;
6467
+ }
6468
+
6246
6469
  declare interface I_LoadingContext {
6247
6470
  isLoading: boolean;
6248
6471
  isGlobalLoading: boolean;
@@ -6476,20 +6699,22 @@ export { initNodePersist }
6476
6699
  export { initNodePersist as initNodePersist_alias_1 }
6477
6700
  export { initNodePersist as initNodePersist_alias_2 }
6478
6701
 
6479
- declare function isCurrentProject(WORKING_DIRECTORY: string, PACKAGE_NAME: string): boolean;
6480
- export { isCurrentProject }
6481
- export { isCurrentProject as isCurrentProject_alias_1 }
6482
- export { isCurrentProject as isCurrentProject_alias_2 }
6702
+ export declare function installDependencies(): Promise<void>;
6483
6703
 
6484
6704
  declare function isJson(str: string): boolean;
6485
6705
  export { isJson }
6486
6706
  export { isJson as isJson_alias_1 }
6487
6707
  export { isJson as isJson_alias_2 }
6488
6708
 
6489
- declare function isPackageOutdated(packageName: string, forceRefresh?: boolean): Promise<boolean>;
6490
- export { isPackageOutdated }
6491
- export { isPackageOutdated as isPackageOutdated_alias_1 }
6492
- export { isPackageOutdated as isPackageOutdated_alias_2 }
6709
+ declare function join(...urls: string[]): string;
6710
+ export { join }
6711
+ export { join as join_alias_1 }
6712
+ export { join as join_alias_2 }
6713
+
6714
+ declare const LINT_STAGED_CLI = "lint-staged";
6715
+ export { LINT_STAGED_CLI }
6716
+ export { LINT_STAGED_CLI as LINT_STAGED_CLI_alias_1 }
6717
+ export { LINT_STAGED_CLI as LINT_STAGED_CLI_alias_2 }
6493
6718
 
6494
6719
  declare function Loading({ full, block, className, message, ...rest }: I_LoadingProps_2): JSX_2.Element;
6495
6720
  export { Loading }
@@ -6637,14 +6862,83 @@ export { NextIntlProvider }
6637
6862
  export { NextIntlProvider as NextIntlProvider_alias_1 }
6638
6863
  export { NextIntlProvider as NextIntlProvider_alias_2 }
6639
6864
 
6865
+ declare const NODE_MODULES = "node_modules";
6866
+ export { NODE_MODULES }
6867
+ export { NODE_MODULES as NODE_MODULES_alias_1 }
6868
+ export { NODE_MODULES as NODE_MODULES_alias_2 }
6869
+
6870
+ declare const NODE_MODULES_INSPECT_CLI = "node_modules-inspect";
6871
+ export { NODE_MODULES_INSPECT_CLI }
6872
+ export { NODE_MODULES_INSPECT_CLI as NODE_MODULES_INSPECT_CLI_alias_1 }
6873
+ export { NODE_MODULES_INSPECT_CLI as NODE_MODULES_INSPECT_CLI_alias_2 }
6874
+
6875
+ declare const PACKAGE_JSON = "package.json";
6876
+ export { PACKAGE_JSON }
6877
+ export { PACKAGE_JSON as PACKAGE_JSON_alias_1 }
6878
+ export { PACKAGE_JSON as PACKAGE_JSON_alias_2 }
6879
+
6880
+ declare const PACKAGE_LOCK_JSON = "package-lock.json";
6881
+ export { PACKAGE_LOCK_JSON }
6882
+ export { PACKAGE_LOCK_JSON as PACKAGE_LOCK_JSON_alias_1 }
6883
+ export { PACKAGE_LOCK_JSON as PACKAGE_LOCK_JSON_alias_2 }
6884
+
6640
6885
  declare function parseCommandOutput(output: string): void;
6641
6886
 
6887
+ declare const PATH: {
6888
+ CYBERSKILL_DIRECTORY: string;
6889
+ WORKING_DIRECTORY: string;
6890
+ TS_CONFIG: string;
6891
+ GIT_IGNORE: string;
6892
+ GIT_HOOK: string;
6893
+ GIT_COMMIT_MSG: string;
6894
+ SIMPLE_GIT_HOOKS: string;
6895
+ PACKAGE_JSON: string;
6896
+ PACKAGE_LOCK_JSON: string;
6897
+ PNPM_LOCK_YAML: string;
6898
+ NODE_MODULES: string;
6899
+ CYBERSKILL: {
6900
+ LINT_STAGED_CONFIG: string;
6901
+ COMMITLINT_CONFIG: string;
6902
+ UNIT_TEST_CONFIG: string;
6903
+ E2E_TEST_CONFIG: string;
6904
+ };
6905
+ };
6906
+ export { PATH }
6907
+ export { PATH as PATH_alias_1 }
6908
+ export { PATH as PATH_alias_2 }
6909
+
6910
+ declare const PNPM_CLI = "pnpm";
6911
+ export { PNPM_CLI }
6912
+ export { PNPM_CLI as PNPM_CLI_alias_1 }
6913
+ export { PNPM_CLI as PNPM_CLI_alias_2 }
6914
+
6915
+ declare const PNPM_DLX_CLI = "pnpm dlx";
6916
+ export { PNPM_DLX_CLI }
6917
+ export { PNPM_DLX_CLI as PNPM_DLX_CLI_alias_1 }
6918
+ export { PNPM_DLX_CLI as PNPM_DLX_CLI_alias_2 }
6919
+
6920
+ declare const PNPM_EXEC_CLI = "pnpm exec";
6921
+ export { PNPM_EXEC_CLI }
6922
+ export { PNPM_EXEC_CLI as PNPM_EXEC_CLI_alias_1 }
6923
+ export { PNPM_EXEC_CLI as PNPM_EXEC_CLI_alias_2 }
6924
+
6925
+ declare const PNPM_LOCK_YAML = "pnpm-lock.yaml";
6926
+ export { PNPM_LOCK_YAML }
6927
+ export { PNPM_LOCK_YAML as PNPM_LOCK_YAML_alias_1 }
6928
+ export { PNPM_LOCK_YAML as PNPM_LOCK_YAML_alias_2 }
6929
+
6642
6930
  declare function printBoxedLog<T extends string | I_ErrorEntry_2[]>(title: string, content: T, { color, padding, margin, borderStyle, titleColor, }?: I_BoxedLogOptions_2): void;
6643
6931
 
6644
- declare const PROJECT_ROOT: string;
6645
- export { PROJECT_ROOT }
6646
- export { PROJECT_ROOT as PROJECT_ROOT_alias_1 }
6647
- export { PROJECT_ROOT as PROJECT_ROOT_alias_2 }
6932
+ declare function readFileSync(filePath: string, options: {
6933
+ asJson: true;
6934
+ }): I_JSON_2;
6935
+
6936
+ declare function readFileSync(filePath: string, options?: {
6937
+ asJson?: false;
6938
+ }): string;
6939
+ export { readFileSync }
6940
+ export { readFileSync as readFileSync_alias_1 }
6941
+ export { readFileSync as readFileSync_alias_2 }
6648
6942
 
6649
6943
  declare function regexSearchMapper(str: string): string;
6650
6944
  export { regexSearchMapper }
@@ -6656,6 +6950,33 @@ export { removeAccent }
6656
6950
  export { removeAccent as removeAccent_alias_1 }
6657
6951
  export { removeAccent as removeAccent_alias_2 }
6658
6952
 
6953
+ declare function require_2(): NodeJS.Require;
6954
+ export { require_2 as require }
6955
+ export { require_2 as require_alias_1 }
6956
+ export { require_2 as require_alias_2 }
6957
+
6958
+ declare function resolve(...urls: string[]): string;
6959
+ export { resolve }
6960
+ export { resolve as resolve_alias_1 }
6961
+ export { resolve as resolve_alias_2 }
6962
+
6963
+ declare function resolveCommands(input: T_CommandMapInput_2, context?: Partial<I_CommandContext_2>): Promise<{
6964
+ [k: string]: string;
6965
+ }>;
6966
+ export { resolveCommands }
6967
+ export { resolveCommands as resolveCommands_alias_1 }
6968
+ export { resolveCommands as resolveCommands_alias_2 }
6969
+
6970
+ declare function resolveCyberSkillPath(...urls: string[]): string;
6971
+ export { resolveCyberSkillPath }
6972
+ export { resolveCyberSkillPath as resolveCyberSkillPath_alias_1 }
6973
+ export { resolveCyberSkillPath as resolveCyberSkillPath_alias_2 }
6974
+
6975
+ declare function resolveWorkingPath(...urls: string[]): string;
6976
+ export { resolveWorkingPath }
6977
+ export { resolveWorkingPath as resolveWorkingPath_alias_1 }
6978
+ export { resolveWorkingPath as resolveWorkingPath_alias_2 }
6979
+
6659
6980
  declare const RESPONSE_STATUS: {
6660
6981
  GRAPHQL_PARSE_FAILED: {
6661
6982
  CODE: string;
@@ -6910,6 +7231,11 @@ export { RESPONSE_STATUS }
6910
7231
  export { RESPONSE_STATUS as RESPONSE_STATUS_alias_1 }
6911
7232
  export { RESPONSE_STATUS as RESPONSE_STATUS_alias_2 }
6912
7233
 
7234
+ declare const RIMRAF_CLI = "rimraf";
7235
+ export { RIMRAF_CLI }
7236
+ export { RIMRAF_CLI as RIMRAF_CLI_alias_1 }
7237
+ export { RIMRAF_CLI as RIMRAF_CLI_alias_2 }
7238
+
6913
7239
  declare function saveErrorListToStorage(errorList: I_ErrorEntry_2[]): Promise<void>;
6914
7240
  export { saveErrorListToStorage }
6915
7241
  export { saveErrorListToStorage as saveErrorListToStorage_alias_1 }
@@ -6920,6 +7246,16 @@ export { serializer }
6920
7246
  export { serializer as serializer_alias_1 }
6921
7247
  export { serializer as serializer_alias_2 }
6922
7248
 
7249
+ declare const SIMPLE_GIT_HOOK_CLI = "simple-git-hooks";
7250
+ export { SIMPLE_GIT_HOOK_CLI }
7251
+ export { SIMPLE_GIT_HOOK_CLI as SIMPLE_GIT_HOOK_CLI_alias_1 }
7252
+ export { SIMPLE_GIT_HOOK_CLI as SIMPLE_GIT_HOOK_CLI_alias_2 }
7253
+
7254
+ declare const SIMPLE_GIT_HOOK_JSON = ".simple-git-hooks.json";
7255
+ export { SIMPLE_GIT_HOOK_JSON }
7256
+ export { SIMPLE_GIT_HOOK_JSON as SIMPLE_GIT_HOOK_JSON_alias_1 }
7257
+ export { SIMPLE_GIT_HOOK_JSON as SIMPLE_GIT_HOOK_JSON_alias_2 }
7258
+
6923
7259
  declare const storageClient: {
6924
7260
  get<T = unknown>(key: string): Promise<T | null>;
6925
7261
  set<T = unknown>(key: string, value: T): Promise<void>;
@@ -6930,11 +7266,6 @@ export { storageClient }
6930
7266
  export { storageClient as storageClient_alias_1 }
6931
7267
  export { storageClient as storageClient_alias_2 }
6932
7268
 
6933
- declare const storageDir: string;
6934
- export { storageDir }
6935
- export { storageDir as storageDir_alias_1 }
6936
- export { storageDir as storageDir_alias_2 }
6937
-
6938
7269
  declare const storageServer: {
6939
7270
  get<T = unknown>(key: string): Promise<T | null>;
6940
7271
  set<T = unknown>(key: string, value: T): Promise<void>;
@@ -6960,6 +7291,33 @@ export { T_Children as T_Children_alias_2 }
6960
7291
 
6961
7292
  declare type T_Children_2 = ReactNode | ReactNode[] | ReactElement | JSX.Element | null;
6962
7293
 
7294
+ declare type T_Command = string | ((context?: I_CommandContext) => string) | {
7295
+ raw: true;
7296
+ cmd: string;
7297
+ };
7298
+ export { T_Command }
7299
+ export { T_Command as T_Command_alias_1 }
7300
+ export { T_Command as T_Command_alias_2 }
7301
+
7302
+ declare type T_Command_2 =
7303
+ | string
7304
+ | ((context?: I_CommandContext_2) => string)
7305
+ | { raw: true; cmd: string };
7306
+
7307
+ declare type T_CommandMap = Record<string, T_Command>;
7308
+ export { T_CommandMap }
7309
+ export { T_CommandMap as T_CommandMap_alias_1 }
7310
+ export { T_CommandMap as T_CommandMap_alias_2 }
7311
+
7312
+ declare type T_CommandMap_2 = Record<string, T_Command_2>;
7313
+
7314
+ declare type T_CommandMapInput = T_CommandMap | ((ctx: I_CommandContext) => T_CommandMap);
7315
+ export { T_CommandMapInput }
7316
+ export { T_CommandMapInput as T_CommandMapInput_alias_1 }
7317
+ export { T_CommandMapInput as T_CommandMapInput_alias_2 }
7318
+
7319
+ declare type T_CommandMapInput_2 = T_CommandMap_2 | ((ctx: I_CommandContext_2) => T_CommandMap_2);
7320
+
6963
7321
  declare type T_CreateSlugQueryResponse<T> = T_FilterQuery<T> & {
6964
7322
  $or: Array<{
6965
7323
  slug: string;
@@ -7235,10 +7593,22 @@ export { throwResponse }
7235
7593
  export { throwResponse as throwResponse_alias_1 }
7236
7594
  export { throwResponse as throwResponse_alias_2 }
7237
7595
 
7238
- declare function updatePackage(packageName: string): Promise<void>;
7239
- export { updatePackage }
7240
- export { updatePackage as updatePackage_alias_1 }
7241
- export { updatePackage as updatePackage_alias_2 }
7596
+ declare const TSC_CLI = "tsc";
7597
+ export { TSC_CLI }
7598
+ export { TSC_CLI as TSC_CLI_alias_1 }
7599
+ export { TSC_CLI as TSC_CLI_alias_2 }
7600
+
7601
+ declare const TSCONFIG_JSON = "tsconfig.json";
7602
+ export { TSCONFIG_JSON }
7603
+ export { TSCONFIG_JSON as TSCONFIG_JSON_alias_1 }
7604
+ export { TSCONFIG_JSON as TSCONFIG_JSON_alias_2 }
7605
+
7606
+ declare const TSX_CLI = "tsx";
7607
+ export { TSX_CLI }
7608
+ export { TSX_CLI as TSX_CLI_alias_1 }
7609
+ export { TSX_CLI as TSX_CLI_alias_2 }
7610
+
7611
+ export declare function updatePackage(packageName: string): Promise<void>;
7242
7612
 
7243
7613
  declare function useLoading(): I_LoadingContext_2;
7244
7614
  export { useLoading }
@@ -7259,7 +7629,7 @@ export { useStorage }
7259
7629
  export { useStorage as useStorage_alias_1 }
7260
7630
  export { useStorage as useStorage_alias_2 }
7261
7631
 
7262
- declare const useTranslateNextIntl: useTranslations;
7632
+ declare const useTranslateNextIntl: typeof useTranslations;
7263
7633
  export { useTranslateNextIntl }
7264
7634
  export { useTranslateNextIntl as useTranslateNextIntl_alias_1 }
7265
7635
  export { useTranslateNextIntl as useTranslateNextIntl_alias_2 }
@@ -7271,6 +7641,11 @@ export { validate }
7271
7641
  export { validate as validate_alias_1 }
7272
7642
  export { validate as validate_alias_2 }
7273
7643
 
7644
+ declare const VITEST_CLI = "vitest";
7645
+ export { VITEST_CLI }
7646
+ export { VITEST_CLI as VITEST_CLI_alias_1 }
7647
+ export { VITEST_CLI as VITEST_CLI_alias_2 }
7648
+
7274
7649
  declare function withNextIntl<T extends {
7275
7650
  children: T_Children_2;
7276
7651
  }>(Component: ComponentType<T>): {
@@ -7289,4 +7664,11 @@ export { WORKING_DIRECTORY }
7289
7664
  export { WORKING_DIRECTORY as WORKING_DIRECTORY_alias_1 }
7290
7665
  export { WORKING_DIRECTORY as WORKING_DIRECTORY_alias_2 }
7291
7666
 
7667
+ declare function writeFileSync(filePath: string, data: string | object, options?: {
7668
+ isJson?: boolean;
7669
+ }): void;
7670
+ export { writeFileSync }
7671
+ export { writeFileSync as writeFileSync_alias_1 }
7672
+ export { writeFileSync as writeFileSync_alias_2 }
7673
+
7292
7674
  export { }