skillwiki 0.2.1-beta.12 → 0.2.1-beta.13

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.js CHANGED
@@ -1253,13 +1253,15 @@ async function runInit(input) {
1253
1253
  }
1254
1254
  const existingEnv = parseDotenvText(existingEnvRaw);
1255
1255
  const swDotenvHadPath = existingEnv.WIKI_PATH !== void 0;
1256
- if (!input.profile && existingEnv.WIKI_PATH !== void 0 && existingEnv.WIKI_PATH !== target && !input.force) {
1256
+ const explicitTarget = !!input.flag;
1257
+ const skipConflictCheck = explicitTarget || !!input.noEnv;
1258
+ if (!input.profile && !skipConflictCheck && existingEnv.WIKI_PATH !== void 0 && existingEnv.WIKI_PATH !== target && !input.force) {
1257
1259
  return {
1258
1260
  exitCode: ExitCode.ENV_WRITE_CONFLICT,
1259
1261
  result: err("ENV_WRITE_CONFLICT", { key: "WIKI_PATH", existing: existingEnv.WIKI_PATH, attempted: target })
1260
1262
  };
1261
1263
  }
1262
- if (!input.profile && existingEnv.WIKI_LANG !== void 0 && existingEnv.WIKI_LANG !== canonicalLang && !input.force) {
1264
+ if (!input.profile && !skipConflictCheck && existingEnv.WIKI_LANG !== void 0 && existingEnv.WIKI_LANG !== canonicalLang && !input.force) {
1263
1265
  return {
1264
1266
  exitCode: ExitCode.ENV_WRITE_CONFLICT,
1265
1267
  result: err("ENV_WRITE_CONFLICT", { key: "WIKI_LANG", existing: existingEnv.WIKI_LANG, attempted: canonicalLang })
@@ -1354,7 +1356,7 @@ async function runInit(input) {
1354
1356
  return tpl.replace(/\{\{INIT_DATE\}\}/g, today).replace("{{DOMAIN}}", domain).replace("{{WIKI_LANG}}", canonicalLang);
1355
1357
  });
1356
1358
  if (err22) return err22;
1357
- const skipEnv = !!input.noEnv;
1359
+ const skipEnv = !!input.noEnv || explicitTarget && !input.profile && swDotenvHadPath && !input.force;
1358
1360
  let envWritten = "";
1359
1361
  if (!skipEnv) {
1360
1362
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.2.1-beta.12",
3
+ "version": "0.2.1-beta.13",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "skillwiki": "dist/cli.js"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.2.1-beta.12",
3
+ "version": "0.2.1-beta.13",
4
4
  "skills": "./",
5
5
  "description": "Project-aware Karpathy-style knowledge base for Claude Code: 15 prompt-only skills (wiki-*, proj-*, using-skillwiki) backed by the deterministic `skillwiki` CLI.",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillwiki/skills",
3
- "version": "0.2.1-beta.12",
3
+ "version": "0.2.1-beta.13",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",