@x-otto/provider 0.1.0-alpha.0 → 0.1.0-alpha.1

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
@@ -1,26 +1,26 @@
1
- # @otto/provider
1
+ # @x-otto/provider
2
2
 
3
3
  > Provider-neutral protocol types, chat-completions protocol base, OAuth templates, stream error classification, and stream recording/replay — the LLM provider insertion point package.
4
4
 
5
- `@otto/provider` is the public interface package for LLM provider implementations. It provides the `ProviderStream`/`ProviderFactory`/`StreamContext` contract types, the chat-completions protocol base (shared by OpenAI-compatible and custom providers), OAuth login/refresh templates (PKCE, device-flow), stream error classification, stream recording/replay for diagnostics, and request header assembly.
5
+ `@x-otto/provider` is the public interface package for LLM provider implementations. It provides the `ProviderStream`/`ProviderFactory`/`StreamContext` contract types, the chat-completions protocol base (shared by OpenAI-compatible and custom providers), OAuth login/refresh templates (PKCE, device-flow), stream error classification, stream recording/replay for diagnostics, and request header assembly.
6
6
 
7
7
  **Zero vendor implementations**: all concrete provider implementations live in extensions/plugins (see `extensions/plugin-otto-wire-protocols` for standard wire protocols, `extensions/plugin-github-copilot` for the Copilot custom provider). This package provides only the insertion point contracts and shared tooling.
8
8
 
9
9
  ## Installation
10
10
 
11
11
  ```bash
12
- pnpm add @otto/provider
12
+ pnpm add @x-otto/provider
13
13
  ```
14
14
 
15
15
  ## Usage
16
16
 
17
17
  ```ts
18
- import { streamChatCompletions } from '@otto/provider'
19
- import { buildChatCompletionsBody } from '@otto/provider'
20
- import { sanitizeToolRoundtrips } from '@otto/provider'
21
- import { classifyStreamError, isAuthError } from '@otto/provider'
22
- import { buildRequestHeaders } from '@otto/provider'
23
- import { recordStream, replayStream } from '@otto/provider'
18
+ import { streamChatCompletions } from '@x-otto/provider'
19
+ import { buildChatCompletionsBody } from '@x-otto/provider'
20
+ import { sanitizeToolRoundtrips } from '@x-otto/provider'
21
+ import { classifyStreamError, isAuthError } from '@x-otto/provider'
22
+ import { buildRequestHeaders } from '@x-otto/provider'
23
+ import { recordStream, replayStream } from '@x-otto/provider'
24
24
 
25
25
  // Streaming chat completions
26
26
  const events = streamChatCompletions({
@@ -95,8 +95,8 @@ const replay = replayStream(loadRecording('path/to/recording.json'))
95
95
 
96
96
  ## Dependencies
97
97
 
98
- - Internal: `@otto/interchange` (protocol types), `@otto/shared` (logger, error types, header utils)
99
- - External: none (only Node.js builtins + `@otto/*` internal packages)
98
+ - Internal: `@x-otto/interchange` (protocol types), `@x-otto/shared` (logger, error types, header utils)
99
+ - External: none (only Node.js builtins + `@x-otto/*` internal packages)
100
100
 
101
101
  ## Related
102
102