skillwiki 0.9.59 → 0.9.60

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.
@@ -5139,7 +5139,6 @@ var defaultExec = (file, args, cwd) => execFileSync(file, args, {
5139
5139
  stdio: ["pipe", "pipe", "pipe"],
5140
5140
  timeout: REMOTE_PROBE_TIMEOUT_MS
5141
5141
  }).trim();
5142
- var DEFAULT_WIKI_S3_REMOTE = "seaweed-wiki:cloud/wiki";
5143
5142
  function readWikiS3RemoteConfigured(home) {
5144
5143
  try {
5145
5144
  const content = readFileSync6(join20(home, ".skillwiki", ".env"), "utf8");
@@ -5156,8 +5155,15 @@ function readWikiS3RemoteConfigured(home) {
5156
5155
  }
5157
5156
  return void 0;
5158
5157
  }
5159
- function readWikiS3RemoteFromEnv(home) {
5160
- return readWikiS3RemoteConfigured(home) ?? DEFAULT_WIKI_S3_REMOTE;
5158
+ function resolveWikiS3Remote(input) {
5159
+ if (input.s3Remote !== void 0) {
5160
+ const explicit = input.s3Remote.trim();
5161
+ return explicit.length > 0 ? explicit : void 0;
5162
+ }
5163
+ const env = input.env ?? process.env;
5164
+ const fromProcess = (env.WIKI_REMOTE ?? "").trim();
5165
+ if (fromProcess.length > 0) return fromProcess;
5166
+ return readWikiS3RemoteConfigured(input.home);
5161
5167
  }
5162
5168
  function probeGithubReachability(vaultPath, exec = defaultExec) {
5163
5169
  if (!existsSync9(join20(vaultPath, ".git"))) return "unknown";
@@ -5211,8 +5217,12 @@ function buildDegradedReasons(health) {
5211
5217
  function probeRemoteHealth(input) {
5212
5218
  const exec = input.exec ?? defaultExec;
5213
5219
  const github = probeGithubReachability(input.vaultPath, exec);
5214
- const s3Remote = input.s3Remote ?? readWikiS3RemoteFromEnv(input.home);
5215
- const s3 = probeS3Reachability(s3Remote, exec);
5220
+ const s3Remote = resolveWikiS3Remote({
5221
+ home: input.home,
5222
+ s3Remote: input.s3Remote,
5223
+ env: input.env
5224
+ });
5225
+ const s3 = s3Remote === void 0 ? "unknown" : probeS3Reachability(s3Remote, exec);
5216
5226
  let snapshotter = "not_checked";
5217
5227
  if (input.checkSnapshotter && input.snapshotterAlias) {
5218
5228
  snapshotter = probeSnapshotterSsh(input.snapshotterAlias, exec);
@@ -6028,8 +6038,8 @@ function checkVaultGithubRemote(resolvedPath, exec) {
6028
6038
  }
6029
6039
  return check("pass", "vault_github_remote", "Vault GitHub remote", "No origin remote \u2014 network probe skipped");
6030
6040
  }
6031
- function checkVaultS3Remote(home, exec) {
6032
- const remote = readWikiS3RemoteConfigured(home);
6041
+ function checkVaultS3Remote(home, exec, env) {
6042
+ const remote = resolveWikiS3Remote({ home, env });
6033
6043
  if (!remote) {
6034
6044
  return check("pass", "vault_s3_remote", "Vault S3 remote", "S3 remote not configured \u2014 check skipped");
6035
6045
  }
@@ -7103,7 +7113,7 @@ async function runDoctor(input) {
7103
7113
  checks.push(checkVaultGitPullFailures(input.home));
7104
7114
  checks.push(checkVaultLocalGit(gitCheckPath));
7105
7115
  checks.push(checkVaultGithubRemote(gitCheckPath, input.execProbe));
7106
- checks.push(checkVaultS3Remote(input.home, input.execProbe));
7116
+ checks.push(checkVaultS3Remote(input.home, input.execProbe, input.env ?? process.env));
7107
7117
  checks.push(checkVaultSnapshotterReachable(fleetLoad, input.checkSnapshotter, input.execProbe));
7108
7118
  checks.push(checkVaultPromotionLag(gitCheckPath));
7109
7119
  checks.push(checkDotStoreClean(resolvedPath));
package/dist/cli.js CHANGED
@@ -77,7 +77,7 @@ import {
77
77
  snapshotterAliasForLocalHost,
78
78
  splitFrontmatter,
79
79
  writeDotenv
80
- } from "./chunk-NIPZVIHT.js";
80
+ } from "./chunk-FU462DVS.js";
81
81
  import {
82
82
  normalizeDistTag,
83
83
  readCache,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runSkillwikiMcpStdio
4
- } from "./chunk-NIPZVIHT.js";
4
+ } from "./chunk-FU462DVS.js";
5
5
  import "./chunk-7I2TPIV5.js";
6
6
 
7
7
  // src/mcp-entry.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.9.59",
3
+ "version": "0.9.60",
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.9.59",
3
+ "version": "0.9.60",
4
4
  "skills": "./",
5
5
  "description": "Project-aware Karpathy-style knowledge base for Claude Code: 18 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",
3
- "version": "0.9.59",
3
+ "version": "0.9.60",
4
4
  "description": "Project-aware Karpathy-style knowledge base for Codex with 18 prompt-only skills backed by the deterministic skillwiki CLI.",
5
5
  "author": {
6
6
  "name": "karlorz",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillwiki/skills",
3
- "version": "0.9.59",
3
+ "version": "0.9.60",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",