@contentrain/mcp 3.6.8 → 3.7.0
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/README.md +1 -0
- package/dist/{annotations-CXHPnS-M.mjs → annotations-BYkjoj2d.mjs} +1 -1
- package/dist/{annotations-CXHPnS-M.mjs.map → annotations-BYkjoj2d.mjs.map} +1 -1
- package/dist/{apply-manager-llmSyK5K.mjs → apply-manager-B-VMXKiW.mjs} +3 -3
- package/dist/{apply-manager-llmSyK5K.mjs.map → apply-manager-B-VMXKiW.mjs.map} +1 -1
- package/dist/{astro-parser-dhFgc2wA.mjs → astro-parser-DsGdiUnu.mjs} +3 -3
- package/dist/{astro-parser-dhFgc2wA.mjs.map → astro-parser-DsGdiUnu.mjs.map} +1 -1
- package/dist/{availability-DYHNoP0_.mjs → availability-CO8Xfx3w.mjs} +1 -1
- package/dist/{availability-DYHNoP0_.mjs.map → availability-CO8Xfx3w.mjs.map} +1 -1
- package/dist/base-branch-Cw9DWvCC.mjs +121 -0
- package/dist/base-branch-Cw9DWvCC.mjs.map +1 -0
- package/dist/{branch-lifecycle-f4gI_eGo.mjs → branch-lifecycle-CcsSyfSw.mjs} +3 -68
- package/dist/branch-lifecycle-CcsSyfSw.mjs.map +1 -0
- package/dist/{branch-lifecycle-DGlgjnC7.d.mts → branch-lifecycle-CirYfTXu.d.mts} +1 -1
- package/dist/{branch-lifecycle-DGlgjnC7.d.mts.map → branch-lifecycle-CirYfTXu.d.mts.map} +1 -1
- package/dist/{compiler-CR9F0wZZ.mjs → compiler-CKelkozt.mjs} +2 -2
- package/dist/{compiler-CR9F0wZZ.mjs.map → compiler-CKelkozt.mjs.map} +1 -1
- package/dist/{compiler-sfc.cjs-Cpexs92i.mjs → compiler-sfc.cjs-BH5AEf2z.mjs} +2 -2
- package/dist/{compiler-sfc.cjs-Cpexs92i.mjs.map → compiler-sfc.cjs-BH5AEf2z.mjs.map} +1 -1
- package/dist/{content-manager-BqaMkMVk.d.mts → content-manager-wKsAkhly.d.mts} +2 -2
- package/dist/{content-manager-BqaMkMVk.d.mts.map → content-manager-wKsAkhly.d.mts.map} +1 -1
- package/dist/core/apply-manager.mjs +5 -4
- package/dist/core/config.d.mts +1 -1
- package/dist/core/content-manager.d.mts +1 -1
- package/dist/core/context.d.mts +1 -1
- package/dist/core/contracts/index.d.mts +1 -1
- package/dist/core/doctor.mjs +4 -3
- package/dist/core/graph-builder.mjs +2 -2
- package/dist/core/model-manager.d.mts +1 -1
- package/dist/core/ops/index.d.mts +3 -3
- package/dist/core/overlay-reader.d.mts +1 -1
- package/dist/core/scan-config.mjs +1 -1
- package/dist/core/scanner.mjs +3 -3
- package/dist/core/validator/index.d.mts +1 -1
- package/dist/{detect-DUYFv3-O.mjs → detect-B1QHYA0u.mjs} +1 -1
- package/dist/{detect-DUYFv3-O.mjs.map → detect-B1QHYA0u.mjs.map} +1 -1
- package/dist/{doctor-fIG4TtsO.mjs → doctor-Du4MVG5w.mjs} +3 -3
- package/dist/{doctor-fIG4TtsO.mjs.map → doctor-Du4MVG5w.mjs.map} +1 -1
- package/dist/{errors-DLkAWnzQ.mjs → errors-B0NcpPIp.mjs} +1 -1
- package/dist/{errors-DLkAWnzQ.mjs.map → errors-B0NcpPIp.mjs.map} +1 -1
- package/dist/{errors-BmLE-JSC.mjs → errors-De8Noahk.mjs} +2 -2
- package/dist/{errors-BmLE-JSC.mjs.map → errors-De8Noahk.mjs.map} +1 -1
- package/dist/git/base-branch.d.mts +61 -0
- package/dist/git/base-branch.d.mts.map +1 -0
- package/dist/git/base-branch.mjs +2 -0
- package/dist/git/branch-lifecycle.d.mts +1 -1
- package/dist/git/branch-lifecycle.mjs +2 -1
- package/dist/git/errors.mjs +1 -1
- package/dist/git/reconcile.d.mts +1 -1
- package/dist/git/reconcile.mjs +5 -4
- package/dist/git/transaction.d.mts +1 -1
- package/dist/git/transaction.mjs +4 -3
- package/dist/{graph-builder-CNswWNtb.mjs → graph-builder-BPhi-1KH.mjs} +2 -2
- package/dist/{graph-builder-CNswWNtb.mjs.map → graph-builder-BPhi-1KH.mjs.map} +1 -1
- package/dist/{id-CjGMPP1k.mjs → id-jrHWdtqn.mjs} +1 -1
- package/dist/{id-CjGMPP1k.mjs.map → id-jrHWdtqn.mjs.map} +1 -1
- package/dist/{index-DKZNUqpP.d.mts → index-CkhXTFdk.d.mts} +2 -2
- package/dist/{index-DKZNUqpP.d.mts.map → index-CkhXTFdk.d.mts.map} +1 -1
- package/dist/index.mjs +16 -15
- package/dist/index.mjs.map +1 -1
- package/dist/{local-DkDTrGt_.mjs → local-BySg4Ib-.mjs} +4 -3
- package/dist/{local-DkDTrGt_.mjs.map → local-BySg4Ib-.mjs.map} +1 -1
- package/dist/{node-CpLm3qr6.mjs → node-hrF4BrH2.mjs} +1 -1
- package/dist/{node-CpLm3qr6.mjs.map → node-hrF4BrH2.mjs.map} +1 -1
- package/dist/{paths-C6_C1gLp.mjs → paths-Dz5v-z00.mjs} +1 -1
- package/dist/{paths-C6_C1gLp.mjs.map → paths-Dz5v-z00.mjs.map} +1 -1
- package/dist/providers/github/index.d.mts +1 -1
- package/dist/providers/github/index.mjs +2 -2
- package/dist/providers/gitlab/index.d.mts +1 -1
- package/dist/providers/gitlab/index.mjs +2 -2
- package/dist/providers/local/index.d.mts +1 -1
- package/dist/providers/local/index.mjs +5 -4
- package/dist/{reconcile-Cq60cldB.mjs → reconcile-BWbckvbv.mjs} +4 -3
- package/dist/{reconcile-Cq60cldB.mjs.map → reconcile-BWbckvbv.mjs.map} +1 -1
- package/dist/{scan-config-DkRKu_ON.mjs → scan-config-S5fkzNhL.mjs} +1 -1
- package/dist/{scan-config-DkRKu_ON.mjs.map → scan-config-S5fkzNhL.mjs.map} +1 -1
- package/dist/{scanner-BLo3ssiF.mjs → scanner-0sc_pARB.mjs} +6 -6
- package/dist/{scanner-BLo3ssiF.mjs.map → scanner-0sc_pARB.mjs.map} +1 -1
- package/dist/server/http/index.d.mts +1 -1
- package/dist/server/http/index.mjs +16 -15
- package/dist/server/http/index.mjs.map +1 -1
- package/dist/{server-BJkE8D5N.mjs → server-BdGsBjPT.mjs} +20 -16
- package/dist/server-BdGsBjPT.mjs.map +1 -0
- package/dist/{server-CUtmhlno.d.mts → server-D1c-79hA.d.mts} +2 -2
- package/dist/{server-CUtmhlno.d.mts.map → server-D1c-79hA.d.mts.map} +1 -1
- package/dist/server.d.mts +1 -1
- package/dist/server.mjs +16 -15
- package/dist/{source-map-generator-Clb2Eqse.mjs → source-map-generator-DVDSWUZ1.mjs} +1 -1
- package/dist/{source-map-generator-Clb2Eqse.mjs.map → source-map-generator-DVDSWUZ1.mjs.map} +1 -1
- package/dist/{svelte-parser-CBN7Jxb7.mjs → svelte-parser-CVUIcakb.mjs} +3 -3
- package/dist/{svelte-parser-CBN7Jxb7.mjs.map → svelte-parser-CVUIcakb.mjs.map} +1 -1
- package/dist/templates/index.mjs +1 -1
- package/dist/{templates-BZbohJc8.mjs → templates-Dn-iZyzp.mjs} +1 -1
- package/dist/{templates-BZbohJc8.mjs.map → templates-Dn-iZyzp.mjs.map} +1 -1
- package/dist/testing/memory-provider.d.mts +1 -1
- package/dist/tools/annotations.mjs +1 -1
- package/dist/tools/availability.mjs +1 -1
- package/dist/{transaction-BWJt1KQb.mjs → transaction-DfrvGIfk.mjs} +4 -3
- package/dist/{transaction-BWJt1KQb.mjs.map → transaction-DfrvGIfk.mjs.map} +1 -1
- package/dist/{tsx-parser-go5V9zoc.mjs → tsx-parser-DgFdpsea.mjs} +1 -1
- package/dist/{tsx-parser-go5V9zoc.mjs.map → tsx-parser-DgFdpsea.mjs.map} +1 -1
- package/dist/tsx-parser-v8C-7cZv.mjs +2 -0
- package/dist/util/detect.mjs +1 -1
- package/dist/util/id.mjs +1 -1
- package/dist/{vue-parser-5Mp8w-mb.mjs → vue-parser-DvliI6UE.mjs} +3 -3
- package/dist/{vue-parser-5Mp8w-mb.mjs.map → vue-parser-DvliI6UE.mjs.map} +1 -1
- package/package.json +8 -4
- package/dist/branch-lifecycle-f4gI_eGo.mjs.map +0 -1
- package/dist/server-BJkE8D5N.mjs.map +0 -1
- package/dist/tsx-parser-DOQpJVgK.mjs +0 -2
- /package/dist/{index-A5iw3yDk.d.mts → index-PCQQBpIH.d.mts} +0 -0
|
@@ -7,19 +7,20 @@ import { t as OverlayReader } from "./overlay-reader-Bx1YxGXq.mjs";
|
|
|
7
7
|
import { n as readVocabulary, t as readConfig } from "./config-BLwZtwlI.mjs";
|
|
8
8
|
import { t as validateProject } from "./validator-C08p1OpM.mjs";
|
|
9
9
|
import { r as createGit } from "./identity-CxAB9Qb8.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { i as
|
|
12
|
-
import { n as
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import {
|
|
21
|
-
import { n as
|
|
22
|
-
import {
|
|
10
|
+
import { r as resolveInitDefaultBranch, t as resolveBaseBranch } from "./base-branch-Cw9DWvCC.mjs";
|
|
11
|
+
import { a as contentBranchRelation, c as listRemoteCrBranches, i as cleanupMergedBranches, n as checkBranchHealth, o as deleteRemoteBranch, u as pruneMergedRemoteBranches } from "./branch-lifecycle-CcsSyfSw.mjs";
|
|
12
|
+
import { i as ensureContentBranch, n as buildBranchName, o as mergeBranch, r as createTransaction } from "./transaction-DfrvGIfk.mjs";
|
|
13
|
+
import { n as isMerged, t as LocalProvider } from "./local-BySg4Ib-.mjs";
|
|
14
|
+
import { n as isToolAvailable, t as TOOL_REQUIREMENTS } from "./availability-CO8Xfx3w.mjs";
|
|
15
|
+
import { t as detectStack } from "./detect-B1QHYA0u.mjs";
|
|
16
|
+
import { t as TOOL_ANNOTATIONS } from "./annotations-BYkjoj2d.mjs";
|
|
17
|
+
import { n as listTemplates, t as getTemplate } from "./templates-Dn-iZyzp.mjs";
|
|
18
|
+
import { t as normalizeOperationError } from "./errors-De8Noahk.mjs";
|
|
19
|
+
import { t as reconcileBranches } from "./reconcile-BWbckvbv.mjs";
|
|
20
|
+
import { t as buildGraph } from "./graph-builder-BPhi-1KH.mjs";
|
|
21
|
+
import { n as scanSummary, t as scanCandidates } from "./scanner-0sc_pARB.mjs";
|
|
22
|
+
import { n as applyExtract, r as applyReuse } from "./apply-manager-B-VMXKiW.mjs";
|
|
23
|
+
import { t as runDoctor } from "./doctor-Du4MVG5w.mjs";
|
|
23
24
|
import { join } from "node:path";
|
|
24
25
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
25
26
|
import { appendFile, readFile, writeFile } from "node:fs/promises";
|
|
@@ -593,6 +594,7 @@ function registerSetupTools(server, _provider, projectRoot) {
|
|
|
593
594
|
}],
|
|
594
595
|
isError: true
|
|
595
596
|
};
|
|
597
|
+
const defaultBranch = await resolveInitDefaultBranch(git);
|
|
596
598
|
const branch = buildBranchName("new", "init");
|
|
597
599
|
const tx = await createTransaction(projectRoot, branch);
|
|
598
600
|
try {
|
|
@@ -614,7 +616,8 @@ function registerSetupTools(server, _provider, projectRoot) {
|
|
|
614
616
|
default: supportedLocales[0] ?? "en",
|
|
615
617
|
supported: supportedLocales
|
|
616
618
|
},
|
|
617
|
-
domains: suggestedDomains
|
|
619
|
+
domains: suggestedDomains,
|
|
620
|
+
...defaultBranch ? { repository: { default_branch: defaultBranch } } : {}
|
|
618
621
|
};
|
|
619
622
|
await writeJson(join(wtCrDir, "config.json"), config);
|
|
620
623
|
await writeJson(join(wtCrDir, "vocabulary.json"), {
|
|
@@ -654,6 +657,7 @@ function registerSetupTools(server, _provider, projectRoot) {
|
|
|
654
657
|
config_created: ".contentrain/config.json",
|
|
655
658
|
detected_stack: detectedStack,
|
|
656
659
|
detected_locales: supportedLocales,
|
|
660
|
+
default_branch: defaultBranch,
|
|
657
661
|
suggested_domains: suggestedDomains,
|
|
658
662
|
files_created: [
|
|
659
663
|
".contentrain/config.json",
|
|
@@ -3026,7 +3030,7 @@ function registerMediaTools(server, provider, _projectRoot) {
|
|
|
3026
3030
|
}
|
|
3027
3031
|
//#endregion
|
|
3028
3032
|
//#region package.json
|
|
3029
|
-
var version = "3.
|
|
3033
|
+
var version = "3.7.0";
|
|
3030
3034
|
//#endregion
|
|
3031
3035
|
//#region src/server.ts
|
|
3032
3036
|
/**
|
|
@@ -3101,4 +3105,4 @@ function resolveServerContext(input) {
|
|
|
3101
3105
|
//#endregion
|
|
3102
3106
|
export { createServer as n, DEFAULT_INSTRUCTIONS as t };
|
|
3103
3107
|
|
|
3104
|
-
//# sourceMappingURL=server-
|
|
3108
|
+
//# sourceMappingURL=server-BdGsBjPT.mjs.map
|