@cat-factory/kernel 0.60.0 → 0.61.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.
|
@@ -25,6 +25,15 @@ export interface VcsIdentityResolver {
|
|
|
25
25
|
* partial/empty identity — a login must never succeed against a bad token.
|
|
26
26
|
*/
|
|
27
27
|
resolveIdentity(token: string): Promise<VcsIdentity>;
|
|
28
|
+
/**
|
|
29
|
+
* The lowercased org / group logins the token's account belongs to, when the provider
|
|
30
|
+
* exposes them. Used by a HOSTED facade's PAT-login allowlist (a remote deployment admits
|
|
31
|
+
* a PAT only when its login, an org it belongs to, or its email domain is allowlisted —
|
|
32
|
+
* the same OR check the GitHub OAuth path applies). Optional: a provider that can't
|
|
33
|
+
* enumerate orgs (or a deployment that doesn't gate on them) omits it, and the org branch
|
|
34
|
+
* of the allowlist is simply skipped.
|
|
35
|
+
*/
|
|
36
|
+
resolveOrgs?(token: string): Promise<string[]>;
|
|
28
37
|
}
|
|
29
38
|
/** One provider's PAT-login capability: a resolver, plus any server-configured PAT. */
|
|
30
39
|
export interface VcsIdentityEntry {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vcs-identity.d.ts","sourceRoot":"","sources":["../../src/ports/vcs-identity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAmBzD,mEAAmE;AACnE,MAAM,WAAW,WAAW;IAC1B,sDAAsD;IACtD,QAAQ,EAAE,WAAW,CAAA;IACrB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB,wFAAwF;IACxF,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,4EAA4E;IAC5E,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,sEAAsE;AACtE,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"vcs-identity.d.ts","sourceRoot":"","sources":["../../src/ports/vcs-identity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAmBzD,mEAAmE;AACnE,MAAM,WAAW,WAAW;IAC1B,sDAAsD;IACtD,QAAQ,EAAE,WAAW,CAAA;IACrB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB,wFAAwF;IACxF,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,4EAA4E;IAC5E,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,sEAAsE;AACtE,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IACpD;;;;;;;OAOG;IACH,WAAW,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;CAC/C;AAED,uFAAuF;AACvF,MAAM,WAAW,gBAAgB;IAC/B,oEAAoE;IACpE,QAAQ,EAAE,mBAAmB,CAAA;IAC7B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/kernel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.61.0",
|
|
4
4
|
"description": "Shared vocabulary, pure logic, and port interfaces for the Agent Architecture Board.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"ai": "^6.0.214",
|
|
28
|
-
"@cat-factory/contracts": "0.
|
|
28
|
+
"@cat-factory/contracts": "0.63.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"typescript": "7.0.1-rc"
|