@cline/core 0.0.53 → 0.0.54-nightly.1782876001
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 +11 -0
- package/dist/extensions/context/basic-compaction.d.ts +1 -1
- package/dist/extensions/context/compaction-shared.d.ts +3 -2
- package/dist/hub/daemon/entry.js +142 -141
- package/dist/hub/index.js +142 -141
- package/dist/index.d.ts +1 -1
- package/dist/index.js +138 -137
- package/dist/types/config.d.ts +1 -0
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClineAccountBalance, ClineAccountOrganization, ClineAccountOrganizationBalance, ClineAccountOrganizationUsageTransaction, ClineAccountPaymentTransaction, ClineAccountUsageTransaction, ClineAccountUser, ClineOrganization, ClineSubscriptionPlan, FeaturebaseTokenResponse, UserRemoteConfigResponse } from "./types";
|
|
1
|
+
import type { ClineAccountBalance, ClineAccountOrganization, ClineAccountOrganizationBalance, ClineAccountOrganizationUsageTransaction, ClineAccountPaymentTransaction, ClineAccountUsageTransaction, ClineAccountUser, ClineOrganization, ClineSubscriptionPlan, FeaturebaseTokenResponse, UserCurrentPlan, UserRemoteConfigResponse } from "./types";
|
|
2
2
|
export interface ClineAccountServiceOptions {
|
|
3
3
|
apiBaseUrl: string;
|
|
4
4
|
getAuthToken: () => Promise<string | undefined | null>;
|
|
@@ -27,6 +27,7 @@ export declare class ClineAccountService {
|
|
|
27
27
|
fetchAvailableSubscriptionPlans(input?: {
|
|
28
28
|
type?: "individual" | "teams";
|
|
29
29
|
}): Promise<ClineSubscriptionPlan[]>;
|
|
30
|
+
fetchCurrentUserPlan(): Promise<UserCurrentPlan | undefined>;
|
|
30
31
|
fetchOrganization(organizationId: string): Promise<ClineOrganization>;
|
|
31
32
|
fetchOrganizationBalance(organizationId: string): Promise<ClineAccountOrganizationBalance>;
|
|
32
33
|
fetchOrganizationUsageTransactions(input: {
|
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, executeClineAccountAction, isClineAccountActionRequest, type ProviderActionExecutor, RpcClineAccountService, } from "./rpc";
|
|
3
|
-
export type { ClineAccountBalance, ClineAccountOrganization, ClineAccountOrganizationBalance, ClineAccountOrganizationUsageTransaction, ClineAccountPaymentTransaction, ClineAccountUsageTransaction, ClineAccountUser, ClineOrganization, ClineSubscriptionPlan, FeaturebaseTokenResponse, UserRemoteConfigOrganization, UserRemoteConfigResponse, } from "./types";
|
|
3
|
+
export type { ClineAccountBalance, ClineAccountOrganization, ClineAccountOrganizationBalance, ClineAccountOrganizationUsageTransaction, ClineAccountPaymentTransaction, ClineAccountUsageTransaction, ClineAccountUser, ClineOrganization, ClineSubscriptionPlan, FeaturebaseTokenResponse, UserCurrentPlan, UserRemoteConfigOrganization, UserRemoteConfigResponse, } from "./types";
|
package/dist/account/types.d.ts
CHANGED
|
@@ -86,6 +86,17 @@ export interface ClineSubscriptionPlan {
|
|
|
86
86
|
type?: string;
|
|
87
87
|
[key: string]: unknown;
|
|
88
88
|
}
|
|
89
|
+
export interface UserCurrentPlan {
|
|
90
|
+
cancelAt?: string;
|
|
91
|
+
canceledAt?: string;
|
|
92
|
+
currentPeriodEnd?: string;
|
|
93
|
+
currentPeriodStart?: string;
|
|
94
|
+
plan?: ClineSubscriptionPlan | null;
|
|
95
|
+
planHistoryId?: string;
|
|
96
|
+
subscriptionId?: string;
|
|
97
|
+
userId?: string;
|
|
98
|
+
[key: string]: unknown;
|
|
99
|
+
}
|
|
89
100
|
export interface ClineAccountOrganizationUsageTransaction {
|
|
90
101
|
aiInferenceProviderName: string;
|
|
91
102
|
aiModelName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type BasicLogger } from "@cline/shared";
|
|
2
2
|
import type { CoreCompactionContext, CoreCompactionResult } from "../../types/config";
|
|
3
3
|
import { type EstimateMessageTokens } from "./compaction-shared";
|
|
4
4
|
export declare function runBasicCompaction(options: {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { ToolResultContent } from "@cline/llms";
|
|
2
|
-
import { estimateTokens, type MessageWithMetadata } from "@cline/shared";
|
|
3
|
-
export { estimateTokens };
|
|
2
|
+
import { CHARS_PER_TOKEN, estimateTokens, type MessageWithMetadata } from "@cline/shared";
|
|
3
|
+
export { CHARS_PER_TOKEN, estimateTokens };
|
|
4
4
|
import type { CoreCompactionContext, CoreCompactionSummarizerConfig } from "../../types/config";
|
|
5
5
|
import type { ProviderConfig } from "../../types/provider-settings";
|
|
6
6
|
export declare const DEFAULT_MAX_INPUT_TOKENS = 200000;
|
|
7
7
|
export declare const DEFAULT_THRESHOLD_RATIO = 0.9;
|
|
8
|
+
export declare const DEFAULT_TARGET_RATIO = 0.7;
|
|
8
9
|
export declare const DEFAULT_RESERVE_TOKENS = 16384;
|
|
9
10
|
export declare const DEFAULT_PRESERVE_RECENT_TOKENS = 20000;
|
|
10
11
|
export declare const DEFAULT_SUMMARY_MAX_OUTPUT_TOKENS = 1024;
|