skillwiki 0.2.1-beta.12 → 0.2.1-beta.14

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 })
@@ -1342,7 +1344,8 @@ async function runInit(input) {
1342
1344
  "project: ",
1343
1345
  "tags: []",
1344
1346
  "priority: ",
1345
- "ingested: {{date:YYYY-MM-DD}}",
1347
+ "created: {{date:YYYY-MM-DD}}T{{time:HH:mm}}",
1348
+ "ingested: ",
1346
1349
  "---",
1347
1350
  "",
1348
1351
  ""
@@ -1354,7 +1357,7 @@ async function runInit(input) {
1354
1357
  return tpl.replace(/\{\{INIT_DATE\}\}/g, today).replace("{{DOMAIN}}", domain).replace("{{WIKI_LANG}}", canonicalLang);
1355
1358
  });
1356
1359
  if (err22) return err22;
1357
- const skipEnv = !!input.noEnv;
1360
+ const skipEnv = !!input.noEnv || explicitTarget && !input.profile && swDotenvHadPath && !input.force;
1358
1361
  let envWritten = "";
1359
1362
  if (!skipEnv) {
1360
1363
  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.14",
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.14",
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.14",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",