skillwiki 0.10.43 → 0.10.44
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/{chunk-G5M65BHV.js → chunk-JHHVTW7E.js} +17 -5
- package/dist/cli.js +2 -2
- package/dist/{managed-write-preflight-ZDBELXAM.js → managed-write-preflight-EDEMCLVQ.js} +1 -1
- package/package.json +1 -1
- package/skills/.claude-plugin/plugin.json +1 -1
- package/skills/.codex-plugin/plugin.json +1 -1
- package/skills/package.json +1 -1
|
@@ -677,6 +677,7 @@ function isManagedWriteLockOwnerAlive(pid) {
|
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
function hasUnsafeGitState(vault) {
|
|
680
|
+
if (!isGitBackedVault(vault)) return false;
|
|
680
681
|
const gitDirRaw = git(vault, ["rev-parse", "--git-dir"]);
|
|
681
682
|
if (!gitDirRaw) return true;
|
|
682
683
|
const gitDir = gitDirRaw.startsWith("/") ? gitDirRaw : join2(vault, gitDirRaw);
|
|
@@ -872,7 +873,7 @@ function peerCheckFailure(reason, detail = {}) {
|
|
|
872
873
|
result: err("PREFLIGHT_FAILED", { reason, ...detail })
|
|
873
874
|
};
|
|
874
875
|
}
|
|
875
|
-
function runManagedWritePeerGate(vault, deps) {
|
|
876
|
+
function runManagedWritePeerGate(vault, mode, deps) {
|
|
876
877
|
try {
|
|
877
878
|
const check = (deps.syncPeers ?? DEFAULT_DEPS.syncPeers)({ vault });
|
|
878
879
|
if (check.exitCode !== ExitCode.OK || !check.result.ok) {
|
|
@@ -883,11 +884,15 @@ function runManagedWritePeerGate(vault, deps) {
|
|
|
883
884
|
return peerCheckFailure("peer-check-failed");
|
|
884
885
|
}
|
|
885
886
|
const { output: peerOutput, foreignLockCount, recentPeerStashCount } = validated;
|
|
886
|
-
const
|
|
887
|
+
const nonWriterBlockingSignal = foreignLockCount > 0 || recentPeerStashCount > 0;
|
|
888
|
+
const writerOnly = peerOutput.managed_writers.blocking && !nonWriterBlockingSignal;
|
|
889
|
+
if (mode !== "git-writer" && writerOnly) return null;
|
|
890
|
+
const managedWriterBlocking = mode === "git-writer" && peerOutput.managed_writers.blocking;
|
|
891
|
+
const hasKnownBlockingSignal = foreignLockCount > 0 || managedWriterBlocking || recentPeerStashCount > 0;
|
|
887
892
|
if (!peerOutput.blocking) {
|
|
888
893
|
return hasKnownBlockingSignal ? peerCheckFailure("peer-check-failed") : null;
|
|
889
894
|
}
|
|
890
|
-
if (
|
|
895
|
+
if (managedWriterBlocking) {
|
|
891
896
|
return peerCheckFailure("live-writer-overlap", {
|
|
892
897
|
managed_writer_count: peerOutput.managed_writers.count,
|
|
893
898
|
managed_writer_kinds: peerOutput.managed_writers.kinds.slice(0, 8),
|
|
@@ -963,6 +968,12 @@ async function runManagedWritePreflight(input, deps = DEFAULT_DEPS) {
|
|
|
963
968
|
user: input.user
|
|
964
969
|
});
|
|
965
970
|
if (!fleet) {
|
|
971
|
+
if (hasFleetManifest(mutationVault)) {
|
|
972
|
+
return {
|
|
973
|
+
exitCode: ExitCode.PREFLIGHT_FAILED,
|
|
974
|
+
result: err("PREFLIGHT_FAILED", { reason: "fleet-unreadable" })
|
|
975
|
+
};
|
|
976
|
+
}
|
|
966
977
|
const gitVault2 = isGitVault(mutationVault) ? mutationVault : null;
|
|
967
978
|
const head = gitVault2 ? git(gitVault2, ["rev-parse", "HEAD"]) || null : null;
|
|
968
979
|
return {
|
|
@@ -973,7 +984,8 @@ async function runManagedWritePreflight(input, deps = DEFAULT_DEPS) {
|
|
|
973
984
|
git_vault: gitVault2,
|
|
974
985
|
base_oid: head,
|
|
975
986
|
converged: false,
|
|
976
|
-
|
|
987
|
+
...convergenceVault ? { convergence_vault: convergenceVault } : {},
|
|
988
|
+
convergence_source: convergenceSource
|
|
977
989
|
})
|
|
978
990
|
};
|
|
979
991
|
}
|
|
@@ -1178,7 +1190,7 @@ async function runManagedWriteTransaction(input, deps = DEFAULT_DEPS) {
|
|
|
1178
1190
|
})
|
|
1179
1191
|
};
|
|
1180
1192
|
}
|
|
1181
|
-
const peerGate = runManagedWritePeerGate(mutationVault, deps);
|
|
1193
|
+
const peerGate = runManagedWritePeerGate(mutationVault, receipt.mode, deps);
|
|
1182
1194
|
if (peerGate) return peerGate;
|
|
1183
1195
|
return await input.mutate(receipt);
|
|
1184
1196
|
} finally {
|
package/dist/cli.js
CHANGED
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
runSyncStatus,
|
|
65
65
|
runSyncUnlock,
|
|
66
66
|
stageVaultContentChanges
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-JHHVTW7E.js";
|
|
68
68
|
import {
|
|
69
69
|
FLEET_REL_PATH,
|
|
70
70
|
acquireOwnedSyncLock,
|
|
@@ -9542,7 +9542,7 @@ async function emitManagedVaultWrite(vault, command, mutate, opts) {
|
|
|
9542
9542
|
if (dirty) {
|
|
9543
9543
|
return emit(dirty, void 0, { postCommit: false });
|
|
9544
9544
|
}
|
|
9545
|
-
const { runManagedWriteTransaction: runManagedWriteTransaction2 } = await import("./managed-write-preflight-
|
|
9545
|
+
const { runManagedWriteTransaction: runManagedWriteTransaction2 } = await import("./managed-write-preflight-EDEMCLVQ.js");
|
|
9546
9546
|
const run = await runManagedWriteTransaction2({
|
|
9547
9547
|
vault,
|
|
9548
9548
|
command,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillwiki",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.44",
|
|
4
4
|
"skills": "./",
|
|
5
5
|
"description": "Project-aware Karpathy-style knowledge base for Claude Code: 19 prompt-only skills (wiki-*, proj-*, using-skillwiki) backed by the deterministic `skillwiki` CLI.",
|
|
6
6
|
"author": {
|