@signetai/connector-opencode 0.226.15 → 0.226.16
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/dist/index.d.ts +0 -50
- package/dist/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,30 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @signetai/connector-opencode
|
|
3
|
-
*
|
|
4
|
-
* Signet connector for OpenCode - installs hooks and generates config
|
|
5
|
-
* during 'signet install'.
|
|
6
|
-
*
|
|
7
|
-
* This connector:
|
|
8
|
-
* - Writes a bundled signet.mjs plugin to ~/.config/opencode/plugins/
|
|
9
|
-
* (OpenCode auto-discovers plugins from that directory)
|
|
10
|
-
* - Generates ~/.config/opencode/AGENTS.md from identity files
|
|
11
|
-
* - Migrates away from the legacy memory.mjs approach on install/uninstall
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import { OpenCodeConnector } from '@signetai/connector-opencode'
|
|
16
|
-
*
|
|
17
|
-
* const connector = new OpenCodeConnector()
|
|
18
|
-
* await connector.install('/home/user/.agents')
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
1
|
import { BaseConnector, type InstallResult, type UninstallResult } from "@signetai/connector-base";
|
|
22
|
-
/**
|
|
23
|
-
* OpenCode connector for Signet
|
|
24
|
-
*
|
|
25
|
-
* Implements the connector pattern for setting up OpenCode integration.
|
|
26
|
-
* Run during 'signet install' to write the plugin bundle and AGENTS.md.
|
|
27
|
-
*/
|
|
28
2
|
export declare class OpenCodeConnector extends BaseConnector {
|
|
29
3
|
readonly name = "OpenCode";
|
|
30
4
|
readonly harnessId = "opencode";
|
|
@@ -35,31 +9,10 @@ export declare class OpenCodeConnector extends BaseConnector {
|
|
|
35
9
|
private getPluginFilePath;
|
|
36
10
|
private getApiKeyFilePath;
|
|
37
11
|
private getPluginConfigEntry;
|
|
38
|
-
/**
|
|
39
|
-
* Install OpenCode integration
|
|
40
|
-
*
|
|
41
|
-
* Writes:
|
|
42
|
-
* - ~/.config/opencode/plugins/signet.mjs — bundled plugin
|
|
43
|
-
* - ~/.config/opencode/AGENTS.md — agent instructions
|
|
44
|
-
*
|
|
45
|
-
* Also migrates away from the legacy memory.mjs approach.
|
|
46
|
-
*/
|
|
47
12
|
install(basePath: string): Promise<InstallResult>;
|
|
48
|
-
/**
|
|
49
|
-
* Remove Signet integration from OpenCode
|
|
50
|
-
*/
|
|
51
13
|
uninstall(): Promise<UninstallResult>;
|
|
52
|
-
/**
|
|
53
|
-
* Check if Signet integration is already set up for OpenCode
|
|
54
|
-
*/
|
|
55
14
|
isInstalled(): boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Check if OpenCode is installed on the system
|
|
58
|
-
*/
|
|
59
15
|
static isHarnessInstalled(): boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Remove legacy memory.mjs installation artifacts.
|
|
62
|
-
*/
|
|
63
16
|
private migrateFromLegacy;
|
|
64
17
|
private readConfig;
|
|
65
18
|
private validateConfigCandidates;
|
|
@@ -76,9 +29,6 @@ export declare class OpenCodeConnector extends BaseConnector {
|
|
|
76
29
|
private removePipelineAgent;
|
|
77
30
|
private ensureConfigFile;
|
|
78
31
|
private getConfigCandidates;
|
|
79
|
-
/**
|
|
80
|
-
* Generate AGENTS.md for OpenCode from identity files
|
|
81
|
-
*/
|
|
82
32
|
private generateAgentsMd;
|
|
83
33
|
}
|
|
84
34
|
export declare const opencodeConnector: OpenCodeConnector;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACN,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,EASpB,MAAM,wBAAwB,CAAC;AAsDhC,qBAAa,iBAAkB,SAAQ,aAAa;IACnD,QAAQ,CAAC,IAAI,cAAc;IAC3B,QAAQ,CAAC,SAAS,cAAc;IAEhC,YAAY,IAAI,MAAM;IAItB,SAAS,CAAC,eAAe,IAAI,MAAM;IAInC,aAAa,IAAI,MAAM;IAUvB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,oBAAoB;IAGtB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IA6EjD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAkC3C,WAAW,IAAI,OAAO;IAGtB,MAAM,CAAC,kBAAkB,IAAI,OAAO;IAgBpC,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,wBAAwB;IAMhC,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,iBAAiB;IA4BzB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAM3C;IAEF,OAAO,CAAC,qBAAqB;IAS7B,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,mBAAmB;YAOb,gBAAgB;CAiB9B;AAED,eAAO,MAAM,iBAAiB,mBAA0B,CAAC;AACzD,eAAe,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-opencode",
|
|
3
|
-
"version": "0.226.
|
|
3
|
+
"version": "0.226.16",
|
|
4
4
|
"description": "Signet connector for OpenCode - installs hooks and generates config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"typecheck": "tsc --noEmit"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@signetai/connector-base": "0.226.
|
|
29
|
-
"@signetai/core": "0.226.
|
|
28
|
+
"@signetai/connector-base": "0.226.16",
|
|
29
|
+
"@signetai/core": "0.226.16",
|
|
30
30
|
"jsonc-parser": "3.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|