{"_id":"@almyty/client","_rev":"2-305ca5deb9afb7f82d715b65a3835467","name":"@almyty/client","dist-tags":{"latest":"1.2.0"},"versions":{"0.1.0":{"name":"@almyty/client","version":"0.1.0","keywords":["almyty","client","sdk"],"author":{"name":"almyty"},"license":"BSL-1.1","_id":"@almyty/client@0.1.0","maintainers":[{"name":"fbandov","email":"frane.bandov@gmail.com"}],"dist":{"shasum":"09e707cf6d5abfc4e23e3302385f8a381090c64d","tarball":"https://registry.npmjs.org/@almyty/client/-/client-0.1.0.tgz","fileCount":7,"integrity":"sha512-zBrZQ+OPsUrM+IA44wCMiODplCGYKdbf6llhat2VL7tlSl5sn05ynsEgIE+5X0TGFmaqUbdn9hWgU1ohwrkBXA==","signatures":[{"sig":"MEUCIC9wCfNcGW6Uam9F0mx538hz9iU7950Ew+p1SHPu6ryOAiEAwzsDmhiR0/HbfY04Fhyxcj5OraHq+BeFE7/OySKY6II=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11809},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"8418c99a07a2511843e40595ed9f5a91120ae5b7","scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"fbandov","email":"frane.bandov@gmail.com"},"_npmVersion":"11.11.0","description":"Shared HTTP client and credential resolver for almyty CLI packages","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.0","typescript":"^5.3.0","@types/node":"^25.4.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.1.0_1776806007270_0.6687565882588349","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@almyty/client","version":"1.2.0","publishConfig":{"access":"public"},"description":"Shared HTTP client and credential resolver used by the almyty CLIs. Reads ~/.almyty/credentials.json; not usually installed on its own.","type":"module","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","test":"vitest run","test:watch":"vitest","prepublishOnly":"npm run build"},"keywords":["almyty","client","sdk"],"author":{"name":"almyty"},"license":"Apache-2.0","devDependencies":{"@types/node":"^25.4.0","typescript":"^5.3.0","vitest":"^4.1.0"},"homepage":"https://almyty.com","repository":{"type":"git","url":"git+https://github.com/almyty-inc/almyty.git","directory":"packages/client"},"bugs":{"url":"https://github.com/almyty-inc/almyty/issues"},"gitHead":"24a4a0a24f2da23983fbb5f9a854b9817147c05d","_id":"@almyty/client@1.2.0","_nodeVersion":"24.18.0","_npmVersion":"12.0.1","dist":{"integrity":"sha512-TtY1/0n9TLOSqqy7vpAXjihoNheIkhfMP9qv8GZtQ1woviG05tUyL+dgeirJpEVQ/lMfH74jw4LxBTlhkf4GTA==","shasum":"2527379e7bf2b7021ee8be16d56c8253d1a60f7c","tarball":"https://registry.npmjs.org/@almyty/client/-/client-1.2.0.tgz","fileCount":8,"unpackedSize":28075,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@almyty%2fclient@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBpfKwfnCRF3TWETilQ4G4rp9PfYULPOZmzbFh7NA57JAiBg0zJ8aIaIZzV8usia1L5i60Gf1H3xMz5M1z7J1nU7qw=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b846e267-eb72-40d3-a463-81c233e4f50e"}},"directories":{},"maintainers":[{"name":"fbandov","email":"frane.bandov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/client_1.2.0_1784828522416_0.4862991506485774"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-21T21:13:27.179Z","modified":"2026-07-23T17:42:02.990Z","0.1.0":"2026-04-21T21:13:27.434Z","1.2.0":"2026-07-23T17:42:02.588Z"},"author":{"name":"almyty"},"license":"Apache-2.0","keywords":["almyty","client","sdk"],"description":"Shared HTTP client and credential resolver used by the almyty CLIs. Reads ~/.almyty/credentials.json; not usually installed on its own.","maintainers":[{"name":"fbandov","email":"frane.bandov@gmail.com"}],"readme":"# @almyty/client\n\nShared HTTP client and credential resolver used by all almyty CLI packages.\n\n## Usage\n\n```typescript\nimport { AlmytyClient, resolveCredentialsOrExit } from '@almyty/client';\n\nconst creds = resolveCredentialsOrExit();\nconst client = new AlmytyClient(creds.url, creds.token);\n\nconst agents = await client.listAgents();\n```\n\n## Exports\n\n- `AlmytyClient` -- API client (agents, runs, gateways)\n- `GatewayClient` -- gateway-scoped client (invoke, stream, conversations)\n- `resolveCredentials()` -- read `~/.almyty/credentials.json` (returns null if missing)\n- `resolveCredentialsOrExit()` -- same, but exits with an error message if missing\n- `getOrgSlugFromToken(token)` -- extract org slug from JWT\n- `loadCredentials()` -- raw file read\n- `CREDENTIALS_FILE` -- path to `~/.almyty/credentials.json`\n\n## About almyty\n\nalmyty is the full-stack platform for AI agents, agnostic by design: any LLM, any\nAPI turned into tools, served over MCP, A2A, UTCP, and Agent Skills. Open source,\nno lock-in.\n\n- Website — https://almyty.com\n- Docs — https://docs.almyty.com\n- Source — https://github.com/almyty-inc/almyty\n\nApache-2.0 © Almyty Inc.\n","readmeFilename":"README.md","homepage":"https://almyty.com","repository":{"type":"git","url":"git+https://github.com/almyty-inc/almyty.git","directory":"packages/client"},"bugs":{"url":"https://github.com/almyty-inc/almyty/issues"}}