hereya-cli 0.64.2 → 0.64.3

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.
Files changed (41) hide show
  1. package/README.md +133 -43
  2. package/dist/backend/cloud/cloud-backend.d.ts +70 -0
  3. package/dist/backend/cloud/cloud-backend.js +96 -0
  4. package/dist/backend/common.d.ts +4 -0
  5. package/dist/backend/common.js +1 -0
  6. package/dist/backend/index.d.ts +5 -1
  7. package/dist/backend/index.js +18 -2
  8. package/dist/commands/add/index.js +109 -2
  9. package/dist/commands/deploy/index.js +8 -2
  10. package/dist/commands/docker/run/index.js +1 -0
  11. package/dist/commands/down/index.js +111 -3
  12. package/dist/commands/env/index.js +1 -0
  13. package/dist/commands/executor/start/index.d.ts +11 -0
  14. package/dist/commands/executor/start/index.js +176 -0
  15. package/dist/commands/remove/index.js +138 -4
  16. package/dist/commands/run/index.js +1 -0
  17. package/dist/commands/undeploy/index.js +4 -1
  18. package/dist/commands/up/index.js +102 -5
  19. package/dist/commands/workspace/executor/install/index.d.ts +9 -0
  20. package/dist/commands/workspace/executor/install/index.js +110 -0
  21. package/dist/commands/workspace/executor/token/index.d.ts +8 -0
  22. package/dist/commands/workspace/executor/token/index.js +40 -0
  23. package/dist/commands/workspace/executor/uninstall/index.d.ts +9 -0
  24. package/dist/commands/workspace/executor/uninstall/index.js +102 -0
  25. package/dist/executor/context.d.ts +2 -0
  26. package/dist/executor/context.js +39 -0
  27. package/dist/executor/delegating.d.ts +15 -0
  28. package/dist/executor/delegating.js +50 -0
  29. package/dist/executor/index.d.ts +12 -3
  30. package/dist/executor/index.js +13 -2
  31. package/dist/executor/remote.d.ts +16 -0
  32. package/dist/executor/remote.js +168 -0
  33. package/dist/infrastructure/index.js +55 -22
  34. package/dist/lib/config/common.d.ts +5 -0
  35. package/dist/lib/config/simple.js +43 -24
  36. package/dist/lib/env/index.d.ts +9 -0
  37. package/dist/lib/env/index.js +101 -15
  38. package/dist/lib/package/index.d.ts +12 -0
  39. package/dist/lib/package/index.js +4 -0
  40. package/oclif.manifest.json +183 -25
  41. package/package.json +1 -1
@@ -496,6 +496,30 @@
496
496
  "index.js"
497
497
  ]
498
498
  },
499
+ "logout": {
500
+ "aliases": [],
501
+ "args": {},
502
+ "description": "Logout from Hereya Cloud",
503
+ "examples": [
504
+ "<%= config.bin %> <%= command.id %>"
505
+ ],
506
+ "flags": {},
507
+ "hasDynamicHelp": false,
508
+ "hiddenAliases": [],
509
+ "id": "logout",
510
+ "pluginAlias": "hereya-cli",
511
+ "pluginName": "hereya-cli",
512
+ "pluginType": "core",
513
+ "strict": true,
514
+ "enableJsonFlag": false,
515
+ "isESM": true,
516
+ "relativePath": [
517
+ "dist",
518
+ "commands",
519
+ "logout",
520
+ "index.js"
521
+ ]
522
+ },
499
523
  "login": {
500
524
  "aliases": [],
501
525
  "args": {
@@ -540,30 +564,6 @@
540
564
  "index.js"
541
565
  ]
542
566
  },
543
- "logout": {
544
- "aliases": [],
545
- "args": {},
546
- "description": "Logout from Hereya Cloud",
547
- "examples": [
548
- "<%= config.bin %> <%= command.id %>"
549
- ],
550
- "flags": {},
551
- "hasDynamicHelp": false,
552
- "hiddenAliases": [],
553
- "id": "logout",
554
- "pluginAlias": "hereya-cli",
555
- "pluginName": "hereya-cli",
556
- "pluginType": "core",
557
- "strict": true,
558
- "enableJsonFlag": false,
559
- "isESM": true,
560
- "relativePath": [
561
- "dist",
562
- "commands",
563
- "logout",
564
- "index.js"
565
- ]
566
- },
567
567
  "provid": {
568
568
  "aliases": [],
569
569
  "args": {
@@ -1202,6 +1202,53 @@
1202
1202
  "index.js"
1203
1203
  ]
1204
1204
  },
1205
+ "executor:start": {
1206
+ "aliases": [],
1207
+ "args": {},
1208
+ "description": "Start the remote executor process (polls for jobs from hereya cloud).\n\nJobs are executed in parallel up to the concurrency limit (default: 10). Use --concurrency to adjust.\n\nSet the HEREYA_TOKEN environment variable to authenticate without running `hereya login`.\nSet the HEREYA_CLOUD_URL environment variable to target a specific hereya cloud instance (defaults to https://cloud.hereya.dev).",
1209
+ "examples": [
1210
+ "<%= config.bin %> <%= command.id %> -w my-workspace",
1211
+ "<%= config.bin %> <%= command.id %> -w my-workspace --concurrency 5",
1212
+ "HEREYA_TOKEN=<token> <%= config.bin %> <%= command.id %> -w my-workspace",
1213
+ "HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com <%= config.bin %> <%= command.id %> -w my-workspace"
1214
+ ],
1215
+ "flags": {
1216
+ "concurrency": {
1217
+ "char": "c",
1218
+ "description": "maximum number of parallel jobs",
1219
+ "name": "concurrency",
1220
+ "default": 10,
1221
+ "hasDynamicHelp": false,
1222
+ "multiple": false,
1223
+ "type": "option"
1224
+ },
1225
+ "workspace": {
1226
+ "char": "w",
1227
+ "description": "name of the workspace to poll jobs for",
1228
+ "name": "workspace",
1229
+ "required": true,
1230
+ "hasDynamicHelp": false,
1231
+ "multiple": false,
1232
+ "type": "option"
1233
+ }
1234
+ },
1235
+ "hasDynamicHelp": false,
1236
+ "hiddenAliases": [],
1237
+ "id": "executor:start",
1238
+ "pluginAlias": "hereya-cli",
1239
+ "pluginName": "hereya-cli",
1240
+ "pluginType": "core",
1241
+ "strict": true,
1242
+ "enableJsonFlag": false,
1243
+ "isESM": true,
1244
+ "relativePath": [
1245
+ "dist",
1246
+ "commands",
1247
+ "executor",
1248
+ "start",
1249
+ "index.js"
1250
+ ]
1251
+ },
1205
1252
  "flow:add": {
1206
1253
  "aliases": [],
1207
1254
  "args": {
@@ -2185,7 +2232,118 @@
2185
2232
  "unset",
2186
2233
  "index.js"
2187
2234
  ]
2235
+ },
2236
+ "workspace:executor:install": {
2237
+ "aliases": [],
2238
+ "args": {},
2239
+ "description": "Install a remote executor into a workspace",
2240
+ "flags": {
2241
+ "debug": {
2242
+ "description": "enable debug mode",
2243
+ "name": "debug",
2244
+ "allowNo": false,
2245
+ "type": "boolean"
2246
+ },
2247
+ "workspace": {
2248
+ "char": "w",
2249
+ "description": "name of the workspace",
2250
+ "name": "workspace",
2251
+ "required": true,
2252
+ "hasDynamicHelp": false,
2253
+ "multiple": false,
2254
+ "type": "option"
2255
+ }
2256
+ },
2257
+ "hasDynamicHelp": false,
2258
+ "hiddenAliases": [],
2259
+ "id": "workspace:executor:install",
2260
+ "pluginAlias": "hereya-cli",
2261
+ "pluginName": "hereya-cli",
2262
+ "pluginType": "core",
2263
+ "strict": true,
2264
+ "enableJsonFlag": false,
2265
+ "isESM": true,
2266
+ "relativePath": [
2267
+ "dist",
2268
+ "commands",
2269
+ "workspace",
2270
+ "executor",
2271
+ "install",
2272
+ "index.js"
2273
+ ]
2274
+ },
2275
+ "workspace:executor:token": {
2276
+ "aliases": [],
2277
+ "args": {},
2278
+ "description": "Generate a workspace-scoped executor token for testing the remote executor locally",
2279
+ "flags": {
2280
+ "workspace": {
2281
+ "char": "w",
2282
+ "description": "name of the workspace",
2283
+ "name": "workspace",
2284
+ "required": true,
2285
+ "hasDynamicHelp": false,
2286
+ "multiple": false,
2287
+ "type": "option"
2288
+ }
2289
+ },
2290
+ "hasDynamicHelp": false,
2291
+ "hiddenAliases": [],
2292
+ "id": "workspace:executor:token",
2293
+ "pluginAlias": "hereya-cli",
2294
+ "pluginName": "hereya-cli",
2295
+ "pluginType": "core",
2296
+ "strict": true,
2297
+ "enableJsonFlag": false,
2298
+ "isESM": true,
2299
+ "relativePath": [
2300
+ "dist",
2301
+ "commands",
2302
+ "workspace",
2303
+ "executor",
2304
+ "token",
2305
+ "index.js"
2306
+ ]
2307
+ },
2308
+ "workspace:executor:uninstall": {
2309
+ "aliases": [],
2310
+ "args": {},
2311
+ "description": "Uninstall the remote executor from a workspace",
2312
+ "flags": {
2313
+ "debug": {
2314
+ "description": "enable debug mode",
2315
+ "name": "debug",
2316
+ "allowNo": false,
2317
+ "type": "boolean"
2318
+ },
2319
+ "workspace": {
2320
+ "char": "w",
2321
+ "description": "name of the workspace",
2322
+ "name": "workspace",
2323
+ "required": true,
2324
+ "hasDynamicHelp": false,
2325
+ "multiple": false,
2326
+ "type": "option"
2327
+ }
2328
+ },
2329
+ "hasDynamicHelp": false,
2330
+ "hiddenAliases": [],
2331
+ "id": "workspace:executor:uninstall",
2332
+ "pluginAlias": "hereya-cli",
2333
+ "pluginName": "hereya-cli",
2334
+ "pluginType": "core",
2335
+ "strict": true,
2336
+ "enableJsonFlag": false,
2337
+ "isESM": true,
2338
+ "relativePath": [
2339
+ "dist",
2340
+ "commands",
2341
+ "workspace",
2342
+ "executor",
2343
+ "uninstall",
2344
+ "index.js"
2345
+ ]
2188
2346
  }
2189
2347
  },
2190
- "version": "0.64.2"
2348
+ "version": "0.64.3"
2191
2349
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hereya-cli",
3
3
  "description": "Infrastructure as Package",
4
- "version": "0.64.2",
4
+ "version": "0.64.3",
5
5
  "author": "Hereya Developers",
6
6
  "bin": {
7
7
  "hereya": "./bin/run.js"