stk-codegen 1.1.1 → 1.1.3

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.
@@ -1,5 +1,5 @@
1
- export const id = 194;
2
- export const ids = [194];
1
+ export const id = 672;
2
+ export const ids = [672];
3
3
  export const modules = {
4
4
 
5
5
  /***/ 106:
@@ -10,13 +10,13 @@ module.exports = eval("require")("react-devtools-core");
10
10
 
11
11
  /***/ }),
12
12
 
13
- /***/ 1194:
13
+ /***/ 3672:
14
14
  /***/ ((__unused_webpack___webpack_module__, __unused_webpack___webpack_exports__, __webpack_require__) => {
15
15
 
16
16
 
17
- // EXTERNAL MODULE: ./node_modules/.pnpm/ws@8.18.3/node_modules/ws/wrapper.mjs
18
- var wrapper = __webpack_require__(1910);
19
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/ink@6.6.0_@types+react@19.2.8_react@19.2.3/node_modules/ink/build/devtools-window-polyfill.js
17
+ // EXTERNAL MODULE: ./node_modules/.pnpm/ws@8.19.0/node_modules/ws/wrapper.mjs
18
+ var wrapper = __webpack_require__(976);
19
+ ;// CONCATENATED MODULE: ./node_modules/.pnpm/ink@6.6.0_@types+react@19.2.14_react@19.2.4/node_modules/ink/build/devtools-window-polyfill.js
20
20
  // Ignoring missing types error to avoid adding another dependency for this hack to work
21
21
 
22
22
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
@@ -84,7 +84,7 @@ customGlobal.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__ = [
84
84
  //# sourceMappingURL=devtools-window-polyfill.js.map
85
85
  // EXTERNAL MODULE: ./node_modules/.pnpm/@vercel+ncc@0.38.4/node_modules/@vercel/ncc/dist/ncc/@@notfound.js?react-devtools-core
86
86
  var _notfoundreact_devtools_core = __webpack_require__(106);
87
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/ink@6.6.0_@types+react@19.2.8_react@19.2.3/node_modules/ink/build/devtools.js
87
+ ;// CONCATENATED MODULE: ./node_modules/.pnpm/ink@6.6.0_@types+react@19.2.14_react@19.2.4/node_modules/ink/build/devtools.js
88
88
  /* eslint-disable import/order */
89
89
  // eslint-disable-next-line import/no-unassigned-import
90
90
 
package/dist/905.index.js CHANGED
@@ -112,13 +112,13 @@ function isInRegion(index, regions) {
112
112
  }
113
113
  async function processImports(content, basePath, projectRoot, state) {
114
114
  if (state.currentDepth >= state.maxDepth) {
115
- return { content, filePaths: [] };
115
+ return { content, file_paths: [] };
116
116
  }
117
117
  const codeRegions = findCodeBlockRegions(content);
118
118
  const imports = findImports(content);
119
119
  let result = '';
120
120
  let lastIndex = 0;
121
- const filePaths = [];
121
+ const file_paths = [];
122
122
  for (const { start, end, importPath } of imports) {
123
123
  // Copy text before this import
124
124
  result += content.slice(lastIndex, start);
@@ -142,13 +142,13 @@ async function processImports(content, basePath, projectRoot, state) {
142
142
  try {
143
143
  const importedContent = await node_fs_promises__WEBPACK_IMPORTED_MODULE_0__.readFile(normalized, 'utf-8');
144
144
  state.processedFiles.add(normalized);
145
- filePaths.push(normalized);
146
- const { content: processed, filePaths: nestedPaths } = await processImports(importedContent, node_path__WEBPACK_IMPORTED_MODULE_1__.dirname(normalized), projectRoot, {
145
+ file_paths.push(normalized);
146
+ const { content: processed, file_paths: nestedPaths } = await processImports(importedContent, node_path__WEBPACK_IMPORTED_MODULE_1__.dirname(normalized), projectRoot, {
147
147
  processedFiles: state.processedFiles,
148
148
  maxDepth: state.maxDepth,
149
149
  currentDepth: state.currentDepth + 1
150
150
  });
151
- filePaths.push(...nestedPaths);
151
+ file_paths.push(...nestedPaths);
152
152
  result += `<!-- Imported from: ${importPath} -->\n${processed}\n<!-- End of import from: ${importPath} -->`;
153
153
  }
154
154
  catch (err) {
@@ -158,7 +158,7 @@ async function processImports(content, basePath, projectRoot, state) {
158
158
  }
159
159
  // Remainder after last import
160
160
  result += content.slice(lastIndex);
161
- return { content: result, filePaths };
161
+ return { content: result, file_paths };
162
162
  }
163
163
  async function loadProjectSpec(cwd) {
164
164
  const startDir = node_path__WEBPACK_IMPORTED_MODULE_1__.resolve(cwd);
@@ -176,10 +176,10 @@ async function loadProjectSpec(cwd) {
176
176
  maxDepth: 5,
177
177
  currentDepth: 0
178
178
  };
179
- const { content, filePaths } = await processImports(rawContent, node_path__WEBPACK_IMPORTED_MODULE_1__.dirname(codegenPath), projectRoot, initialState);
179
+ const { content, file_paths } = await processImports(rawContent, node_path__WEBPACK_IMPORTED_MODULE_1__.dirname(codegenPath), projectRoot, initialState);
180
180
  return {
181
181
  content,
182
- filePaths: [node_path__WEBPACK_IMPORTED_MODULE_1__.normalize(codegenPath), ...filePaths]
182
+ file_paths: [node_path__WEBPACK_IMPORTED_MODULE_1__.normalize(codegenPath), ...file_paths]
183
183
  };
184
184
  }
185
185
 
@@ -0,0 +1,5 @@
1
+ STK_MESSAGE_OUTPUT_ERROR_CLI_VERSION_CHECK_FAILED: Could not verify CLI version or perform automatic update.
2
+ STK_MESSAGE_OUTPUT_ERROR_CLI_VERSION_MISMATCH: Your CLI version is {currentVersion}, but the minimal required version is {minRequiredVersion}.
3
+ STK_MESSAGE_OUTPUT_INFO_CLI_VERSION_UPDATING: Updating CLI to the latest version...
4
+ STK_MESSAGE_OUTPUT_INFO_CLI_VERSION_UPDATE_SUCCESS: Update successful! Please restart the CLI manually to use the new version.
5
+ STK_MESSAGE_OUTPUT_ERROR_CLI_VERSION_UPDATE_FAILED: An error occurred during the automatic update process. Please update manually.