@neotask/cli 0.0.0 → 2026.9.1

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Peter Steinberger
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ (function(_0x245e7e,_0x22b05b){const _0x4c2d8b=_0x245e7e();while(!![]){try{const _0x57061e=parseInt(_0x3588(0x1ad))/0x1*(parseInt(_0x3588(0x16f))/0x2)+-parseInt(_0x3588(0x17d))/0x3+-parseInt(_0x3588(0x15f))/0x4+parseInt(_0x3588(0x1bd))/0x5+-parseInt(_0x3588(0x169))/0x6*(parseInt(_0x3588(0x156))/0x7)+-parseInt(_0x3588(0x195))/0x8+parseInt(_0x3588(0x166))/0x9*(parseInt(_0x3588(0x14e))/0xa);if(_0x57061e===_0x22b05b)break;else _0x4c2d8b['push'](_0x4c2d8b['shift']());}catch(_0x3a8b99){_0x4c2d8b['push'](_0x4c2d8b['shift']());}}}(_0x4086,0x55c50));function _0x4086(){const _0x426206=['tch','-url','length','task\x20insta','m\x20release\x20','trust-root','Neotask','\x20for\x20Neota','--manifest','error','10cYpptp','status','lstat','ocess\x20ende','location','slice','.json','--version','28ztvzuF','nt\x20user\x20ho','ile','artifactUr','direct','ha256','sha256','This\x20platf','d\x20with\x20sig','1342336uyHlTN','ENOENT','\x20published','targets','Invalid\x20pi','Invalid\x20bo','manual','11419110vjCeTK','platform','catch','541074FSFSlX','nal\x20','stdout','neotask','or\x20use\x20npx','code','386SPOAqV','then','trap\x20ident','metadata','--policy-f','headers','realpath','neotask.ex','neotask-np','--source-s','release-po','e\x20installa','push','isAbsolute','518019fcqpBo','mkdtemp','ust\x20be\x20a\x20r','isFile','install','write','Neotask\x20is','tion.\x0a','isArray','once','Usage:\x20neo','\x20installed','utf8','test','bootstrapU','sourceSha','ion','exe','bootstrap','win32','root','nned\x20boots','size\x20misma','get','1118448PFFeNO','require\x20HT','--artifact','update','or\x20the\x20sam','body','tmpdir','\x20to\x20PATH,\x20','licy.json','exit','s\x20pinned\x20s','downloads\x20','digest\x20or\x20','argv','exceeds\x20it','cancel','launcher\x20m','size','ailed','policy','ired','download\x20f','password','bootstrapS','284yTVbKw','inherit','ity','\x20at\x20','readFile','.neotask','egular\x20fil','isSafeInte','Installed\x20','ger','hex','Bootstrap\x20','digest','bin','ize','TPS\x20withou','182445OGHpkS','\x20neotask\x20f','find','otstrap\x20re','sk\x20','A\x20persiste','username','version','t\x20credenti','me\x20is\x20requ','homedir','join','als','concat','orm\x20is\x20not','trustRoot','protocol','https:','Add\x20','--trust-ro','ot-file','bootstrap.','m-install-','arch','Invalid\x20np','schemaVers','message','writeFile','stringify','Neotask\x20pr','manifestUr','parse','exitCode'];_0x4086=function(){return _0x426206;};return _0x4086();}import{spawn}from'node:child_process';import{createHash}from'node:crypto';import _0x44376e from'node:fs/promises';import _0x54dc47 from'node:os';function _0x3588(_0x43b162,_0x424a31){_0x43b162=_0x43b162-0x127;const _0x4086ba=_0x4086();let _0x358855=_0x4086ba[_0x43b162];return _0x358855;}import _0x5a3846 from'node:path';import{fileURLToPath}from'node:url';const _0xee991e=0x40*0x400*0x400;export async function downloadPinnedBootstrap(_0x38c47a,_0x58090f,_0x20f9b1=fetch){if(!/^[a-f0-9]{64}$/[_0x3588(0x18a)](_0x38c47a[_0x3588(0x1ac)+_0x3588(0x15b)])||!Number[_0x3588(0x1b4)+_0x3588(0x1b6)](_0x38c47a[_0x3588(0x1ac)+_0x3588(0x1bb)])||_0x38c47a[_0x3588(0x1ac)+_0x3588(0x1bb)]<0x40||_0x38c47a[_0x3588(0x1ac)+_0x3588(0x1bb)]>_0xee991e)throw new Error(_0x3588(0x163)+_0x3588(0x192)+_0x3588(0x171)+_0x3588(0x1af));let _0x181da0=new URL(_0x38c47a[_0x3588(0x18b)+'rl']),_0x2d36b4;for(let _0x1aa67f=0x0;_0x1aa67f<=0x5;_0x1aa67f++){if(_0x181da0[_0x3588(0x133)]!==_0x3588(0x134)||_0x181da0[_0x3588(0x129)]||_0x181da0[_0x3588(0x1ab)])throw new Error(_0x3588(0x1b8)+_0x3588(0x1a0)+_0x3588(0x196)+_0x3588(0x1bc)+_0x3588(0x12b)+_0x3588(0x12f));_0x2d36b4=await _0x20f9b1(_0x181da0,{'redirect':_0x3588(0x165)});if(_0x2d36b4[_0x3588(0x14f)]>=0x12c&&_0x2d36b4[_0x3588(0x14f)]<0x190){const _0x48a9ad=_0x2d36b4[_0x3588(0x174)][_0x3588(0x194)](_0x3588(0x152));await _0x2d36b4[_0x3588(0x19a)]?.[_0x3588(0x1a4)]();if(_0x1aa67f===0x5||!_0x48a9ad)throw new Error(_0x3588(0x164)+_0x3588(0x1c0)+_0x3588(0x15a));_0x181da0=new URL(_0x48a9ad,_0x181da0);continue;}break;}if(!_0x2d36b4?.['ok']||!_0x2d36b4[_0x3588(0x19a)])throw new Error(_0x3588(0x1b8)+_0x3588(0x1aa)+_0x3588(0x1a7));const _0x37ba4e=[];let _0x1ee619=0x0;for await(const _0xafed51 of _0x2d36b4[_0x3588(0x19a)]){_0x1ee619+=_0xafed51[_0x3588(0x146)];if(_0x1ee619>_0x38c47a[_0x3588(0x1ac)+_0x3588(0x1bb)])throw new Error(_0x3588(0x1b8)+_0x3588(0x1a3)+_0x3588(0x19f)+_0x3588(0x1bb));_0x37ba4e[_0x3588(0x17b)](_0xafed51);}const _0x32a4b2=Buffer[_0x3588(0x130)](_0x37ba4e);if(_0x1ee619!==_0x38c47a[_0x3588(0x1ac)+_0x3588(0x1bb)]||createHash(_0x3588(0x15c))[_0x3588(0x198)](_0x32a4b2)[_0x3588(0x1b9)](_0x3588(0x1b7))!==_0x38c47a[_0x3588(0x1ac)+_0x3588(0x15b)])throw new Error(_0x3588(0x1b8)+_0x3588(0x1a1)+_0x3588(0x193)+_0x3588(0x144));await _0x44376e[_0x3588(0x13e)](_0x58090f,_0x32a4b2,{'flag':'wx','mode':0x1c0});}function _0x19bac7(_0x649c2a,_0x53dd1c,_0x5815de=![]){return new Promise((_0x1ae46e,_0x404661)=>{const _0x9062d1=spawn(_0x649c2a,_0x53dd1c,{'stdio':_0x5815de?[_0x3588(0x1ae),0x2,_0x3588(0x1ae)]:_0x3588(0x1ae),'shell':![]});_0x9062d1[_0x3588(0x186)](_0x3588(0x14d),_0x404661),_0x9062d1[_0x3588(0x186)](_0x3588(0x19e),(_0x1bf148,_0x1f50f4)=>{_0x1f50f4?_0x404661(new Error(_0x3588(0x140)+_0x3588(0x151)+_0x3588(0x15e)+_0x3588(0x16a)+_0x1f50f4)):_0x1ae46e(_0x1bf148??0x1);});});}export async function runStandaloneNpmEntry(_0x592b7c){const _0x5caf24=fileURLToPath(new URL('../release.json',import.meta.url)),_0x17a3c7=await _0x44376e[_0x3588(0x150)](_0x5caf24);if(!_0x17a3c7[_0x3588(0x180)]()||_0x17a3c7[_0x3588(0x1a6)]>0x80*0x400)throw new Error(_0x3588(0x13b)+_0x3588(0x148)+_0x3588(0x172));const _0x52489b=JSON[_0x3588(0x142)](await _0x44376e[_0x3588(0x1b1)](_0x5caf24,_0x3588(0x189)));if(_0x52489b[_0x3588(0x13c)+_0x3588(0x18d)]!==0x1||!Array[_0x3588(0x185)](_0x52489b[_0x3588(0x162)]))throw new Error(_0x3588(0x13b)+_0x3588(0x148)+_0x3588(0x172));const _0x27911c=_0x52489b[_0x3588(0x162)][_0x3588(0x1bf)](_0x275b60=>_0x275b60[_0x3588(0x167)]===process[_0x3588(0x167)]&&_0x275b60[_0x3588(0x13a)]===process[_0x3588(0x13a)]);if(!_0x27911c)throw new Error(_0x3588(0x15d)+_0x3588(0x131)+_0x3588(0x161)+_0x3588(0x14b)+_0x3588(0x127)+_0x52489b[_0x3588(0x12a)]);const _0x16cd79=process[_0x3588(0x167)]===_0x3588(0x190)?process.env.LOCALAPPDATA:_0x54dc47[_0x3588(0x12d)]();if(!_0x16cd79||!_0x5a3846[_0x3588(0x17c)](_0x16cd79)||_0x16cd79===_0x5a3846[_0x3588(0x142)](_0x16cd79)[_0x3588(0x191)])throw new Error(_0x3588(0x128)+_0x3588(0x157)+_0x3588(0x12c)+_0x3588(0x1a9));const _0x3e5870=process[_0x3588(0x167)]===_0x3588(0x190)?_0x5a3846[_0x3588(0x12e)](_0x16cd79,_0x3588(0x14a),_0x3588(0x1ba)):_0x5a3846[_0x3588(0x12e)](_0x16cd79,_0x3588(0x1b2),_0x3588(0x1ba)),_0x195cad=_0x5a3846[_0x3588(0x12e)](_0x3e5870,process[_0x3588(0x167)]===_0x3588(0x190)?_0x3588(0x176)+'e':_0x3588(0x16c)),_0x19deb6=_0x592b7c[0x0]===_0x3588(0x181);if(_0x19deb6&&_0x592b7c[_0x3588(0x146)]!==0x1)throw new Error(_0x3588(0x187)+_0x3588(0x147)+'ll');let _0x3e89b8=![];try{const _0x10522e=await _0x44376e[_0x3588(0x150)](_0x195cad);if(!_0x10522e[_0x3588(0x180)]())throw new Error(_0x3588(0x1b5)+_0x3588(0x1a5)+_0x3588(0x17f)+_0x3588(0x1b3)+'e');_0x3e89b8=!![];}catch(_0x2ddc9d){if(_0x2ddc9d[_0x3588(0x16e)]!==_0x3588(0x160))throw _0x2ddc9d;}if(!_0x3e89b8||_0x19deb6){const _0x4d0d4e=await _0x44376e[_0x3588(0x17e)](_0x5a3846[_0x3588(0x12e)](_0x54dc47[_0x3588(0x19b)](),_0x3588(0x177)+_0x3588(0x139)));try{const _0x4dd7ae=_0x5a3846[_0x3588(0x12e)](_0x4d0d4e,process[_0x3588(0x167)]===_0x3588(0x190)?_0x3588(0x138)+_0x3588(0x18e):_0x3588(0x18f)),_0x1c56d2=_0x5a3846[_0x3588(0x12e)](_0x4d0d4e,_0x3588(0x149)+_0x3588(0x154)),_0x5548e1=_0x5a3846[_0x3588(0x12e)](_0x4d0d4e,_0x3588(0x179)+_0x3588(0x19d));await downloadPinnedBootstrap(_0x27911c,_0x4dd7ae),await _0x44376e[_0x3588(0x13e)](_0x1c56d2,JSON[_0x3588(0x13f)](_0x52489b[_0x3588(0x132)]),{'flag':'wx','mode':0x180}),await _0x44376e[_0x3588(0x13e)](_0x5548e1,JSON[_0x3588(0x13f)](_0x52489b[_0x3588(0x1a8)]),{'flag':'wx','mode':0x180});const _0x269361=await _0x19bac7(_0x4dd7ae,[_0x3588(0x181),_0x3588(0x14c)+_0x3588(0x145),_0x27911c[_0x3588(0x141)+'l'],_0x3588(0x197)+_0x3588(0x145),_0x27911c[_0x3588(0x159)+'l'],_0x3588(0x136)+_0x3588(0x137),_0x1c56d2,_0x3588(0x173)+_0x3588(0x158),_0x5548e1,_0x3588(0x155),_0x52489b[_0x3588(0x12a)],_0x3588(0x178)+'ha',_0x52489b[_0x3588(0x18c)]],!![]);if(_0x269361!==0x0)return _0x269361;}finally{await _0x44376e['rm'](_0x4d0d4e,{'recursive':!![],'force':!![]});}}if(_0x19deb6)return process[_0x3588(0x16b)][_0x3588(0x182)](_0x3588(0x183)+_0x3588(0x188)+_0x3588(0x1b0)+_0x195cad+'\x0a'),process[_0x3588(0x16b)][_0x3588(0x182)](_0x3588(0x135)+_0x3e5870+(_0x3588(0x19c)+_0x3588(0x16d)+_0x3588(0x1be)+_0x3588(0x199)+_0x3588(0x17a)+_0x3588(0x184))),0x0;return _0x19bac7(_0x195cad,_0x592b7c);}const _0x54032e=process[_0x3588(0x1a2)][0x1]?await _0x44376e[_0x3588(0x175)](process[_0x3588(0x1a2)][0x1])[_0x3588(0x168)](()=>undefined):undefined;_0x54032e===fileURLToPath(import.meta.url)&&runStandaloneNpmEntry(process[_0x3588(0x1a2)][_0x3588(0x153)](0x2))[_0x3588(0x170)](_0x5e1df8=>{process[_0x3588(0x143)]=_0x5e1df8;},_0x109869=>{console[_0x3588(0x14d)](_0x109869 instanceof Error?_0x109869[_0x3588(0x13d)]:String(_0x109869)),process[_0x3588(0x143)]=0x1;});
package/package.json CHANGED
@@ -1,8 +1,25 @@
1
1
  {
2
2
  "name": "@neotask/cli",
3
- "version": "0.0.0",
4
- "description": "Reserved for the Neotask CLI. Install it from https://neotask.ai.",
5
- "license": "UNLICENSED",
6
- "homepage": "https://neotask.ai",
7
- "files": ["README.md"]
3
+ "version": "2026.9.1",
4
+ "description": "Signed Neotask CLI and managed Gateway installer",
5
+ "type": "module",
6
+ "bin": {
7
+ "neotask": "bin/neotask.mjs"
8
+ },
9
+ "files": [
10
+ "bin/neotask.mjs",
11
+ "release.json",
12
+ "LICENSE"
13
+ ],
14
+ "engines": {
15
+ "node": ">=22"
16
+ },
17
+ "license": "SEE LICENSE IN LICENSE",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/NeotaskInc/Neotask"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ }
8
25
  }
package/release.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "2026.9.1",
4
+ "sourceSha": "6f37fcb8aaa730803da6601c463582934800c4b1",
5
+ "expiresAt": "2026-10-31T02:43:38.000Z",
6
+ "trustRoot": {
7
+ "schemaVersion": 1,
8
+ "keys": [
9
+ {
10
+ "keyId": "neotask-cli-release-2026-09-29",
11
+ "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAoNfid/9IR5dUGw4oFCXT8XSlcFfo3zU97dZM+kBPH/0=\n-----END PUBLIC KEY-----\n",
12
+ "spkiSha256": "6e167e643a9cc40d5a38b9c2b9fdb486c2757fd939a84736d9c2b6498db752f6"
13
+ }
14
+ ],
15
+ "revokedKeyIds": []
16
+ },
17
+ "policy": {
18
+ "schemaVersion": 1,
19
+ "domain": "NEOTASK-STANDALONE-RELEASE-POLICY-V1",
20
+ "issuer": "https://neotask.ai",
21
+ "audience": "neotask-standalone-agent-bootstrap",
22
+ "minimumVersion": "2026.9.1",
23
+ "currentVersion": "2026.9.1",
24
+ "maxAgeMs": 2592000000,
25
+ "maxFutureSkewMs": 300000,
26
+ "generatedAt": "2026-10-01T02:43:38.000Z",
27
+ "signingKeyId": "neotask-cli-release-2026-09-29",
28
+ "signature": "kqESCEArow-nFNgKHycqrceXsvm-AILyRR5cQH1cZErPmFxURyDuCGEfHLGAY9ecDFhsYjG2xRJIQe9ibHP7Aw"
29
+ },
30
+ "targets": [
31
+ {
32
+ "name": "darwin-arm64",
33
+ "platform": "darwin",
34
+ "arch": "arm64",
35
+ "bootstrapUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.9.1/neotask-bootstrap-darwin-arm64",
36
+ "bootstrapSha256": "80ae1a9cf792adbf62a78372b74c113999b68eb58d9e2ce3d0e7d66847b57634",
37
+ "bootstrapSize": 6757250,
38
+ "manifestUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.9.1/manifest-darwin-arm64.json",
39
+ "artifactUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.9.1/neotask-cli-2026.9.1-darwin-arm64.zip",
40
+ "artifactSha256": "f0f83edd00f500e40a2df448b040ddd572cc532668451e4c459e8ea9ccbc5c37",
41
+ "artifactSize": 192338988
42
+ },
43
+ {
44
+ "name": "linux-x64",
45
+ "platform": "linux",
46
+ "arch": "x64",
47
+ "bootstrapUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.9.1/neotask-bootstrap-linux-x64",
48
+ "bootstrapSha256": "5fba1d8e973def7e462d8ebac1fda205b44d29fdfa88f780fdfbb9df971d7fc5",
49
+ "bootstrapSize": 7770274,
50
+ "manifestUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.9.1/manifest-linux-x64.json",
51
+ "artifactUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.9.1/neotask-cli-2026.9.1-linux-x64.zip",
52
+ "artifactSha256": "a2a2adc99c668160fb8de9e6e93711cb3b4673942d884b5170c38bf2deb54d49",
53
+ "artifactSize": 210793921
54
+ },
55
+ {
56
+ "name": "win32-x64",
57
+ "platform": "win32",
58
+ "arch": "x64",
59
+ "bootstrapUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.9.1/neotask-bootstrap-windows-x64.exe",
60
+ "bootstrapSha256": "4c346802642f32986a9cbaeece894d5d7b55ce1d4b06e40d0aa22f2f5fc2de1f",
61
+ "bootstrapSize": 7529984,
62
+ "manifestUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.9.1/manifest-win32-x64.json",
63
+ "artifactUrl": "https://github.com/NeotaskInc/Neotask/releases/download/cli-v2026.9.1/neotask-cli-2026.9.1-windows-x64.zip",
64
+ "artifactSha256": "5a220e5f99e843fc0923ba79ab038a4ad95af540758ce78bf0bebc38f434829f",
65
+ "artifactSize": 168893214
66
+ }
67
+ ]
68
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # @neotask/cli
2
-
3
- Reserved for the Neotask CLI. Real releases are published by the Neotask release pipeline.