@remixhq/claude-plugin 0.1.16 → 0.1.17
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/.claude-plugin/plugin.json +1 -1
- package/dist/hook-post-collab.cjs +47 -13
- package/dist/hook-post-collab.cjs.map +1 -1
- package/dist/hook-stop-collab.cjs +135 -30
- package/dist/hook-stop-collab.cjs.map +1 -1
- package/dist/hook-user-prompt.cjs +3 -3
- package/dist/hook-user-prompt.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.cjs +568 -172
- package/dist/mcp-server.cjs.map +1 -1
- package/package.json +3 -3
|
@@ -855,7 +855,7 @@ async function markPendingTurnConsultedMemory(sessionId) {
|
|
|
855
855
|
// package.json
|
|
856
856
|
var package_default = {
|
|
857
857
|
name: "@remixhq/claude-plugin",
|
|
858
|
-
version: "0.1.
|
|
858
|
+
version: "0.1.17",
|
|
859
859
|
description: "Claude Code plugin for Remix collaboration workflows",
|
|
860
860
|
homepage: "https://github.com/RemixDotOne/remix-claude-plugin",
|
|
861
861
|
license: "MIT",
|
|
@@ -886,8 +886,8 @@ var package_default = {
|
|
|
886
886
|
prepack: "npm run build"
|
|
887
887
|
},
|
|
888
888
|
dependencies: {
|
|
889
|
-
"@remixhq/core": "^0.1.
|
|
890
|
-
"@remixhq/mcp": "^0.1.
|
|
889
|
+
"@remixhq/core": "^0.1.12",
|
|
890
|
+
"@remixhq/mcp": "^0.1.12"
|
|
891
891
|
},
|
|
892
892
|
devDependencies: {
|
|
893
893
|
"@types/node": "^25.4.0",
|
|
@@ -7765,7 +7765,7 @@ async function getCurrentBranch(cwd) {
|
|
|
7765
7765
|
}
|
|
7766
7766
|
}
|
|
7767
7767
|
|
|
7768
|
-
// node_modules/@remixhq/core/dist/chunk-
|
|
7768
|
+
// node_modules/@remixhq/core/dist/chunk-IXWQWFYT.js
|
|
7769
7769
|
var import_promises14 = __toESM(require("fs/promises"), 1);
|
|
7770
7770
|
var import_path = __toESM(require("path"), 1);
|
|
7771
7771
|
var import_promises15 = __toESM(require("fs/promises"), 1);
|
|
@@ -7787,7 +7787,8 @@ function buildBindingFileV3(params) {
|
|
|
7787
7787
|
repoFingerprint: params.repoFingerprint,
|
|
7788
7788
|
remoteUrl: params.remoteUrl,
|
|
7789
7789
|
defaultBranch: params.defaultBranch,
|
|
7790
|
-
branchBindings: params.branchBindings
|
|
7790
|
+
branchBindings: params.branchBindings,
|
|
7791
|
+
...params.explicitRootBinding ? { explicitRootBinding: params.explicitRootBinding } : {}
|
|
7791
7792
|
};
|
|
7792
7793
|
}
|
|
7793
7794
|
function normalizeBranchName(value) {
|
|
@@ -7806,7 +7807,7 @@ function normalizeBranchBinding(value) {
|
|
|
7806
7807
|
upstreamAppId: value.upstreamAppId,
|
|
7807
7808
|
threadId: value.threadId ?? null,
|
|
7808
7809
|
laneId: value.laneId ?? null,
|
|
7809
|
-
bindingMode: value.bindingMode === "legacy" ? "legacy" : "lane"
|
|
7810
|
+
bindingMode: value.bindingMode === "legacy" ? "legacy" : value.bindingMode === "explicit_root" ? "explicit_root" : "lane"
|
|
7810
7811
|
};
|
|
7811
7812
|
}
|
|
7812
7813
|
function buildResolvedBinding(params) {
|
|
@@ -7880,6 +7881,7 @@ async function readCollabBindingState(repoRoot, options) {
|
|
|
7880
7881
|
defaultBranch: migratedFile.defaultBranch,
|
|
7881
7882
|
currentBranch,
|
|
7882
7883
|
branchBindings: migratedFile.branchBindings,
|
|
7884
|
+
explicitRootBinding: null,
|
|
7883
7885
|
binding: buildResolvedBinding({
|
|
7884
7886
|
fallbackProjectId: projectId,
|
|
7885
7887
|
repoFingerprint: migratedFile.repoFingerprint,
|
|
@@ -7923,7 +7925,22 @@ async function readCollabBindingState(repoRoot, options) {
|
|
|
7923
7925
|
};
|
|
7924
7926
|
shouldPersistNormalizedBranchBindings = true;
|
|
7925
7927
|
}
|
|
7926
|
-
|
|
7928
|
+
let explicitRootBinding = normalizeBranchBinding(file.explicitRootBinding ?? null);
|
|
7929
|
+
if (explicitRootBinding && !explicitRootBinding.projectId && legacyProjectId) {
|
|
7930
|
+
explicitRootBinding = {
|
|
7931
|
+
...explicitRootBinding,
|
|
7932
|
+
projectId: legacyProjectId
|
|
7933
|
+
};
|
|
7934
|
+
shouldPersistNormalizedBranchBindings = true;
|
|
7935
|
+
}
|
|
7936
|
+
if (explicitRootBinding && explicitRootBinding.bindingMode !== "explicit_root") {
|
|
7937
|
+
explicitRootBinding = {
|
|
7938
|
+
...explicitRootBinding,
|
|
7939
|
+
bindingMode: "explicit_root"
|
|
7940
|
+
};
|
|
7941
|
+
shouldPersistNormalizedBranchBindings = true;
|
|
7942
|
+
}
|
|
7943
|
+
if (persist && ("explicitBinding" in file || "explicitRootBinding" in file || shouldPersistNormalizedBranchBindings || parsed.schemaVersion === 2)) {
|
|
7927
7944
|
try {
|
|
7928
7945
|
await writeJsonAtomic2(
|
|
7929
7946
|
filePath,
|
|
@@ -7931,7 +7948,8 @@ async function readCollabBindingState(repoRoot, options) {
|
|
|
7931
7948
|
repoFingerprint: file.repoFingerprint ?? null,
|
|
7932
7949
|
remoteUrl: file.remoteUrl ?? null,
|
|
7933
7950
|
defaultBranch: file.defaultBranch ?? null,
|
|
7934
|
-
branchBindings
|
|
7951
|
+
branchBindings,
|
|
7952
|
+
explicitRootBinding
|
|
7935
7953
|
})
|
|
7936
7954
|
);
|
|
7937
7955
|
} catch {
|
|
@@ -7942,8 +7960,23 @@ async function readCollabBindingState(repoRoot, options) {
|
|
|
7942
7960
|
branchBindings,
|
|
7943
7961
|
currentBranch: resolvedBranch,
|
|
7944
7962
|
defaultBranch: normalizeBranchName(file.defaultBranch),
|
|
7945
|
-
legacyProjectId
|
|
7963
|
+
legacyProjectId: explicitRootBinding?.projectId ?? legacyProjectId
|
|
7946
7964
|
});
|
|
7965
|
+
const resolvedBinding = buildResolvedBinding({
|
|
7966
|
+
fallbackProjectId,
|
|
7967
|
+
repoFingerprint: file.repoFingerprint ?? null,
|
|
7968
|
+
remoteUrl: file.remoteUrl ?? null,
|
|
7969
|
+
defaultBranch: file.defaultBranch ?? null,
|
|
7970
|
+
branchName: resolvedBranch,
|
|
7971
|
+
binding: resolvedBranch ? branchBindings[resolvedBranch] ?? null : null
|
|
7972
|
+
}) ?? (resolvedBranch && resolvedBranch === normalizeBranchName(file.defaultBranch) && explicitRootBinding ? buildResolvedBinding({
|
|
7973
|
+
fallbackProjectId,
|
|
7974
|
+
repoFingerprint: file.repoFingerprint ?? null,
|
|
7975
|
+
remoteUrl: file.remoteUrl ?? null,
|
|
7976
|
+
defaultBranch: file.defaultBranch ?? null,
|
|
7977
|
+
branchName: normalizeBranchName(file.defaultBranch),
|
|
7978
|
+
binding: explicitRootBinding
|
|
7979
|
+
}) : null);
|
|
7947
7980
|
return {
|
|
7948
7981
|
schemaVersion: parsed.schemaVersion,
|
|
7949
7982
|
projectId: fallbackProjectId,
|
|
@@ -7952,14 +7985,15 @@ async function readCollabBindingState(repoRoot, options) {
|
|
|
7952
7985
|
defaultBranch: file.defaultBranch ?? null,
|
|
7953
7986
|
currentBranch,
|
|
7954
7987
|
branchBindings,
|
|
7955
|
-
|
|
7988
|
+
explicitRootBinding: buildResolvedBinding({
|
|
7956
7989
|
fallbackProjectId,
|
|
7957
7990
|
repoFingerprint: file.repoFingerprint ?? null,
|
|
7958
7991
|
remoteUrl: file.remoteUrl ?? null,
|
|
7959
7992
|
defaultBranch: file.defaultBranch ?? null,
|
|
7960
|
-
branchName:
|
|
7961
|
-
binding:
|
|
7962
|
-
})
|
|
7993
|
+
branchName: normalizeBranchName(file.defaultBranch),
|
|
7994
|
+
binding: explicitRootBinding
|
|
7995
|
+
}),
|
|
7996
|
+
binding: resolvedBinding
|
|
7963
7997
|
};
|
|
7964
7998
|
} catch {
|
|
7965
7999
|
return null;
|