@vincemakes/kiso-provider-anthropic 0.1.28 → 0.1.30

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/index.d.ts CHANGED
@@ -14,13 +14,13 @@
14
14
  */
15
15
  import Anthropic from "@anthropic-ai/sdk";
16
16
  import type { Adapter } from "@vincemakes/kiso-core";
17
- /** Config accepted by the high-level factory (七: the provider owns its SDK). */
17
+ /** Config accepted by the high-level factory (round 7: the provider owns its SDK). */
18
18
  export interface AnthropicProviderConfig {
19
19
  readonly apiKey?: string;
20
20
  readonly baseUrl?: string;
21
21
  }
22
22
  /**
23
- * High-level factory (七): builds the adapter FROM CONFIG, owning the SDK
23
+ * High-level factory (round 7): builds the adapter FROM CONFIG, owning the SDK
24
24
  * inside this package. Consumers (and the runtime's lazy provider path)
25
25
  * import ONLY @vincemakes/kiso-provider-anthropic — the SDK stays a private
26
26
  * dependency of this package, so nested installs resolve it next to here,
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@
15
15
  import Anthropic from "@anthropic-ai/sdk";
16
16
  import { mapApiError } from "@vincemakes/kiso-core";
17
17
  /**
18
- * High-level factory (七): builds the adapter FROM CONFIG, owning the SDK
18
+ * High-level factory (round 7): builds the adapter FROM CONFIG, owning the SDK
19
19
  * inside this package. Consumers (and the runtime's lazy provider path)
20
20
  * import ONLY @vincemakes/kiso-provider-anthropic — the SDK stays a private
21
21
  * dependency of this package, so nested installs resolve it next to here,
@@ -54,7 +54,7 @@ export function createAnthropicAdapter(client) {
54
54
  let outputTokens = null;
55
55
  let cacheRead = null;
56
56
  let cacheWrite = null;
57
- // 九: "usage SEEN" (data arrived) is distinct from "usage YIELDED"
57
+ // round 9: "usage SEEN" (data arrived) is distinct from "usage YIELDED"
58
58
  // (an event left the adapter). message_start may report usage with
59
59
  // no message_delta ever following — the stop must then still be
60
60
  // preceded by an honest usage event built from that data.
@@ -154,7 +154,7 @@ export function createAnthropicAdapter(client) {
154
154
  };
155
155
  break;
156
156
  case "message_stop":
157
- // 六/九: EVERY stop path emits a usage first. If no
157
+ // round 6/round 9: EVERY stop path emits a usage first. If no
158
158
  // message_delta yielded one, but message_start DID
159
159
  // report usage data, an honest KNOWN usage is built
160
160
  // from that data now — only a truly silent provider
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-provider-anthropic",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "description": "kiso Anthropic adapter — official SDK wire events mapped to the kiso event union.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@anthropic-ai/sdk": "^0.115.0",
25
- "@vincemakes/kiso-core": "0.1.28"
25
+ "@vincemakes/kiso-core": "0.1.29"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^26.1.2",