opencode-context-dropper-plugin 0.2.0 → 0.2.1
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 +5 -5
- package/dist/index.js +42 -39
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -58,11 +58,11 @@ Once installed, start OpenCode:
|
|
|
58
58
|
opencode
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
You can invoke the context dropper loop inside chat simply by using the
|
|
62
|
-
slash command:
|
|
61
|
+
You can invoke the context dropper loop inside chat simply by using the
|
|
62
|
+
`:context-dropper` slash command:
|
|
63
63
|
|
|
64
64
|
```text
|
|
65
|
-
|
|
65
|
+
:context-dropper <filesetName> <instructions>
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
- `<filesetName>` is the name of a pre-existing fileset in your project.
|
|
@@ -72,7 +72,7 @@ slash command:
|
|
|
72
72
|
**Example:**
|
|
73
73
|
|
|
74
74
|
```text
|
|
75
|
-
|
|
75
|
+
:context-dropper backend-routes Please add try/catch blocks and proper logging to all async functions in this file.
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
### The Automation Loop
|
|
@@ -82,7 +82,7 @@ Once invoked, the plugin completely takes over the context management:
|
|
|
82
82
|
1. It automatically fetches the first file in the fileset and provides it to the
|
|
83
83
|
agent along with your instructions.
|
|
84
84
|
2. The agent performs the instructions and automatically calls the
|
|
85
|
-
`context-
|
|
85
|
+
`context-dropper_next` tool.
|
|
86
86
|
3. **Context Pruning**: When the tool is called, the file is tagged as
|
|
87
87
|
processed. The plugin drops the previous file's context from the chat history
|
|
88
88
|
(saving tokens), and feeds the next file to the agent.
|
package/dist/index.js
CHANGED
|
@@ -12333,45 +12333,6 @@ function tool(input) {
|
|
|
12333
12333
|
return input;
|
|
12334
12334
|
}
|
|
12335
12335
|
tool.schema = exports_external;
|
|
12336
|
-
// ../package.json
|
|
12337
|
-
var package_default = {
|
|
12338
|
-
name: "context-dropper",
|
|
12339
|
-
version: "0.2.0",
|
|
12340
|
-
description: "CLI for iterating through a fixed list of files, tracking position, and tagging progress within an AI agent's session.",
|
|
12341
|
-
author: {
|
|
12342
|
-
name: "Fardjad Davari",
|
|
12343
|
-
email: "public@fardjad.com"
|
|
12344
|
-
},
|
|
12345
|
-
license: "MIT",
|
|
12346
|
-
repository: {
|
|
12347
|
-
type: "git",
|
|
12348
|
-
url: "https://github.com/fardjad/context-dropper"
|
|
12349
|
-
},
|
|
12350
|
-
keywords: ["cli", "context", "llm", "ai", "opencode", "automation"],
|
|
12351
|
-
bin: {
|
|
12352
|
-
"context-dropper": "./dist/index.js"
|
|
12353
|
-
},
|
|
12354
|
-
main: "dist/index.js",
|
|
12355
|
-
module: "dist/index.js",
|
|
12356
|
-
type: "module",
|
|
12357
|
-
files: ["dist/index.js"],
|
|
12358
|
-
scripts: {
|
|
12359
|
-
build: "bun build ./src/index.ts --outdir ./dist --target node",
|
|
12360
|
-
prepack: "npm run build"
|
|
12361
|
-
},
|
|
12362
|
-
devDependencies: {
|
|
12363
|
-
"@types/bun": "latest",
|
|
12364
|
-
typescript: "^5"
|
|
12365
|
-
},
|
|
12366
|
-
dependencies: {
|
|
12367
|
-
"@types/yargs": "^17.0.35",
|
|
12368
|
-
yargs: "^18.0.0"
|
|
12369
|
-
}
|
|
12370
|
-
};
|
|
12371
|
-
|
|
12372
|
-
// ../src/version/version.ts
|
|
12373
|
-
var getPackageVersion = () => package_default.version;
|
|
12374
|
-
|
|
12375
12336
|
// src/logger.ts
|
|
12376
12337
|
var toastVariant = {
|
|
12377
12338
|
debug: "info",
|
|
@@ -13020,6 +12981,48 @@ ${untaggedPaths.join(`
|
|
|
13020
12981
|
return true;
|
|
13021
12982
|
}
|
|
13022
12983
|
}
|
|
12984
|
+
// package.json
|
|
12985
|
+
var package_default = {
|
|
12986
|
+
name: "opencode-context-dropper-plugin",
|
|
12987
|
+
version: "0.2.1",
|
|
12988
|
+
description: "A Context Dropper plugin for OpenCode that automates file iteration context management.",
|
|
12989
|
+
author: {
|
|
12990
|
+
name: "Fardjad Davari",
|
|
12991
|
+
email: "public@fardjad.com"
|
|
12992
|
+
},
|
|
12993
|
+
license: "MIT",
|
|
12994
|
+
repository: {
|
|
12995
|
+
type: "git",
|
|
12996
|
+
url: "https://github.com/fardjad/context-dropper.git",
|
|
12997
|
+
directory: "opencode-plugin"
|
|
12998
|
+
},
|
|
12999
|
+
keywords: ["opencode", "plugin", "context-dropper", "llm", "ai"],
|
|
13000
|
+
main: "dist/index.js",
|
|
13001
|
+
module: "dist/index.js",
|
|
13002
|
+
type: "module",
|
|
13003
|
+
exports: {
|
|
13004
|
+
".": {
|
|
13005
|
+
default: "./dist/index.js"
|
|
13006
|
+
}
|
|
13007
|
+
},
|
|
13008
|
+
files: ["dist/index.js"],
|
|
13009
|
+
scripts: {
|
|
13010
|
+
build: "bun build ./src/index.ts --outdir ./dist --target node",
|
|
13011
|
+
prepack: "npm run build"
|
|
13012
|
+
},
|
|
13013
|
+
devDependencies: {
|
|
13014
|
+
"@types/bun": "^1.3.11",
|
|
13015
|
+
"@types/node": "^25.5.0",
|
|
13016
|
+
typescript: "^6.0.2"
|
|
13017
|
+
},
|
|
13018
|
+
dependencies: {
|
|
13019
|
+
"@opencode-ai/plugin": "^1.3.13",
|
|
13020
|
+
zod: "^4.3.6"
|
|
13021
|
+
}
|
|
13022
|
+
};
|
|
13023
|
+
|
|
13024
|
+
// src/version.ts
|
|
13025
|
+
var getPackageVersion = () => package_default.version;
|
|
13023
13026
|
|
|
13024
13027
|
// src/index.ts
|
|
13025
13028
|
class Program {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-context-dropper-plugin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "A Context Dropper plugin for OpenCode that automates file iteration context management.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Fardjad Davari",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"prepack": "npm run build"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@types/bun": "
|
|
31
|
-
"@types/node": "^25.
|
|
32
|
-
"typescript": "^
|
|
30
|
+
"@types/bun": "^1.3.11",
|
|
31
|
+
"@types/node": "^25.5.0",
|
|
32
|
+
"typescript": "^6.0.2"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@opencode-ai/plugin": "^1.
|
|
35
|
+
"@opencode-ai/plugin": "^1.3.13",
|
|
36
36
|
"zod": "^4.3.6"
|
|
37
37
|
}
|
|
38
38
|
}
|