specguard-mcp 0.1.19 → 0.1.21
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 +3 -1
- package/dist/src/support/specguard-api.d.ts +31 -1
- package/dist/src/support/specguard-api.js +35 -0
- package/dist/src/support/specguard-api.js.map +1 -1
- package/dist/src/tools/list-repository-agent-keys.d.ts +4 -1
- package/dist/src/tools/list-repository-agent-keys.js +8 -2
- package/dist/src/tools/list-repository-agent-keys.js.map +1 -1
- package/dist/src/tools/near-duplicate-clusters.js +9 -15
- package/dist/src/tools/near-duplicate-clusters.js.map +1 -1
- package/dist/src/tools/repository-overview.js +12 -19
- package/dist/src/tools/repository-overview.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -643,7 +643,9 @@ reads. With both set the **agent** key wins, so the revoke answers inside the sa
|
|
|
643
643
|
Lists the agent keys (`sga_…` keys) covering a SpecGuard repository — the keys minted for people
|
|
644
644
|
or automation principals from the /account page, each covering one or more repositories. One row
|
|
645
645
|
per live key: `id`, `name`, `owner`, `token_hint`, `repository_count` (how many repositories the
|
|
646
|
-
key's grant covers — the blast radius), `permissions` and `
|
|
646
|
+
key's grant covers — the blast radius), `permissions`, `created_at` and `last_used_at` — when the
|
|
647
|
+
key's token last authenticated, `null` meaning the key has never been presented, so the inventory
|
|
648
|
+
answers "is this live key still being used" before you cut anything.
|
|
647
649
|
|
|
648
650
|
| argument | |
|
|
649
651
|
| --- | --- |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { requireAgentApiConfig, requireApiConfig, requireUserApiConfig, requireUserOrAgentApiConfig, type ApiConfig } from "../config.js";
|
|
1
|
+
import { requireAgentApiConfig, requireApiConfig, requireUserApiConfig, requireUserOrAgentApiConfig, type ApiConfig, type Config } from "../config.js";
|
|
2
2
|
/**
|
|
3
3
|
* The SpecGuard HTTP client — a Bearer key and a path, and nothing else.
|
|
4
4
|
*
|
|
@@ -112,4 +112,34 @@ export declare function patchJsonObject(api: ApiConfig, path: string, body: Reco
|
|
|
112
112
|
* are the only legal body, it is that no tool re-types this guard.
|
|
113
113
|
*/
|
|
114
114
|
export declare function getJsonObject(api: ApiConfig, path: string, query: Record<string, string | undefined>, fetchImpl: typeof globalThis.fetch): Promise<Record<string, unknown>>;
|
|
115
|
+
/**
|
|
116
|
+
* The (credential, path) pair ONE repository ask must travel as — both arms
|
|
117
|
+
* of the singular/plural branch, chosen together or not at all.
|
|
118
|
+
*
|
|
119
|
+
* A tool asks either the whole deployment — the `sgk_` slot
|
|
120
|
+
* (`SPECGUARD_API_KEY`) against the singular `/api/v1/repository` — or one
|
|
121
|
+
* repository inside it — either member credential (the agent key preferred,
|
|
122
|
+
* the user key when no agent key is set; the SPGD-1106 widening; the route
|
|
123
|
+
* has served both since SPGD-952) against the plural
|
|
124
|
+
* `/api/v1/repositories/…`. The pair (path, credential) must not be mixable:
|
|
125
|
+
* a plural path under the `sgk_` slot, or a singular path under a member
|
|
126
|
+
* key, is a 401 at the deployment by design, and both mistakes are refused
|
|
127
|
+
* HERE, legibly, instead of reaching the deployment. Holding the two
|
|
128
|
+
* ternaries in one function is what keeps the two arms one branch point
|
|
129
|
+
* rather than two lines a call site can re-pair — the module header's "no
|
|
130
|
+
* second place for the permission model to be got wrong", applied to the
|
|
131
|
+
* one branch that used to be carried as a copy in each of the two tools
|
|
132
|
+
* that ask over this axis.
|
|
133
|
+
*
|
|
134
|
+
* Both such tools call it — `near-duplicate-clusters.ts` and
|
|
135
|
+
* `repository-overview.ts` — and a tool that grows a `repository` argument
|
|
136
|
+
* joins by calling this, not by re-spelling the branch. Blank-string and
|
|
137
|
+
* `optionalString` handling stays in the tools: this decides transport and
|
|
138
|
+
* credential from the ask exactly as handed to it, `undefined` being the
|
|
139
|
+
* one spelling of "no ask".
|
|
140
|
+
*/
|
|
141
|
+
export declare function repositoryTarget(config: Config, repository: string | undefined): {
|
|
142
|
+
api: ApiConfig;
|
|
143
|
+
path: string;
|
|
144
|
+
};
|
|
115
145
|
export { requireApiConfig, requireUserApiConfig, requireAgentApiConfig, requireUserOrAgentApiConfig };
|
|
@@ -436,5 +436,40 @@ function revokedCredentialMessage(body) {
|
|
|
436
436
|
return undefined;
|
|
437
437
|
return message;
|
|
438
438
|
}
|
|
439
|
+
/**
|
|
440
|
+
* The (credential, path) pair ONE repository ask must travel as — both arms
|
|
441
|
+
* of the singular/plural branch, chosen together or not at all.
|
|
442
|
+
*
|
|
443
|
+
* A tool asks either the whole deployment — the `sgk_` slot
|
|
444
|
+
* (`SPECGUARD_API_KEY`) against the singular `/api/v1/repository` — or one
|
|
445
|
+
* repository inside it — either member credential (the agent key preferred,
|
|
446
|
+
* the user key when no agent key is set; the SPGD-1106 widening; the route
|
|
447
|
+
* has served both since SPGD-952) against the plural
|
|
448
|
+
* `/api/v1/repositories/…`. The pair (path, credential) must not be mixable:
|
|
449
|
+
* a plural path under the `sgk_` slot, or a singular path under a member
|
|
450
|
+
* key, is a 401 at the deployment by design, and both mistakes are refused
|
|
451
|
+
* HERE, legibly, instead of reaching the deployment. Holding the two
|
|
452
|
+
* ternaries in one function is what keeps the two arms one branch point
|
|
453
|
+
* rather than two lines a call site can re-pair — the module header's "no
|
|
454
|
+
* second place for the permission model to be got wrong", applied to the
|
|
455
|
+
* one branch that used to be carried as a copy in each of the two tools
|
|
456
|
+
* that ask over this axis.
|
|
457
|
+
*
|
|
458
|
+
* Both such tools call it — `near-duplicate-clusters.ts` and
|
|
459
|
+
* `repository-overview.ts` — and a tool that grows a `repository` argument
|
|
460
|
+
* joins by calling this, not by re-spelling the branch. Blank-string and
|
|
461
|
+
* `optionalString` handling stays in the tools: this decides transport and
|
|
462
|
+
* credential from the ask exactly as handed to it, `undefined` being the
|
|
463
|
+
* one spelling of "no ask".
|
|
464
|
+
*/
|
|
465
|
+
export function repositoryTarget(config, repository) {
|
|
466
|
+
const api = repository === undefined
|
|
467
|
+
? requireApiConfig(config)
|
|
468
|
+
: requireUserOrAgentApiConfig(config);
|
|
469
|
+
const path = repository === undefined
|
|
470
|
+
? "/api/v1/repository"
|
|
471
|
+
: `/api/v1/repositories/${encodeURIComponent(repository)}`;
|
|
472
|
+
return { api, path };
|
|
473
|
+
}
|
|
439
474
|
export { requireApiConfig, requireUserApiConfig, requireAgentApiConfig, requireUserOrAgentApiConfig };
|
|
440
475
|
//# sourceMappingURL=specguard-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specguard-api.js","sourceRoot":"","sources":["../../../src/support/specguard-api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,
|
|
1
|
+
{"version":3,"file":"specguard-api.js","sourceRoot":"","sources":["../../../src/support/specguard-api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,GAG5B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,GAAc,EACd,IAAY,EACZ,KAAyC,EACzC,SAAkC;IAElC,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,GAAG,CAAC,QAAQ,GAAG,IAAI,EAAE,CAAC,CAAC;IAC9C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,IAAI,KAAK,KAAK,SAAS;YAAE,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;AAC7D,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK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AI,CAAC,KAAK,CAAC,IAAI,CAAY,CAAC;IACvC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;QAAE,OAAO,SAAS,CAAC;IAE7F,MAAM,MAAM,GAAG,MAAiC,CAAC;IACjD,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAErD,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IAClC,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE;QAAE,OAAO,SAAS,CAAC;IAE3E,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,gBAAgB,CAC9B,MAAc,EACd,UAA8B;IAE9B,MAAM,GAAG,GACP,UAAU,KAAK,SAAS;QACtB,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC;QAC1B,CAAC,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC;IAC1C,MAAM,IAAI,GACR,UAAU,KAAK,SAAS;QACtB,CAAC,CAAC,oBAAoB;QACtB,CAAC,CAAC,wBAAwB,kBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC;IAC/D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;AACvB,CAAC;AAED,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -20,7 +20,10 @@ import type { ToolDefinition } from "./types.js";
|
|
|
20
20
|
* this repository: `id`, `name`, `owner`, `token_hint`, `repository_count`
|
|
21
21
|
* (the size of the key's stored set — the blast radius a revoke would land
|
|
22
22
|
* on), `permissions` (rendered the way the web panel renders it, "read only"
|
|
23
|
-
* for the minimal grant)
|
|
23
|
+
* for the minimal grant), `created_at` and `last_used_at` (SPGD-1108 — the
|
|
24
|
+
* offboarding arc's decision half: when the key's token last authenticated,
|
|
25
|
+
* null meaning the key has NEVER been presented — the negative is served, not
|
|
26
|
+
* omitted). `token_hint` is a hint and never
|
|
24
27
|
* the token: the plaintext existed for exactly one response at mint time and
|
|
25
28
|
* nothing persisted it. Revoked rows leave the listing — a retained revoked
|
|
26
29
|
* row is not a credential — and the still-presented triage over those rows is
|
|
@@ -21,7 +21,10 @@ import { requireString } from "./args.js";
|
|
|
21
21
|
* this repository: `id`, `name`, `owner`, `token_hint`, `repository_count`
|
|
22
22
|
* (the size of the key's stored set — the blast radius a revoke would land
|
|
23
23
|
* on), `permissions` (rendered the way the web panel renders it, "read only"
|
|
24
|
-
* for the minimal grant)
|
|
24
|
+
* for the minimal grant), `created_at` and `last_used_at` (SPGD-1108 — the
|
|
25
|
+
* offboarding arc's decision half: when the key's token last authenticated,
|
|
26
|
+
* null meaning the key has NEVER been presented — the negative is served, not
|
|
27
|
+
* omitted). `token_hint` is a hint and never
|
|
25
28
|
* the token: the plaintext existed for exactly one response at mint time and
|
|
26
29
|
* nothing persisted it. Revoked rows leave the listing — a retained revoked
|
|
27
30
|
* row is not a credential — and the still-presented triage over those rows is
|
|
@@ -40,7 +43,10 @@ const listRepositoryAgentKeys = {
|
|
|
40
43
|
title: "List repository agent keys",
|
|
41
44
|
description: "Lists the agent keys (`sga_…` keys) covering a SpecGuard repository: one row per live key " +
|
|
42
45
|
"with its `id`, `name`, `owner`, `token_hint`, `repository_count` (how many repositories the " +
|
|
43
|
-
"key's grant covers — the blast radius), `permissions` and `
|
|
46
|
+
"key's grant covers — the blast radius), `permissions`, `created_at` and `last_used_at` — " +
|
|
47
|
+
"when the key's token last authenticated, null meaning the key has never been presented, so " +
|
|
48
|
+
"the inventory answers \"is this live key still being used\" before a revoke — the decision " +
|
|
49
|
+
"half of offboarding. " +
|
|
44
50
|
"Agent keys have NO mint tool on this bridge — minting is deliberately web-only — so the `id` " +
|
|
45
51
|
"this listing serves is the ONLY way to name a key to `revoke_repository_agent_key`: list " +
|
|
46
52
|
"first, then revoke. " +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-repository-agent-keys.js","sourceRoot":"","sources":["../../../src/tools/list-repository-agent-keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG1C
|
|
1
|
+
{"version":3,"file":"list-repository-agent-keys.js","sourceRoot":"","sources":["../../../src/tools/list-repository-agent-keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,uBAAuB,GAAmB;IAC9C,IAAI,EAAE,4BAA4B;IAClC,KAAK,EAAE,4BAA4B;IACnC,WAAW,EACT,4FAA4F;QAC5F,8FAA8F;QAC9F,2FAA2F;QAC3F,6FAA6F;QAC7F,6FAA6F;QAC7F,uBAAuB;QACvB,+FAA+F;QAC/F,2FAA2F;QAC3F,sBAAsB;QACtB,+FAA+F;QAC/F,wFAAwF;QACxF,8FAA8F;QAC9F,sCAAsC;QACtC,wFAAwF;QACxF,yBAAyB;QACzB,iGAAiG;QACjG,8FAA8F;QAC9F,8FAA8F;QAC9F,wFAAwF;QACxF,4FAA4F;QAC5F,4FAA4F;QAC5F,+FAA+F;QAC/F,8FAA8F;QAC9F,mDAAmD;QACnD,kGAAkG;QAClG,oDAAoD;IACtD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,gFAAgF;oBAChF,qEAAqE;aACxE;SACF;QACD,QAAQ,EAAE,CAAC,eAAe,CAAC;QAC3B,qEAAqE;QACrE,6EAA6E;QAC7E,uBAAuB;QACvB,oBAAoB,EAAE,KAAK;KAC5B;IAED,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO;QACrB,MAAM,YAAY,GAAG,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC,CAAC;QAE3E,MAAM,GAAG,GAAG,2BAA2B,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAExD,MAAM,IAAI,GAAG,MAAM,aAAa,CAC9B,GAAG,EACH,wBAAwB,kBAAkB,CAAC,YAAY,CAAC,aAAa,EACrE,EAAE,EACF,OAAO,CAAC,KAAK,CACd,CAAC;QAEF,2EAA2E;QAC3E,2EAA2E;QAC3E,0EAA0E;QAC1E,mCAAmC;QACnC,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;YACnC,UAAU,EAAE,IAAI;SACjB,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getJsonObject, requireUserOrAgentApiConfig } from "../support/specguard-api.js";
|
|
1
|
+
import { getJsonObject, repositoryTarget } from "../support/specguard-api.js";
|
|
3
2
|
import { optionalString } from "./args.js";
|
|
4
3
|
/**
|
|
5
4
|
* `GET /api/v1/repository?near_duplicates=` as a tool — shipped in the
|
|
@@ -146,19 +145,14 @@ const nearDuplicateClusters = {
|
|
|
146
145
|
},
|
|
147
146
|
async run(args, context) {
|
|
148
147
|
const repository = optionalString(args["repository"], "repository");
|
|
149
|
-
// WHICH ENDPOINT AND WHICH CREDENTIAL is one branch point over the one
|
|
150
|
-
//
|
|
151
|
-
// pair (path, credential) must not
|
|
152
|
-
// is a 401 at the deployment by
|
|
153
|
-
//
|
|
154
|
-
//
|
|
155
|
-
//
|
|
156
|
-
const api = repository
|
|
157
|
-
? requireApiConfig(context.config)
|
|
158
|
-
: requireUserOrAgentApiConfig(context.config);
|
|
159
|
-
const path = repository === undefined
|
|
160
|
-
? "/api/v1/repository"
|
|
161
|
-
: `/api/v1/repositories/${encodeURIComponent(repository)}`;
|
|
148
|
+
// WHICH ENDPOINT AND WHICH CREDENTIAL is one branch point over the one
|
|
149
|
+
// ask, and it is spelled once in `repositoryTarget`
|
|
150
|
+
// (`../support/specguard-api.js`): the pair (path, credential) must not
|
|
151
|
+
// be mixable, because either mixed pairing is a 401 at the deployment by
|
|
152
|
+
// design and both are refused there, legibly, instead. This site only
|
|
153
|
+
// decides what it asks — no repository named means the singular census,
|
|
154
|
+
// a name means the plural one under either member credential (SPGD-1106).
|
|
155
|
+
const { api, path } = repositoryTarget(context.config, repository);
|
|
162
156
|
const overview = await getJsonObject(api, path, {
|
|
163
157
|
// Always sent, always `"true"` — the server reads only that the key is
|
|
164
158
|
// present (`?near_duplicates=false` opens the block too), and this
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"near-duplicate-clusters.js","sourceRoot":"","sources":["../../../src/tools/near-duplicate-clusters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"near-duplicate-clusters.js","sourceRoot":"","sources":["../../../src/tools/near-duplicate-clusters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,MAAM,qBAAqB,GAAmB;IAC5C,IAAI,EAAE,yBAAyB;IAE/B,KAAK,EAAE,yBAAyB;IAEhC,WAAW,EACT,2FAA2F;QAC3F,gGAAgG;QAChG,gGA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ACtE,wEAAwE;QACxE,0EAA0E;QAC1E,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,gBAAgB,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAEnE,MAAM,QAAQ,GAAG,MAAM,aAAa,CAClC,GAAG,EACH,IAAI,EACJ;YACE,uEAAuE;YACvE,mEAAmE;YACnE,kDAAkD;YAClD,eAAe,EAAE,MAAM;SACxB,EACD,OAAO,CAAC,KAAK,CACd,CAAC;QAEF,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;YACvC,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getJsonObject, requireUserOrAgentApiConfig } from "../support/specguard-api.js";
|
|
1
|
+
import { getJsonObject, repositoryTarget } from "../support/specguard-api.js";
|
|
3
2
|
import { optionalBoolean, optionalString } from "./args.js";
|
|
4
3
|
/**
|
|
5
4
|
* `GET /api/v1/repository` as a tool — shipped today in the platform
|
|
@@ -886,23 +885,17 @@ const getRepositoryOverview = {
|
|
|
886
885
|
// `String(false)` would open a hundred-row block for the one caller who
|
|
887
886
|
// asked explicitly for it not to be. See this file's header.
|
|
888
887
|
const unannotatedExamples = optionalBoolean(args["unannotated_examples"], "unannotated_examples");
|
|
889
|
-
// WHICH ENDPOINT AND WHICH CREDENTIAL is decided
|
|
890
|
-
//
|
|
891
|
-
// credential (the
|
|
892
|
-
//
|
|
893
|
-
//
|
|
894
|
-
//
|
|
895
|
-
//
|
|
896
|
-
// pair (path, credential) cannot be mixed:
|
|
897
|
-
//
|
|
898
|
-
//
|
|
899
|
-
|
|
900
|
-
const api = repository === undefined
|
|
901
|
-
? requireApiConfig(context.config)
|
|
902
|
-
: requireUserOrAgentApiConfig(context.config);
|
|
903
|
-
const path = repository === undefined
|
|
904
|
-
? "/api/v1/repository"
|
|
905
|
-
: `/api/v1/repositories/${encodeURIComponent(repository)}`;
|
|
888
|
+
// WHICH ENDPOINT AND WHICH CREDENTIAL is decided once, from the one ask:
|
|
889
|
+
// `repository` present means the plural surface under either member
|
|
890
|
+
// credential (the SPGD-1106 widening; the route has served both since
|
|
891
|
+
// SPGD-952), absent means the singular surface under the `sgk_` slot —
|
|
892
|
+
// byte-for-byte the request this tool made before the argument existed.
|
|
893
|
+
// The two travel as one branch point through `repositoryTarget`
|
|
894
|
+
// (`../support/specguard-api.js`) rather than spread across the call
|
|
895
|
+
// below, so the pair (path, credential) cannot be mixed: either mixed
|
|
896
|
+
// pairing is a 401 at the deployment by design, and both mistakes are
|
|
897
|
+
// refused there, legibly, instead.
|
|
898
|
+
const { api, path } = repositoryTarget(context.config, repository);
|
|
906
899
|
const overview = await getJsonObject(api, path, {
|
|
907
900
|
branch,
|
|
908
901
|
spec_directory: specDirectory,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository-overview.js","sourceRoot":"","sources":["../../../src/tools/repository-overview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"repository-overview.js","sourceRoot":"","sources":["../../../src/tools/repository-overview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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