opencode-office 0.1.0
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/LICENSE +21 -0
- package/README.md +72 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +13 -0
- package/dist/version.d.ts +1 -0
- package/package.json +42 -0
- package/src/version.ts +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 zenobi.us
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# opencode-office
|
|
2
|
+
|
|
3
|
+
Microsoft Office Plugin
|
|
4
|
+
|
|
5
|
+
> A Bun module created from the [bun-module](https://github.com/zenobi-us/bun-module) template
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- ๐๏ธ TypeScript-based module architecture
|
|
10
|
+
- ๐ง Mise task runner integration
|
|
11
|
+
- ๐ฆ Bun/npm build tooling
|
|
12
|
+
- โจ ESLint + Prettier formatting
|
|
13
|
+
- ๐งช Vitest testing setup
|
|
14
|
+
- ๐ GitHub Actions CI/CD
|
|
15
|
+
- ๐ Release automation with release-please
|
|
16
|
+
|
|
17
|
+
## Getting Started
|
|
18
|
+
|
|
19
|
+
1. **Clone this template:**
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
cp -r bun-module your-module-name
|
|
23
|
+
cd your-module-name
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
2. **Update package.json:**
|
|
27
|
+
- Change `name` to your module name
|
|
28
|
+
- Update `description`
|
|
29
|
+
- Update `repository.url`
|
|
30
|
+
|
|
31
|
+
3. **Install dependencies:**
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
bun install
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
4. **Implement your module in `src/index.ts`:**
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
export function hello(name: string): string {
|
|
41
|
+
return `Hello, ${name}!`;
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
5. **Test your module:**
|
|
46
|
+
```bash
|
|
47
|
+
mise run test
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Development
|
|
51
|
+
|
|
52
|
+
- `mise run build` - Build the module
|
|
53
|
+
- `mise run test` - Run tests
|
|
54
|
+
- `mise run lint` - Lint code
|
|
55
|
+
- `mise run lint:fix` - Fix linting issues
|
|
56
|
+
- `mise run format` - Format code with Prettier
|
|
57
|
+
|
|
58
|
+
## Author
|
|
59
|
+
|
|
60
|
+
- [al-scion](https://github.com/al-scion)
|
|
61
|
+
|
|
62
|
+
## Repository
|
|
63
|
+
|
|
64
|
+
- [opencode-office](https://github.com/al-scion/opencode-office)
|
|
65
|
+
|
|
66
|
+
## Contributing
|
|
67
|
+
|
|
68
|
+
Contributions are welcome! Please file issues or submit pull requests on the GitHub repository.
|
|
69
|
+
|
|
70
|
+
## License
|
|
71
|
+
|
|
72
|
+
MIT License. See the [LICENSE](LICENSE) file for details.
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/index.ts
|
|
3
|
+
var OfficePlugin = async (ctx) => {
|
|
4
|
+
console.log("Microsoft Office Plugin Loaded Successfully!");
|
|
5
|
+
return {
|
|
6
|
+
"tool.execute.before": async (input, output) => {}
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
var src_default = OfficePlugin;
|
|
10
|
+
export {
|
|
11
|
+
src_default as default,
|
|
12
|
+
OfficePlugin
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VERSION = "0.1.0";
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "opencode-office",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Microsoft Office plugin for OpenCode",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "al-scion",
|
|
7
|
+
"email": "abel@withscion.com"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/al-scion/opencode-office.git"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public",
|
|
22
|
+
"provenance": true
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"src/version.ts"
|
|
27
|
+
],
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@eslint/js": "^9.39.1",
|
|
30
|
+
"@opencode-ai/plugin": "^1.1.16",
|
|
31
|
+
"@types/node": "^20.11.5",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "8.47.0",
|
|
33
|
+
"@typescript-eslint/parser": "8.47.0",
|
|
34
|
+
"bun-types": "latest",
|
|
35
|
+
"eslint": "^9.39.1",
|
|
36
|
+
"eslint-config-prettier": "10.1.8",
|
|
37
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
38
|
+
"prettier": "^3.2.4",
|
|
39
|
+
"typescript-eslint": "^8.47.0",
|
|
40
|
+
"vitest": "^3.2.4"
|
|
41
|
+
}
|
|
42
|
+
}
|
package/src/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = '0.1.0';
|