@iinm/plain-agent 1.0.3 → 1.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iinm/plain-agent",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "A lightweight CLI-based coding agent",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -77,40 +77,6 @@ Examples:
77
77
  Check preset configuration:
78
78
  $SCRIPT_NAME --tty --verbose --dry-run zsh
79
79
 
80
- Start Claude Code:
81
- $SCRIPT_NAME --allow-write \\
82
- --allow-net api.anthropic.com,sentry.io,statsig.anthropic.com,statsig.com \\
83
- --mount-writable ~/.claude:/home/sandbox/.claude,~/.claude.json:/home/sandbox/.claude.json \\
84
- --mount-readonly ~/.gitconfig:/home/sandbox/.gitconfig \\
85
- --tty --verbose claude
86
-
87
- Start Claude Code using Amazon Bedrock:
88
- Configure environment variables as described at: https://code.claude.com/docs/en/amazon-bedrock
89
-
90
- $SCRIPT_NAME --env-file .env.sandbox --allow-write --allow-net \\
91
- --mount-writable ~/.claude:/home/sandbox/.claude,~/.claude.json:/home/sandbox/.claude.json \\
92
- --mount-readonly ~/.gitconfig:/home/sandbox/.gitconfig \\
93
- --mount-readonly ~/.aws:/home/sandbox/.aws \\
94
- --allow-net bedrock-runtime.ap-northeast-1.amazonaws.com \\
95
- --allow-net bedrock.ap-northeast-1.amazonaws.com \\
96
- --allow-net oidc.ap-northeast-1.amazonaws.com \\
97
- --allow-net portal.sso.ap-northeast-1.amazonaws.com \\
98
- --tty --verbose claude
99
-
100
- Start Codex CLI:
101
- $SCRIPT_NAME --allow-write \\
102
- --allow-net api.openai.com \\
103
- --mount-writable ~/.codex:/home/sandbox/.codex \\
104
- --mount-readonly ~/.gitconfig:/home/sandbox/.gitconfig \\
105
- --tty --verbose codex
106
-
107
- Start Gemini CLI:
108
- $SCRIPT_NAME --allow-write \\
109
- --allow-net generativelanguage.googleapis.com,oauth2.googleapis.com,cloudcode-pa.googleapis.com,play.googleapis.com,registry.npmjs.org,github.com,release-assets.githubusercontent.com \\
110
- --mount-writable ~/.gemini:/home/sandbox/.gemini \\
111
- --mount-readonly ~/.gitconfig:/home/sandbox/.gitconfig \\
112
- --tty --verbose gemini
113
-
114
80
  Install tools with mise:
115
81
  $SCRIPT_NAME --allow-net mise-versions.jdx.dev,nodejs.org --verbose mise install node
116
82
  $SCRIPT_NAME --allow-net mise-versions.jdx.dev,github.com,dl.google.com mise install go
@@ -133,8 +99,7 @@ Preset Configuration:
133
99
  When --dockerfile is not specified, a preset Node.js LTS image is used with:
134
100
  - System packages: busybox, bash, zsh (with grml config), ripgrep, fd, dig, curl, git
135
101
  - mise package manager for additional runtime installations
136
- - AI coding assistants: Claude Code, Gemini CLI, Codex CLI
137
- - Persistent storage for shell history, git config, and AI tool configurations
102
+ - Persistent storage for shell history, git config
138
103
  - Default editor: busybox vi
139
104
 
140
105
 
@@ -913,8 +878,6 @@ test -L ~/.zsh_history || (touch /persistent/home/.zsh_history; ln -s /persisten
913
878
  test -L ~/.config || (mkdir -p /persistent/home/.config; ln -s /persistent/home/.config ~/ 2> /dev/null)
914
879
  test -L ~/.gitconfig || (touch /persistent/home/.gitconfig; ln -s /persistent/home/.gitconfig ~/ 2> /dev/null)
915
880
  test -L ~/.local || (mkdir -p /persistent/home/.local/share; ln -s /persistent/home/.local ~/ 2> /dev/null)
916
- test -L ~/.claude || (mkdir -p /persistent/home/.claude; ln -s /persistent/home/.claude ~/ 2> /dev/null)
917
- test -L ~/.claude.json || (touch /persistent/home/.claude.json; ln -s /persistent/home/.claude.json ~/ 2> /dev/null)
918
881
  test -L ~/.gemini || (mkdir -p /persistent/home/.gemini; ln -s /persistent/home/.gemini ~/ 2> /dev/null)
919
882
  test -L ~/.codex || (mkdir -p /persistent/home/.codex; ln -s /persistent/home/.codex ~/ 2> /dev/null)
920
883
 
@@ -927,13 +890,6 @@ USER sandbox
927
890
  ENV NPM_CONFIG_PREFIX=/sandbox/npm-global
928
891
  ENV PATH=/home/sandbox/.local/bin:/sandbox/npm-global/bin:$PATH
929
892
 
930
- # Install coding agents
931
- RUN umask 000 \
932
- && curl -fsSL https://claude.ai/install.sh | bash \
933
- && npm install -g @openai/codex \
934
- && npm install -g @google/gemini-cli \
935
- && rm -rf /home/sandbox/.npm
936
-
937
893
  # Configure shell
938
894
  # - grml zsh config: https://grml.org/zsh/
939
895
  # - zsh-autosuggestions: https://github.com/zsh-users/zsh-autosuggestions
@@ -419,14 +419,6 @@ function convertOpenAIStreamDataToAgentPartialContent(streamEvent) {
419
419
  };
420
420
  }
421
421
 
422
- if (streamEvent.type === "response.reasoning_summary_text.done") {
423
- return {
424
- type: "thinking",
425
- position: "delta",
426
- content: streamEvent.text,
427
- };
428
- }
429
-
430
422
  if (streamEvent.type === "response.output_item.done") {
431
423
  if (streamEvent.item.type === "reasoning") {
432
424
  return {