@cline/core 0.0.38-nightly.1778210381 → 0.0.39

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
@@ -103,6 +103,6 @@ The package also exports storage and settings helpers such as:
103
103
 
104
104
  ## More Examples
105
105
 
106
- - Repo examples: [apps/examples/cline-sdk](https://github.com/cline/cline/tree/main/apps/examples/cline-sdk)
106
+ - Repo examples: [examples](https://github.com/cline/sdk/tree/main/examples), [apps/examples](https://github.com/cline/sdk/tree/main/apps/examples)
107
107
  - Workspace overview: [README.md](https://github.com/cline/cline/blob/main/README.md)
108
108
  - API and architecture references: [DOC.md](https://github.com/cline/cline/blob/main/DOC.md), [ARCHITECTURE.md](https://github.com/cline/cline/blob/main/ARCHITECTURE.md)
@@ -100,12 +100,13 @@ export declare class ClineCore {
100
100
  * Retrieves accumulated token and cost usage for a session.
101
101
  *
102
102
  * Returns metrics about the session's resource consumption, including tokens used
103
- * across different API providers and associated costs. Useful for monitoring and billing.
103
+ * across different API providers and associated costs. The `usage` field is
104
+ * root/lead-agent usage; `aggregateUsage` includes teammates and subagents.
104
105
  *
105
106
  * @example
106
107
  * ```ts
107
- * const usage = await cline.getAccumulatedUsage(sessionId);
108
- * console.log(`Total cost: $${usage.totalCost}`);
108
+ * const usageSummary = await cline.getAccumulatedUsage(sessionId);
109
+ * console.log(`Total cost: $${usageSummary?.aggregateUsage?.totalCost}`);
109
110
  * ```
110
111
  */
111
112
  getAccumulatedUsage: SessionUsageRuntimeService["getAccumulatedUsage"];
@@ -1,4 +1,4 @@
1
- import type { ITelemetryService } from "@cline/shared";
1
+ import { type ITelemetryService } from "@cline/shared";
2
2
  import type { OAuthCredentials, OAuthLoginCallbacks, OAuthProviderInterface } from "./types";
3
3
  export type ClineTokenResolution = {
4
4
  forceRefresh?: boolean;
@@ -32,6 +32,7 @@ export interface SubAgentEndContext {
32
32
  parentAgentId: string;
33
33
  input: SpawnAgentInput;
34
34
  result?: SpawnAgentOutput;
35
+ agentResult?: AgentResult;
35
36
  error?: Error;
36
37
  }
37
38
  export interface SpawnAgentToolConfig {