@iinm/plain-agent 1.11.3 → 1.11.4

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
@@ -3,7 +3,7 @@
3
3
  [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/iinm/plain-agent)
4
4
  [![npm version](https://img.shields.io/npm/v/@iinm/plain-agent)](https://www.npmjs.com/package/@iinm/plain-agent)
5
5
  [![install size](https://packagephobia.com/badge?p=@iinm/plain-agent)](https://packagephobia.com/result?p=@iinm/plain-agent)
6
- [![Socket Badge](https://badge.socket.dev/npm/package/@iinm/plain-agent/1.11.3)](https://socket.dev/npm/package/@iinm/plain-agent)
6
+ [![Socket Badge](https://badge.socket.dev/npm/package/@iinm/plain-agent/1.11.4)](https://socket.dev/npm/package/@iinm/plain-agent)
7
7
  [![CodeQL](https://github.com/iinm/plain-agent/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/iinm/plain-agent/actions/workflows/github-code-scanning/codeql)
8
8
 
9
9
  A lightweight terminal-based coding agent focused on safety and low token cost
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iinm/plain-agent",
3
- "version": "1.11.3",
3
+ "version": "1.11.4",
4
4
  "description": "A lightweight terminal-based coding agent focused on safety and low token cost",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -138,10 +138,11 @@ export function createCommandHandler({
138
138
  return "prompt";
139
139
  }
140
140
 
141
- // /compact
142
- if (inputTrimmed.toLowerCase() === "/compact") {
141
+ // /compact [reason]
142
+ if (/^\/compact( |$)/i.test(inputTrimmed)) {
143
+ const invocation = inputTrimmed;
143
144
  const message = [
144
- 'System: This prompt was invoked as "/compact".',
145
+ `System: This prompt was invoked as "${invocation}".`,
145
146
  "",
146
147
  "Compact the conversation context:",
147
148
  "1. Update the memory file for the current task so it fully captures the task overview, progress, decisions, and next steps in a self-contained way.",