@bash0816/copilot-termux 1.0.63
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/LICENSE +683 -0
- package/README.md +76 -0
- package/THIRD-PARTY-LICENSES/COPILOT-LICENSE.md +35 -0
- package/THIRD-PARTY-LICENSES/GCC-RUNTIME-EXCEPTION.txt +73 -0
- package/THIRD-PARTY-LICENSES/GPL-3.0.txt +674 -0
- package/THIRD-PARTY-LICENSES/LGPL-2.1.txt +501 -0
- package/THIRD-PARTY-LICENSES/NODE-LICENSE.txt +2946 -0
- package/THIRD-PARTY-LICENSES/NODE-PTY-LICENSE.txt +69 -0
- package/THIRD-PARTY-NOTICES.md +66 -0
- package/bin/copilot +70 -0
- package/bin/copilot-termux +9 -0
- package/config/manifest.json +7 -0
- package/lib/bionic-compat.so +0 -0
- package/lib/native/pty.node +0 -0
- package/lib/platform-patch.js +451 -0
- package/lib/setup.js +143 -0
- package/package.json +24 -0
- package/scripts/bionic-compat.c +82 -0
package/README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# @bash0816/copilot-termux
|
|
2
|
+
|
|
3
|
+
GitHub Copilot CLI for Termux (Android aarch64).
|
|
4
|
+
|
|
5
|
+
Termux (Android aarch64) 向け GitHub Copilot CLI パッケージです。
|
|
6
|
+
|
|
7
|
+
## Status / 状態
|
|
8
|
+
|
|
9
|
+
- version: `1.0.63`
|
|
10
|
+
- `copilot -p`: **available** ✅
|
|
11
|
+
- TUI (`copilot`): **available** ✅
|
|
12
|
+
- MCP: **available** ✅
|
|
13
|
+
|
|
14
|
+
## Install / インストール
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npm install -g @bash0816/copilot-termux
|
|
18
|
+
copilot-termux setup
|
|
19
|
+
copilot --version
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## First-time Setup / 初回セットアップ
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
# 1. Install
|
|
26
|
+
npm install -g @bash0816/copilot-termux
|
|
27
|
+
|
|
28
|
+
# 2. Download @github/copilot CLI
|
|
29
|
+
copilot-termux setup
|
|
30
|
+
|
|
31
|
+
# 3. Authenticate
|
|
32
|
+
copilot auth login
|
|
33
|
+
|
|
34
|
+
# 4. Verify
|
|
35
|
+
copilot --version
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Usage / 使い方
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
# Non-interactive prompt / 非対話プロンプト
|
|
42
|
+
copilot -p "write a hello world script"
|
|
43
|
+
|
|
44
|
+
# Interactive TUI / 対話型 TUI
|
|
45
|
+
copilot
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Update / 更新
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
npm install -g @bash0816/copilot-termux@latest --force
|
|
52
|
+
copilot-termux setup
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Requirements / 必要環境
|
|
56
|
+
|
|
57
|
+
- Termux (Android aarch64)
|
|
58
|
+
- Node.js 18+(`pkg install nodejs`)
|
|
59
|
+
- glibc(`pkg install glibc-repo && pkg install glibc`)
|
|
60
|
+
|
|
61
|
+
## How It Works / 仕組み
|
|
62
|
+
|
|
63
|
+
`@bash0816/copilot-termux` は `@github/copilot` CLI の Termux 向けラッパーです。
|
|
64
|
+
|
|
65
|
+
- **bionic-compat.so**: Termux bionic 上で動作しない glibc 依存シンボルをスタブ
|
|
66
|
+
- **platform-patch.js**: Rust ネイティブモジュールの Android 非対応 API を Node.js で代替
|
|
67
|
+
- `networkFetch*`: MCP SSE transport 用 HTTP ストリーム実装
|
|
68
|
+
- `responsesStreamDrive`: AI レスポンスストリーム処理
|
|
69
|
+
- `modelHttp*`: AI モデル HTTP 呼び出し
|
|
70
|
+
- **pty.node**: Termux bionic ネイティブビルドの PTY モジュール
|
|
71
|
+
|
|
72
|
+
## License / ライセンス
|
|
73
|
+
|
|
74
|
+
- Wrapper code: GPL-3.0-only
|
|
75
|
+
- `@github/copilot` CLI: [GitHub Copilot CLI License](https://github.com/github/copilot-cli/blob/main/LICENSE.md)
|
|
76
|
+
- PTY module (`pty.node`): MIT
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
GitHub Copilot CLI License
|
|
2
|
+
|
|
3
|
+
1. License Grant
|
|
4
|
+
Subject to the terms of this License, GitHub grants you a non‑exclusive, non‑transferable, royalty‑free license to install and run copies of the GitHub Copilot CLI (the “Software”). Subject to Section 2 below, GitHub also grants you the right to reproduce and redistribute unmodified copies of the Software as part of an application or service.
|
|
5
|
+
|
|
6
|
+
2. Redistribution Rights and Conditions
|
|
7
|
+
You may reproduce and redistribute the Software only in accordance with all of the following conditions:
|
|
8
|
+
The Software is distributed only in unmodified form;
|
|
9
|
+
The Software is redistributed solely as part of an application or service that provides material functionality beyond the Software itself;
|
|
10
|
+
The Software is not distributed on a standalone basis or as a primary product;
|
|
11
|
+
You include a copy of this License and retain all applicable copyright, trademark, and attribution notices; and
|
|
12
|
+
Your application or service is licensed independently of the Software.
|
|
13
|
+
Nothing in this License restricts your choice of license for your application or service, including distribution under an open source license. This License applies solely to the Software and does not modify or supersede the license terms governing your application or its source code.
|
|
14
|
+
|
|
15
|
+
3. Scope Limitations
|
|
16
|
+
This License does not grant you the right to:
|
|
17
|
+
Modify, adapt, translate, or create derivative works of the Software;
|
|
18
|
+
Redistribute the Software except as expressly permitted in Section 2;
|
|
19
|
+
Remove, alter, or obscure any proprietary notices included in the Software; or
|
|
20
|
+
Use GitHub trademarks, logos, or branding except as necessary to identify the Software.
|
|
21
|
+
|
|
22
|
+
4. Reservation of Rights
|
|
23
|
+
GitHub and its licensors retain all right, title, and interest in and to the Software. All rights not expressly granted by this License are reserved.
|
|
24
|
+
|
|
25
|
+
5. Disclaimer of Warranty
|
|
26
|
+
THE SOFTWARE IS PROVIDED “AS IS,” WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON‑INFRINGEMENT. THE ENTIRE RISK ARISING OUT OF USE OF THE SOFTWARE REMAINS WITH YOU.
|
|
27
|
+
|
|
28
|
+
6. Limitation of Liability
|
|
29
|
+
TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL GITHUB OR ITS LICENSORS BE LIABLE FOR ANY DAMAGES ARISING OUT OF OR RELATING TO THIS LICENSE OR THE USE OR DISTRIBUTION OF THE SOFTWARE, WHETHER IN CONTRACT, TORT, OR OTHERWISE.
|
|
30
|
+
|
|
31
|
+
7. Termination
|
|
32
|
+
This License terminates automatically if you fail to comply with its terms. Upon termination, you must cease all use and distribution of the Software.
|
|
33
|
+
|
|
34
|
+
8. Notice Regarding GitHub Services (Informational Only)
|
|
35
|
+
Use of the Software may require access to GitHub services and is subject to the applicable GitHub Terms of Service and GitHub Copilot terms. This License governs only rights related to the Software and does not grant any rights to access or use GitHub services.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
GCC RUNTIME LIBRARY EXCEPTION
|
|
2
|
+
|
|
3
|
+
Version 3.1, 31 March 2009
|
|
4
|
+
|
|
5
|
+
Copyright (C) 2009 Free Software Foundation, Inc. <http://fsf.org/>
|
|
6
|
+
|
|
7
|
+
Everyone is permitted to copy and distribute verbatim copies of this
|
|
8
|
+
license document, but changing it is not allowed.
|
|
9
|
+
|
|
10
|
+
This GCC Runtime Library Exception ("Exception") is an additional
|
|
11
|
+
permission under section 7 of the GNU General Public License, version
|
|
12
|
+
3 ("GPLv3"). It applies to a given file (the "Runtime Library") that
|
|
13
|
+
bears a notice placed by the copyright holder of the file stating that
|
|
14
|
+
the file is governed by GPLv3 along with this Exception.
|
|
15
|
+
|
|
16
|
+
When you use GCC to compile a program, GCC may combine portions of
|
|
17
|
+
certain GCC header files and runtime libraries with the compiled
|
|
18
|
+
program. The purpose of this Exception is to allow compilation of
|
|
19
|
+
non-GPL (including proprietary) programs to use, in this way, the
|
|
20
|
+
header files and runtime libraries covered by this Exception.
|
|
21
|
+
|
|
22
|
+
0. Definitions.
|
|
23
|
+
|
|
24
|
+
A file is an "Independent Module" if it either requires the Runtime
|
|
25
|
+
Library for execution after a Compilation Process, or makes use of an
|
|
26
|
+
interface provided by the Runtime Library, but is not otherwise based
|
|
27
|
+
on the Runtime Library.
|
|
28
|
+
|
|
29
|
+
"GCC" means a version of the GNU Compiler Collection, with or without
|
|
30
|
+
modifications, governed by version 3 (or a specified later version) of
|
|
31
|
+
the GNU General Public License (GPL) with the option of using any
|
|
32
|
+
subsequent versions published by the FSF.
|
|
33
|
+
|
|
34
|
+
"GPL-compatible Software" is software whose conditions of propagation,
|
|
35
|
+
modification and use would permit combination with GCC in accord with
|
|
36
|
+
the license of GCC.
|
|
37
|
+
|
|
38
|
+
"Target Code" refers to output from any compiler for a real or virtual
|
|
39
|
+
target processor architecture, in executable form or suitable for
|
|
40
|
+
input to an assembler, loader, linker and/or execution
|
|
41
|
+
phase. Notwithstanding that, Target Code does not include data in any
|
|
42
|
+
format that is used as a compiler intermediate representation, or used
|
|
43
|
+
for producing a compiler intermediate representation.
|
|
44
|
+
|
|
45
|
+
The "Compilation Process" transforms code entirely represented in
|
|
46
|
+
non-intermediate languages designed for human-written code, and/or in
|
|
47
|
+
Java Virtual Machine byte code, into Target Code. Thus, for example,
|
|
48
|
+
use of source code generators and preprocessors need not be considered
|
|
49
|
+
part of the Compilation Process, since the Compilation Process can be
|
|
50
|
+
understood as starting with the output of the generators or
|
|
51
|
+
preprocessors.
|
|
52
|
+
|
|
53
|
+
A Compilation Process is "Eligible" if it is done using GCC, alone or
|
|
54
|
+
with other GPL-compatible software, or if it is done without using any
|
|
55
|
+
work based on GCC. For example, using non-GPL-compatible Software to
|
|
56
|
+
optimize any GCC intermediate representations would not qualify as an
|
|
57
|
+
Eligible Compilation Process.
|
|
58
|
+
|
|
59
|
+
1. Grant of Additional Permission.
|
|
60
|
+
|
|
61
|
+
You have permission to propagate a work of Target Code formed by
|
|
62
|
+
combining the Runtime Library with Independent Modules, even if such
|
|
63
|
+
propagation would otherwise violate the terms of GPLv3, provided that
|
|
64
|
+
all Target Code was generated by Eligible Compilation Processes. You
|
|
65
|
+
may then convey such a combination under terms of your choice,
|
|
66
|
+
consistent with the licensing of the Independent Modules.
|
|
67
|
+
|
|
68
|
+
2. No Weakening of GCC Copyleft.
|
|
69
|
+
|
|
70
|
+
The availability of this Exception does not imply any general
|
|
71
|
+
presumption that third-party software is unaffected by the copyleft
|
|
72
|
+
requirements of the license of GCC.
|
|
73
|
+
|