@code-yeongyu/senpi-ai 2026.11.13 → 2026.11.15

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.
@@ -1,2 +1,4 @@
1
1
  export { siwcRecoveryFromDiagnostic } from "./provider-diagnostic-carrier.ts";
2
+ export declare const SIWC_MISSING_RESPONSES_SCOPE_GUIDANCE: string;
3
+ export declare function isSiwcMissingResponsesScope(text: string): boolean;
2
4
  //# sourceMappingURL=siwc-errors.d.ts.map
@@ -1,2 +1,13 @@
1
1
  export { siwcRecoveryFromDiagnostic } from "./provider-diagnostic-carrier.js";
2
+ // Sign in with ChatGPT, observed 401 (senpi#6643): "You have insufficient permissions for this operation.
3
+ // Missing scopes: api.responses.write. Check that you have the correct role in your organization ...".
4
+ // The token is valid; the account behind it is not entitled to the Responses API.
5
+ // Scope names are dotted, so the list runs to the end of the line, not to the first dot (#6653 review L1).
6
+ const MISSING_RESPONSES_SCOPE = /\bMissing scopes?:[^\n]*?\bapi\.responses\.write\b/i;
7
+ export const SIWC_MISSING_RESPONSES_SCOPE_GUIDANCE = "This ChatGPT account or plan does not have access to the Responses API through Sign in with ChatGPT " +
8
+ "(missing scope api.responses.write). Signing in again will not change that: check that plan usage is " +
9
+ "enabled for this account or workspace, or use an OpenAI API key.";
10
+ export function isSiwcMissingResponsesScope(text) {
11
+ return MISSING_RESPONSES_SCOPE.test(text);
12
+ }
2
13
  //# sourceMappingURL=siwc-errors.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-yeongyu/senpi-ai",
3
- "version": "2026.11.13",
3
+ "version": "2026.11.15",
4
4
  "description": "Unified LLM API with automatic model discovery and provider configuration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -88,8 +88,8 @@
88
88
  "dependencies": {
89
89
  "@anthropic-ai/sdk": "0.127.0",
90
90
  "@aws-sdk/client-bedrock-runtime": "3.1136.0",
91
- "@earendil-works/pi-realm-registry": "npm:@code-yeongyu/senpi-realm-registry@2026.11.13",
92
- "@earendil-works/pi-telemetry": "npm:@code-yeongyu/senpi-telemetry@2026.11.13",
91
+ "@earendil-works/pi-realm-registry": "npm:@code-yeongyu/senpi-realm-registry@2026.11.15",
92
+ "@earendil-works/pi-telemetry": "npm:@code-yeongyu/senpi-telemetry@2026.11.15",
93
93
  "@google/genai": "2.23.0",
94
94
  "@smithy/node-http-handler": "4.12.1",
95
95
  "google-auth-library": "10.6.2",