@getmateo/cli 0.0.0-stage → 0.19.7
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/LICENSE +211 -0
- package/bin/mateo +3 -0
- package/dist/classify.d.ts +19 -0
- package/dist/classify.js +49 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.js +143 -0
- package/dist/commands/agent/archive.d.ts +27 -0
- package/dist/commands/agent/archive.js +88 -0
- package/dist/commands/agent/attach.d.ts +8 -0
- package/dist/commands/agent/attach.js +160 -0
- package/dist/commands/agent/delete.d.ts +15 -0
- package/dist/commands/agent/delete.js +104 -0
- package/dist/commands/agent/detach.d.ts +16 -0
- package/dist/commands/agent/detach.js +44 -0
- package/dist/commands/agent/import.d.ts +14 -0
- package/dist/commands/agent/import.js +108 -0
- package/dist/commands/agent/index.d.ts +3 -0
- package/dist/commands/agent/index.js +56 -0
- package/dist/commands/agent/inspect.d.ts +15 -0
- package/dist/commands/agent/inspect.js +196 -0
- package/dist/commands/agent/logs.d.ts +39 -0
- package/dist/commands/agent/logs.js +369 -0
- package/dist/commands/agent/ls.d.ts +61 -0
- package/dist/commands/agent/ls.js +201 -0
- package/dist/commands/agent/mode.d.ts +18 -0
- package/dist/commands/agent/mode.js +100 -0
- package/dist/commands/agent/open.d.ts +11 -0
- package/dist/commands/agent/open.js +74 -0
- package/dist/commands/agent/reload.d.ts +25 -0
- package/dist/commands/agent/reload.js +64 -0
- package/dist/commands/agent/run.d.ts +77 -0
- package/dist/commands/agent/run.js +556 -0
- package/dist/commands/agent/send.d.ts +21 -0
- package/dist/commands/agent/send.js +187 -0
- package/dist/commands/agent/stop.d.ts +17 -0
- package/dist/commands/agent/stop.js +102 -0
- package/dist/commands/agent/update.d.ts +51 -0
- package/dist/commands/agent/update.js +173 -0
- package/dist/commands/agent/wait.d.ts +31 -0
- package/dist/commands/agent/wait.js +161 -0
- package/dist/commands/clone.d.ts +17 -0
- package/dist/commands/clone.js +59 -0
- package/dist/commands/daemon/config.d.ts +3 -0
- package/dist/commands/daemon/config.js +103 -0
- package/dist/commands/daemon/index.d.ts +3 -0
- package/dist/commands/daemon/index.js +28 -0
- package/dist/commands/daemon/local-daemon.d.ts +13 -0
- package/dist/commands/daemon/local-daemon.js +105 -0
- package/dist/commands/daemon/pair.d.ts +30 -0
- package/dist/commands/daemon/pair.js +145 -0
- package/dist/commands/daemon/reload.d.ts +12 -0
- package/dist/commands/daemon/reload.js +44 -0
- package/dist/commands/daemon/restart.d.ts +29 -0
- package/dist/commands/daemon/restart.js +169 -0
- package/dist/commands/daemon/runtime-toolchain.d.ts +6 -0
- package/dist/commands/daemon/runtime-toolchain.js +87 -0
- package/dist/commands/daemon/set-password.d.ts +17 -0
- package/dist/commands/daemon/set-password.js +89 -0
- package/dist/commands/daemon/start.d.ts +20 -0
- package/dist/commands/daemon/start.js +52 -0
- package/dist/commands/daemon/status.d.ts +13 -0
- package/dist/commands/daemon/status.js +119 -0
- package/dist/commands/daemon/stop.d.ts +20 -0
- package/dist/commands/daemon/stop.js +58 -0
- package/dist/commands/fleet/index.d.ts +4 -0
- package/dist/commands/fleet/index.js +57 -0
- package/dist/commands/heartbeat/index.d.ts +3 -0
- package/dist/commands/heartbeat/index.js +139 -0
- package/dist/commands/hooks.d.ts +19 -0
- package/dist/commands/hooks.js +89 -0
- package/dist/commands/hub/authority.d.ts +17 -0
- package/dist/commands/hub/authority.js +18 -0
- package/dist/commands/hub/connect.d.ts +24 -0
- package/dist/commands/hub/connect.js +44 -0
- package/dist/commands/hub/credentials.d.ts +21 -0
- package/dist/commands/hub/credentials.js +143 -0
- package/dist/commands/hub/daemon-client.d.ts +41 -0
- package/dist/commands/hub/daemon-client.js +14 -0
- package/dist/commands/hub/deploy-bundle.d.ts +16 -0
- package/dist/commands/hub/deploy-bundle.js +248 -0
- package/dist/commands/hub/deploy-triggers.d.ts +6 -0
- package/dist/commands/hub/deploy-triggers.js +116 -0
- package/dist/commands/hub/deploy.d.ts +50 -0
- package/dist/commands/hub/deploy.js +159 -0
- package/dist/commands/hub/disconnect.d.ts +17 -0
- package/dist/commands/hub/disconnect.js +24 -0
- package/dist/commands/hub/error.d.ts +6 -0
- package/dist/commands/hub/error.js +9 -0
- package/dist/commands/hub/export.d.ts +28 -0
- package/dist/commands/hub/export.js +80 -0
- package/dist/commands/hub/help.d.ts +3 -0
- package/dist/commands/hub/help.js +5 -0
- package/dist/commands/hub/hub-client/index.d.ts +22 -0
- package/dist/commands/hub/hub-client/index.js +135 -0
- package/dist/commands/hub/hub-client/internal/contracts.d.ts +126 -0
- package/dist/commands/hub/hub-client/internal/contracts.js +85 -0
- package/dist/commands/hub/hub-client/internal/problem.d.ts +3 -0
- package/dist/commands/hub/hub-client/internal/problem.js +85 -0
- package/dist/commands/hub/hub-client/internal/transport.d.ts +15 -0
- package/dist/commands/hub/hub-client/internal/transport.js +30 -0
- package/dist/commands/hub/index.d.ts +20 -0
- package/dist/commands/hub/index.js +94 -0
- package/dist/commands/hub/init-plan.d.ts +33 -0
- package/dist/commands/hub/init-plan.js +94 -0
- package/dist/commands/hub/init.d.ts +37 -0
- package/dist/commands/hub/init.js +525 -0
- package/dist/commands/hub/login-flow.d.ts +34 -0
- package/dist/commands/hub/login-flow.js +78 -0
- package/dist/commands/hub/login.d.ts +23 -0
- package/dist/commands/hub/login.js +40 -0
- package/dist/commands/hub/logout.d.ts +33 -0
- package/dist/commands/hub/logout.js +71 -0
- package/dist/commands/hub/origin.d.ts +2 -0
- package/dist/commands/hub/origin.js +27 -0
- package/dist/commands/hub/permissions.d.ts +22 -0
- package/dist/commands/hub/permissions.js +61 -0
- package/dist/commands/hub/projects.d.ts +24 -0
- package/dist/commands/hub/projects.js +49 -0
- package/dist/commands/hub/reporter.d.ts +10 -0
- package/dist/commands/hub/reporter.js +11 -0
- package/dist/commands/hub/starter-agent-runtime.d.ts +37 -0
- package/dist/commands/hub/starter-agent-runtime.js +49 -0
- package/dist/commands/hub/starter-trigger.d.ts +10 -0
- package/dist/commands/hub/starter-trigger.js +30 -0
- package/dist/commands/hub/status-output.d.ts +13 -0
- package/dist/commands/hub/status-output.js +30 -0
- package/dist/commands/onboard.d.ts +14 -0
- package/dist/commands/onboard.js +169 -0
- package/dist/commands/open.d.ts +4 -0
- package/dist/commands/open.js +91 -0
- package/dist/commands/permit/allow.d.ts +38 -0
- package/dist/commands/permit/allow.js +138 -0
- package/dist/commands/permit/deny.d.ts +13 -0
- package/dist/commands/permit/deny.js +100 -0
- package/dist/commands/permit/index.d.ts +3 -0
- package/dist/commands/permit/index.js +27 -0
- package/dist/commands/permit/ls.d.ts +21 -0
- package/dist/commands/permit/ls.js +54 -0
- package/dist/commands/plugin/index.d.ts +23 -0
- package/dist/commands/plugin/index.js +174 -0
- package/dist/commands/plugin/scaffold.d.ts +6 -0
- package/dist/commands/plugin/scaffold.js +212 -0
- package/dist/commands/plugin/shared.d.ts +7 -0
- package/dist/commands/plugin/shared.js +34 -0
- package/dist/commands/plugin/update.d.ts +37 -0
- package/dist/commands/plugin/update.js +58 -0
- package/dist/commands/project/create.d.ts +10 -0
- package/dist/commands/project/create.js +43 -0
- package/dist/commands/project/delete.d.ts +9 -0
- package/dist/commands/project/delete.js +35 -0
- package/dist/commands/project/index.d.ts +3 -0
- package/dist/commands/project/index.js +28 -0
- package/dist/commands/project/ls.d.ts +5 -0
- package/dist/commands/project/ls.js +19 -0
- package/dist/commands/project/rename.d.ts +15 -0
- package/dist/commands/project/rename.js +52 -0
- package/dist/commands/project/shared.d.ts +11 -0
- package/dist/commands/project/shared.js +18 -0
- package/dist/commands/provider/diagnostic.d.ts +12 -0
- package/dist/commands/provider/diagnostic.js +31 -0
- package/dist/commands/provider/index.d.ts +3 -0
- package/dist/commands/provider/index.js +21 -0
- package/dist/commands/provider/ls.d.ts +19 -0
- package/dist/commands/provider/ls.js +46 -0
- package/dist/commands/provider/models.d.ts +20 -0
- package/dist/commands/provider/models.js +53 -0
- package/dist/commands/schedule/create.d.ts +19 -0
- package/dist/commands/schedule/create.js +41 -0
- package/dist/commands/schedule/delete.d.ts +10 -0
- package/dist/commands/schedule/delete.js +32 -0
- package/dist/commands/schedule/index.d.ts +3 -0
- package/dist/commands/schedule/index.js +66 -0
- package/dist/commands/schedule/inspect.d.ts +6 -0
- package/dist/commands/schedule/inspect.js +27 -0
- package/dist/commands/schedule/logs.d.ts +6 -0
- package/dist/commands/schedule/logs.js +24 -0
- package/dist/commands/schedule/ls.d.ts +5 -0
- package/dist/commands/schedule/ls.js +25 -0
- package/dist/commands/schedule/pause.d.ts +5 -0
- package/dist/commands/schedule/pause.js +24 -0
- package/dist/commands/schedule/resume.d.ts +5 -0
- package/dist/commands/schedule/resume.js +24 -0
- package/dist/commands/schedule/run-once.d.ts +5 -0
- package/dist/commands/schedule/run-once.js +24 -0
- package/dist/commands/schedule/schema.d.ts +21 -0
- package/dist/commands/schedule/schema.js +67 -0
- package/dist/commands/schedule/shared.d.ts +61 -0
- package/dist/commands/schedule/shared.js +360 -0
- package/dist/commands/schedule/types.d.ts +165 -0
- package/dist/commands/schedule/types.js +2 -0
- package/dist/commands/schedule/update.d.ts +19 -0
- package/dist/commands/schedule/update.js +40 -0
- package/dist/commands/script/index.d.ts +3 -0
- package/dist/commands/script/index.js +19 -0
- package/dist/commands/script/ls.d.ts +6 -0
- package/dist/commands/script/ls.js +20 -0
- package/dist/commands/script/schema.d.ts +5 -0
- package/dist/commands/script/schema.js +13 -0
- package/dist/commands/script/shared.d.ts +12 -0
- package/dist/commands/script/shared.js +59 -0
- package/dist/commands/script/start.d.ts +6 -0
- package/dist/commands/script/start.js +23 -0
- package/dist/commands/script/stop.d.ts +6 -0
- package/dist/commands/script/stop.js +23 -0
- package/dist/commands/terminal/capture.d.ts +10 -0
- package/dist/commands/terminal/capture.js +67 -0
- package/dist/commands/terminal/create.d.ts +11 -0
- package/dist/commands/terminal/create.js +29 -0
- package/dist/commands/terminal/index.d.ts +3 -0
- package/dist/commands/terminal/index.js +51 -0
- package/dist/commands/terminal/kill.d.ts +6 -0
- package/dist/commands/terminal/kill.js +36 -0
- package/dist/commands/terminal/ls.d.ts +11 -0
- package/dist/commands/terminal/ls.js +21 -0
- package/dist/commands/terminal/schema.d.ts +10 -0
- package/dist/commands/terminal/schema.js +17 -0
- package/dist/commands/terminal/send-keys.d.ts +7 -0
- package/dist/commands/terminal/send-keys.js +44 -0
- package/dist/commands/terminal/shared.d.ts +13 -0
- package/dist/commands/terminal/shared.js +64 -0
- package/dist/commands/terminal/upgrade-hosts.d.ts +11 -0
- package/dist/commands/terminal/upgrade-hosts.js +46 -0
- package/dist/commands/usage/index.d.ts +29 -0
- package/dist/commands/usage/index.js +62 -0
- package/dist/commands/usage/presentation.d.ts +4 -0
- package/dist/commands/usage/presentation.js +146 -0
- package/dist/commands/workspace/archive.d.ts +13 -0
- package/dist/commands/workspace/archive.js +43 -0
- package/dist/commands/workspace/create.d.ts +50 -0
- package/dist/commands/workspace/create.js +132 -0
- package/dist/commands/workspace/index.d.ts +3 -0
- package/dist/commands/workspace/index.js +50 -0
- package/dist/commands/workspace/ls.d.ts +11 -0
- package/dist/commands/workspace/ls.js +33 -0
- package/dist/commands/workspace/rename.d.ts +23 -0
- package/dist/commands/workspace/rename.js +63 -0
- package/dist/commands/workspace/setup.d.ts +12 -0
- package/dist/commands/workspace/setup.js +41 -0
- package/dist/commands/workspace/shared.d.ts +15 -0
- package/dist/commands/workspace/shared.js +29 -0
- package/dist/commands/worktree/archive.d.ts +21 -0
- package/dist/commands/worktree/archive.js +108 -0
- package/dist/commands/worktree/create-input.d.ts +15 -0
- package/dist/commands/worktree/create-input.js +56 -0
- package/dist/commands/worktree/create.d.ts +11 -0
- package/dist/commands/worktree/create.js +50 -0
- package/dist/commands/worktree/index.d.ts +3 -0
- package/dist/commands/worktree/index.js +29 -0
- package/dist/commands/worktree/ls.d.ts +18 -0
- package/dist/commands/worktree/ls.js +73 -0
- package/dist/commands/worktree/repository-directory.d.ts +6 -0
- package/dist/commands/worktree/repository-directory.js +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -0
- package/dist/output/index.d.ts +45 -0
- package/dist/output/index.js +47 -0
- package/dist/output/json.d.ts +11 -0
- package/dist/output/json.js +37 -0
- package/dist/output/pairing.d.ts +9 -0
- package/dist/output/pairing.js +36 -0
- package/dist/output/quiet.d.ts +9 -0
- package/dist/output/quiet.js +22 -0
- package/dist/output/render.d.ts +15 -0
- package/dist/output/render.js +84 -0
- package/dist/output/table.d.ts +13 -0
- package/dist/output/table.js +135 -0
- package/dist/output/types.d.ts +73 -0
- package/dist/output/types.js +8 -0
- package/dist/output/with-output.d.ts +43 -0
- package/dist/output/with-output.js +85 -0
- package/dist/output/yaml.d.ts +11 -0
- package/dist/output/yaml.js +38 -0
- package/dist/run.d.ts +14 -0
- package/dist/run.js +62 -0
- package/dist/ssh/ssh-tunnel.d.ts +2 -0
- package/dist/ssh/ssh-tunnel.js +3 -0
- package/dist/utils/agent-directory.d.ts +31 -0
- package/dist/utils/agent-directory.js +48 -0
- package/dist/utils/caller-agent.d.ts +14 -0
- package/dist/utils/caller-agent.js +16 -0
- package/dist/utils/client-id.d.ts +2 -0
- package/dist/utils/client-id.js +31 -0
- package/dist/utils/client.d.ts +57 -0
- package/dist/utils/client.js +360 -0
- package/dist/utils/command-options.d.ts +8 -0
- package/dist/utils/command-options.js +49 -0
- package/dist/utils/daemon-target.d.ts +13 -0
- package/dist/utils/daemon-target.js +51 -0
- package/dist/utils/duration.d.ts +7 -0
- package/dist/utils/duration.js +39 -0
- package/dist/utils/errors.d.ts +5 -0
- package/dist/utils/errors.js +10 -0
- package/dist/utils/paths.d.ts +12 -0
- package/dist/utils/paths.js +22 -0
- package/dist/utils/provider-model.d.ts +11 -0
- package/dist/utils/provider-model.js +49 -0
- package/dist/utils/timeline.d.ts +12 -0
- package/dist/utils/timeline.js +16 -0
- package/dist/utils/wait-for-stop.d.ts +2 -0
- package/dist/utils/wait-for-stop.js +28 -0
- package/dist/version.d.ts +5 -0
- package/dist/version.js +24 -0
- package/package.json +58 -4
- package/README.md +0 -3
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export function resolveProviderAndModel(options) {
|
|
2
|
+
const providerInput = options.provider?.trim() || options.defaultProvider;
|
|
3
|
+
const modelInput = options.model?.trim();
|
|
4
|
+
if (!providerInput) {
|
|
5
|
+
const error = {
|
|
6
|
+
code: "MISSING_PROVIDER",
|
|
7
|
+
message: "Provider is required",
|
|
8
|
+
details: "Pass --provider <provider> or --provider <provider>/<model>. Use `mateo provider ls` to see providers and `mateo provider models <provider>` to see models.",
|
|
9
|
+
};
|
|
10
|
+
throw error;
|
|
11
|
+
}
|
|
12
|
+
if (options.model !== undefined && !modelInput) {
|
|
13
|
+
const error = {
|
|
14
|
+
code: "INVALID_MODEL",
|
|
15
|
+
message: "--model cannot be empty",
|
|
16
|
+
};
|
|
17
|
+
throw error;
|
|
18
|
+
}
|
|
19
|
+
const slashIndex = providerInput.indexOf("/");
|
|
20
|
+
if (slashIndex === -1) {
|
|
21
|
+
return {
|
|
22
|
+
provider: providerInput,
|
|
23
|
+
model: modelInput,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const provider = providerInput.slice(0, slashIndex).trim();
|
|
27
|
+
const modelFromProvider = providerInput.slice(slashIndex + 1).trim();
|
|
28
|
+
if (!provider || !modelFromProvider) {
|
|
29
|
+
const error = {
|
|
30
|
+
code: "INVALID_PROVIDER",
|
|
31
|
+
message: "Invalid --provider value",
|
|
32
|
+
details: "Use --provider <provider> or --provider <provider>/<model>",
|
|
33
|
+
};
|
|
34
|
+
throw error;
|
|
35
|
+
}
|
|
36
|
+
if (modelInput && modelInput !== modelFromProvider) {
|
|
37
|
+
const error = {
|
|
38
|
+
code: "CONFLICTING_MODEL_OPTIONS",
|
|
39
|
+
message: "Conflicting model values provided",
|
|
40
|
+
details: `--provider specifies model ${modelFromProvider}, but --model specifies ${modelInput}`,
|
|
41
|
+
};
|
|
42
|
+
throw error;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
provider,
|
|
46
|
+
model: modelInput ?? modelFromProvider,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=provider-model.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DaemonClient } from "@getmateo/client/internal/daemon-client";
|
|
2
|
+
import type { AgentTimelineItem } from "@getmateo/protocol/agent-types";
|
|
3
|
+
export declare const LIVE_HISTORY_FETCH_TIMEOUT_MS = 2000;
|
|
4
|
+
interface FetchProjectedTimelineItemsInput {
|
|
5
|
+
client: DaemonClient;
|
|
6
|
+
agentId: string;
|
|
7
|
+
timeoutMs?: number;
|
|
8
|
+
sinceTimestampMs?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function fetchProjectedTimelineItems(input: FetchProjectedTimelineItemsInput): Promise<AgentTimelineItem[]>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=timeline.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const LIVE_HISTORY_FETCH_TIMEOUT_MS = 2000;
|
|
2
|
+
export async function fetchProjectedTimelineItems(input) {
|
|
3
|
+
const timeline = await input.client.fetchAgentTimeline(input.agentId, {
|
|
4
|
+
direction: "tail",
|
|
5
|
+
limit: 0,
|
|
6
|
+
projection: "projected",
|
|
7
|
+
timeout: input.timeoutMs,
|
|
8
|
+
});
|
|
9
|
+
let entries = timeline.entries;
|
|
10
|
+
const sinceTimestampMs = input.sinceTimestampMs;
|
|
11
|
+
if (sinceTimestampMs !== undefined) {
|
|
12
|
+
entries = entries.filter((entry) => Date.parse(entry.timestamp) >= sinceTimestampMs);
|
|
13
|
+
}
|
|
14
|
+
return entries.map((entry) => entry.item);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=timeline.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Commands that stream until stopped (`mateo agent logs --follow`, `mateo agent
|
|
2
|
+
// attach`) stop on Ctrl+C, a termination signal, or when the program reading
|
|
3
|
+
// their output closes its end, as `| head` does. A closed reader shows up as
|
|
4
|
+
// EPIPE on the next write to stdout, so the command stops at its next line of
|
|
5
|
+
// output.
|
|
6
|
+
export function waitForStop(signal) {
|
|
7
|
+
return new Promise((resolve) => {
|
|
8
|
+
const stop = () => {
|
|
9
|
+
signal?.removeEventListener("abort", stop);
|
|
10
|
+
process.off("SIGINT", stop);
|
|
11
|
+
process.off("SIGTERM", stop);
|
|
12
|
+
process.stdout.off("error", stopOnClosedStdout);
|
|
13
|
+
resolve();
|
|
14
|
+
};
|
|
15
|
+
const stopOnClosedStdout = (error) => {
|
|
16
|
+
if (error.code === "EPIPE") {
|
|
17
|
+
stop();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
process.on("SIGINT", stop);
|
|
21
|
+
process.on("SIGTERM", stop);
|
|
22
|
+
process.stdout.on("error", stopOnClosedStdout);
|
|
23
|
+
signal?.addEventListener("abort", stop, { once: true });
|
|
24
|
+
if (signal?.aborted)
|
|
25
|
+
stop();
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=wait-for-stop.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type BuildMetadata } from "@getmateo/protocol/build-metadata";
|
|
2
|
+
export declare function resolveCliVersion(moduleUrl?: string): string;
|
|
3
|
+
export declare function resolveCliBuild(moduleUrl?: string): BuildMetadata | null;
|
|
4
|
+
export declare function resolveCliDisplayVersion(moduleUrl?: string): string;
|
|
5
|
+
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
import { buildDisplayVersion, parseBuildMetadata, } from "@getmateo/protocol/build-metadata";
|
|
3
|
+
function readCliPackage(moduleUrl) {
|
|
4
|
+
return createRequire(moduleUrl)("../package.json");
|
|
5
|
+
}
|
|
6
|
+
export function resolveCliVersion(moduleUrl = import.meta.url) {
|
|
7
|
+
const packageJson = readCliPackage(moduleUrl);
|
|
8
|
+
if (typeof packageJson.version === "string" && packageJson.version.trim().length > 0) {
|
|
9
|
+
return packageJson.version.trim();
|
|
10
|
+
}
|
|
11
|
+
throw new Error("Unable to resolve @getmateo/cli version from package.json.");
|
|
12
|
+
}
|
|
13
|
+
export function resolveCliBuild(moduleUrl = import.meta.url) {
|
|
14
|
+
const packageJson = readCliPackage(moduleUrl);
|
|
15
|
+
if (packageJson.mateoBuild === undefined)
|
|
16
|
+
return null;
|
|
17
|
+
return parseBuildMetadata(packageJson.mateoBuild);
|
|
18
|
+
}
|
|
19
|
+
export function resolveCliDisplayVersion(moduleUrl = import.meta.url) {
|
|
20
|
+
const version = resolveCliVersion(moduleUrl);
|
|
21
|
+
const build = resolveCliBuild(moduleUrl);
|
|
22
|
+
return build ? buildDisplayVersion(build) : version;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getmateo/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.19.7",
|
|
4
|
+
"description": "Mateo CLI - control your AI coding agents from the command line",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"bin": {
|
|
7
|
+
"mateo": "bin/mateo"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin",
|
|
11
|
+
"dist",
|
|
12
|
+
"!dist/**/*.map"
|
|
13
|
+
],
|
|
14
|
+
"type": "module",
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"clean": "node ../../scripts/clean-package-dist.mjs",
|
|
20
|
+
"build": "tsc -p tsconfig.json --incremental false",
|
|
21
|
+
"build:clean": "npm run clean && npm run build",
|
|
22
|
+
"prepack": "npm run build:clean",
|
|
23
|
+
"typecheck": "tsgo --noEmit",
|
|
24
|
+
"test": "npm run test:unit && npm run test:local",
|
|
25
|
+
"test:unit": "vitest run src",
|
|
26
|
+
"test:local": "tsx tests/run-all.ts",
|
|
27
|
+
"test:e2e": "npm run test:local",
|
|
28
|
+
"test:e2e:lifecycle": "npx tsx tests/e2e/agent-lifecycle.test.ts"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@clack/prompts": "^1.9.0",
|
|
32
|
+
"@getmateo/client": "0.19.7",
|
|
33
|
+
"@getmateo/protocol": "0.19.7",
|
|
34
|
+
"@getmateo/server": "0.19.7",
|
|
35
|
+
"chalk": "^5.3.0",
|
|
36
|
+
"commander": "^12.0.0",
|
|
37
|
+
"mime-types": "^2.1.35",
|
|
38
|
+
"tree-kill": "^1.2.2",
|
|
39
|
+
"ws": "^8.23.0",
|
|
40
|
+
"yaml": "^2.8.4",
|
|
41
|
+
"zod": "4.6.7"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/mime-types": "^3.0.1",
|
|
45
|
+
"@types/ws": "^8.5.8",
|
|
46
|
+
"tsx": "^4.6.0",
|
|
47
|
+
"typescript": "^5.2.2",
|
|
48
|
+
"vitest": "^4.1.12",
|
|
49
|
+
"zx": "^8.8.5"
|
|
50
|
+
},
|
|
51
|
+
"mateoBuild": {
|
|
52
|
+
"releaseVersion": "0.19.7",
|
|
53
|
+
"buildNumber": "19007001",
|
|
54
|
+
"upstreamVersion": "0.17.4",
|
|
55
|
+
"builtAt": "2026-11-24T18:18:28Z",
|
|
56
|
+
"updateVersion": "2026.1124.65908",
|
|
57
|
+
"sourceCommit": "dd4ac20c40e9fd0b0d07b2bcd47af18cc8f83ede",
|
|
58
|
+
"upstreamCommit": "2b3559b107243306986176b80beb0e779f9fe53e"
|
|
59
|
+
}
|
|
60
|
+
}
|
package/README.md
DELETED