Files
opencode-manager/ocm-cli/package.json
Chris ScottandCS 6cc50a02ed feat(ocm-cli): add file and keychain credential backends with auth commands (#327)
* feat(ocm-cli): add file and keychain credential backends with auth commands

* feat(ocm-cli): refactor credentials into async TokenStore architecture

Replace the credential-backend module with a TokenStore interface and
file/keychain implementations behind an internal facade. Convert token
get/set/delete to async, add env-token precedence warnings on login and
logout, and surface store availability in status. Add token-store tests
and helpers; remove the old credential modules and tests. Bump to 0.2.6.

* fix(ocm-cli): keep tokens out of security argv and stop masking config read errors

Route every macOS Keychain call through `security -i`, sending the quoted
command on stdin so the token is never visible in process arguments. Reject
arguments containing line breaks, which would otherwise inject additional
security commands.

Let unexpected state file read failures propagate so a broken config dir is
reported instead of being reduced to "no manager configured", and stop
consuming the install notice when reading it fails unexpectedly.

---------

Co-authored-by: CS <chris@chriswritescode.dev>
2026-07-28 16:38:12 -04:00

68 lines
1.6 KiB
JSON

{
"name": "@opencode-manager/ocm-cli",
"version": "0.2.6",
"description": "OpenCode Manager CLI: attach a local OpenCode TUI to a Manager-hosted repo.",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/chriswritescode-dev/opencode-manager.git",
"directory": "ocm-cli"
},
"type": "module",
"oc-plugin": [
"tui"
],
"exports": {
"./tui": {
"import": "./dist/tui.js"
}
},
"peerDependencies": {
"@opentui/core": ">=0.1.97",
"@opentui/solid": ">=0.1.97",
"solid-js": ">=1.9.11"
},
"peerDependenciesMeta": {
"@opentui/core": {
"optional": true
},
"@opentui/solid": {
"optional": true
},
"solid-js": {
"optional": true
}
},
"bin": {
"ocm": "./dist/ocm.js"
},
"files": [
"dist",
"README.md",
"scripts/postinstall.mjs"
],
"scripts": {
"build": "bun scripts/build.ts",
"postinstall": "node scripts/postinstall.mjs || true",
"typecheck": "tsc --noEmit",
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"test": "bun scripts/build.ts && vitest run",
"test:watch": "vitest",
"prepublishOnly": "bun scripts/build.ts"
},
"devDependencies": {
"@eslint/js": "^9.36.0",
"@opencode-manager/shared": "workspace:*",
"@opentui/core": "^0.1.97",
"@opentui/solid": "^0.1.97",
"@types/bun": "^1.3.14",
"@types/node": "^22.0.0",
"eslint": "^9.39.1",
"solid-js": "^1.9.11",
"typescript": "^5.5.0",
"typescript-eslint": "^8.45.0",
"vitest": "^3.1.0"
}
}