openkitt 0.2.2 → 0.2.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.
Files changed (2) hide show
  1. package/dist/cli.js +14 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -255898,6 +255898,18 @@ function findWorkspaceRoot(startDir) {
255898
255898
  return globalPath;
255899
255899
  return null;
255900
255900
  }
255901
+ function findWorkspaceRootStrict(startDir) {
255902
+ let current = resolve(startDir);
255903
+ while (true) {
255904
+ if (isKittWorkspace(current))
255905
+ return current;
255906
+ const parent = dirname2(current);
255907
+ if (parent === current)
255908
+ break;
255909
+ current = parent;
255910
+ }
255911
+ return null;
255912
+ }
255901
255913
  function readManifest(workspaceDir) {
255902
255914
  const manifestPath = getManifestPath(workspaceDir);
255903
255915
  if (!existsSync4(manifestPath)) {
@@ -256038,7 +256050,7 @@ var COMMAND_AUTH = {
256038
256050
  };
256039
256051
  async function checkAuthGuard(commandKey) {
256040
256052
  if (WORKSPACE_REQUIRED.has(commandKey)) {
256041
- const workspaceRoot = findWorkspaceRoot(process.cwd());
256053
+ const workspaceRoot = findWorkspaceRootStrict(process.cwd());
256042
256054
  if (!workspaceRoot) {
256043
256055
  return {
256044
256056
  allowed: false,
@@ -265661,7 +265673,7 @@ async function helpCommand(_context, _args) {
265661
265673
  // package.json
265662
265674
  var package_default = {
265663
265675
  name: "openkitt",
265664
- version: "0.2.2",
265676
+ version: "0.2.3",
265665
265677
  description: "AI-powered monorepo scaffolding CLI",
265666
265678
  keywords: [
265667
265679
  "cli",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openkitt",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "AI-powered monorepo scaffolding CLI",
5
5
  "keywords": [
6
6
  "cli",