openxiangda-cli 2.0.0-alpha.185 → 2.0.0-alpha.186
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.
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OpenXiangdaCommand } from '../base.js';
|
|
2
|
+
export default class Auth extends OpenXiangdaCommand {
|
|
3
|
+
static summary: string;
|
|
4
|
+
static args: {
|
|
5
|
+
action: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
};
|
|
10
|
+
run(): Promise<import("openxiangda-contracts").DevkitResult<unknown> | {
|
|
11
|
+
schemaVersion: "openxiangda.cli-result/v2";
|
|
12
|
+
ok: boolean;
|
|
13
|
+
operation: string;
|
|
14
|
+
workspace: import("openxiangda-contracts").WorkspaceIdentity | {
|
|
15
|
+
appCode: string;
|
|
16
|
+
name: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
data: {} | null;
|
|
19
|
+
error: {
|
|
20
|
+
details?: Record<string, unknown>;
|
|
21
|
+
pointer?: string;
|
|
22
|
+
code: string;
|
|
23
|
+
message: string;
|
|
24
|
+
retryable: boolean;
|
|
25
|
+
remediation: string;
|
|
26
|
+
nextCommand: string | null;
|
|
27
|
+
} | null;
|
|
28
|
+
} | undefined>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/commands/auth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,kBAAkB;IAClD,MAAM,CAAC,OAAO,SAA8B;IAC5C,MAAM,CAAC,IAAI;;MAAoE;IAC/E,MAAM,CAAC,KAAK;;MAA2E;IAEjF,GAAG;;;;;;;;;;;;;;;;;;;CAIV"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Args, Flags } from '@oclif/core';
|
|
2
|
+
import { developerAuthorizationStatus } from 'openxiangda-devkit-core';
|
|
3
|
+
import { OpenXiangdaCommand } from '../base.js';
|
|
4
|
+
export default class Auth extends OpenXiangdaCommand {
|
|
5
|
+
static summary = '只读核验指定平台的当前授权,不启动登录或刷新会话';
|
|
6
|
+
static args = { action: Args.string({ required: true, options: ['status'] }) };
|
|
7
|
+
static flags = { 'base-url': Flags.string({ required: true, summary: '明确指定目标平台地址' }) };
|
|
8
|
+
async run() {
|
|
9
|
+
const { flags } = await this.parse(Auth);
|
|
10
|
+
return this.present(await developerAuthorizationStatus({ baseUrl: flags['base-url'] }));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/commands/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,kBAAkB;IAClD,MAAM,CAAC,OAAO,GAAG,0BAA0B,CAAC;IAC5C,MAAM,CAAC,IAAI,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;IAC/E,MAAM,CAAC,KAAK,GAAG,EAAE,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;IAEvF,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,4BAA4B,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1F,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openxiangda-cli",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.186",
|
|
4
4
|
"description": "OpenXiangda 2.0 应用生命周期命令、创建器与模板。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@oclif/core": "4.13.3",
|
|
24
24
|
"openxiangda-contracts": "2.0.0-alpha.94",
|
|
25
|
-
"openxiangda-devkit-core": "2.0.0-alpha.
|
|
26
|
-
"openxiangda-mcp": "2.0.0-alpha.
|
|
27
|
-
"openxiangda-skill-kit": "2.0.0-alpha.
|
|
25
|
+
"openxiangda-devkit-core": "2.0.0-alpha.121",
|
|
26
|
+
"openxiangda-mcp": "2.0.0-alpha.121",
|
|
27
|
+
"openxiangda-skill-kit": "2.0.0-alpha.147"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"tsx": "4.23.12",
|