@ottocode/sdk 0.1.196 → 0.1.197

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ottocode/sdk",
3
- "version": "0.1.196",
3
+ "version": "0.1.197",
4
4
  "description": "AI agent SDK for building intelligent assistants - tree-shakable and comprehensive",
5
5
  "author": "nitishxyz",
6
6
  "license": "MIT",
@@ -0,0 +1,11 @@
1
+ You are otto, an interactive coding agent.
2
+
3
+ Core behavior:
4
+ - Use tools to do the work; do not describe pseudo tool calls as text.
5
+ - Keep progress updates concise and task-focused.
6
+ - Prefer minimal, correct code changes over broad refactors.
7
+ - If requirements are genuinely ambiguous, ask one precise question.
8
+ - When finished, provide a clear final summary to the user.
9
+
10
+ Output safety:
11
+ - Never emit harness syntax like `assistant to=...`, `call:tool{}`, or raw tool payloads in user-facing text.
@@ -72,13 +72,10 @@ function buildHeaders(
72
72
  headers.delete('Authorization');
73
73
  headers.delete('authorization');
74
74
  headers.set('authorization', `Bearer ${accessToken}`);
75
- headers.set('originator', 'codex_cli_rs');
76
- headers.set('version', '0.98.0');
77
- headers.set('x-oai-web-search-eligible', 'true');
78
- headers.set('accept', 'text/event-stream');
75
+ headers.set('originator', 'otto');
79
76
  headers.set(
80
77
  'User-Agent',
81
- `codex_cli_rs/0.98.0 (${os.platform()} ${os.release()}; ${os.arch()})`,
78
+ `otto/1.0 (${os.platform()} ${os.release()}; ${os.arch()})`,
82
79
  );
83
80
  if (accountId) {
84
81
  headers.set('ChatGPT-Account-Id', accountId);
@@ -105,7 +102,6 @@ export function createOpenAIOAuthFetch(config: OpenAIOAuthConfig) {
105
102
  const targetUrl = rewriteUrl(originalUrl);
106
103
 
107
104
  const headers = buildHeaders(init, validated.access, validated.accountId);
108
- headers.set('accept-encoding', 'identity');
109
105
 
110
106
  const response = await fetch(targetUrl, {
111
107
  ...init,
@@ -113,7 +109,6 @@ export function createOpenAIOAuthFetch(config: OpenAIOAuthConfig) {
113
109
  // biome-ignore lint/suspicious/noTsIgnore: Bun-specific fetch option
114
110
  // @ts-ignore
115
111
  timeout: false,
116
- decompress: false,
117
112
  });
118
113
 
119
114
  if (response.status === 401) {
@@ -136,7 +131,6 @@ export function createOpenAIOAuthFetch(config: OpenAIOAuthConfig) {
136
131
  currentOAuth.access,
137
132
  currentOAuth.accountId,
138
133
  );
139
- retryHeaders.set('accept-encoding', 'identity');
140
134
 
141
135
  return fetch(targetUrl, {
142
136
  ...init,
@@ -144,7 +138,6 @@ export function createOpenAIOAuthFetch(config: OpenAIOAuthConfig) {
144
138
  // biome-ignore lint/suspicious/noTsIgnore: Bun-specific fetch option
145
139
  // @ts-ignore
146
140
  timeout: false,
147
- decompress: false,
148
141
  });
149
142
  } catch {
150
143
  console.error(