@codio-ai/opencode-authoring-agent 0.1.0 → 0.1.2

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.
@@ -46,7 +46,7 @@ function main() {
46
46
  );
47
47
  console.log(`[codio-authoring-register] plugin wrapper: ${wrapperPath}`);
48
48
 
49
- // 2. Skills
49
+ // 2. Skills (copy entire skill directories, including any scripts subdirs)
50
50
  const skillsSrc = join(pkgRoot, 'src', 'skills');
51
51
  const skillsDst = join(home, '.config', 'opencode', 'skills');
52
52
  if (!existsSync(skillsSrc)) {
@@ -64,6 +64,28 @@ function main() {
64
64
  count++;
65
65
  }
66
66
  console.log(`[codio-authoring-register] registered ${count} skills under ${skillsDst}`);
67
+
68
+ // 3. Bundled codio scripts — copy into the scripts dirs of the relevant skills.
69
+ // These are self-contained esbuild bundles (no node_modules needed at runtime).
70
+ const bundledScripts = [
71
+ {
72
+ src: join(pkgRoot, 'dist', 'codio-scripts', 'codio-fetch.js'),
73
+ dst: join(skillsDst, 'codio-fetch', 'scripts', 'codio-fetch.js'),
74
+ },
75
+ {
76
+ src: join(pkgRoot, 'dist', 'codio-scripts', 'codio-publish.js'),
77
+ dst: join(skillsDst, 'codio-publish', 'scripts', 'codio-publish.js'),
78
+ },
79
+ ];
80
+ for (const { src, dst } of bundledScripts) {
81
+ if (!existsSync(src)) {
82
+ console.warn(`[codio-authoring-register] bundled script not found at ${src} — skipping.`);
83
+ continue;
84
+ }
85
+ mkdirSync(join(dst, '..'), { recursive: true });
86
+ cpSync(src, dst);
87
+ }
88
+ console.log('[codio-authoring-register] copied bundled codio scripts');
67
89
  }
68
90
 
69
91
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../src/agents/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAkD/C,wBAAgB,uBAAuB,CAAC,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,CAyF5E;AAED,wBAAgB,4BAA4B,CAC1C,KAAK,CAAC,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,MAAM,EACrB,kBAAkB,CAAC,EAAE,MAAM,EAC3B,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAC3B,eAAe,CAiBjB"}
1
+ {"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../src/agents/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAmD/C,wBAAgB,uBAAuB,CAAC,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,CAyF5E;AAED,wBAAgB,4BAA4B,CAC1C,KAAK,CAAC,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,MAAM,EACrB,kBAAkB,CAAC,EAAE,MAAM,EAC3B,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAC3B,eAAe,CAiBjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"page-author.d.ts","sourceRoot":"","sources":["../../src/agents/page-author.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAsD/C,wBAAgB,qBAAqB,CACnC,KAAK,CAAC,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,MAAM,EACrB,kBAAkB,CAAC,EAAE,MAAM,GAC1B,eAAe,CAkBjB"}
1
+ {"version":3,"file":"page-author.d.ts","sourceRoot":"","sources":["../../src/agents/page-author.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA6F/C,wBAAgB,qBAAqB,CACnC,KAAK,CAAC,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,MAAM,EACrB,kBAAkB,CAAC,EAAE,MAAM,GAC1B,eAAe,CAkBjB"}