drizzy-agent 0.5.4 → 0.5.5

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.
@@ -1,2 +1,2 @@
1
1
  import type { InstallArgs } from "./types";
2
- export declare function runCliInstaller(args: InstallArgs, version: string): Promise<number>;
2
+ export declare function runCliInstaller(args: InstallArgs): Promise<number>;
@@ -1,2 +1,2 @@
1
1
  import type { ConfigMergeResult } from "../types";
2
- export declare function addPluginToOpenCodeConfig(currentVersion: string): Promise<ConfigMergeResult>;
2
+ export declare function addPluginToOpenCodeConfig(): Promise<ConfigMergeResult>;
@@ -1 +1 @@
1
- export declare function getPluginNameWithVersion(currentVersion: string): Promise<string>;
1
+ export declare function getPluginNameWithVersion(): string;
package/dist/cli/index.js CHANGED
@@ -2315,47 +2315,11 @@ var configContext = null;
2315
2315
  var init_config_context = __esm(() => {
2316
2316
  init_opencode_config_dir();
2317
2317
  });
2318
-
2319
- // src/cli/config-manager/npm-dist-tags.ts
2320
- async function fetchNpmDistTags(packageName) {
2321
- try {
2322
- const res = await fetch(`https://registry.npmjs.org/-/package/${encodeURIComponent(packageName)}/dist-tags`, {
2323
- signal: AbortSignal.timeout(NPM_FETCH_TIMEOUT_MS)
2324
- });
2325
- if (!res.ok)
2326
- return null;
2327
- const data = await res.json();
2328
- return data;
2329
- } catch {
2330
- return null;
2331
- }
2332
- }
2333
- var NPM_FETCH_TIMEOUT_MS = 5000;
2334
-
2335
2318
  // src/cli/config-manager/plugin-name-with-version.ts
2336
- function getFallbackEntry(version) {
2337
- const prereleaseMatch = version.match(/-([a-zA-Z][a-zA-Z0-9-]*)(?:\.|$)/);
2338
- if (prereleaseMatch) {
2339
- return `${PACKAGE_NAME}@${prereleaseMatch[1]}`;
2340
- }
2319
+ function getPluginNameWithVersion() {
2341
2320
  return PACKAGE_NAME;
2342
2321
  }
2343
- async function getPluginNameWithVersion(currentVersion) {
2344
- const distTags = await fetchNpmDistTags(PACKAGE_NAME);
2345
- if (distTags) {
2346
- const allTags = new Set([...PRIORITIZED_TAGS, ...Object.keys(distTags)]);
2347
- for (const tag of allTags) {
2348
- if (distTags[tag] === currentVersion) {
2349
- return `${PACKAGE_NAME}@${tag}`;
2350
- }
2351
- }
2352
- }
2353
- return getFallbackEntry(currentVersion);
2354
- }
2355
- var PACKAGE_NAME = "drizzy-agent", PRIORITIZED_TAGS;
2356
- var init_plugin_name_with_version = __esm(() => {
2357
- PRIORITIZED_TAGS = ["latest", "beta", "next"];
2358
- });
2322
+ var PACKAGE_NAME = "drizzy-agent";
2359
2323
 
2360
2324
  // src/cli/config-manager/ensure-config-directory-exists.ts
2361
2325
  import { existsSync as existsSync2, mkdirSync } from "fs";
@@ -3344,7 +3308,7 @@ var init_parse_opencode_config_file = __esm(() => {
3344
3308
 
3345
3309
  // src/cli/config-manager/add-plugin-to-opencode-config.ts
3346
3310
  import { readFileSync as readFileSync3, writeFileSync } from "fs";
3347
- async function addPluginToOpenCodeConfig(currentVersion) {
3311
+ async function addPluginToOpenCodeConfig() {
3348
3312
  try {
3349
3313
  ensureConfigDirectoryExists();
3350
3314
  } catch (err) {
@@ -3355,7 +3319,7 @@ async function addPluginToOpenCodeConfig(currentVersion) {
3355
3319
  };
3356
3320
  }
3357
3321
  const { format: format2, path } = detectConfigFormat();
3358
- const pluginEntry = await getPluginNameWithVersion(currentVersion);
3322
+ const pluginEntry = getPluginNameWithVersion();
3359
3323
  try {
3360
3324
  if (format2 === "none") {
3361
3325
  const config2 = { plugin: [pluginEntry] };
@@ -3418,7 +3382,6 @@ var init_add_plugin_to_opencode_config = __esm(() => {
3418
3382
  init_ensure_config_directory_exists();
3419
3383
  init_opencode_config_format();
3420
3384
  init_parse_opencode_config_file();
3421
- init_plugin_name_with_version();
3422
3385
  });
3423
3386
 
3424
3387
  // src/shared/install-defaults-contract.ts
@@ -4381,7 +4344,6 @@ var init_detect_and_remove_oh_my_opencode = __esm(() => {
4381
4344
  // src/cli/config-manager.ts
4382
4345
  var init_config_manager = __esm(() => {
4383
4346
  init_config_context();
4384
- init_plugin_name_with_version();
4385
4347
  init_add_plugin_to_opencode_config();
4386
4348
  init_generate_drizzy_config();
4387
4349
  init_write_drizzy_config();
@@ -5417,106 +5379,6 @@ var {
5417
5379
  Option,
5418
5380
  Help
5419
5381
  } = import__.default;
5420
- // package.json
5421
- var package_default = {
5422
- name: "drizzy-agent",
5423
- version: "0.5.4",
5424
- description: "DrizzyAgent - AI agent plugin for OpenCode",
5425
- main: "dist/index.js",
5426
- types: "dist/index.d.ts",
5427
- type: "module",
5428
- bin: {
5429
- "drizzy-agent": "bin/drizzy-agent.js"
5430
- },
5431
- files: [
5432
- "dist",
5433
- "bin",
5434
- "postinstall.mjs"
5435
- ],
5436
- exports: {
5437
- ".": {
5438
- types: "./dist/index.d.ts",
5439
- import: "./dist/index.js"
5440
- },
5441
- "./schema.json": "./dist/drizzy-agent.schema.json"
5442
- },
5443
- scripts: {
5444
- build: "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
5445
- "build:all": "bun run build && bun run build:binaries",
5446
- "build:binaries": "bun run script/build-binaries.ts",
5447
- "build:schema": "bun run script/build-schema.ts",
5448
- clean: "rm -rf dist",
5449
- prepare: "bun run build",
5450
- postinstall: "node postinstall.mjs",
5451
- prepublishOnly: "bun run clean && bun run build",
5452
- typecheck: "tsc --noEmit",
5453
- test: "bun test"
5454
- },
5455
- keywords: [
5456
- "opencode",
5457
- "plugin",
5458
- "oracle",
5459
- "librarian",
5460
- "agents",
5461
- "ai",
5462
- "llm"
5463
- ],
5464
- author: "YeonGyu-Kim",
5465
- license: "SUL-1.0",
5466
- repository: {
5467
- type: "git",
5468
- url: "git+https://github.com/AndreDalwin/DrizzyAgent.git"
5469
- },
5470
- bugs: {
5471
- url: "https://github.com/AndreDalwin/DrizzyAgent/issues"
5472
- },
5473
- homepage: "https://github.com/AndreDalwin/DrizzyAgent#readme",
5474
- dependencies: {
5475
- "@ast-grep/cli": "^0.41.1",
5476
- "@ast-grep/napi": "^0.41.1",
5477
- "@clack/prompts": "^0.11.0",
5478
- "@code-yeongyu/comment-checker": "^0.7.0",
5479
- "@modelcontextprotocol/sdk": "^1.25.2",
5480
- "@opencode-ai/plugin": "^1.2.24",
5481
- "@opencode-ai/sdk": "^1.2.24",
5482
- commander: "^14.0.2",
5483
- "detect-libc": "^2.0.0",
5484
- diff: "^8.0.3",
5485
- "js-yaml": "^4.1.1",
5486
- "jsonc-parser": "^3.3.1",
5487
- picocolors: "^1.1.1",
5488
- picomatch: "^4.0.2",
5489
- "vscode-jsonrpc": "^8.2.0",
5490
- zod: "^4.1.8"
5491
- },
5492
- devDependencies: {
5493
- "@types/js-yaml": "^4.0.9",
5494
- "@types/picomatch": "^3.0.2",
5495
- "bun-types": "1.3.10",
5496
- typescript: "^5.7.3"
5497
- },
5498
- optionalDependencies: {
5499
- "drizzy-agent-darwin-arm64": "0.5.4",
5500
- "drizzy-agent-darwin-x64": "0.5.4",
5501
- "drizzy-agent-darwin-x64-baseline": "0.5.4",
5502
- "drizzy-agent-linux-arm64": "0.5.4",
5503
- "drizzy-agent-linux-arm64-musl": "0.5.4",
5504
- "drizzy-agent-linux-x64": "0.5.4",
5505
- "drizzy-agent-linux-x64-baseline": "0.5.4",
5506
- "drizzy-agent-linux-x64-musl": "0.5.4",
5507
- "drizzy-agent-linux-x64-musl-baseline": "0.5.4",
5508
- "drizzy-agent-windows-x64": "0.5.4",
5509
- "drizzy-agent-windows-x64-baseline": "0.5.4"
5510
- },
5511
- overrides: {
5512
- "@opencode-ai/sdk": "^1.2.24"
5513
- },
5514
- trustedDependencies: [
5515
- "@ast-grep/cli",
5516
- "@ast-grep/napi",
5517
- "@code-yeongyu/comment-checker"
5518
- ]
5519
- };
5520
5382
 
5521
5383
  // src/cli/cli-installer.ts
5522
5384
  init_config_manager();
@@ -5676,7 +5538,7 @@ function detectedToInitialValues(detected) {
5676
5538
  }
5677
5539
 
5678
5540
  // src/cli/cli-installer.ts
5679
- async function runCliInstaller(args, version) {
5541
+ async function runCliInstaller(args) {
5680
5542
  const validation = validateNonTuiArgs(args);
5681
5543
  if (!validation.valid) {
5682
5544
  printHeader(false);
@@ -5737,7 +5599,7 @@ async function runCliInstaller(args, version) {
5737
5599
  }
5738
5600
  const config = argsToConfig(args);
5739
5601
  printStep(step++, totalSteps + (omoDetected.isInstalled ? 1 : 0), "Adding drizzy-agent plugin...");
5740
- const pluginResult = await addPluginToOpenCodeConfig(version);
5602
+ const pluginResult = await addPluginToOpenCodeConfig();
5741
5603
  if (!pluginResult.success) {
5742
5604
  printError(`Failed: ${pluginResult.error}`);
5743
5605
  return 1;
@@ -6508,7 +6370,7 @@ async function promptOhMyOpencodeConfirmation(detected) {
6508
6370
  }
6509
6371
 
6510
6372
  // src/cli/tui-installer.ts
6511
- async function runTuiInstaller(args, version) {
6373
+ async function runTuiInstaller(args) {
6512
6374
  if (!process.stdin.isTTY || !process.stdout.isTTY) {
6513
6375
  console.error("Error: Interactive installer requires a TTY. Use --non-interactive or set environment variables directly.");
6514
6376
  return 1;
@@ -6563,7 +6425,7 @@ async function runTuiInstaller(args, version) {
6563
6425
  if (!config)
6564
6426
  return 1;
6565
6427
  spinner.start("Adding drizzy-agent to OpenCode config");
6566
- const pluginResult = await addPluginToOpenCodeConfig(version);
6428
+ const pluginResult = await addPluginToOpenCodeConfig();
6567
6429
  if (!pluginResult.success) {
6568
6430
  spinner.stop(`Failed to add plugin: ${pluginResult.error}`);
6569
6431
  Se(import_picocolors5.default.red("Installation failed."));
@@ -6611,9 +6473,8 @@ async function runTuiInstaller(args, version) {
6611
6473
  }
6612
6474
 
6613
6475
  // src/cli/install.ts
6614
- var VERSION = package_default.version;
6615
6476
  async function install(args) {
6616
- return args.tui ? runTuiInstaller(args, VERSION) : runCliInstaller(args, VERSION);
6477
+ return args.tui ? runTuiInstaller(args) : runCliInstaller(args);
6617
6478
  }
6618
6479
 
6619
6480
  // src/cli/run/runner.ts
@@ -29390,11 +29251,111 @@ function createMcpOAuthCommand() {
29390
29251
  mcp.addCommand(oauth);
29391
29252
  return mcp;
29392
29253
  }
29254
+ // package.json
29255
+ var package_default = {
29256
+ name: "drizzy-agent",
29257
+ version: "0.5.5",
29258
+ description: "DrizzyAgent - AI agent plugin for OpenCode",
29259
+ main: "dist/index.js",
29260
+ types: "dist/index.d.ts",
29261
+ type: "module",
29262
+ bin: {
29263
+ "drizzy-agent": "bin/drizzy-agent.js"
29264
+ },
29265
+ files: [
29266
+ "dist",
29267
+ "bin",
29268
+ "postinstall.mjs"
29269
+ ],
29270
+ exports: {
29271
+ ".": {
29272
+ types: "./dist/index.d.ts",
29273
+ import: "./dist/index.js"
29274
+ },
29275
+ "./schema.json": "./dist/drizzy-agent.schema.json"
29276
+ },
29277
+ scripts: {
29278
+ build: "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
29279
+ "build:all": "bun run build && bun run build:binaries",
29280
+ "build:binaries": "bun run script/build-binaries.ts",
29281
+ "build:schema": "bun run script/build-schema.ts",
29282
+ clean: "rm -rf dist",
29283
+ prepare: "bun run build",
29284
+ postinstall: "node postinstall.mjs",
29285
+ prepublishOnly: "bun run clean && bun run build",
29286
+ typecheck: "tsc --noEmit",
29287
+ test: "bun test"
29288
+ },
29289
+ keywords: [
29290
+ "opencode",
29291
+ "plugin",
29292
+ "oracle",
29293
+ "librarian",
29294
+ "agents",
29295
+ "ai",
29296
+ "llm"
29297
+ ],
29298
+ author: "YeonGyu-Kim",
29299
+ license: "SUL-1.0",
29300
+ repository: {
29301
+ type: "git",
29302
+ url: "git+https://github.com/AndreDalwin/DrizzyAgent.git"
29303
+ },
29304
+ bugs: {
29305
+ url: "https://github.com/AndreDalwin/DrizzyAgent/issues"
29306
+ },
29307
+ homepage: "https://github.com/AndreDalwin/DrizzyAgent#readme",
29308
+ dependencies: {
29309
+ "@ast-grep/cli": "^0.41.1",
29310
+ "@ast-grep/napi": "^0.41.1",
29311
+ "@clack/prompts": "^0.11.0",
29312
+ "@code-yeongyu/comment-checker": "^0.7.0",
29313
+ "@modelcontextprotocol/sdk": "^1.25.2",
29314
+ "@opencode-ai/plugin": "^1.2.24",
29315
+ "@opencode-ai/sdk": "^1.2.24",
29316
+ commander: "^14.0.2",
29317
+ "detect-libc": "^2.0.0",
29318
+ diff: "^8.0.3",
29319
+ "js-yaml": "^4.1.1",
29320
+ "jsonc-parser": "^3.3.1",
29321
+ picocolors: "^1.1.1",
29322
+ picomatch: "^4.0.2",
29323
+ "vscode-jsonrpc": "^8.2.0",
29324
+ zod: "^4.1.8"
29325
+ },
29326
+ devDependencies: {
29327
+ "@types/js-yaml": "^4.0.9",
29328
+ "@types/picomatch": "^3.0.2",
29329
+ "bun-types": "1.3.10",
29330
+ typescript: "^5.7.3"
29331
+ },
29332
+ optionalDependencies: {
29333
+ "drizzy-agent-darwin-arm64": "0.5.5",
29334
+ "drizzy-agent-darwin-x64": "0.5.5",
29335
+ "drizzy-agent-darwin-x64-baseline": "0.5.5",
29336
+ "drizzy-agent-linux-arm64": "0.5.5",
29337
+ "drizzy-agent-linux-arm64-musl": "0.5.5",
29338
+ "drizzy-agent-linux-x64": "0.5.5",
29339
+ "drizzy-agent-linux-x64-baseline": "0.5.5",
29340
+ "drizzy-agent-linux-x64-musl": "0.5.5",
29341
+ "drizzy-agent-linux-x64-musl-baseline": "0.5.5",
29342
+ "drizzy-agent-windows-x64": "0.5.5",
29343
+ "drizzy-agent-windows-x64-baseline": "0.5.5"
29344
+ },
29345
+ overrides: {
29346
+ "@opencode-ai/sdk": "^1.2.24"
29347
+ },
29348
+ trustedDependencies: [
29349
+ "@ast-grep/cli",
29350
+ "@ast-grep/napi",
29351
+ "@code-yeongyu/comment-checker"
29352
+ ]
29353
+ };
29393
29354
 
29394
29355
  // src/cli/cli-program.ts
29395
- var VERSION2 = package_default.version;
29356
+ var VERSION = package_default.version;
29396
29357
  var program2 = new Command;
29397
- program2.name("drizzy-agent").description("DrizzyAgent for OpenCode - multi-model orchestration, tools, and workflows").version(VERSION2, "-v, --version", "Show version number").enablePositionalOptions();
29358
+ program2.name("drizzy-agent").description("DrizzyAgent for OpenCode - multi-model orchestration, tools, and workflows").version(VERSION, "-v, --version", "Show version number").enablePositionalOptions();
29398
29359
  program2.command("install").description("Install and configure DrizzyAgent with interactive setup").option("--no-tui", "Run in non-interactive mode (requires all options)").option("--claude <value>", "Claude subscription: no, yes, max20").option("--openai <value>", "OpenAI/ChatGPT subscription: no, yes (default: no)").option("--gemini <value>", "Gemini integration: no, yes").option("--copilot <value>", "GitHub Copilot subscription: no, yes").option("--opencode-zen <value>", "OpenCode Zen access: no, yes (default: no)").option("--zai-coding-plan <value>", "Z.ai Coding Plan subscription: no, yes (default: no)").option("--kimi-for-coding <value>", "Kimi For Coding subscription: no, yes (default: no)").option("--skip-auth", "Skip authentication setup hints").addHelpText("after", `
29399
29360
  Examples:
29400
29361
  $ bunx drizzy-agent install
@@ -29504,7 +29465,7 @@ Examples:
29504
29465
  process.exit(exitCode);
29505
29466
  });
29506
29467
  program2.command("version").description("Show version information").action(() => {
29507
- console.log(`drizzy-agent v${VERSION2}`);
29468
+ console.log(`drizzy-agent v${VERSION}`);
29508
29469
  });
29509
29470
  program2.addCommand(createMcpOAuthCommand());
29510
29471
  function runCli() {
@@ -1,2 +1,2 @@
1
1
  import type { InstallArgs } from "./types";
2
- export declare function runTuiInstaller(args: InstallArgs, version: string): Promise<number>;
2
+ export declare function runTuiInstaller(args: InstallArgs): Promise<number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzy-agent",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "DrizzyAgent - AI agent plugin for OpenCode",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -76,17 +76,17 @@
76
76
  "typescript": "^5.7.3"
77
77
  },
78
78
  "optionalDependencies": {
79
- "drizzy-agent-darwin-arm64": "0.5.4",
80
- "drizzy-agent-darwin-x64": "0.5.4",
81
- "drizzy-agent-darwin-x64-baseline": "0.5.4",
82
- "drizzy-agent-linux-arm64": "0.5.4",
83
- "drizzy-agent-linux-arm64-musl": "0.5.4",
84
- "drizzy-agent-linux-x64": "0.5.4",
85
- "drizzy-agent-linux-x64-baseline": "0.5.4",
86
- "drizzy-agent-linux-x64-musl": "0.5.4",
87
- "drizzy-agent-linux-x64-musl-baseline": "0.5.4",
88
- "drizzy-agent-windows-x64": "0.5.4",
89
- "drizzy-agent-windows-x64-baseline": "0.5.4"
79
+ "drizzy-agent-darwin-arm64": "0.5.5",
80
+ "drizzy-agent-darwin-x64": "0.5.5",
81
+ "drizzy-agent-darwin-x64-baseline": "0.5.5",
82
+ "drizzy-agent-linux-arm64": "0.5.5",
83
+ "drizzy-agent-linux-arm64-musl": "0.5.5",
84
+ "drizzy-agent-linux-x64": "0.5.5",
85
+ "drizzy-agent-linux-x64-baseline": "0.5.5",
86
+ "drizzy-agent-linux-x64-musl": "0.5.5",
87
+ "drizzy-agent-linux-x64-musl-baseline": "0.5.5",
88
+ "drizzy-agent-windows-x64": "0.5.5",
89
+ "drizzy-agent-windows-x64-baseline": "0.5.5"
90
90
  },
91
91
  "overrides": {
92
92
  "@opencode-ai/sdk": "^1.2.24"