@lark-codem/codem-cli 0.1.282-dev.100104692058.0.g531ddd8 → 0.1.282-dev.100104717408.0.gcb81da0
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/auth/index.d.ts +19 -0
- package/auth/index.js +5936 -0
- package/bin/codem-startup-logs.js +13 -14
- package/bin/codem.js +171 -55
- package/bin/slardar-pc-transport.js +0 -134
- package/bin/tt-env.js +1 -1
- package/bin/worker-runtime-telemetry.js +2 -1
- package/package.json +13 -4
- package/profile/credential-errors.js +3 -4
- package/profile/credential-metadata.js +2 -2
- package/profile/debug.js +12 -12
- package/profile/profile-snapshot.js +3 -2
- package/profile/realtime-log-id.js +9 -0
- package/profile/runtime-logs.js +208 -389
- package/profile/sandbox-observability.js +17 -0
- package/profile/slardar-pc-transport.js +0 -134
- package/profile/diagnostic-text.js +0 -49
- package/profile/http-read-diagnostics.js +0 -17
package/auth/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface UserAccessTokenIdentity {
|
|
2
|
+
readonly userId: string
|
|
3
|
+
readonly tenantId: string
|
|
4
|
+
readonly serverOrigin: 'https://codem.feishu.cn' | 'https://codem.feishu-boe.cn'
|
|
5
|
+
readonly revision: string
|
|
6
|
+
}
|
|
7
|
+
export interface UserAccessTokenProvider {
|
|
8
|
+
getValidUserAccessToken(): Promise<{ readonly userAccessToken: string; readonly expiresAt: string }>
|
|
9
|
+
dispose(): void
|
|
10
|
+
}
|
|
11
|
+
export class CodeMUserAccessTokenError extends Error {
|
|
12
|
+
readonly code: string
|
|
13
|
+
}
|
|
14
|
+
export function createUserAccessTokenProvider(options: {
|
|
15
|
+
readonly home: string
|
|
16
|
+
readonly identity: UserAccessTokenIdentity
|
|
17
|
+
readonly ttEnv: string | null
|
|
18
|
+
readonly fetchImpl?: typeof fetch
|
|
19
|
+
}): UserAccessTokenProvider
|