ns-omp-provider-kiro 0.3.8 → 0.4.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 CHANGED
@@ -17,8 +17,8 @@ To build from a clone instead — for developing this package or
17
17
  `ns-kiro-core` before a release — install from the path:
18
18
 
19
19
  ```bash
20
- git clone git@github.com:ngosangns/ns-kiro-provider.git
21
- cd ns-kiro-provider && pnpm install && pnpm -r build
20
+ git clone git@github.com:ngosangns/ns-bridge.git
21
+ cd ns-bridge && pnpm install && pnpm -r build
22
22
  omp plugin install ./packages/omp-provider-kiro
23
23
  ```
24
24
 
@@ -59,4 +59,7 @@ upstream shows up without a release here.
59
59
  - `KIRO_DEBUG=1` writes a full request/response trace to
60
60
  `~/.ns-kiro-provider/logs/kiro-debug.log`, with credentials redacted.
61
61
 
62
- Part of [ns-kiro-provider](https://github.com/ngosangns/ns-kiro-provider).
62
+ This is the recommended Kiro path in OMP. `ns-omp-provider` can also register a
63
+ `kiro` provider, but leaves it off by default so the two never fight over the id.
64
+
65
+ Part of [ns-bridge](https://github.com/ngosangns/ns-bridge).
package/dist/auth.d.ts CHANGED
@@ -1,31 +1,8 @@
1
1
  import type { OAuthCredentials, OAuthLoginCallbacks } from "@oh-my-pi/pi-ai";
2
- /**
3
- * v0.1 establishes no browser flow of its own. Every interactive method Kiro
4
- * supports already lands a session in the kiro-cli store or the Kiro IDE token
5
- * file, so this reads one of those and refreshes it. The one credential with no
6
- * browser step — an API key — is accepted directly.
7
- */
2
+ import { type ResolvedKiroRequestCredentials, resolveKiroRequestCredentials } from "ns-kiro-core";
3
+ export type { ResolvedKiroRequestCredentials };
8
4
  export declare function loginKiro(callbacks: OAuthLoginCallbacks): Promise<OAuthCredentials>;
9
5
  export declare function refreshKiroCredentials(credentials: OAuthCredentials): Promise<OAuthCredentials>;
10
6
  export declare function getKiroApiKey(credentials: OAuthCredentials): string;
11
- /** The token, region, and profile one request runs on. */
12
- export interface ResolvedKiroRequestCredentials {
13
- accessToken: string;
14
- region: string;
15
- profileArn?: string;
16
- }
17
- /**
18
- * Decide which credential a request or catalog fetch runs on.
19
- *
20
- * The key OMP resolves for the provider is the session this package returned
21
- * from `/login kiro` — but it is also `$KIRO_API_KEY` verbatim when that
22
- * variable is unset, and Kiro answers a bogus bearer with a 403 the core then
23
- * has to recover from. So a host key is trusted only when it is recognizably a
24
- * Kiro credential; anything else defers to the store, which is where the
25
- * session actually lives.
26
- *
27
- * The stored record also carries the region and the profile ARN, and passing
28
- * the ARN skips the ListAvailableProfiles round trip that a social login cannot
29
- * answer anyway.
30
- */
31
- export declare function resolveRequestCredentials(hostKey: string | undefined): Promise<ResolvedKiroRequestCredentials>;
7
+ /** See {@link resolveKiroRequestCredentials}: which credential one request or catalog fetch runs on. */
8
+ export declare const resolveRequestCredentials: typeof resolveKiroRequestCredentials;