{"_id":"@alienplatform/commands-client","name":"@alienplatform/commands-client","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alienplatform/commands-client","version":"1.0.0","type":"module","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"keywords":["alien","commands","remote-command","command"],"author":"","license":"ISC","description":"Lightweight client for Alien Commands protocol","repository":{"type":"git","url":"git+https://github.com/alienplatform/alien.git","directory":"packages/commands-client"},"publishConfig":{"access":"public"},"devDependencies":{"@biomejs/biome":"^1.9.4","@types/node":"^24.0.15","tsdown":"^0.13.0","typescript":"^5.8.3","@alienplatform/typescript-config":"^1.0.0"},"dependencies":{"zod":"4.3.2","@alienplatform/platform-api":"^1.0.68","@alienplatform/core":"^1.0.1"},"scripts":{"build":"tsdown","test:ts":"tsc --noEmit","format-and-lint":"biome check .","format-and-lint:fix":"biome check . --write"},"_id":"@alienplatform/commands-client@1.0.0","bugs":{"url":"https://github.com/alienplatform/alien/issues"},"homepage":"https://github.com/alienplatform/alien#readme","_integrity":"sha512-+RNIzP7F3K49WRDRMusgi0IWSUgraCut49mlJOXCfeRKS7V7L4Alkr/jD1Nhpg7TXfwANGLdQHR2FFEP1axyjg==","_resolved":"/tmp/e1fbc5a26ef93694a82df0143b4cf254/alienplatform-commands-client-1.0.0.tgz","_from":"file:alienplatform-commands-client-1.0.0.tgz","_nodeVersion":"22.22.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-+RNIzP7F3K49WRDRMusgi0IWSUgraCut49mlJOXCfeRKS7V7L4Alkr/jD1Nhpg7TXfwANGLdQHR2FFEP1axyjg==","shasum":"59716b4fabf18ccc47ad0fe2db66a6870fcd293a","tarball":"https://registry.npmjs.org/@alienplatform/commands-client/-/commands-client-1.0.0.tgz","fileCount":8,"unpackedSize":21498,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEGpVWW1sChrZZtAaWcRDX18/e2bROpnoQM9K2Q0I7BqAiAxM2FcDRhi8hgKdTvKEuD3W2C0UOqxmKOnFhiuRUGcvA=="}]},"_npmUser":{"name":"alonalien","email":"alon@alien.dev"},"directories":{},"maintainers":[{"name":"alonalien","email":"alon@alien.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/commands-client_1.0.0_1773502036195_0.8466952894378676"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-14T15:27:16.094Z","1.0.0":"2026-03-14T15:27:16.331Z","modified":"2026-03-14T15:27:16.573Z"},"maintainers":[{"name":"alonalien","email":"alon@alien.dev"}],"description":"Lightweight client for Alien Commands protocol","homepage":"https://github.com/alienplatform/alien#readme","keywords":["alien","commands","remote-command","command"],"repository":{"type":"git","url":"git+https://github.com/alienplatform/alien.git","directory":"packages/commands-client"},"bugs":{"url":"https://github.com/alienplatform/alien/issues"},"license":"ISC","readme":"# @alienplatform/commands-client\n\nLightweight TypeScript client for Alien command invocation.\n\n## Installation\n\n```bash\nnpm install @alienplatform/commands-client\n```\n\n## Usage\n\n```typescript\nimport { CommandsClient } from \"@alienplatform/commands-client\"\n\nconst commands = new CommandsClient({\n  managerUrl: \"https://manager.example.com\",\n  deploymentId: \"dp_123\",\n  token: \"bearer_token\",\n})\n\nconst result = await commands.invoke(\"generate-report\", {\n  startDate: \"2024-01-01\",\n  endDate: \"2024-01-31\",\n})\n\nconsole.log(result)\n```\n\n## Features\n\n- Automatic base64 encoding/decoding for inline payloads\n- Polling with exponential backoff\n- Structured error handling via `AlienError`\n- Configurable timeout and idempotency options\n- Node.js and browser compatible\n\n## API\n\n```typescript\nclass CommandsClient {\n  constructor(config: CommandsClientConfig)\n  invoke<TParams, TResponse>(\n    command: string,\n    params: TParams,\n    options?: InvokeOptions,\n  ): Promise<TResponse>\n}\n```\n\n```typescript\ninterface CommandsClientConfig {\n  managerUrl: string\n  deploymentId: string\n  token: string\n  timeout?: number\n  allowLocalStorage?: boolean\n}\n```\n\n## Limitations\n\n- Storage-mode param uploads are not yet supported\n- Large responses are supported only when the server provides downloadable storage payloads\n\n## Development\n\n```bash\npnpm build\npnpm test:ts\npnpm format-and-lint\n```\n\n## License\n\nISC\n","readmeFilename":"README.md","_rev":"1-b97ab04c8c53c0babd2cf41774f72a24"}