pi-sap-aicore 0.2.1 → 0.2.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/index.ts +7 -6
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.2] - 2026-06-16
11
+
12
+ ### Fixed
13
+
14
+ - `/login → Use a subscription` no longer shows a duplicate `SAP AI Core`
15
+ entry. The foundation provider now shares the orchestration provider's stored
16
+ service key through the existing auth-store fallback instead of registering a
17
+ second OAuth provider.
18
+
10
19
  ## [0.2.1] - 2026-06-10
11
20
 
12
21
  ### Fixed
@@ -87,7 +96,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
87
96
  `reasoning_effort` for OpenAI).
88
97
  - MIT license and npm packaging.
89
98
 
90
- [Unreleased]: https://github.com/ttiimmaahh/pi-sap-aicore/compare/v0.2.1...HEAD
99
+ [Unreleased]: https://github.com/ttiimmaahh/pi-sap-aicore/compare/v0.2.2...HEAD
100
+ [0.2.2]: https://github.com/ttiimmaahh/pi-sap-aicore/compare/v0.2.1...v0.2.2
91
101
  [0.2.1]: https://github.com/ttiimmaahh/pi-sap-aicore/compare/v0.2.0...v0.2.1
92
102
  [0.2.0]: https://github.com/ttiimmaahh/pi-sap-aicore/compare/v0.1.2...v0.2.0
93
103
  [0.1.2]: https://github.com/ttiimmaahh/pi-sap-aicore/compare/v0.1.1...v0.1.2
package/index.ts CHANGED
@@ -58,18 +58,19 @@ export default function (pi: ExtensionAPI) {
58
58
  streamSimple: streamSapAiCore,
59
59
  });
60
60
 
61
- // Foundation provider — shares the exact same credential. Both providers
62
- // reference the same `sapAiCoreOAuth` (oauth name "SAP AI Core"), so a single
63
- // `/login` serves both and the service key is never entered twice. Models
64
- // appear under `sap-aicore-foundation/…`; streaming runs natively here (no
65
- // orchestration streaming-unsupported fallback). The foundation SDK is
61
+ // Foundation provider — shares the exact same credential via
62
+ // `ensureServiceKey`'s auth-store fallback instead of registering its own
63
+ // OAuth provider. Registering `oauth: sapAiCoreOAuth` here would make `/login`
64
+ // show a second, confusing "SAP AI Core" subscription entry because pi keys
65
+ // OAuth providers by provider id (`sap-aicore-foundation`), not by OAuth name.
66
+ // Models appear under `sap-aicore-foundation/…`; streaming runs natively here
67
+ // (no orchestration streaming-unsupported fallback). The foundation SDK is
66
68
  // dynamically imported inside `streamSapFoundation`, same deferral as above.
67
69
  pi.registerProvider(FOUNDATION_PROVIDER_NAME, {
68
70
  name: "SAP AI Core (Foundation)",
69
71
  baseUrl: "https://sap-aicore-handled-by-sdk.invalid",
70
72
  apiKey: PLACEHOLDER_API_KEY,
71
73
  api: FOUNDATION_PROVIDER_API,
72
- oauth: sapAiCoreOAuth,
73
74
  models: foundationModels.map((m) =>
74
75
  toPiModel(m, FOUNDATION_PROVIDER_API),
75
76
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-sap-aicore",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "SAP AI Core (orchestration + foundation) provider for the pi coding agent",
5
5
  "license": "MIT",
6
6
  "author": "Tim Pearson (https://github.com/ttiimmaahh)",
@@ -43,8 +43,8 @@
43
43
  "@earendil-works/pi-coding-agent": "*"
44
44
  },
45
45
  "devDependencies": {
46
- "@earendil-works/pi-ai": "^0.78.0",
47
- "@earendil-works/pi-coding-agent": "^0.78.0",
46
+ "@earendil-works/pi-ai": "^0.79.2",
47
+ "@earendil-works/pi-coding-agent": "^0.79.2",
48
48
  "typescript": "^6.0.3"
49
49
  },
50
50
  "engines": {