@pmate/cli 0.4.2 → 0.5.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/dist/types.d.ts CHANGED
@@ -1,12 +1,24 @@
1
- export interface ProjectConfig {
2
- type: "vite" | "node" | "static";
1
+ export type ViteProjectConfig = {
2
+ type: "vite";
3
3
  app: string;
4
- bucket?: string;
4
+ bucket: string;
5
5
  subdomain?: string;
6
+ };
7
+ export type StaticProjectConfig = {
8
+ type: "static";
9
+ app: string;
10
+ bucket: string;
11
+ subdomain?: string;
12
+ };
13
+ export type NodeProjectConfig = {
14
+ type: "node";
15
+ app: string;
16
+ subdomain: string;
17
+ server: string;
18
+ port: number;
6
19
  repository?: string;
7
- server?: string;
8
- port?: number;
9
- }
20
+ };
21
+ export type ProjectConfig = ViteProjectConfig | NodeProjectConfig | StaticProjectConfig;
10
22
  export interface PmateConfig {
11
23
  apps: ProjectConfig[];
12
24
  domain: string;
@@ -78,13 +90,39 @@ export type EnvCommandArgs = {
78
90
  };
79
91
  export type PrCommandArgs = {
80
92
  type: Command.Pr;
93
+ commitOnly?: boolean;
94
+ };
95
+ export type LinearPrCommandArgs = {
96
+ type: Command.Linear;
97
+ action: "pr";
98
+ cwd: string;
99
+ };
100
+ export type LinearCreateCommandArgs = {
101
+ type: Command.Linear;
102
+ action: "create";
103
+ mode: "repl" | "direct";
104
+ title?: string;
105
+ description?: string;
106
+ teamId?: string;
107
+ teamKey?: string;
108
+ priority: number;
109
+ parentId?: string;
110
+ stateId?: string;
111
+ cwd: string;
112
+ };
113
+ export type LinearViewCommandArgs = {
114
+ type: Command.Linear;
115
+ action: "view";
116
+ issueRef: string;
117
+ cwd: string;
81
118
  };
82
- export type LinearCommandArgs = {
119
+ export type LinearSubIssuesCommandArgs = {
83
120
  type: Command.Linear;
84
- linearPr: boolean;
85
- linearRepl: boolean;
86
- linearCwd: string;
121
+ action: "sub-issues";
122
+ issueRef: string;
123
+ cwd: string;
87
124
  };
125
+ export type LinearCommandArgs = LinearPrCommandArgs | LinearCreateCommandArgs | LinearViewCommandArgs | LinearSubIssuesCommandArgs;
88
126
  export type OssCommandArgs = {
89
127
  type: Command.Oss;
90
128
  action: "list";
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAeA,IAAY,OAcX;AAdD,WAAY,OAAO;IACjB,wBAAa,CAAA;IACb,wBAAa,CAAA;IACb,0BAAe,CAAA;IACf,6BAAkB,CAAA;IAClB,sBAAW,CAAA;IACX,4BAAiB,CAAA;IACjB,4BAAiB,CAAA;IACjB,wBAAa,CAAA;IACb,sBAAW,CAAA;IACX,sBAAW,CAAA;IACX,oBAAS,CAAA;IACT,4BAAiB,CAAA;IACjB,sBAAW,CAAA;AACb,CAAC,EAdW,OAAO,uBAAP,OAAO,QAclB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAiCA,IAAY,OAcX;AAdD,WAAY,OAAO;IACjB,wBAAa,CAAA;IACb,wBAAa,CAAA;IACb,0BAAe,CAAA;IACf,6BAAkB,CAAA;IAClB,sBAAW,CAAA;IACX,4BAAiB,CAAA;IACjB,4BAAiB,CAAA;IACjB,wBAAa,CAAA;IACb,sBAAW,CAAA;IACX,sBAAW,CAAA;IACX,oBAAS,CAAA;IACT,4BAAiB,CAAA;IACjB,sBAAW,CAAA;AACb,CAAC,EAdW,OAAO,uBAAP,OAAO,QAclB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pmate/cli",
3
- "version": "0.4.2",
3
+ "version": "0.5.1",
4
4
  "description": "CLI utilities for the pMate project",
5
5
  "license": "MIT",
6
6
  "bin": {