@banaxi/banana-code 1.5.0 → 1.5.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/NOTICE ADDED
@@ -0,0 +1,43 @@
1
+ This project, Banana Code, incorporates code snippets, ideas, and authentication flows derived from the `opencode-openai-codex-auth` npm package.
2
+
3
+ Below is the required license and notice for that work:
4
+
5
+ =============================================================================
6
+ MIT License with Usage Disclaimer
7
+
8
+ Copyright (c) 2024-2025 numman-ali
9
+
10
+ USAGE NOTICE AND DISCLAIMER:
11
+ This software is provided for personal development use only. Users must comply
12
+ with OpenAI's Terms of Service (https://openai.com/policies/terms-of-use/) and
13
+ Usage Policies (https://openai.com/policies/usage-policies/) when using this
14
+ software to access OpenAI services.
15
+
16
+ The authors and contributors are not responsible for any violations of
17
+ third-party terms of service. For commercial use or production applications,
18
+ obtain proper API access from OpenAI directly through the OpenAI Platform
19
+ (https://platform.openai.com/).
20
+
21
+ This software uses OpenAI's official OAuth authentication system and is not
22
+ affiliated with, endorsed by, or sponsored by OpenAI.
23
+
24
+ ---
25
+
26
+ Permission is hereby granted, free of charge, to any person obtaining a copy
27
+ of this software and associated documentation files (the "Software"), to deal
28
+ in the Software without restriction, including without limitation the rights
29
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
30
+ copies of the Software, and to permit persons to whom the Software is
31
+ furnished to do so, subject to the following conditions:
32
+
33
+ The above copyright notice, usage notice, and this permission notice shall be
34
+ included in all copies or substantial portions of the Software.
35
+
36
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
39
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
42
+ SOFTWARE.
43
+ =============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banaxi/banana-code",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "🍌 BananaCode",
5
5
  "keywords": [
6
6
  "banana",
@@ -8,6 +8,11 @@ import fsSync from 'fs';
8
8
  import { getSystemPrompt } from '../prompt.js';
9
9
  import { printMarkdown } from '../utils/markdown.js';
10
10
 
11
+ /**
12
+ * Notice: Parts of the OAuth authentication flow and SSE streaming logic in this file
13
+ * are derived from or inspired by the 'opencode-openai-codex-auth' package
14
+ * (Copyright (c) 2024-2025 numman-ali). See NOTICE file for full license details.
15
+ */
11
16
  export class OpenAIProvider {
12
17
  constructor(config) {
13
18
  this.config = config;