novelaid 0.0.0-stage → 0.5.0
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 +21 -0
- package/README.md +63 -2
- package/bin/novelaid.js +31 -0
- package/package.json +42 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mizuki Mituha
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,64 @@
|
|
|
1
|
-
#
|
|
1
|
+
# novelaid
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/novelaid)
|
|
4
|
+
[](https://www.npmjs.com/package/novelaid-cli)
|
|
5
|
+
[](https://nodejs.org)
|
|
6
|
+
[](./LICENSE)
|
|
7
|
+
|
|
8
|
+
**novelaid** は、小説執筆補助特化型の対話型AIエージェント [`novelaid-cli`](https://www.npmjs.com/package/novelaid-cli) の公式ラッパーパッケージです。
|
|
9
|
+
|
|
10
|
+
このパッケージをインストールまたは実行することで、コマンド名 `novelaid` としてシームレスに起動できます。
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 🚀 クイックスタート
|
|
15
|
+
|
|
16
|
+
### インストール不要で即時実行(npx)
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npx novelaid
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### グローバルインストール
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# グローバルインストール
|
|
26
|
+
npm install -g novelaid
|
|
27
|
+
|
|
28
|
+
# 起動(小説フォルダー内で実行)
|
|
29
|
+
novelaid
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 📖 使い方
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# カレントディレクトリを作業対象として起動
|
|
38
|
+
novelaid
|
|
39
|
+
|
|
40
|
+
# プロジェクトフォルダーを指定して起動
|
|
41
|
+
novelaid -p ./my-novel
|
|
42
|
+
novelaid ./my-novel
|
|
43
|
+
|
|
44
|
+
# AIモデル接続テスト(推論テスト)
|
|
45
|
+
novelaid --test
|
|
46
|
+
|
|
47
|
+
# 軽量 readline モードで起動
|
|
48
|
+
novelaid --simple
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 🔗 詳細ドキュメント・リンク
|
|
54
|
+
|
|
55
|
+
詳しい機能説明(Pi SDK 統合、ローカル AI (LM Studio) 連携、現在地管理コマンド `/cd` や Tab 補完など)については、コアパッケージのリポジトリおよびドキュメントをご覧ください。
|
|
56
|
+
|
|
57
|
+
* **GitHub リポジトリ**: [mituha/novelaid-cli](https://github.com/mituha/novelaid-cli)
|
|
58
|
+
* **コアパッケージ (npm)**: [novelaid-cli](https://www.npmjs.com/package/novelaid-cli)
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## 📄 ライセンス
|
|
63
|
+
|
|
64
|
+
[MIT](./LICENSE) © 2026 Mizuki Mituha
|
package/bin/novelaid.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* novelaid
|
|
5
|
+
* Official wrapper package for novelaid-cli
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { createRequire } from "node:module";
|
|
9
|
+
import { pathToFileURL } from "node:url";
|
|
10
|
+
|
|
11
|
+
const require = createRequire(import.meta.url);
|
|
12
|
+
|
|
13
|
+
async function run() {
|
|
14
|
+
try {
|
|
15
|
+
const cliPath = require.resolve("novelaid-cli/bin/novelaid.js");
|
|
16
|
+
await import(pathToFileURL(cliPath).href);
|
|
17
|
+
} catch {
|
|
18
|
+
try {
|
|
19
|
+
await import("novelaid-cli/bin/novelaid.js");
|
|
20
|
+
} catch (err) {
|
|
21
|
+
console.error("\x1b[31m[novelaid] エラー: コアパッケージ 'novelaid-cli' を読み込めませんでした。\x1b[0m");
|
|
22
|
+
console.error("以下のコマンドで再インストールをお試しください:\n");
|
|
23
|
+
console.error(" npm install -g novelaid-cli");
|
|
24
|
+
console.error(" # または");
|
|
25
|
+
console.error(" npm install -g novelaid\n");
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
await run();
|
package/package.json
CHANGED
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "novelaid",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Novel writing assistant powered by Pi Coding Agent SDK (wrapper for novelaid-cli)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"novelaid": "./bin/novelaid.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin",
|
|
11
|
+
"README.md",
|
|
12
|
+
"LICENSE"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=18.0.0"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"start": "node bin/novelaid.js"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"novel",
|
|
22
|
+
"assistant",
|
|
23
|
+
"ai",
|
|
24
|
+
"agent",
|
|
25
|
+
"cli",
|
|
26
|
+
"writing",
|
|
27
|
+
"tui",
|
|
28
|
+
"novelaid",
|
|
29
|
+
"novelaid-cli"
|
|
30
|
+
],
|
|
31
|
+
"author": "Mizuki Mituha",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "https://github.com/mituha/novelaid-cli.git"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/mituha/novelaid-cli#readme",
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/mituha/novelaid-cli/issues"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"novelaid-cli": "^0.5.0"
|
|
43
|
+
}
|
|
44
|
+
}
|