ue-mcp-tripo 0.2.0 → 0.2.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/README.md +7 -3
- package/dist/shared/auth.d.ts +19 -0
- package/dist/shared/auth.js +32 -0
- package/dist/shared/auth.js.map +1 -0
- package/dist/shared/login.d.ts +13 -0
- package/dist/shared/login.js +47 -0
- package/dist/shared/login.js.map +1 -0
- package/dist/shared/secrets.d.ts +29 -0
- package/dist/shared/secrets.js +24 -0
- package/dist/shared/secrets.js.map +1 -0
- package/dist/tasks/AuthStatus.d.ts +10 -0
- package/dist/tasks/AuthStatus.js +14 -0
- package/dist/tasks/AuthStatus.js.map +1 -0
- package/dist/tasks/ClearKey.d.ts +11 -0
- package/dist/tasks/ClearKey.js +17 -0
- package/dist/tasks/ClearKey.js.map +1 -0
- package/dist/tasks/LoginPoll.d.ts +14 -0
- package/dist/tasks/LoginPoll.js +60 -0
- package/dist/tasks/LoginPoll.js.map +1 -0
- package/dist/tasks/LoginStart.d.ts +17 -0
- package/dist/tasks/LoginStart.js +43 -0
- package/dist/tasks/LoginStart.js.map +1 -0
- package/dist/tasks/SetKey.d.ts +15 -0
- package/dist/tasks/SetKey.js +20 -0
- package/dist/tasks/SetKey.js.map +1 -0
- package/dist/ui/settings.html +180 -0
- package/package.json +5 -3
- package/ue-mcp.plugin.yml +74 -6
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The plugin pins an exact tripo-cli version as a dependency and runs it from its
|
|
|
6
6
|
|
|
7
7
|
## Requirements
|
|
8
8
|
|
|
9
|
-
- ue-mcp 1.4.16-beta.
|
|
9
|
+
- ue-mcp 1.4.16-beta.11 or later
|
|
10
10
|
- A Tripo account with credits
|
|
11
11
|
|
|
12
12
|
## Install
|
|
@@ -15,13 +15,17 @@ The plugin pins an exact tripo-cli version as a dependency and runs it from its
|
|
|
15
15
|
ue-mcp plugin install tripo
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
Sign in
|
|
18
|
+
## Sign in
|
|
19
|
+
|
|
20
|
+
In Studio, open **Settings**, find Tripo Connector under the installed plugins, and select **Settings** on its row. Paste an API key from [Tripo's API keys page](https://developers.tripo3d.ai/en/keys), or select **Sign in with Tripo** and approve the one-time code in your browser. ue-mcp keeps a saved key for your user account only and passes it to the Tripo CLI. A `TRIPO_API_KEY` set in the ue-mcp server environment takes priority over a saved key.
|
|
21
|
+
|
|
22
|
+
Without Studio, sign in through the CLI's device login. It prints a URL and a one-time code; approve the code in the browser, then run the same call again to finish:
|
|
19
23
|
|
|
20
24
|
```
|
|
21
25
|
tripo(action="cli", args=["login", "--region", "ov", "--no-wait"])
|
|
22
26
|
```
|
|
23
27
|
|
|
24
|
-
Use `--region cn` for an account on the China site.
|
|
28
|
+
Use `--region cn` for an account on the China site. Confirm the key, network and balance with:
|
|
25
29
|
|
|
26
30
|
```
|
|
27
31
|
tripo(action="cli", args=["doctor"])
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** tripo-cli exit code for authentication failures (no key, rejected key). */
|
|
2
|
+
export declare const EXIT_AUTH = 3;
|
|
3
|
+
export interface AuthStatus {
|
|
4
|
+
/** The API key: set, and `env` (the user's own TRIPO_API_KEY) or `store` (saved through ue-mcp). */
|
|
5
|
+
key: {
|
|
6
|
+
set: boolean;
|
|
7
|
+
source: "env" | "store" | null;
|
|
8
|
+
};
|
|
9
|
+
/** Tripo calls authenticate, by the key or a `tripo login` profile. */
|
|
10
|
+
signedIn: boolean;
|
|
11
|
+
/** Where the working credential comes from, in words, when signed in. */
|
|
12
|
+
account?: string;
|
|
13
|
+
/** The site the account is on: ov (international) or cn (China mainland). */
|
|
14
|
+
region?: string;
|
|
15
|
+
/** Available credits, when whoami reports them. */
|
|
16
|
+
balance?: number;
|
|
17
|
+
}
|
|
18
|
+
/** The current status, from the secret store and `tripo whoami --json`. */
|
|
19
|
+
export declare function authStatus(task: object, projectDir: string | null | undefined): Promise<AuthStatus>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the settings view shows about Tripo access: whether an API key is set
|
|
3
|
+
* and where it comes from, and the account `tripo whoami` reports. The key
|
|
4
|
+
* itself, and the masked key whoami prints, are never returned.
|
|
5
|
+
*/
|
|
6
|
+
import { failureMessage, runCli, withAddedFlags, workDir } from "./cli.js";
|
|
7
|
+
import { keyStatus } from "./secrets.js";
|
|
8
|
+
/** tripo-cli exit code for authentication failures (no key, rejected key). */
|
|
9
|
+
export const EXIT_AUTH = 3;
|
|
10
|
+
/** The current status, from the secret store and `tripo whoami --json`. */
|
|
11
|
+
export async function authStatus(task, projectDir) {
|
|
12
|
+
const key = keyStatus(task);
|
|
13
|
+
const args = withAddedFlags(["whoami"]);
|
|
14
|
+
const r = await runCli(args, { cwd: workDir(projectDir), timeoutMs: 60_000 });
|
|
15
|
+
if (r.exitCode === EXIT_AUTH && !r.timedOut)
|
|
16
|
+
return { key, signedIn: false };
|
|
17
|
+
if (r.exitCode !== 0 || r.timedOut)
|
|
18
|
+
throw new Error(failureMessage(args, r, 60_000));
|
|
19
|
+
const j = (r.json ?? {});
|
|
20
|
+
const fromEnv = j.source?.startsWith("env:") ?? false;
|
|
21
|
+
const account = fromEnv
|
|
22
|
+
? key.source === "store" ? "API key saved in ue-mcp" : "TRIPO_API_KEY environment variable"
|
|
23
|
+
: j.profile ? `Tripo sign-in (profile ${j.profile})` : "Tripo sign-in";
|
|
24
|
+
return {
|
|
25
|
+
key,
|
|
26
|
+
signedIn: true,
|
|
27
|
+
account,
|
|
28
|
+
...(j.region ? { region: j.region } : {}),
|
|
29
|
+
...(typeof j.balance === "number" ? { balance: j.balance } : {}),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/shared/auth.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,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zE,OAAO;QACL,GAAG;QACH,QAAQ,EAAE,IAAI;QACd,OAAO;QACP,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACzC,GAAG,CAAC,OAAO,CAAC,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type Region = "ov" | "cn";
|
|
2
|
+
export interface LoginState {
|
|
3
|
+
region: Region;
|
|
4
|
+
userCode: string;
|
|
5
|
+
/** Epoch ms. */
|
|
6
|
+
expiresAt: number;
|
|
7
|
+
/** login_start found the sign-in already approved. */
|
|
8
|
+
completed?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function parseRegion(value: unknown): Region;
|
|
11
|
+
export declare function readLoginState(workDir: string): LoginState | null;
|
|
12
|
+
export declare function writeLoginState(workDir: string, state: LoginState): void;
|
|
13
|
+
export declare function clearLoginState(workDir: string): void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared pieces of the non-blocking device sign-in (login_start, login_poll,
|
|
3
|
+
* login_status).
|
|
4
|
+
*
|
|
5
|
+
* The CLI parks the pending grant itself (~/.tripo/pending-login.json), so
|
|
6
|
+
* `tripo login --region <r> --no-wait` run again finishes the sign-in once the
|
|
7
|
+
* human approved. The only state kept here is what the CLI does not expose:
|
|
8
|
+
* the region and code login_start returned and when it expires, so login_poll
|
|
9
|
+
* can tell "still pending" from "that code lapsed and the CLI issued a new one".
|
|
10
|
+
* It holds no key or device code.
|
|
11
|
+
*/
|
|
12
|
+
import { mkdirSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
|
|
13
|
+
import { dirname, join } from "node:path";
|
|
14
|
+
export function parseRegion(value) {
|
|
15
|
+
if (value === undefined || value === null || value === "")
|
|
16
|
+
return "ov";
|
|
17
|
+
const v = String(value).toLowerCase();
|
|
18
|
+
if (v === "ov" || v === "cn")
|
|
19
|
+
return v;
|
|
20
|
+
throw new Error(`region must be "ov" (international) or "cn" (China mainland), got "${String(value)}".`);
|
|
21
|
+
}
|
|
22
|
+
function stateFile(workDir) {
|
|
23
|
+
return join(workDir, "login-state.json");
|
|
24
|
+
}
|
|
25
|
+
export function readLoginState(workDir) {
|
|
26
|
+
try {
|
|
27
|
+
const s = JSON.parse(readFileSync(stateFile(workDir), "utf8"));
|
|
28
|
+
return s && typeof s.region === "string" ? s : null;
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export function writeLoginState(workDir, state) {
|
|
35
|
+
const file = stateFile(workDir);
|
|
36
|
+
mkdirSync(dirname(file), { recursive: true });
|
|
37
|
+
writeFileSync(file, JSON.stringify(state) + "\n");
|
|
38
|
+
}
|
|
39
|
+
export function clearLoginState(workDir) {
|
|
40
|
+
try {
|
|
41
|
+
unlinkSync(stateFile(workDir));
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
// already gone
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=login.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login.js","sourceRoot":"","sources":["../../src/shared/login.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAa1C,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE;QAAE,OAA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2
|
+
* The Tripo API key as ue-mcp's plugin secret store holds it.
|
|
3
|
+
*
|
|
4
|
+
* The manifest declares TRIPO_API_KEY under `secrets:`, so ue-mcp keeps the
|
|
5
|
+
* value per user and puts it in the server's environment, where the pinned
|
|
6
|
+
* tripo-cli reads it. Task code reaches the store through `this.secrets`,
|
|
7
|
+
* which ue-mcp sets on the plugin's task classes. A value never leaves this
|
|
8
|
+
* module: callers see only whether a key is set and where it comes from.
|
|
9
|
+
*/
|
|
10
|
+
export declare const KEY_NAME = "TRIPO_API_KEY";
|
|
11
|
+
export interface SecretStatus {
|
|
12
|
+
name: string;
|
|
13
|
+
set: boolean;
|
|
14
|
+
/** `env` when the user's own environment variable holds it, `store` when ue-mcp does. */
|
|
15
|
+
source: "env" | "store" | null;
|
|
16
|
+
}
|
|
17
|
+
/** The part of ue-mcp's `this.secrets` the plugin uses. */
|
|
18
|
+
export interface SecretStore {
|
|
19
|
+
set(name: string, value: string): Promise<void>;
|
|
20
|
+
clear(name: string): Promise<void>;
|
|
21
|
+
status(name: string): SecretStatus;
|
|
22
|
+
}
|
|
23
|
+
/** The task's secret store, or a clear error on a ue-mcp too old to have one. */
|
|
24
|
+
export declare function secretsOf(task: object): SecretStore;
|
|
25
|
+
/** The key's status: whether it is set and from where, never the value. */
|
|
26
|
+
export declare function keyStatus(task: object): {
|
|
27
|
+
set: boolean;
|
|
28
|
+
source: "env" | "store" | null;
|
|
29
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Tripo API key as ue-mcp's plugin secret store holds it.
|
|
3
|
+
*
|
|
4
|
+
* The manifest declares TRIPO_API_KEY under `secrets:`, so ue-mcp keeps the
|
|
5
|
+
* value per user and puts it in the server's environment, where the pinned
|
|
6
|
+
* tripo-cli reads it. Task code reaches the store through `this.secrets`,
|
|
7
|
+
* which ue-mcp sets on the plugin's task classes. A value never leaves this
|
|
8
|
+
* module: callers see only whether a key is set and where it comes from.
|
|
9
|
+
*/
|
|
10
|
+
export const KEY_NAME = "TRIPO_API_KEY";
|
|
11
|
+
/** The task's secret store, or a clear error on a ue-mcp too old to have one. */
|
|
12
|
+
export function secretsOf(task) {
|
|
13
|
+
const store = task.secrets;
|
|
14
|
+
if (!store) {
|
|
15
|
+
throw new Error("This ue-mcp has no plugin secret store. Update ue-mcp with `npx ue-mcp update`, or set TRIPO_API_KEY in the server environment.");
|
|
16
|
+
}
|
|
17
|
+
return store;
|
|
18
|
+
}
|
|
19
|
+
/** The key's status: whether it is set and from where, never the value. */
|
|
20
|
+
export function keyStatus(task) {
|
|
21
|
+
const s = secretsOf(task).status(KEY_NAME);
|
|
22
|
+
return { set: s.set, source: s.source };
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=secrets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../src/shared/secrets.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC;AAgBxC,iFAAiF;AACjF,MAAM,UAAU,SAAS,CAAC,IAAY;IACpC,MAAM,KAAK,GAAI,IAAkC,CAAC,OAAO,CAAC;IAC1D,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,iIAAiI,CAAC,CAAC;IACrJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,SAAS,CAAC,IAAY;IACpC,MAAM,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC3C,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tripo.auth_status - whether a Tripo API key is set (and from where) and the
|
|
3
|
+
* account Tripo calls use. Signed out is a result, not an error. App-only:
|
|
4
|
+
* the settings view calls it.
|
|
5
|
+
*/
|
|
6
|
+
import { UeMcpTask, type TaskResult } from "ue-mcp/task";
|
|
7
|
+
export default class AuthStatus extends UeMcpTask<Record<string, never>> {
|
|
8
|
+
get taskName(): string;
|
|
9
|
+
execute(): Promise<TaskResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tripo.auth_status - whether a Tripo API key is set (and from where) and the
|
|
3
|
+
* account Tripo calls use. Signed out is a result, not an error. App-only:
|
|
4
|
+
* the settings view calls it.
|
|
5
|
+
*/
|
|
6
|
+
import { UeMcpTask } from "ue-mcp/task";
|
|
7
|
+
import { authStatus } from "../shared/auth.js";
|
|
8
|
+
export default class AuthStatus extends UeMcpTask {
|
|
9
|
+
get taskName() { return "tripo.auth_status"; }
|
|
10
|
+
async execute() {
|
|
11
|
+
return { success: true, data: { ...(await authStatus(this, this.ctx?.project?.projectDir)) } };
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=AuthStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthStatus.js","sourceRoot":"","sources":["../../src/tasks/AuthStatus.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,SAAS,EAAmB,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,SAAgC;IACtE,IAAI,QAAQ,KAAa,OAAO,mBAAmB,CAAC,CAAC,CAAC;IAEtD,KAAK,CAAC,OAAO;QACX,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,GAAG,CAAC,MAAM,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,EAAE,EAAE,CAAC;IACjG,CAAC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tripo.clear_key - remove the Tripo API key saved through ue-mcp. A
|
|
3
|
+
* TRIPO_API_KEY the user set in the environment is left alone and still
|
|
4
|
+
* applies. Answers with the status afterwards. App-only: the settings view
|
|
5
|
+
* calls it.
|
|
6
|
+
*/
|
|
7
|
+
import { UeMcpTask, type TaskResult } from "ue-mcp/task";
|
|
8
|
+
export default class ClearKey extends UeMcpTask<Record<string, never>> {
|
|
9
|
+
get taskName(): string;
|
|
10
|
+
execute(): Promise<TaskResult>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tripo.clear_key - remove the Tripo API key saved through ue-mcp. A
|
|
3
|
+
* TRIPO_API_KEY the user set in the environment is left alone and still
|
|
4
|
+
* applies. Answers with the status afterwards. App-only: the settings view
|
|
5
|
+
* calls it.
|
|
6
|
+
*/
|
|
7
|
+
import { UeMcpTask } from "ue-mcp/task";
|
|
8
|
+
import { authStatus } from "../shared/auth.js";
|
|
9
|
+
import { KEY_NAME, secretsOf } from "../shared/secrets.js";
|
|
10
|
+
export default class ClearKey extends UeMcpTask {
|
|
11
|
+
get taskName() { return "tripo.clear_key"; }
|
|
12
|
+
async execute() {
|
|
13
|
+
await secretsOf(this).clear(KEY_NAME);
|
|
14
|
+
return { success: true, data: { ...(await authStatus(this, this.ctx?.project?.projectDir)) } };
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ClearKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClearKey.js","sourceRoot":"","sources":["../../src/tasks/ClearKey.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,SAAS,EAAmB,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAE3D,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,SAAgC;IACpE,IAAI,QAAQ,KAAa,OAAO,iBAAiB,CAAC,CAAC,CAAC;IAEpD,KAAK,CAAC,OAAO;QACX,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACtC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,GAAG,CAAC,MAAM,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,EAAE,EAAE,CAAC;IACjG,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tripo.login_poll - finish or check the sign-in login_start began.
|
|
3
|
+
*
|
|
4
|
+
* Re-runs `tripo login --region <r> --no-wait`: with the parked grant it
|
|
5
|
+
* checks once and saves the key when the human approved (status=logged_in),
|
|
6
|
+
* or reports status=pending with the same code. A denied or expired grant
|
|
7
|
+
* exits non-zero.
|
|
8
|
+
*/
|
|
9
|
+
import { UeMcpTask, type TaskResult } from "ue-mcp/task";
|
|
10
|
+
export default class LoginPoll extends UeMcpTask<Record<string, never>> {
|
|
11
|
+
get taskName(): string;
|
|
12
|
+
execute(): Promise<TaskResult>;
|
|
13
|
+
private check;
|
|
14
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tripo.login_poll - finish or check the sign-in login_start began.
|
|
3
|
+
*
|
|
4
|
+
* Re-runs `tripo login --region <r> --no-wait`: with the parked grant it
|
|
5
|
+
* checks once and saves the key when the human approved (status=logged_in),
|
|
6
|
+
* or reports status=pending with the same code. A denied or expired grant
|
|
7
|
+
* exits non-zero.
|
|
8
|
+
*/
|
|
9
|
+
import { UeMcpTask } from "ue-mcp/task";
|
|
10
|
+
import { runCli, withAddedFlags, workDir } from "../shared/cli.js";
|
|
11
|
+
import { clearLoginState, readLoginState } from "../shared/login.js";
|
|
12
|
+
export default class LoginPoll extends UeMcpTask {
|
|
13
|
+
get taskName() { return "tripo.login_poll"; }
|
|
14
|
+
async execute() {
|
|
15
|
+
const dir = workDir(this.ctx?.project?.projectDir);
|
|
16
|
+
return { success: true, data: await this.check(dir) };
|
|
17
|
+
}
|
|
18
|
+
async check(dir) {
|
|
19
|
+
const saved = readLoginState(dir);
|
|
20
|
+
if (!saved)
|
|
21
|
+
return { state: "error", message: "No sign-in is in progress. Call login_start first." };
|
|
22
|
+
if (saved.completed) {
|
|
23
|
+
clearLoginState(dir);
|
|
24
|
+
return { state: "done" };
|
|
25
|
+
}
|
|
26
|
+
if (Date.now() >= saved.expiresAt) {
|
|
27
|
+
clearLoginState(dir);
|
|
28
|
+
return { state: "expired", message: "The code expired. Call login_start for a new one." };
|
|
29
|
+
}
|
|
30
|
+
const args = withAddedFlags(["login", "--region", saved.region, "--no-wait"]);
|
|
31
|
+
const r = await runCli(args, { cwd: dir, timeoutMs: 60_000 });
|
|
32
|
+
if (r.exitCode === 0 && !r.timedOut) {
|
|
33
|
+
const j = (r.json ?? {});
|
|
34
|
+
if (j.status === "logged_in") {
|
|
35
|
+
clearLoginState(dir);
|
|
36
|
+
return { state: "done" };
|
|
37
|
+
}
|
|
38
|
+
if (j.status === "pending") {
|
|
39
|
+
if (j.user_code && saved.userCode && j.user_code !== saved.userCode) {
|
|
40
|
+
clearLoginState(dir);
|
|
41
|
+
return { state: "expired", message: "The code expired. Call login_start for a new one." };
|
|
42
|
+
}
|
|
43
|
+
return { state: "pending" };
|
|
44
|
+
}
|
|
45
|
+
return { state: "error", message: `tripo login returned an unexpected result: ${r.stdout.trim().slice(0, 300) || "no output"}` };
|
|
46
|
+
}
|
|
47
|
+
const error = (r.json ?? {}).error ?? (r.timedOut ? "tripo login timed out" : `tripo login exited ${r.exitCode}`);
|
|
48
|
+
if (/expired/i.test(error)) {
|
|
49
|
+
clearLoginState(dir);
|
|
50
|
+
return { state: "expired", message: "The code expired. Call login_start for a new one." };
|
|
51
|
+
}
|
|
52
|
+
if (/denied/i.test(error)) {
|
|
53
|
+
clearLoginState(dir);
|
|
54
|
+
return { state: "error", message: "Authorization was denied. Call login_start to try again." };
|
|
55
|
+
}
|
|
56
|
+
// Network and service errors leave the grant parked, so a later poll can still finish it.
|
|
57
|
+
return { state: "error", message: error };
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=LoginPoll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoginPoll.js","sourceRoot":"","sources":["../../src/tasks/LoginPoll.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,SAAS,EAAmB,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIrE,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,SAAgC;IACrE,IAAI,QAAQ,KAAa,OAAO,kBAAkB,CAAC,CAAC,CAAC;IAErD,KAAK,CAAC,OAAO;QACX,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QACnD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;IACxD,CAAC;IAEO,KAAK,CAAC,KAAK,CAAC,GAAW;QAC7B,MAAM,KAAK,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;QAClC,IAAI,CAAC,KAAK;YAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,oDAAoD,EAAE,CAAC;QACrG,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;YACpB,eAAe,CAAC,GAAG,CAAC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A8C,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,WAAW,EAAE,EAAE,CAAC;QACnI,CAAC;QAED,MAAM,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAwB,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1I,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3B,eAAe,CAAC,GAAG,CAAC,CAAC;YACrB,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,mDAAmD,EAAE,CAAC;QAC5F,CAAC;QACD,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1B,eAAe,CAAC,GAAG,CAAC,CAAC;YACrB,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,0DAA0D,EAAE,CAAC;QACjG,CAAC;QACD,0FAA0F;QAC1F,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5C,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tripo.login_start - begin Tripo's browser device sign-in without blocking.
|
|
3
|
+
*
|
|
4
|
+
* Runs `tripo login --region <r> --no-wait`, which prints the verification URL
|
|
5
|
+
* and one-time code and exits. A sign-in already begun and still valid resumes
|
|
6
|
+
* with the same code.
|
|
7
|
+
*/
|
|
8
|
+
import { UeMcpTask, type TaskResult } from "ue-mcp/task";
|
|
9
|
+
interface Options {
|
|
10
|
+
region?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const POLL_AFTER_MS = 5000;
|
|
13
|
+
export default class LoginStart extends UeMcpTask<Options> {
|
|
14
|
+
get taskName(): string;
|
|
15
|
+
execute(): Promise<TaskResult>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tripo.login_start - begin Tripo's browser device sign-in without blocking.
|
|
3
|
+
*
|
|
4
|
+
* Runs `tripo login --region <r> --no-wait`, which prints the verification URL
|
|
5
|
+
* and one-time code and exits. A sign-in already begun and still valid resumes
|
|
6
|
+
* with the same code.
|
|
7
|
+
*/
|
|
8
|
+
import { UeMcpTask } from "ue-mcp/task";
|
|
9
|
+
import { failureMessage, runCli, withAddedFlags, workDir } from "../shared/cli.js";
|
|
10
|
+
import { parseRegion, writeLoginState } from "../shared/login.js";
|
|
11
|
+
export const POLL_AFTER_MS = 5000;
|
|
12
|
+
export default class LoginStart extends UeMcpTask {
|
|
13
|
+
get taskName() { return "tripo.login_start"; }
|
|
14
|
+
async execute() {
|
|
15
|
+
const region = parseRegion(this.options.region);
|
|
16
|
+
const dir = workDir(this.ctx?.project?.projectDir);
|
|
17
|
+
const args = withAddedFlags(["login", "--region", region, "--no-wait"]);
|
|
18
|
+
const r = await runCli(args, { cwd: dir, timeoutMs: 60_000 });
|
|
19
|
+
if (r.exitCode !== 0 || r.timedOut)
|
|
20
|
+
throw new Error(failureMessage(args, r, 60_000));
|
|
21
|
+
const j = (r.json ?? {});
|
|
22
|
+
if (j.status === "logged_in") {
|
|
23
|
+
// A sign-in begun earlier was approved in the meantime; login_poll reports done.
|
|
24
|
+
writeLoginState(dir, { region, userCode: "", expiresAt: Date.now(), completed: true });
|
|
25
|
+
return { success: true, data: { url: "", pollAfterMs: 0 } };
|
|
26
|
+
}
|
|
27
|
+
if (j.status !== "pending" || !j.user_code || !j.verification_url) {
|
|
28
|
+
throw new Error(`tripo login returned an unexpected result: ${r.stdout.trim().slice(0, 300) || "no output"}`);
|
|
29
|
+
}
|
|
30
|
+
const expiresAt = Date.now() + (j.expires_in && j.expires_in > 0 ? j.expires_in : 900) * 1000;
|
|
31
|
+
writeLoginState(dir, { region, userCode: j.user_code, expiresAt });
|
|
32
|
+
return {
|
|
33
|
+
success: true,
|
|
34
|
+
data: {
|
|
35
|
+
url: j.verification_url,
|
|
36
|
+
code: j.user_code,
|
|
37
|
+
expiresAt: new Date(expiresAt).toISOString(),
|
|
38
|
+
pollAfterMs: POLL_AFTER_MS,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=LoginStart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoginStart.js","sourceRoot":"","sources":["../../src/tasks/LoginStart.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,SAAS,EAAmB,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAalE,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,SAAkB;IACxD,IAAI,QAAQ,KAAa,OAAO,mBAAmB,CAAC,CAAC,CAAC;IAEtD,KAAK,CAAC,OAAO;QACX,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAChD,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QACnD,MAAM,IAAI,GAAG,cAAc,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;QACxE,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;QAC9D,IAAI,CAAC,CAAC,QA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B;gBACvB,IAAI,EAAE,CAAC,CAAC,SAAS;gBACjB,SAAS,EAAE,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE;gBAC5C,WAAW,EAAE,aAAa;aAC3B;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tripo.set_key - save a Tripo API key for this user through ue-mcp's secret
|
|
3
|
+
* store, which puts it in the server's environment for the CLI at once.
|
|
4
|
+
* Answers with the status afterwards, never the key. App-only: the settings
|
|
5
|
+
* view calls it.
|
|
6
|
+
*/
|
|
7
|
+
import { UeMcpTask, type TaskResult } from "ue-mcp/task";
|
|
8
|
+
interface Options {
|
|
9
|
+
apiKey?: string;
|
|
10
|
+
}
|
|
11
|
+
export default class SetKey extends UeMcpTask<Options> {
|
|
12
|
+
get taskName(): string;
|
|
13
|
+
execute(): Promise<TaskResult>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tripo.set_key - save a Tripo API key for this user through ue-mcp's secret
|
|
3
|
+
* store, which puts it in the server's environment for the CLI at once.
|
|
4
|
+
* Answers with the status afterwards, never the key. App-only: the settings
|
|
5
|
+
* view calls it.
|
|
6
|
+
*/
|
|
7
|
+
import { UeMcpTask } from "ue-mcp/task";
|
|
8
|
+
import { authStatus } from "../shared/auth.js";
|
|
9
|
+
import { KEY_NAME, secretsOf } from "../shared/secrets.js";
|
|
10
|
+
export default class SetKey extends UeMcpTask {
|
|
11
|
+
get taskName() { return "tripo.set_key"; }
|
|
12
|
+
async execute() {
|
|
13
|
+
const value = typeof this.options.apiKey === "string" ? this.options.apiKey.trim() : "";
|
|
14
|
+
if (!value)
|
|
15
|
+
throw new Error("Enter a Tripo API key. Keys are created at https://developers.tripo3d.ai/en/keys.");
|
|
16
|
+
await secretsOf(this).set(KEY_NAME, value);
|
|
17
|
+
return { success: true, data: { ...(await authStatus(this, this.ctx?.project?.projectDir)) } };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=SetKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetKey.js","sourceRoot":"","sources":["../../src/tasks/SetKey.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,SAAS,EAAmB,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAM3D,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,SAAkB;IACpD,IAAI,QAAQ,KAAa,OAAO,eAAe,CAAC,CAAC,CAAC;IAElD,KAAK,CAAC,OAAO;QACX,MAAM,KAAK,GAAG,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACxF,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,mFAAmF,CAAC,CAAC;QACjH,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC3C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,GAAG,CAAC,MAAM,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,EAAE,EAAE,CAAC;IACjG,CAAC;CACF"}
|