@everydaydevops/opencode-typescript-linting 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.
- package/README.md +10 -2
- package/install.js +36 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -19,14 +19,22 @@ npm install -g opencode-ai
|
|
|
19
19
|
|
|
20
20
|
## Installation
|
|
21
21
|
|
|
22
|
-
Install the agent globally
|
|
22
|
+
Install the agent globally:
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
npm install @everydaydevops/opencode-typescript-linting
|
|
25
|
+
npm install -g @everydaydevops/opencode-typescript-linting
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
The postinstall script will automatically copy the agent configuration to `~/.config/opencode/agent/typescript-linting.md`.
|
|
29
29
|
|
|
30
|
+
Install the agent just in a project:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm install @everydaydevops/opencode-typescript-linting
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The postinstall script will automatically copy the agent configuration to `.opencode/agent/typescript-linting.md`.
|
|
37
|
+
|
|
30
38
|
## Usage
|
|
31
39
|
|
|
32
40
|
Once installed, the `typescript-linting` subagent is available in any OpenCode session.
|
package/install.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const os = require('os');
|
|
6
|
+
|
|
7
|
+
const agentName = 'typescript-linting.md';
|
|
8
|
+
const sourceFile = path.join(__dirname, 'agent', agentName);
|
|
9
|
+
|
|
10
|
+
// Determine the target directory
|
|
11
|
+
const globalConfigDir = path.join(os.homedir(), '.config', 'opencode', 'agent');
|
|
12
|
+
|
|
13
|
+
// Create the directory if it doesn't exist
|
|
14
|
+
if (!fs.existsSync(globalConfigDir)) {
|
|
15
|
+
fs.mkdirSync(globalConfigDir, { recursive: true });
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const targetFile = path.join(globalConfigDir, agentName);
|
|
19
|
+
|
|
20
|
+
// Copy the agent file
|
|
21
|
+
try {
|
|
22
|
+
fs.copyFileSync(sourceFile, targetFile);
|
|
23
|
+
console.log('✓ TypeScript Linting agent installed successfully!');
|
|
24
|
+
console.log(` Installed to: ${targetFile}`);
|
|
25
|
+
console.log('\nUsage:');
|
|
26
|
+
console.log(' Run "opencode" in any TypeScript project');
|
|
27
|
+
console.log(' The typescript-linting subagent will be available');
|
|
28
|
+
console.log(
|
|
29
|
+
' Primary agents can invoke it automatically for linting setup tasks'
|
|
30
|
+
);
|
|
31
|
+
console.log('\nManual invocation:');
|
|
32
|
+
console.log(' @typescript-linting help me set up linting for this project');
|
|
33
|
+
} catch (error) {
|
|
34
|
+
console.error('Failed to install TypeScript Linting agent:', error.message);
|
|
35
|
+
process.exit(1);
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everydaydevops/opencode-typescript-linting",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "OpenCode agent for implementing TypeScript linting and code formatting following Everyday DevOps best practices",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"opencode",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"url": "https://github.com/everydaydevopsio/opencode-typescript-linting-agent/issues"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
|
+
"install.js",
|
|
25
26
|
"agent/",
|
|
26
27
|
"README.md",
|
|
27
28
|
"LICENSE"
|