cleargate 0.11.4 → 0.11.5
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/MANIFEST.json +2 -2
- package/dist/{chunk-Q3BTSXCK.js → chunk-WFNLCTY5.js} +90 -2
- package/dist/chunk-WFNLCTY5.js.map +1 -0
- package/dist/cli.cjs +184 -90
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +13 -5
- package/dist/cli.js.map +1 -1
- package/dist/templates/cleargate-planning/MANIFEST.json +2 -2
- package/dist/{whoami-W4U6DPVG.js → whoami-GQTFZHFQ.js} +2 -2
- package/package.json +1 -1
- package/templates/cleargate-planning/MANIFEST.json +2 -2
- package/dist/chunk-Q3BTSXCK.js.map +0 -1
- /package/dist/{whoami-W4U6DPVG.js.map → whoami-GQTFZHFQ.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -9,8 +9,9 @@ import {
|
|
|
9
9
|
AcquireError,
|
|
10
10
|
acquireAccessToken,
|
|
11
11
|
getMembershipState,
|
|
12
|
-
loadConfig
|
|
13
|
-
|
|
12
|
+
loadConfig,
|
|
13
|
+
saveConfig
|
|
14
|
+
} from "./chunk-WFNLCTY5.js";
|
|
14
15
|
import {
|
|
15
16
|
createTokenStore
|
|
16
17
|
} from "./chunk-4V4QABOJ.js";
|
|
@@ -21,7 +22,7 @@ import { Command } from "commander";
|
|
|
21
22
|
// package.json
|
|
22
23
|
var package_default = {
|
|
23
24
|
name: "cleargate",
|
|
24
|
-
version: "0.11.
|
|
25
|
+
version: "0.11.5",
|
|
25
26
|
private: false,
|
|
26
27
|
type: "module",
|
|
27
28
|
description: "Planning framework for Claude Code agents \u2014 sprint/epic/story protocol, five-role agent team (architect/developer/qa/devops/reporter), Karpathy-style awareness wiki.",
|
|
@@ -633,7 +634,8 @@ async function joinHandler(opts) {
|
|
|
633
634
|
if (UUID_V4_RE.test(opts.inviteUrl)) {
|
|
634
635
|
token = opts.inviteUrl;
|
|
635
636
|
const cfg = loadConfig({
|
|
636
|
-
flags: { profile: opts.profile, mcpUrl: opts.mcpUrlFlag }
|
|
637
|
+
flags: { profile: opts.profile, mcpUrl: opts.mcpUrlFlag },
|
|
638
|
+
...opts.configPath !== void 0 ? { configPath: opts.configPath } : {}
|
|
637
639
|
});
|
|
638
640
|
if (!cfg.mcpUrl) {
|
|
639
641
|
stderr(
|
|
@@ -970,9 +972,15 @@ async function joinHandler(opts) {
|
|
|
970
972
|
try {
|
|
971
973
|
const store = await (opts.createStore ?? createTokenStore)();
|
|
972
974
|
await store.save(opts.profile, refreshToken);
|
|
975
|
+
saveConfig(
|
|
976
|
+
{ mcpUrl: baseUrl },
|
|
977
|
+
opts.configPath !== void 0 ? { configPath: opts.configPath } : {}
|
|
978
|
+
);
|
|
973
979
|
stdout(`joined project '${projectName}' as '${hostname3()}'
|
|
974
980
|
`);
|
|
975
981
|
stdout(`refresh token saved to ${store.backend}.
|
|
982
|
+
`);
|
|
983
|
+
stdout(`mcp_url ${baseUrl} saved to ~/.cleargate/config.json.
|
|
976
984
|
`);
|
|
977
985
|
} catch (err) {
|
|
978
986
|
stderr(
|
|
@@ -11119,7 +11127,7 @@ program.command("init").description("initialise a repo with ClearGate scaffold (
|
|
|
11119
11127
|
await initHandler({ force: opts.force ?? false, yes: opts.yes ?? false, pin: opts.pin, fromSource: opts.fromSource });
|
|
11120
11128
|
});
|
|
11121
11129
|
program.command("whoami").description("print the currently authenticated agent identity").option("--json", "CR-011: emit membership state as JSON (no network call)").action(async (opts) => {
|
|
11122
|
-
const { whoamiHandler } = await import("./whoami-
|
|
11130
|
+
const { whoamiHandler } = await import("./whoami-GQTFZHFQ.js");
|
|
11123
11131
|
const parentOpts = program.opts();
|
|
11124
11132
|
await whoamiHandler({
|
|
11125
11133
|
profile: parentOpts.profile,
|