@javargasm/opencode-kiro-auth 0.1.2 → 0.2.1
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/file-logger.d.ts +47 -0
- package/dist/file-logger.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1353 -490
- package/dist/kiro-cli-sync.d.ts +58 -4
- package/dist/kiro-cli-sync.d.ts.map +1 -1
- package/dist/models.d.ts +9 -1
- package/dist/models.d.ts.map +1 -1
- package/dist/oauth.d.ts +32 -2
- package/dist/oauth.d.ts.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/stream.d.ts +0 -16
- package/dist/stream.d.ts.map +1 -1
- package/dist/transform.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** Log the full request body sent to Kiro API. */
|
|
2
|
+
export declare function logRequest(meta: {
|
|
3
|
+
endpoint: string;
|
|
4
|
+
model: string;
|
|
5
|
+
historyLength: number;
|
|
6
|
+
requestBodyChars: number;
|
|
7
|
+
attempt: number;
|
|
8
|
+
conversationId: string;
|
|
9
|
+
}, requestBody: string): void;
|
|
10
|
+
/** Log a parsed response event from the Kiro stream. */
|
|
11
|
+
export declare function logResponseEvent(event: {
|
|
12
|
+
type: string;
|
|
13
|
+
data: unknown;
|
|
14
|
+
eventSeq: number;
|
|
15
|
+
}): void;
|
|
16
|
+
/** Log the final response summary when the stream completes. */
|
|
17
|
+
export declare function logResponseDone(meta: {
|
|
18
|
+
stopReason: string;
|
|
19
|
+
emittedToolCalls: number;
|
|
20
|
+
usage: unknown;
|
|
21
|
+
contentBlocks: number;
|
|
22
|
+
model: string;
|
|
23
|
+
}): void;
|
|
24
|
+
/** Log HTTP error responses from the Kiro API. */
|
|
25
|
+
export declare function logHttpError(meta: {
|
|
26
|
+
status: number;
|
|
27
|
+
statusText: string;
|
|
28
|
+
body: string;
|
|
29
|
+
endpoint: string;
|
|
30
|
+
model: string;
|
|
31
|
+
attempt: number;
|
|
32
|
+
historyLength: number;
|
|
33
|
+
}): void;
|
|
34
|
+
/** Log stream-level errors (timeouts, parse errors, etc). */
|
|
35
|
+
export declare function logStreamError(meta: {
|
|
36
|
+
error: string;
|
|
37
|
+
context: string;
|
|
38
|
+
model: string;
|
|
39
|
+
attempt: number;
|
|
40
|
+
}): void;
|
|
41
|
+
/** Log caught exceptions from the top-level try/catch. */
|
|
42
|
+
export declare function logCaughtError(meta: {
|
|
43
|
+
stopReason: string;
|
|
44
|
+
errorMessage: string;
|
|
45
|
+
model: string;
|
|
46
|
+
}): void;
|
|
47
|
+
//# sourceMappingURL=file-logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-logger.d.ts","sourceRoot":"","sources":["../src/file-logger.ts"],"names":[],"mappings":"AA4CA,kDAAkD;AAClD,wBAAgB,UAAU,CAAC,IAAI,EAAE;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAM5B;AAED,wDAAwD;AACxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,CAOP;AAED,gEAAgE;AAChE,wBAAgB,eAAe,CAAC,IAAI,EAAE;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAKP;AAED,kDAAkD;AAClD,wBAAgB,YAAY,CAAC,IAAI,EAAE;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB,GAAG,IAAI,CAKP;AAED,6DAA6D;AAC7D,wBAAgB,cAAc,CAAC,IAAI,EAAE;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,IAAI,CAKP;AAED,0DAA0D;AAC1D,wBAAgB,cAAc,CAAC,IAAI,EAAE;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAKP"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAuB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAuB,MAAM,qBAAqB,CAAC;AA0BvE,eAAO,MAAM,UAAU,EAAE,MAqUxB,CAAC;;;;;AAEF,wBAGyB"}
|