opencode-fastedit 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/index.ts +7 -0
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -93,6 +93,13 @@ RETURN VALUE:
93
93
 
94
94
  fs.writeFileSync(resolvedPath, contentNew, "utf-8")
95
95
 
96
+ context.metadata({
97
+ title: path.basename(resolvedPath),
98
+ metadata: {
99
+ diff: diff,
100
+ },
101
+ })
102
+
96
103
  const deletedCount = end_line - start_line + 1
97
104
  const insertedLines = new_code ? new_code.split("\n").length : 0
98
105
  const added = insertedLines
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-fastedit",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "OpenCode plugin for fast line-based editing by line numbers",
5
5
  "type": "module",
6
6
  "main": "index.ts",