{"_id":"@aopslabs/xf-cli-operator","_rev":"2-d0763e612e26daa6509e6120bdc9b85d","name":"@aopslabs/xf-cli-operator","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.0":{"name":"@aopslabs/xf-cli-operator","version":"0.2.0","keywords":["cli","configuration","headers","json","nodejs"],"author":{"name":"Mehmet Zeki Sönmez"},"license":"SEE LICENSE IN LICENSE","_id":"@aopslabs/xf-cli-operator@0.2.0","maintainers":[{"name":"mzsonmez","email":"mzsonmez2@hotmail.com"}],"homepage":"https://github.com/eeemzs/xf-packages#readme","bugs":{"url":"https://github.com/eeemzs/xf-packages/issues"},"dist":{"shasum":"af5576cb17945f2e0a7ede0f06dc3be9633c9416","tarball":"https://registry.npmjs.org/@aopslabs/xf-cli-operator/-/xf-cli-operator-0.2.0.tgz","fileCount":6,"integrity":"sha512-Z0553KsEBb1wJrnssVgyVk8fzGAPRIkCFQiDb+q/4oGmokaTOxTzCE96bE234/AQ0dlO7sybC++qfRG3tJUJiA==","signatures":[{"sig":"MEUCIGCvQM6Scy0r4LHX3m2qLcBgLUOQI4nOa+gpwsp/DZ7eAiEA26I4zc7Z8KicpKa9ionQTfpVBg0kCm1ydal3XlAQios=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18878},"main":"./dist/index.js","type":"module","_from":"file:S:/dev-js2/artifacts/aopslabs-xf-cli-operator-0.2.0-review/aopslabs-xf-cli-operator-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"private":false,"scripts":{"build":"tsc -p tsconfig.lib.json"},"_npmUser":{"name":"mzsonmez","email":"mzsonmez2@hotmail.com"},"_resolved":"S:\\dev-js2\\artifacts\\aopslabs-xf-cli-operator-0.2.0-review\\aopslabs-xf-cli-operator-0.2.0.tgz","_integrity":"sha512-Z0553KsEBb1wJrnssVgyVk8fzGAPRIkCFQiDb+q/4oGmokaTOxTzCE96bE234/AQ0dlO7sybC++qfRG3tJUJiA==","repository":{"url":"git+https://github.com/eeemzs/xf-packages.git","type":"git"},"_npmVersion":"11.6.4","description":"Shared repository configuration, request, header, query, and JSON input helpers for Node.js command-line tools.","directories":{},"_nodeVersion":"22.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.3.0"},"_npmOperationalInternal":{"tmp":"tmp/xf-cli-operator_0.2.0_1785928530841_0.9418089350473016","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@aopslabs/xf-cli-operator","version":"0.2.1","description":"Shared repository configuration, request, header, query, and JSON input helpers for Node.js command-line tools.","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"devDependencies":{"@types/node":"25.3.0","eslint":"9.39.5","typescript":"5.9.3","@aopslabs/eslint-config":"0.0.0","@aopslabs/typescript-config":"0.0.0"},"private":false,"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"repository":{"type":"git","url":"git+https://github.com/eeemzs/tsapps.git","directory":"packages/xf-packages/xf-cli-operator"},"author":{"name":"Mehmet Zeki Sönmez"},"keywords":["cli","configuration","headers","json","nodejs"],"license":"SEE LICENSE IN LICENSE","scripts":{"build":"tsc -p tsconfig.lib.json","lint":"eslint . --max-warnings=0"},"_id":"@aopslabs/xf-cli-operator@0.2.1","bugs":{"url":"https://github.com/eeemzs/tsapps/issues"},"homepage":"https://github.com/eeemzs/tsapps#readme","_integrity":"sha512-DCkSYJ7x+gP7z2pxYeAdEZand3Ct2F+AecZd7lVpng6qE8ipYu3xKZYCHeWXbt2g8rV4a9jHEZ34EFw4kpZnGA==","_resolved":"/home/runner/work/_temp/release-candidates/aopslabs-xf-cli-operator-0.2.1.tgz","_from":"file:/home/runner/work/_temp/release-candidates/aopslabs-xf-cli-operator-0.2.1.tgz","_nodeVersion":"24.20.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-DCkSYJ7x+gP7z2pxYeAdEZand3Ct2F+AecZd7lVpng6qE8ipYu3xKZYCHeWXbt2g8rV4a9jHEZ34EFw4kpZnGA==","shasum":"170648f31cdd89275441f8dd6ece9755f49d55a6","tarball":"https://registry.npmjs.org/@aopslabs/xf-cli-operator/-/xf-cli-operator-0.2.1.tgz","fileCount":6,"unpackedSize":19077,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCgSDdVbvrKCrxbFmcDWghOboDvUntOv5i3jYxHOGvmDwIhALazE/XlbreIlLxFikGKmwVj9SAphXkpTP9Q3yrcKkfs"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:01fee0d1-b474-4ccc-8e58-e7c34fbbaa36"}},"directories":{},"maintainers":[{"name":"mzsonmez","email":"mzsonmez2@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/xf-cli-operator_0.2.1_1788791235731_0.4837531470162868"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-05T11:15:30.705Z","modified":"2026-09-07T14:27:16.597Z","0.2.0":"2026-08-05T11:15:30.977Z","0.2.1":"2026-09-07T14:27:15.850Z"},"bugs":{"url":"https://github.com/eeemzs/tsapps/issues"},"author":{"name":"Mehmet Zeki Sönmez"},"license":"SEE LICENSE IN LICENSE","homepage":"https://github.com/eeemzs/tsapps#readme","keywords":["cli","configuration","headers","json","nodejs"],"repository":{"type":"git","url":"git+https://github.com/eeemzs/tsapps.git","directory":"packages/xf-packages/xf-cli-operator"},"description":"Shared repository configuration, request, header, query, and JSON input helpers for Node.js command-line tools.","maintainers":[{"name":"mzsonmez","email":"mzsonmez2@hotmail.com"}],"readme":"# @aopslabs/xf-cli-operator\n\nShared operator helpers for Node.js command-line tools. The package provides repository configuration parsing, workspace-root discovery, request header and body builders, JSON input handling, query-string serialization, and timeout parsing.\n\n## Installation\n\n```bash\nnpm install @aopslabs/xf-cli-operator\n```\n\n## Usage\n\n```typescript\nimport {\n  appendQueryToPath,\n  buildOperatorHeaders,\n  parseJsonInput,\n  parseTimeoutMs\n} from '@aopslabs/xf-cli-operator';\n\nconst headers = buildOperatorHeaders({\n  tenantId: 'tenant-1',\n  locale: 'en'\n});\n\nconst requestPath = appendQueryToPath('/api/orders', {\n  status: ['open', 'pending'],\n  limit: 20\n});\n\nconst input = parseJsonInput('{\"preview\":true}', 'input');\nconst timeoutMs = parseTimeoutMs('5000');\n```\n\n## Main exports\n\n- Workspace-root and repository configuration helpers\n- Operator request headers and hosted-tool request bodies\n- Domain API path and query-string builders\n- Inline or `@file.json` JSON input parsing\n- Positive timeout parsing\n\nThe package targets Node.js ESM environments and ships JavaScript together with TypeScript declaration files.\n\n## License\n\nCopyright (c) 2026 Mehmet Zeki Sönmez.\n\nLicensed under the [PolyForm Strict License 1.0.0](https://polyformproject.org/licenses/strict/1.0.0). The license permits noncommercial use and does not grant permission to modify or redistribute the package.\n","readmeFilename":"README.md"}