pantheon-cli 0.2.34 → 0.2.36
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/pantheon.mjs +75 -49
- package/package.json +1 -1
package/dist/pantheon.mjs
CHANGED
|
@@ -23222,7 +23222,7 @@ function reviewNote(input) {
|
|
|
23222
23222
|
"Tool output is not archived from every client, so the strongest evidence \u2014 what a command actually printed when it failed \u2014 usually exists only in the conversation you are having now. Weigh that alongside these."
|
|
23223
23223
|
);
|
|
23224
23224
|
parts.push(
|
|
23225
|
-
`
|
|
23225
|
+
`Save at most two drafts, and save none if nothing here recurred: this space is using ${input.slots} of ${MAX_LIVE_SKILLS} live slots and every promoted skill costs context on every future resume. Do not ask first \u2014 drafts are inert until the human approves them on the space page. Call pantheon_save_skill with evidence citing the session and turn each claim came from.`
|
|
23226
23226
|
);
|
|
23227
23227
|
return parts.join(" ");
|
|
23228
23228
|
}
|
|
@@ -23471,7 +23471,8 @@ Grounding \u2014 never break these:
|
|
|
23471
23471
|
- Never invent a slug yourself. The human's typed name is the only new-space source.
|
|
23472
23472
|
- If pantheon_* tools are missing or fail, say "Pantheon MCP is not connected" and stop. Do not guess.
|
|
23473
23473
|
- /pantheon-spaces \u2192 call pantheon_list_spaces, then show only those slugs.
|
|
23474
|
-
- /pantheon-skills \u2192 call pantheon_skill_review
|
|
23474
|
+
- /pantheon-skills \u2192 call pantheon_skill_review, then save what it justifies with pantheon_save_skill without asking first: a draft is inert until the human promotes it on the space page, so that is where they approve or reject. Never nominate a skill without the review, and cite the turns any claim rests on. Saving none is a normal, common outcome \u2014 say so plainly rather than finding something to fill the silence.
|
|
23475
|
+
- Do not narrate a command. No preamble about which tools you can see, whether MCP is connected, or what you are about to do \u2014 run it and report what happened. A call that actually failed is worth one line.
|
|
23475
23476
|
- Files you generated (PDFs, letters, CVs, spreadsheets) must go in artifacts as base64. Handoff is rejected if the chat names a .pdf and you omit it.
|
|
23476
23477
|
- After resume, the packet covers the whole space but is still a summary of it. Before you tell the human something was not carried over, call pantheon_search (it reads tool calls too) and pantheon_get_turns on any id from the sessions list.
|
|
23477
23478
|
- Shared spaces belong to someone else and are read-only. Resume, search and the get_* tools work on them exactly as on your own. Handoff, park, remember and save_skill are refused \u2014 do not retry with a different spelling, tell the human it is read-only and offer to write to a space they own. A bare name is enough when only one space matches; write owner/space when two do.
|
|
@@ -23523,10 +23524,11 @@ Tutorial
|
|
|
23523
23524
|
several conversations \u2014 and you weigh them against THIS chat, where the
|
|
23524
23525
|
errors you actually hit are still visible. Most clients never archive
|
|
23525
23526
|
what a tool printed, so that is evidence only you hold.
|
|
23526
|
-
|
|
23527
|
-
|
|
23528
|
-
|
|
23529
|
-
|
|
23527
|
+
Save at most two as drafts, citing the turns each came from. No need to
|
|
23528
|
+
ask: a draft reaches no agent until it is promoted on the space page,
|
|
23529
|
+
which is where it is approved or rejected. None is the ordinary answer:
|
|
23530
|
+
a live skill is loaded into every future resume, so an unread one is a
|
|
23531
|
+
permanent tax. Never write what AGENTS.md or the README already says.
|
|
23530
23532
|
7. Spaces someone shared with you appear in pantheon_list_spaces with an
|
|
23531
23533
|
owner, and resume the same way \u2014 /pantheon-resume preorders, or
|
|
23532
23534
|
/pantheon-resume obirikan/preorders when two spaces share a name.
|
|
@@ -23560,7 +23562,7 @@ MCP tools \u2014 always the pantheon_ prefix
|
|
|
23560
23562
|
pantheon_forget_session delete one archived chat, when capture read the
|
|
23561
23563
|
wrong one. Not undoable \u2014 confirm the id first.
|
|
23562
23564
|
pantheon_skill_review read a space for lessons worth writing down, then
|
|
23563
|
-
|
|
23565
|
+
save at most two inert drafts \u2014 or none, which is usual
|
|
23564
23566
|
pantheon_get_skill read one skill's guidance
|
|
23565
23567
|
pantheon_save_skill write a skill as a draft, citing the turns it came
|
|
23566
23568
|
from. A draft reaches no agent until promoted.
|
|
@@ -23606,10 +23608,12 @@ function saveMachineConfig(config2, credentials) {
|
|
|
23606
23608
|
}
|
|
23607
23609
|
|
|
23608
23610
|
// ../core/src/vault.ts
|
|
23609
|
-
import { execFileSync as execFileSync2 } from "node:child_process";
|
|
23610
|
-
import { existsSync as existsSync5, mkdirSync as mkdirSync4, unlinkSync, writeFileSync as writeFileSync4 } from "node:fs";
|
|
23611
|
+
import { execFile, execFileSync as execFileSync2 } from "node:child_process";
|
|
23612
|
+
import { existsSync as existsSync5, mkdirSync as mkdirSync4, rmSync as rmSync3, unlinkSync, writeFileSync as writeFileSync4 } from "node:fs";
|
|
23611
23613
|
import { homedir as homedir4, tmpdir } from "node:os";
|
|
23612
23614
|
import { dirname, join as join5, resolve as resolve2 } from "node:path";
|
|
23615
|
+
import { promisify } from "node:util";
|
|
23616
|
+
var execFileAsync = promisify(execFile);
|
|
23613
23617
|
function gitEnv(extra = {}) {
|
|
23614
23618
|
return {
|
|
23615
23619
|
...process.env,
|
|
@@ -23776,7 +23780,7 @@ async function syncVault(home, opts = {}) {
|
|
|
23776
23780
|
}
|
|
23777
23781
|
|
|
23778
23782
|
// ../core/src/shares.ts
|
|
23779
|
-
import { existsSync as existsSync6, mkdirSync as mkdirSync5, readdirSync as readdirSync4, readFileSync as readFileSync5, rmSync as
|
|
23783
|
+
import { existsSync as existsSync6, mkdirSync as mkdirSync5, readdirSync as readdirSync4, readFileSync as readFileSync5, rmSync as rmSync4, writeFileSync as writeFileSync5 } from "node:fs";
|
|
23780
23784
|
import { dirname as dirname2, join as join6 } from "node:path";
|
|
23781
23785
|
function ledgerPath(root) {
|
|
23782
23786
|
return join6(root, "manifest.json");
|
|
@@ -23824,7 +23828,7 @@ async function pullShares(home, options = {}) {
|
|
|
23824
23828
|
};
|
|
23825
23829
|
}
|
|
23826
23830
|
if (!shares.length) {
|
|
23827
|
-
if (existsSync6(root))
|
|
23831
|
+
if (existsSync6(root)) rmSync4(root, { recursive: true, force: true });
|
|
23828
23832
|
return { ok: true, spaces: 0, fetched: 0 };
|
|
23829
23833
|
}
|
|
23830
23834
|
mkdirSync5(root, { recursive: true });
|
|
@@ -23870,9 +23874,9 @@ async function pullShares(home, options = {}) {
|
|
|
23870
23874
|
for (const owner of dirNames(root)) {
|
|
23871
23875
|
for (const slug of dirNames(join6(root, owner))) {
|
|
23872
23876
|
if (keep.has(`${owner}/${slug}`)) continue;
|
|
23873
|
-
|
|
23877
|
+
rmSync4(join6(root, owner, slug), { recursive: true, force: true });
|
|
23874
23878
|
}
|
|
23875
|
-
if (!dirNames(join6(root, owner)).length)
|
|
23879
|
+
if (!dirNames(join6(root, owner)).length) rmSync4(join6(root, owner), { recursive: true, force: true });
|
|
23876
23880
|
}
|
|
23877
23881
|
writeFileSync5(ledgerPath(root), `${JSON.stringify(next, null, 2)}
|
|
23878
23882
|
`);
|
|
@@ -23894,11 +23898,11 @@ function prune(base, dir, wanted) {
|
|
|
23894
23898
|
const full = join6(dir, entry.name);
|
|
23895
23899
|
if (entry.isDirectory()) {
|
|
23896
23900
|
prune(base, full, wanted);
|
|
23897
|
-
if (!readdirSync4(full).length)
|
|
23901
|
+
if (!readdirSync4(full).length) rmSync4(full, { recursive: true, force: true });
|
|
23898
23902
|
continue;
|
|
23899
23903
|
}
|
|
23900
23904
|
const relative2 = full.slice(base.length + 1).split("\\").join("/");
|
|
23901
|
-
if (!wanted.has(relative2))
|
|
23905
|
+
if (!wanted.has(relative2)) rmSync4(full, { force: true });
|
|
23902
23906
|
}
|
|
23903
23907
|
}
|
|
23904
23908
|
function dirNames(root) {
|
|
@@ -24289,7 +24293,7 @@ ${GUIDE}` }]
|
|
|
24289
24293
|
registerTool(
|
|
24290
24294
|
server,
|
|
24291
24295
|
"pantheon_save_skill",
|
|
24292
|
-
"Write a skill into a Pantheon space as a DRAFT for the human to review.
|
|
24296
|
+
"Write a skill into a Pantheon space as a DRAFT for the human to review on the space page. Call this after pantheon_skill_review when something genuinely recurred, when pantheon_handoff returned a skillCandidate, or when the human asks for a skill \u2014 but never speculatively, because an unread skill costs every future agent context for nothing. A draft needs no permission: it is inert until promoted, and the space page is where it is approved or rejected. Ground every instruction in the cited evidence: say what failed, what fixed it, and cite session and turn. Do not restate anything already in AGENTS.md or the README.",
|
|
24293
24297
|
{
|
|
24294
24298
|
space: external_exports.string(),
|
|
24295
24299
|
name: external_exports.string().describe("Short slug, e.g. nextjs-og-images."),
|
|
@@ -24314,14 +24318,14 @@ ${GUIDE}` }]
|
|
|
24314
24318
|
ok: sync2.ok !== false,
|
|
24315
24319
|
...saved,
|
|
24316
24320
|
sync: sync2,
|
|
24317
|
-
note: sync2.ok === false ? `Draft saved locally but the push failed: ${sync2.error || "unknown error"}. Tell the human it is not yet in GitHub.` : `Saved as a draft
|
|
24321
|
+
note: sync2.ok === false ? `Draft saved locally but the push failed: ${sync2.error || "unknown error"}. Tell the human it is not yet in GitHub.` : `Saved as a draft, waiting for review on the space page. Name it in your report; do not explain the draft system.`
|
|
24318
24322
|
};
|
|
24319
24323
|
})
|
|
24320
24324
|
);
|
|
24321
24325
|
registerTool(
|
|
24322
24326
|
server,
|
|
24323
24327
|
"pantheon_skill_review",
|
|
24324
|
-
"Review a Pantheon space for lessons worth writing down as a skill. Trigger: /pantheon-skills <space>. Returns what this space already has, how many of its live slots are spent, and the recurring signals its archive still holds: times the human corrected an agent, commands run across several conversations, and any deterministic candidates. These are raw material, not findings \u2014 read the turns with pantheon_get_turns before believing any of them. Judge the conversation you are having now as well, and weigh it heavily: most clients never archive what a tool printed, so a failure you hit in this chat is evidence that exists nowhere else. Then
|
|
24328
|
+
"Review a Pantheon space for lessons worth writing down as a skill. Trigger: /pantheon-skills <space>. Returns what this space already has, how many of its live slots are spent, and the recurring signals its archive still holds: times the human corrected an agent, commands run across several conversations, and any deterministic candidates. These are raw material, not findings \u2014 read the turns with pantheon_get_turns before believing any of them. Judge the conversation you are having now as well, and weigh it heavily: most clients never archive what a tool printed, so a failure you hit in this chat is evidence that exists nowhere else. Then save AT MOST TWO with pantheon_save_skill, and save none if nothing genuinely recurred \u2014 none is the ordinary answer and a space with no skills is healthier than one with skills nobody reads. Never write a skill for something AGENTS.md or the README already says. Do not ask permission first: a saved skill is a draft and no agent is ever given it until the human promotes it on the space page, which is where they approve or reject. Cite evidence with the turns you read. Report only the names you saved and what each tells a future agent, in a line or two \u2014 no preamble about which tools you have or what you are about to do.",
|
|
24325
24329
|
{ space: external_exports.string(), cwd: external_exports.string().optional() },
|
|
24326
24330
|
async ({ space, cwd }) => safe(() => skillReview(home, space, cwd || process.cwd()))
|
|
24327
24331
|
);
|
|
@@ -24574,59 +24578,74 @@ function upsertCodex(home) {
|
|
|
24574
24578
|
${block2}`);
|
|
24575
24579
|
}
|
|
24576
24580
|
var spaceGate = 'A space is the short name the human chose for a conscience (preorders, auth-refactor). The argument is: $ARGUMENTS\n\nIf that arrived blank, or as an unexpanded placeholder rather than a name, ask: "What should this conscience be named?" and wait. Never invent a name. Otherwise use it exactly as typed \u2014 any single short slug counts, including one that is not in the vault yet.';
|
|
24581
|
+
var quiet = "Do not narrate. No preamble about which tools you can see, whether Pantheon MCP is connected, or what you are about to do. Run it and report what happened, briefly. If a call fails, say what failed in one line.";
|
|
24577
24582
|
var slashCommands = [
|
|
24578
24583
|
{
|
|
24579
24584
|
name: "pantheon-handoff",
|
|
24580
24585
|
description: "Leave a Pantheon conscience for the next agent",
|
|
24581
24586
|
body: `${spaceGate}
|
|
24582
24587
|
|
|
24583
|
-
Only after you have a real space name, call pantheon_handoff even if that name is not in pantheon_list_spaces. First handoff creates the space. Do not refuse. Do not tell the human to create it first. transcript is the real thread, not a recap. Each human message is { role: "user", text: "<what they typed>" }. Each of your replies is { role: "assistant", text: "<what you said>" }. Copy the words. Do not write "User asked\u2026" or "Assistant wrote\u2026". Do not mark your replies as user. Same timestamp on every turn will be rejected. You MUST attach artifacts for every file you generated \u2014 PDFs, letters, CVs, spreadsheets \u2014 and every file the human uploaded. Read the file and pass { name, content: "<base64>", encoding: "base64" }. Claude: /mnt/user-data/outputs or the download you presented. A chat that names a .pdf without attaching it is rejected. Named code fences are stored automatically. If the thread is too long, send the oldest visible chunk with truncated:true, then call again with append:true. The tool commits and pushes \u2014 do not run pantheon sync
|
|
24588
|
+
Only after you have a real space name, call pantheon_handoff even if that name is not in pantheon_list_spaces. First handoff creates the space. Do not refuse. Do not tell the human to create it first. transcript is the real thread, not a recap. Each human message is { role: "user", text: "<what they typed>" }. Each of your replies is { role: "assistant", text: "<what you said>" }. Copy the words. Do not write "User asked\u2026" or "Assistant wrote\u2026". Do not mark your replies as user. Same timestamp on every turn will be rejected. You MUST attach artifacts for every file you generated \u2014 PDFs, letters, CVs, spreadsheets \u2014 and every file the human uploaded. Read the file and pass { name, content: "<base64>", encoding: "base64" }. Claude: /mnt/user-data/outputs or the download you presented. A chat that names a .pdf without attaching it is rejected. Named code fences are stored automatically. If the thread is too long, send the oldest visible chunk with truncated:true, then call again with append:true. The tool commits and pushes \u2014 do not run pantheon sync.
|
|
24589
|
+
|
|
24590
|
+
${quiet}`
|
|
24584
24591
|
},
|
|
24585
24592
|
{
|
|
24586
24593
|
name: "pantheon-resume",
|
|
24587
24594
|
description: "Load a Pantheon conscience into this chat",
|
|
24588
24595
|
body: `A space is the short name the human chose for a conscience. The argument is: $ARGUMENTS
|
|
24589
24596
|
|
|
24590
|
-
Call pantheon_resume immediately, with that name exactly as typed. If it arrived blank or as an unexpanded placeholder, call pantheon_resume without a space \u2014 it lists live consciences. Show that list and ask which one they meant. Do not invent a name. Once they pick a slug, call pantheon_resume with that slug. It pulls the vault first. If the packet lists artifacts, fetch the ones you need with pantheon_get_artifact. Do not use any other resume tool. Do not run pantheon sync
|
|
24597
|
+
Call pantheon_resume immediately, with that name exactly as typed. If it arrived blank or as an unexpanded placeholder, call pantheon_resume without a space \u2014 it lists live consciences. Show that list and ask which one they meant. Do not invent a name. Once they pick a slug, call pantheon_resume with that slug. It pulls the vault first. If the packet lists artifacts, fetch the ones you need with pantheon_get_artifact. Do not use any other resume tool. Do not run pantheon sync.
|
|
24598
|
+
|
|
24599
|
+
${quiet}`
|
|
24591
24600
|
},
|
|
24592
24601
|
{
|
|
24593
24602
|
name: "pantheon-park",
|
|
24594
24603
|
description: "Archive this chat into Pantheon without rewriting the packet",
|
|
24595
24604
|
body: `${spaceGate}
|
|
24596
24605
|
|
|
24597
|
-
Only then call pantheon_park, even if the slug is new. If you send a transcript, use real user and assistant turns \u2014 not a recap. Do not rewrite handoff.md
|
|
24606
|
+
Only then call pantheon_park, even if the slug is new. If you send a transcript, use real user and assistant turns \u2014 not a recap. Do not rewrite handoff.md.
|
|
24607
|
+
|
|
24608
|
+
${quiet}`
|
|
24598
24609
|
},
|
|
24599
24610
|
{
|
|
24600
24611
|
name: "pantheon-remember",
|
|
24601
24612
|
description: "Save one durable fact into a Pantheon space",
|
|
24602
24613
|
body: `${spaceGate}
|
|
24603
24614
|
|
|
24604
|
-
Parse the rest of the argument as the fact. Only then call pantheon_remember, even if the slug is new. Do not dump the chat
|
|
24615
|
+
Parse the rest of the argument as the fact. Only then call pantheon_remember, even if the slug is new. Do not dump the chat.
|
|
24616
|
+
|
|
24617
|
+
${quiet}`
|
|
24605
24618
|
},
|
|
24606
24619
|
{
|
|
24607
24620
|
name: "pantheon-skills",
|
|
24608
24621
|
description: "Review a Pantheon space for lessons worth writing down",
|
|
24609
24622
|
body: `${spaceGate}
|
|
24610
24623
|
|
|
24611
|
-
Only then call pantheon_skill_review with that space, passing cwd when the project folder is not the server's working directory. If that
|
|
24624
|
+
Only then call pantheon_skill_review with that space, passing cwd when the project folder is not the server's working directory. If that call is unavailable, do not improvise from this chat alone; say only "Skill review unavailable. Reload Pantheon MCP." It returns signals, not conclusions: corrections the human made, commands run across several conversations, and any deterministic candidates. Read the turns it cites with pantheon_get_turns before you believe any of them.
|
|
24625
|
+
|
|
24626
|
+
Judge THIS conversation too, and weigh it heavily. Most clients never write down what a tool printed, so a failure you hit in this chat is evidence that exists nowhere else \u2014 a command that failed until you found the flag, a correction the human had to repeat, an approach that turned out to be wrong. That is the material only you have.
|
|
24612
24627
|
|
|
24613
|
-
|
|
24628
|
+
Save AT MOST TWO, and save none if nothing genuinely recurred. None is the ordinary answer: a live skill is loaded into every future resume of this space, so an unread one is a permanent tax. Never write one for something AGENTS.md or the README already says \u2014 the review tells you which commands are already documented \u2014 or for a restatement of what the code plainly does.
|
|
24614
24629
|
|
|
24615
|
-
|
|
24630
|
+
Write them with pantheon_save_skill yourself, without asking permission first. A saved skill is a draft and is inert: no agent is ever given it until the human promotes it on the space page, so that page is where they approve or reject, not this chat. Cite evidence with the sessions and turns you actually read \u2014 the vault checks those ids and refuses the save if one does not exist. Call pantheon_dismiss_skill with its key for any deterministic candidate you decided against, so it stops being offered.
|
|
24616
24631
|
|
|
24617
|
-
|
|
24632
|
+
Report in one or two lines: the names you saved and what each one tells a future agent. If you saved nothing, say only that nothing recurred.
|
|
24618
24633
|
|
|
24619
|
-
|
|
24634
|
+
${quiet}`
|
|
24620
24635
|
},
|
|
24621
24636
|
{
|
|
24622
24637
|
name: "pantheon-spaces",
|
|
24623
24638
|
description: "List Pantheon consciences",
|
|
24624
|
-
body:
|
|
24639
|
+
body: `Call pantheon_list_spaces and show only that result. Do not list spaces from memory, this chat, Knowledge Compiler, or any other tool. If the tool fails, say Pantheon MCP is not connected.
|
|
24640
|
+
|
|
24641
|
+
${quiet}`
|
|
24625
24642
|
},
|
|
24626
24643
|
{
|
|
24627
24644
|
name: "pantheon-help",
|
|
24628
24645
|
description: "Show Pantheon commands",
|
|
24629
|
-
body:
|
|
24646
|
+
body: `Call the MCP tool pantheon_help and follow that guide.
|
|
24647
|
+
|
|
24648
|
+
${quiet}`
|
|
24630
24649
|
}
|
|
24631
24650
|
];
|
|
24632
24651
|
function writeCodexSkill() {
|
|
@@ -24695,12 +24714,19 @@ name and trigger. The table only proves the load worked. It says nothing about
|
|
|
24695
24714
|
where the work was, which is the part the human asked for, so never fold that
|
|
24696
24715
|
into cells.
|
|
24697
24716
|
|
|
24698
|
-
|
|
24699
|
-
|
|
24700
|
-
|
|
24701
|
-
|
|
24702
|
-
|
|
24703
|
-
|
|
24717
|
+
After \`pantheon_skill_review\`, decide and act: save what is worth writing with
|
|
24718
|
+
\`pantheon_save_skill\` \u2014 at most two, and often none \u2014 without asking first. A
|
|
24719
|
+
draft is inert until the human promotes it on the space page, so that page is
|
|
24720
|
+
where they approve or reject, not the chat. Then report in prose, not a table:
|
|
24721
|
+
the names you saved and what each tells a future agent, one line each. If nothing
|
|
24722
|
+
recurred, say only that; it is the common case and not a failure.
|
|
24723
|
+
|
|
24724
|
+
## Do not narrate
|
|
24725
|
+
|
|
24726
|
+
No command opens with which tools you can see, whether Pantheon MCP is
|
|
24727
|
+
connected, or what you are about to do. Run it and report what happened. A call
|
|
24728
|
+
that genuinely fails is worth one line saying what failed \u2014 that is a result,
|
|
24729
|
+
not narration.
|
|
24704
24730
|
`;
|
|
24705
24731
|
for (const dir of dirs2) {
|
|
24706
24732
|
mkdirSync6(dir, { recursive: true });
|
|
@@ -25091,17 +25117,17 @@ async function connect(opts) {
|
|
|
25091
25117
|
);
|
|
25092
25118
|
mkdirSync7(home, { recursive: true });
|
|
25093
25119
|
const auth = authArgs();
|
|
25094
|
-
const
|
|
25120
|
+
const quiet2 = { stdio: ["ignore", "pipe", "pipe"] };
|
|
25095
25121
|
const fresh = !existsSync8(join8(home, ".git"));
|
|
25096
25122
|
let archived = "";
|
|
25097
25123
|
if (fresh) {
|
|
25098
25124
|
await clone2(body.cloneUrl, home, auth, "Cloning the vault");
|
|
25099
25125
|
} else {
|
|
25100
|
-
archived = await syncVault2(home, body.cloneUrl, auth,
|
|
25126
|
+
archived = await syncVault2(home, body.cloneUrl, auth, quiet2);
|
|
25101
25127
|
}
|
|
25102
|
-
claimCredentials(home,
|
|
25103
|
-
execFileSync3("git", ["-C", home, "config", "user.name", "Pantheon"],
|
|
25104
|
-
execFileSync3("git", ["-C", home, "config", "user.email", "pantheon@users.noreply.github.com"],
|
|
25128
|
+
claimCredentials(home, quiet2);
|
|
25129
|
+
execFileSync3("git", ["-C", home, "config", "user.name", "Pantheon"], quiet2);
|
|
25130
|
+
execFileSync3("git", ["-C", home, "config", "user.email", "pantheon@users.noreply.github.com"], quiet2);
|
|
25105
25131
|
let written = [];
|
|
25106
25132
|
let ahead = [];
|
|
25107
25133
|
let skipped = [];
|
|
@@ -25132,11 +25158,11 @@ async function connect(opts) {
|
|
|
25132
25158
|
)
|
|
25133
25159
|
);
|
|
25134
25160
|
}
|
|
25135
|
-
async function syncVault2(home, cloneUrl, auth,
|
|
25136
|
-
retarget(home, cloneUrl,
|
|
25161
|
+
async function syncVault2(home, cloneUrl, auth, quiet2) {
|
|
25162
|
+
retarget(home, cloneUrl, quiet2);
|
|
25137
25163
|
const updating = step("Updating the vault");
|
|
25138
25164
|
try {
|
|
25139
|
-
execFileSync3("git", [...auth, "-C", home, "pull", "--ff-only"],
|
|
25165
|
+
execFileSync3("git", [...auth, "-C", home, "pull", "--ff-only"], quiet2);
|
|
25140
25166
|
updating.done();
|
|
25141
25167
|
return "";
|
|
25142
25168
|
} catch (error2) {
|
|
@@ -25181,11 +25207,11 @@ async function clone2(cloneUrl, home, auth, label) {
|
|
|
25181
25207
|
}
|
|
25182
25208
|
cloning.done();
|
|
25183
25209
|
}
|
|
25184
|
-
function retarget(home, cloneUrl,
|
|
25210
|
+
function retarget(home, cloneUrl, quiet2) {
|
|
25185
25211
|
try {
|
|
25186
|
-
execFileSync3("git", ["-C", home, "remote", "set-url", "origin", cloneUrl],
|
|
25212
|
+
execFileSync3("git", ["-C", home, "remote", "set-url", "origin", cloneUrl], quiet2);
|
|
25187
25213
|
} catch {
|
|
25188
|
-
execFileSync3("git", ["-C", home, "remote", "add", "origin", cloneUrl],
|
|
25214
|
+
execFileSync3("git", ["-C", home, "remote", "add", "origin", cloneUrl], quiet2);
|
|
25189
25215
|
}
|
|
25190
25216
|
}
|
|
25191
25217
|
function sharesHistory(home) {
|
|
@@ -25212,12 +25238,12 @@ function credentialHelperCommand() {
|
|
|
25212
25238
|
function authArgs() {
|
|
25213
25239
|
return ["-c", "credential.helper=", "-c", `credential.helper=${credentialHelperCommand()}`];
|
|
25214
25240
|
}
|
|
25215
|
-
function claimCredentials(home,
|
|
25216
|
-
execFileSync3("git", ["-C", home, "config", "--replace-all", "credential.helper", ""],
|
|
25241
|
+
function claimCredentials(home, quiet2) {
|
|
25242
|
+
execFileSync3("git", ["-C", home, "config", "--replace-all", "credential.helper", ""], quiet2);
|
|
25217
25243
|
execFileSync3(
|
|
25218
25244
|
"git",
|
|
25219
25245
|
["-C", home, "config", "--add", "credential.helper", credentialHelperCommand()],
|
|
25220
|
-
|
|
25246
|
+
quiet2
|
|
25221
25247
|
);
|
|
25222
25248
|
}
|
|
25223
25249
|
|
package/package.json
CHANGED