Skip to content

Commit 9ad7fe3

Browse files
committed
update dist and add test
1 parent 23ce203 commit 9ad7fe3

File tree

10 files changed

+131
-110
lines changed

10 files changed

+131
-110
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ jobs:
1515
run: bun run typecheck
1616
- name: Tests
1717
run: bun test
18+
- name: Check dist is up-to-date
19+
run: |
20+
bun run build
21+
if ! git diff --quiet dist/; then
22+
echo "::error::dist/ is out of date. Run 'npm run build' and commit the result."
23+
git diff dist/
24+
exit 1
25+
fi

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the plugin to your `opencode.json`:
2222
```json
2323
{
2424
"$schema": "https://opencode.ai/config.json",
25-
"plugin": ["opencode-warp"]
25+
"plugin": ["@warp-dot-dev/opencode-warp"]
2626
}
2727
```
2828

@@ -80,7 +80,7 @@ bun run build
8080

8181
## Uninstall
8282

83-
Remove `"opencode-warp"` from the `plugin` array in your `opencode.json`.
83+
Remove `"@warp-dot-dev/opencode-warp"` from the `plugin` array in your `opencode.json`.
8484

8585
## Contributing
8686

dist/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
import type { Plugin } from "@opencode-ai/plugin";
2+
import type { Part } from "@opencode-ai/sdk";
3+
export declare function truncate(str: string, maxLen: number): string;
4+
export declare function extractTextFromParts(parts: Part[]): string;
25
export declare const WarpPlugin: Plugin;
36
//# sourceMappingURL=index.d.ts.map

dist/index.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 109 additions & 101 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)