@tom2012/cc-web 1.5.80 → 1.5.81
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/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A self-hosted web application (distributed as npm package) that provides a browser-based interface for [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI sessions. Create projects, each with a persistent terminal running Claude Code, and interact with them through a real-time terminal UI.
|
|
4
4
|
|
|
5
|
-
**Current version**: v1.5.
|
|
5
|
+
**Current version**: v1.5.81 | [GitHub](https://github.com/zbc0315/cc-web) | MIT License
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import type { CliToolAdapter, ToolModel, ToolSkillsData, UsageInfo } from './typ
|
|
|
2
2
|
import type { SessionMessage, ChatBlock } from '../session-manager';
|
|
3
3
|
export declare class OpencodeAdapter implements CliToolAdapter {
|
|
4
4
|
readonly tool = "opencode";
|
|
5
|
-
buildCommand(
|
|
5
|
+
buildCommand(_permissionMode: 'limited' | 'unlimited', _continueSession: boolean): string;
|
|
6
6
|
supportsContinue(): boolean;
|
|
7
7
|
getSessionDir(): string | null;
|
|
8
8
|
parseLine(): SessionMessage | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opencode-adapter.d.ts","sourceRoot":"","sources":["../../src/adapters/opencode-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpE,qBAAa,eAAgB,YAAW,cAAc;IACpD,QAAQ,CAAC,IAAI,cAAc;IAE3B,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"opencode-adapter.d.ts","sourceRoot":"","sources":["../../src/adapters/opencode-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpE,qBAAa,eAAgB,YAAW,cAAc;IACpD,QAAQ,CAAC,IAAI,cAAc;IAE3B,YAAY,CAAC,eAAe,EAAE,SAAS,GAAG,WAAW,EAAE,gBAAgB,EAAE,OAAO,GAAG,MAAM;IAMzF,gBAAgB,IAAI,OAAO;IAG3B,aAAa,IAAI,MAAM,GAAG,IAAI;IAC9B,SAAS,IAAI,cAAc,GAAG,IAAI;IAClC,eAAe,IAAI,SAAS,GAAG,IAAI;IAGnC,oBAAoB,IAAI,MAAM,GAAG,IAAI;IACrC,aAAa,IAAI,MAAM,EAAE;IACzB,gBAAgB,IAAI,MAAM,GAAG,IAAI;IAEjC,eAAe,IAAI,MAAM,GAAG,IAAI;IAChC,kBAAkB,IAAI,SAAS,EAAE;IACjC,SAAS,IAAI,cAAc,GAAG,IAAI;IAE5B,UAAU,IAAI,OAAO,CAAC,SAAS,CAAC;IACtC,eAAe,IAAI,IAAI;CACxB"}
|
|
@@ -5,9 +5,10 @@ class OpencodeAdapter {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.tool = 'opencode';
|
|
7
7
|
}
|
|
8
|
-
buildCommand(
|
|
9
|
-
// opencode
|
|
10
|
-
|
|
8
|
+
buildCommand(_permissionMode, _continueSession) {
|
|
9
|
+
// opencode TUI is the default command — no permission flags needed.
|
|
10
|
+
// opencode has no --yolo or equivalent; auto-approve is configured via its own config.
|
|
11
|
+
return 'opencode';
|
|
11
12
|
}
|
|
12
13
|
supportsContinue() { return false; }
|
|
13
14
|
// OpenCode uses SQLite — session reading not yet supported
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opencode-adapter.js","sourceRoot":"","sources":["../../src/adapters/opencode-adapter.ts"],"names":[],"mappings":";;;AAGA,MAAa,eAAe;IAA5B;QACW,SAAI,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"opencode-adapter.js","sourceRoot":"","sources":["../../src/adapters/opencode-adapter.ts"],"names":[],"mappings":";;;AAGA,MAAa,eAAe;IAA5B;QACW,SAAI,GAAG,UAAU,CAAC;IA0B7B,CAAC;IAxBC,YAAY,CAAC,eAAwC,EAAE,gBAAyB;QAC9E,oEAAoE;QACpE,uFAAuF;QACvF,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,gBAAgB,KAAc,OAAO,KAAK,CAAC,CAAC,CAAC;IAE7C,2DAA2D;IAC3D,aAAa,KAAoB,OAAO,IAAI,CAAC,CAAC,CAAC;IAC/C,SAAS,KAA4B,OAAO,IAAI,CAAC,CAAC,CAAC;IACnD,eAAe,KAAuB,OAAO,IAAI,CAAC,CAAC,CAAC;IAEpD,2CAA2C;IAC3C,oBAAoB,KAAoB,OAAO,IAAI,CAAC,CAAC,CAAC;IACtD,aAAa,KAAe,OAAO,EAAE,CAAC,CAAC,CAAC;IACxC,gBAAgB,KAAoB,OAAO,IAAI,CAAC,CAAC,CAAC;IAElD,eAAe,KAAoB,OAAO,IAAI,CAAC,CAAC,CAAC;IACjD,kBAAkB,KAAkB,OAAO,EAAE,CAAC,CAAC,CAAC;IAChD,SAAS,KAA4B,OAAO,IAAI,CAAC,CAAC,CAAC;IAEnD,KAAK,CAAC,UAAU,KAAyB,OAAO,EAAE,CAAC,CAAC,CAAC;IACrD,eAAe,KAAU,CAAC;CAC3B;AA3BD,0CA2BC"}
|