motia 0.6.2-beta.125 → 0.6.3-beta.127

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.
@@ -13,11 +13,13 @@ cli_1.cloudCli
13
13
  .command('deploy')
14
14
  .description('Deploy a new version to Motia Cloud')
15
15
  .requiredOption('-k, --api-key <key>', 'The API key for authentication', process.env.MOTIA_API_KEY)
16
- .requiredOption('-v, --version-name <version>', 'The version to deploy')
17
16
  .option('-p, --project-id <id>', 'Project ID (Deprecated)')
17
+ .option('-n, --project-name <name>', 'Project name (used when creating a new project)')
18
18
  .option('-s, --environment-id <id>', 'Environment ID', process.env.MOTIA_ENVIRONMENT_ID)
19
+ .option('--environment-name <name>', 'Environment name')
19
20
  .option('-e, --env-file <path>', 'Path to environment file')
20
- .option('-n, --project-name <name>', 'Project name (used when creating a new project)', '')
21
+ .requiredOption('-v, --version-name <version>', 'The version to deploy')
22
+ .option('-d, --version-description <description>', 'The description of the version')
21
23
  .action((0, config_utils_1.handler)(async (arg, context) => {
22
24
  const listener = new cli_listener_1.CliListener(context);
23
25
  const builder = await (0, build_1.build)(listener);
@@ -30,9 +32,11 @@ cli_1.cloudCli
30
32
  const deployment = await cloud_api_1.cloudApi
31
33
  .createDeployment({
32
34
  apiKey: arg.apiKey,
33
- versionName: arg.versionName,
34
- environmentId: arg.environmentId,
35
35
  projectName: arg.projectName,
36
+ environmentId: arg.environmentId,
37
+ environmentName: arg.environmentName,
38
+ versionName: arg.versionName,
39
+ versionDescription: arg.versionDescription,
36
40
  })
37
41
  .catch((error) => {
38
42
  context.log('creating-deployment', (message) => message.tag('failed').append('Failed to create deployment'));
@@ -1,8 +1,10 @@
1
1
  type CreateDeploymentRequest = {
2
2
  apiKey: string;
3
+ projectName?: string;
3
4
  environmentId?: string;
5
+ environmentName?: string;
4
6
  versionName: string;
5
- projectName?: string;
7
+ versionDescription?: string;
6
8
  };
7
9
  type CreateDeploymentResult = {
8
10
  deploymentId: string;
@@ -11,9 +11,11 @@ export declare const cloudApi: {
11
11
  }>;
12
12
  createDeployment: (request: {
13
13
  apiKey: string;
14
+ projectName?: string;
14
15
  environmentId?: string;
16
+ environmentName?: string;
15
17
  versionName: string;
16
- projectName?: string;
18
+ versionDescription?: string;
17
19
  }) => Promise<{
18
20
  deploymentId: string;
19
21
  deploymentToken: string;
@@ -2,7 +2,7 @@ from datetime import datetime, timezone
2
2
 
3
3
  config = {
4
4
  "type": "cron",
5
- "cron": "*/5 * * * *", # run every 5 minutes
5
+ "cron": "0 0 * * 1", # run once every Monday at midnight
6
6
  "name": "StateAuditJob",
7
7
  "description": "Checks the state for orders that are not complete and have a ship date in the past",
8
8
  "emits": ["notification"],
@@ -2,7 +2,7 @@ import { CronConfig, Handlers } from 'motia'
2
2
 
3
3
  export const config: CronConfig = {
4
4
  type: 'cron',
5
- cron: '*/5 * * * *', // run every 5 minutes
5
+ cron: '0 0 * * 1', // run once every Monday at midnight
6
6
  name: 'StateAuditJob',
7
7
  description: 'Checks the state for orders that are not complete and have a ship date in the past',
8
8
  emits: ['notification'],
@@ -11,11 +11,13 @@ cloudCli
11
11
  .command('deploy')
12
12
  .description('Deploy a new version to Motia Cloud')
13
13
  .requiredOption('-k, --api-key <key>', 'The API key for authentication', process.env.MOTIA_API_KEY)
14
- .requiredOption('-v, --version-name <version>', 'The version to deploy')
15
14
  .option('-p, --project-id <id>', 'Project ID (Deprecated)')
15
+ .option('-n, --project-name <name>', 'Project name (used when creating a new project)')
16
16
  .option('-s, --environment-id <id>', 'Environment ID', process.env.MOTIA_ENVIRONMENT_ID)
17
+ .option('--environment-name <name>', 'Environment name')
17
18
  .option('-e, --env-file <path>', 'Path to environment file')
18
- .option('-n, --project-name <name>', 'Project name (used when creating a new project)', '')
19
+ .requiredOption('-v, --version-name <version>', 'The version to deploy')
20
+ .option('-d, --version-description <description>', 'The description of the version')
19
21
  .action(handler(async (arg, context) => {
20
22
  const listener = new CliListener(context);
21
23
  const builder = await build(listener);
@@ -28,9 +30,11 @@ cloudCli
28
30
  const deployment = await cloudApi
29
31
  .createDeployment({
30
32
  apiKey: arg.apiKey,
31
- versionName: arg.versionName,
32
- environmentId: arg.environmentId,
33
33
  projectName: arg.projectName,
34
+ environmentId: arg.environmentId,
35
+ environmentName: arg.environmentName,
36
+ versionName: arg.versionName,
37
+ versionDescription: arg.versionDescription,
34
38
  })
35
39
  .catch((error) => {
36
40
  context.log('creating-deployment', (message) => message.tag('failed').append('Failed to create deployment'));
@@ -1,8 +1,10 @@
1
1
  type CreateDeploymentRequest = {
2
2
  apiKey: string;
3
+ projectName?: string;
3
4
  environmentId?: string;
5
+ environmentName?: string;
4
6
  versionName: string;
5
- projectName?: string;
7
+ versionDescription?: string;
6
8
  };
7
9
  type CreateDeploymentResult = {
8
10
  deploymentId: string;
@@ -11,9 +11,11 @@ export declare const cloudApi: {
11
11
  }>;
12
12
  createDeployment: (request: {
13
13
  apiKey: string;
14
+ projectName?: string;
14
15
  environmentId?: string;
16
+ environmentName?: string;
15
17
  versionName: string;
16
- projectName?: string;
18
+ versionDescription?: string;
17
19
  }) => Promise<{
18
20
  deploymentId: string;
19
21
  deploymentToken: string;
@@ -2,7 +2,7 @@ from datetime import datetime, timezone
2
2
 
3
3
  config = {
4
4
  "type": "cron",
5
- "cron": "*/5 * * * *", # run every 5 minutes
5
+ "cron": "0 0 * * 1", # run once every Monday at midnight
6
6
  "name": "StateAuditJob",
7
7
  "description": "Checks the state for orders that are not complete and have a ship date in the past",
8
8
  "emits": ["notification"],
@@ -2,7 +2,7 @@ import { CronConfig, Handlers } from 'motia'
2
2
 
3
3
  export const config: CronConfig = {
4
4
  type: 'cron',
5
- cron: '*/5 * * * *', // run every 5 minutes
5
+ cron: '0 0 * * 1', // run once every Monday at midnight
6
6
  name: 'StateAuditJob',
7
7
  description: 'Checks the state for orders that are not complete and have a ship date in the past',
8
8
  emits: ['notification'],
@@ -1,8 +1,10 @@
1
1
  type CreateDeploymentRequest = {
2
2
  apiKey: string;
3
+ projectName?: string;
3
4
  environmentId?: string;
5
+ environmentName?: string;
4
6
  versionName: string;
5
- projectName?: string;
7
+ versionDescription?: string;
6
8
  };
7
9
  type CreateDeploymentResult = {
8
10
  deploymentId: string;
@@ -11,9 +11,11 @@ export declare const cloudApi: {
11
11
  }>;
12
12
  createDeployment: (request: {
13
13
  apiKey: string;
14
+ projectName?: string;
14
15
  environmentId?: string;
16
+ environmentName?: string;
15
17
  versionName: string;
16
- projectName?: string;
18
+ versionDescription?: string;
17
19
  }) => Promise<{
18
20
  deploymentId: string;
19
21
  deploymentToken: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "motia",
3
3
  "description": "A Modern Unified Backend Framework for APIs, Events and Agents",
4
- "version": "0.6.2-beta.125",
4
+ "version": "0.6.3-beta.127",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -43,9 +43,9 @@
43
43
  "inquirer": "^8.2.5",
44
44
  "table": "^6.9.0",
45
45
  "ts-node": "^10.9.2",
46
- "@motiadev/core": "0.6.2-beta.125",
47
- "@motiadev/stream-client-node": "0.6.2-beta.125",
48
- "@motiadev/workbench": "0.6.2-beta.125"
46
+ "@motiadev/core": "0.6.3-beta.127",
47
+ "@motiadev/workbench": "0.6.3-beta.127",
48
+ "@motiadev/stream-client-node": "0.6.3-beta.127"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@amplitude/analytics-types": "^2.9.2",