@clinebot/core 0.0.15 → 0.0.16
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/account/cline-account-service.d.ts +2 -1
- package/dist/account/index.d.ts +1 -1
- package/dist/account/types.d.ts +5 -0
- package/dist/index.node.d.ts +1 -1
- package/dist/index.node.js +178 -178
- package/dist/storage/sqlite-session-store.d.ts +1 -0
- package/package.json +4 -4
- package/src/account/index.ts +1 -0
- package/src/agents/agent-config-loader.test.ts +3 -3
- package/src/agents/hooks-config-loader.test.ts +20 -0
- package/src/agents/hooks-config-loader.ts +1 -0
- package/src/agents/user-instruction-config-loader.test.ts +6 -6
- package/src/index.node.ts +1 -0
- package/src/runtime/hook-file-hooks.test.ts +34 -0
- package/src/runtime/hook-file-hooks.ts +34 -4
- package/src/session/unified-session-persistence-service.test.ts +7 -3
- package/src/storage/sqlite-session-store.ts +5 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClineAccountBalance, ClineAccountOrganization, ClineAccountOrganizationBalance, ClineAccountOrganizationUsageTransaction, ClineAccountPaymentTransaction, ClineAccountUsageTransaction, ClineAccountUser } from "./types";
|
|
1
|
+
import type { ClineAccountBalance, ClineAccountOrganization, ClineAccountOrganizationBalance, ClineAccountOrganizationUsageTransaction, ClineAccountPaymentTransaction, ClineAccountUsageTransaction, ClineAccountUser, UserRemoteConfigResponse } from "./types";
|
|
2
2
|
export interface ClineAccountServiceOptions {
|
|
3
3
|
apiBaseUrl: string;
|
|
4
4
|
getAuthToken: () => Promise<string | undefined | null>;
|
|
@@ -18,6 +18,7 @@ export declare class ClineAccountService {
|
|
|
18
18
|
private readonly fetchImpl;
|
|
19
19
|
constructor(options: ClineAccountServiceOptions);
|
|
20
20
|
fetchMe(): Promise<ClineAccountUser>;
|
|
21
|
+
fetchRemoteConfig(): Promise<UserRemoteConfigResponse>;
|
|
21
22
|
fetchBalance(userId?: string): Promise<ClineAccountBalance>;
|
|
22
23
|
fetchUsageTransactions(userId?: string): Promise<ClineAccountUsageTransaction[]>;
|
|
23
24
|
fetchPaymentTransactions(userId?: string): Promise<ClineAccountPaymentTransaction[]>;
|
package/dist/account/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ClineAccountService, type ClineAccountServiceOptions, } from "./cline-account-service";
|
|
2
2
|
export { type ClineAccountOperations, executeRpcClineAccountAction, isRpcClineAccountActionRequest, RpcClineAccountService, type RpcProviderActionExecutor, } from "./rpc";
|
|
3
|
-
export type { ClineAccountBalance, ClineAccountOrganization, ClineAccountOrganizationBalance, ClineAccountOrganizationUsageTransaction, ClineAccountPaymentTransaction, ClineAccountUsageTransaction, ClineAccountUser, } from "./types";
|
|
3
|
+
export type { ClineAccountBalance, ClineAccountOrganization, ClineAccountOrganizationBalance, ClineAccountOrganizationUsageTransaction, ClineAccountPaymentTransaction, ClineAccountUsageTransaction, ClineAccountUser, UserRemoteConfigResponse, } from "./types";
|
package/dist/account/types.d.ts
CHANGED
|
@@ -14,6 +14,11 @@ export interface ClineAccountUser {
|
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
organizations: ClineAccountOrganization[];
|
|
16
16
|
}
|
|
17
|
+
export interface UserRemoteConfigResponse {
|
|
18
|
+
organizationId: string;
|
|
19
|
+
value: string;
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
}
|
|
17
22
|
export interface ClineAccountBalance {
|
|
18
23
|
balance: number;
|
|
19
24
|
userId: string;
|
package/dist/index.node.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { createClineOAuthProvider, getValidClineCredentials, loginClineOAuth, re
|
|
|
5
5
|
export { getValidOpenAICodexCredentials, isOpenAICodexTokenExpired, loginOpenAICodex, normalizeOpenAICodexCredentials, openaiCodexOAuthProvider, refreshOpenAICodexToken, } from "./auth/codex";
|
|
6
6
|
export { createOcaOAuthProvider, createOcaRequestHeaders, DEFAULT_EXTERNAL_IDCS_CLIENT_ID, DEFAULT_EXTERNAL_IDCS_SCOPES, DEFAULT_EXTERNAL_IDCS_URL, DEFAULT_EXTERNAL_OCA_BASE_URL, DEFAULT_INTERNAL_IDCS_CLIENT_ID, DEFAULT_INTERNAL_IDCS_SCOPES, DEFAULT_INTERNAL_IDCS_URL, DEFAULT_INTERNAL_OCA_BASE_URL, generateOcaOpcRequestId, getValidOcaCredentials, loginOcaOAuth, OCI_HEADER_OPC_REQUEST_ID, refreshOcaToken, } from "./auth/oca";
|
|
7
7
|
export declare function loadOpenTelemetryAdapter(): Promise<typeof import("./telemetry/opentelemetry.js")>;
|
|
8
|
-
export { type ClineAccountBalance, type ClineAccountOperations, type ClineAccountOrganization, type ClineAccountOrganizationBalance, type ClineAccountOrganizationUsageTransaction, type ClineAccountPaymentTransaction, ClineAccountService, type ClineAccountServiceOptions, type ClineAccountUsageTransaction, type ClineAccountUser, executeRpcClineAccountAction, isRpcClineAccountActionRequest, RpcClineAccountService, type RpcProviderActionExecutor, } from "./account";
|
|
8
|
+
export { type ClineAccountBalance, type ClineAccountOperations, type ClineAccountOrganization, type ClineAccountOrganizationBalance, type ClineAccountOrganizationUsageTransaction, type ClineAccountPaymentTransaction, ClineAccountService, type ClineAccountServiceOptions, type ClineAccountUsageTransaction, type ClineAccountUser, executeRpcClineAccountAction, isRpcClineAccountActionRequest, RpcClineAccountService, type RpcProviderActionExecutor, type UserRemoteConfigResponse, } from "./account";
|
|
9
9
|
export { startLocalOAuthServer } from "./auth/server";
|
|
10
10
|
export type { OAuthCredentials, OAuthLoginCallbacks, OAuthPrompt, OAuthProviderInterface, OcaClientMetadata, OcaMode, OcaOAuthConfig, OcaOAuthEnvironmentConfig, OcaOAuthProviderOptions, OcaTokenResolution, } from "./auth/types";
|
|
11
11
|
export * from "./index";
|