@nail00749/agent-gvozd 0.1.7 → 0.1.8

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.
Files changed (2) hide show
  1. package/dist/cli.js +13 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -7336,7 +7336,7 @@ function buildAgentPermissions(agent, mcpServers) {
7336
7336
 
7337
7337
  // src/release-metadata.ts
7338
7338
  var PACKAGE_NAME = "@nail00749/agent-gvozd";
7339
- var PACKAGE_VERSION = "0.1.7";
7339
+ var PACKAGE_VERSION = "0.1.8";
7340
7340
  var PACKAGE_SPEC = `${PACKAGE_NAME}@${PACKAGE_VERSION}`;
7341
7341
  var SUPPORTED_OPENCODE_VERSION = "2.0.2";
7342
7342
  var CONFIG_SCHEMA_VERSION = 2;
@@ -7593,6 +7593,9 @@ function createClient(executable, runner) {
7593
7593
  async pluginAdd(spec) {
7594
7594
  await checked(runner, executable, ["plugin", "add", spec], 60000);
7595
7595
  },
7596
+ async pluginRemove(spec) {
7597
+ await checked(runner, executable, ["plugin", "remove", spec]);
7598
+ },
7596
7599
  pluginList() {
7597
7600
  return checked(runner, executable, ["plugin", "list"]);
7598
7601
  },
@@ -8426,6 +8429,12 @@ async function confirm2(input, message) {
8426
8429
  function sameSnapshot(left, right) {
8427
8430
  return left.configRoot === right.configRoot && left.config.exists === right.config.exists && left.config.dev === right.config.dev && left.config.ino === right.config.ino && left.config.bytes === right.config.bytes && left.schema.exists === right.schema.exists && left.schema.dev === right.schema.dev && left.schema.ino === right.schema.ino && left.schema.bytes === right.schema.bytes;
8428
8431
  }
8432
+ async function registeredPackageSpecs(client, packageName, target) {
8433
+ const output = await client.pluginList();
8434
+ const specPattern = new RegExp(`${packageName.replace(/[/@]/g, "\\$&")}@[^\\s]+`, "g");
8435
+ const specs = [...new Set(output.match(specPattern) ?? [])];
8436
+ return specs.filter((spec) => spec !== target);
8437
+ }
8429
8438
  async function runSetup(input) {
8430
8439
  const client = await (input.findClient ?? (() => findOpenCode()))();
8431
8440
  const paths = await client.debugPaths();
@@ -8468,6 +8477,9 @@ async function runSetup(input) {
8468
8477
  throw new Error("Global Gvozd configuration changed during locked setup revalidation; review and rerun setup");
8469
8478
  }
8470
8479
  writeManagedAgents({ configRoot, agents: lockedBefore.agents, check: true });
8480
+ for (const stale of await registeredPackageSpecs(client, PACKAGE_NAME, PACKAGE_SPEC)) {
8481
+ await client.pluginRemove(stale);
8482
+ }
8471
8483
  await client.pluginAdd(PACKAGE_SPEC);
8472
8484
  try {
8473
8485
  writeGlobalConfig({ configRoot, profile: lockedProfile, schemaSource: lockedSchema, snapshot });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nail00749/agent-gvozd",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A globally configured, permission-aware agent team for OpenCode V2",
5
5
  "license": "MIT",
6
6
  "keywords": [