anycloud 0.0.3 → 0.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anycloud",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Deploy containers to any cloud provider",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -21,16 +21,17 @@
21
21
  "start": "yarn build && wrangler dev",
22
22
  "deploy:staging": "wrangler deploy --env staging",
23
23
  "deploy:production": "wrangler deploy --env production",
24
- "cli": "yarn build && node ./dist/cli/index.js",
24
+ "cli": "node ./dist/cli/index.js",
25
+ "cli:staging": "CONDUCTOR_URL=https://conductor.laplazahealth.org node ./dist/cli/index.js",
25
26
  "start:conductor": "node ./dist/conductor/server.js",
26
- "test": "vitest run",
27
- "test:watch": "vitest",
27
+ "test": "LOCAL=true vitest run",
28
+ "test:watch": "LOCAL=true vitest",
28
29
  "test:integration": "yarn test:daemon",
29
30
  "terminate": "export $(cat .dev.vars.staging | xargs) && ts-node-dev scripts/forceTerminate.ts",
30
31
  "watch:daemon": "ts-node-dev src/cli/index.ts daemon start",
31
32
  "test:daemon": "bash test/integration/daemon-basic.test.sh",
32
- "test:e2e": "bash test/integration/e2e.test.sh",
33
- "test:e2e:azure": "bash test/integration/e2e-azure.test.sh",
33
+ "test:vmstartup": "bash test/integration/vmstartup.test.sh",
34
+ "test:e2e:azure": "bash scripts/test-jobs-integration-azure.sh",
34
35
  "test:all": "yarn test && yarn test:integration",
35
36
  "style": "yarn eslint . --ext .js,.ts && yarn prettier --check .",
36
37
  "fmt": "yarn prettier --write .",
@@ -58,6 +59,7 @@
58
59
  "node-forge": "^1.3.0",
59
60
  "open": "^10.2.0",
60
61
  "ora": "^9.0.0",
62
+ "posthog-node": "^5.11.2",
61
63
  "prompts": "^2.4.2",
62
64
  "semver": "^7.6.3",
63
65
  "systeminformation": "^5.21.0",
@@ -1,32 +0,0 @@
1
- import { Command } from 'commander';
2
- import { startServer } from '../../../daemon/server.js';
3
- import { log } from '../../../daemon/logger.js';
4
- export function createStartCommand() {
5
- return new Command('start')
6
- .description('Start the AnyCloud daemon')
7
- .argument('<cluster-secret>', 'Cluster secret for authentication')
8
- .argument('<conductor-url>', 'URL of the conductor to connect to')
9
- .requiredOption('--deployment-type <type>', 'Deployment type: app or job')
10
- .action(async (clusterSecret, conductorUrl, options) => {
11
- try {
12
- // Validate deployment type
13
- if (options.deploymentType !== 'app' &&
14
- options.deploymentType !== 'job') {
15
- log.error('Invalid deployment type. Must be either "app" or "job"');
16
- process.exit(1);
17
- }
18
- const deploymentType = options.deploymentType;
19
- log.info('Starting AnyCloud Daemon', {
20
- deploymentType,
21
- nodeVersion: process.version,
22
- });
23
- await startServer(clusterSecret, conductorUrl);
24
- log.info('Daemon started successfully');
25
- }
26
- catch (error) {
27
- log.error('Failed to start daemon', error);
28
- process.exit(1);
29
- }
30
- });
31
- }
32
- //# sourceMappingURL=start.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.js","sourceRoot":"","sources":["../../../../src/cli/commands/daemon/start.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAGhD,MAAM,UAAU,kBAAkB;IAChC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;SACxB,WAAW,CAAC,2BAA2B,CAAC;SACxC,QAAQ,CAAC,kBAAkB,EAAE,mCAAmC,CAAC;SACjE,QAAQ,CAAC,iBAAiB,EAAE,oCAAoC,CAAC;SACjE,cAAc,CAAC,0BAA0B,EAAE,6BAA6B,CAAC;SACzE,MAAM,CACL,KAAK,EACH,aAAqB,EACrB,YAAoB,EACpB,OAAmC,EACnC,EAAE;QACF,IAAI,CAAC;YACH,2BAA2B;Y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