@getmateo/plugin 0.0.0-stage → 0.18.0

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.
Files changed (67) hide show
  1. package/LICENSE +211 -0
  2. package/dist/attachments.d.ts +26 -0
  3. package/dist/attachments.js +17 -0
  4. package/dist/client/buttons.d.ts +64 -0
  5. package/dist/client/buttons.js +2 -0
  6. package/dist/client/client-state.d.ts +15 -0
  7. package/dist/client/client-state.js +32 -0
  8. package/dist/client/contracts.d.ts +299 -0
  9. package/dist/client/contracts.js +2 -0
  10. package/dist/client/host.d.ts +19 -0
  11. package/dist/client/host.js +12 -0
  12. package/dist/client/index.d.ts +39 -0
  13. package/dist/client/index.js +4 -0
  14. package/dist/client/mateo-context.d.ts +9 -0
  15. package/dist/client/mateo-context.js +16 -0
  16. package/dist/client/menu.d.ts +45 -0
  17. package/dist/client/menu.js +2 -0
  18. package/dist/client/react-native.d.ts +53 -0
  19. package/dist/client/react-native.js +2 -0
  20. package/dist/client/rpc-context.d.ts +13 -0
  21. package/dist/client/rpc-context.js +18 -0
  22. package/dist/client/runtime-context-bridge.d.ts +5 -0
  23. package/dist/client/runtime-context-bridge.js +19 -0
  24. package/dist/client/settings-sections.d.ts +12 -0
  25. package/dist/client/settings-sections.js +2 -0
  26. package/dist/client/shallow.d.ts +2 -0
  27. package/dist/client/shallow.js +45 -0
  28. package/dist/client/sidebar-projects.d.ts +110 -0
  29. package/dist/client/sidebar-projects.js +2 -0
  30. package/dist/client/sidebar-workspaces.d.ts +17 -0
  31. package/dist/client/sidebar-workspaces.js +2 -0
  32. package/dist/client/storage.d.ts +12 -0
  33. package/dist/client/storage.js +2 -0
  34. package/dist/client/terminal-themes.d.ts +33 -0
  35. package/dist/client/terminal-themes.js +2 -0
  36. package/dist/client/ui.d.ts +161 -0
  37. package/dist/client/ui.js +2 -0
  38. package/dist/contracts.d.ts +90 -0
  39. package/dist/contracts.js +2 -0
  40. package/dist/index.d.ts +7 -0
  41. package/dist/index.js +5 -0
  42. package/dist/rpc.d.ts +17 -0
  43. package/dist/rpc.js +12 -0
  44. package/dist/server/acp-internal/connection.d.ts +4 -0
  45. package/dist/server/acp-internal/connection.js +1301 -0
  46. package/dist/server/acp.d.ts +112 -0
  47. package/dist/server/acp.js +22 -0
  48. package/dist/server/contracts.d.ts +81 -0
  49. package/dist/server/contracts.js +2 -0
  50. package/dist/server/index.d.ts +6 -0
  51. package/dist/server/index.js +2 -0
  52. package/dist/server/lifecycle.d.ts +99 -0
  53. package/dist/server/lifecycle.js +2 -0
  54. package/dist/server/models.d.ts +55 -0
  55. package/dist/server/models.js +2 -0
  56. package/dist/server/process-internal/windows-command.d.ts +15 -0
  57. package/dist/server/process-internal/windows-command.js +41 -0
  58. package/dist/server/process.d.ts +25 -0
  59. package/dist/server/process.js +71 -0
  60. package/dist/server/provider.d.ts +735 -0
  61. package/dist/server/provider.js +871 -0
  62. package/dist/server/usage.d.ts +149 -0
  63. package/dist/server/usage.js +134 -0
  64. package/dist/settings.d.ts +70 -0
  65. package/dist/settings.js +40 -0
  66. package/package.json +99 -4
  67. package/README.md +0 -3
@@ -0,0 +1,149 @@
1
+ import { z, type ZodType } from "zod";
2
+ import type { JsonValue } from "@getmateo/protocol/agent-types";
3
+ export interface UsageWindow {
4
+ id: string;
5
+ label: string;
6
+ /**
7
+ * A few characters naming the window where space is tight, e.g. "5h" or "wk". An empty string
8
+ * shows the percent alone; leaving it out shows `label`.
9
+ */
10
+ shortLabel?: string;
11
+ /** Shown in the usage summary until the user pins windows of their own. */
12
+ summary?: boolean;
13
+ usedPct?: number | null;
14
+ remainingPct?: number | null;
15
+ resetsAt?: string | null;
16
+ runsOutAt?: string | null;
17
+ shortfallPct?: number | null;
18
+ tone?: "default" | "ok" | "warning" | "danger";
19
+ }
20
+ export interface UsageBalance {
21
+ id: string;
22
+ label: string;
23
+ used?: number | null;
24
+ remaining?: number | null;
25
+ limit?: number | null;
26
+ unit: "usd" | "credits" | "requests" | "tokens";
27
+ resetsAt?: string | null;
28
+ tone?: UsageWindow["tone"];
29
+ }
30
+ export interface UsageDetail {
31
+ id: string;
32
+ label: string;
33
+ value: string;
34
+ tone?: UsageWindow["tone"];
35
+ }
36
+ export type UsageProblem = {
37
+ kind: "expired";
38
+ expiresAt: string;
39
+ refreshedBy?: string;
40
+ } | {
41
+ kind: "rejected";
42
+ status: number;
43
+ refreshedBy?: string;
44
+ } | {
45
+ kind: "no_quota";
46
+ detail: string;
47
+ };
48
+ export type UsageReport = {
49
+ status: "available";
50
+ planLabel?: string;
51
+ windows: UsageWindow[];
52
+ balances?: UsageBalance[];
53
+ details?: UsageDetail[];
54
+ } | {
55
+ status: "unavailable";
56
+ problem: UsageProblem;
57
+ } | {
58
+ status: "error";
59
+ error: string;
60
+ };
61
+ export interface UsageAccount {
62
+ /** Stable across token rotation; [A-Za-z0-9._-]{1,128}. Never a credential or raw email. */
63
+ key: string;
64
+ label?: string;
65
+ /** Harness owning this login, e.g. Codex, OpenCode, Pi or OMP. */
66
+ harness?: string;
67
+ /** Store locator, opaque to the daemon. */
68
+ input: JsonValue;
69
+ }
70
+ export declare const UsageScopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
71
+ kind: z.ZodLiteral<"global">;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ kind: z.ZodLiteral<"session">;
74
+ provider: z.ZodString;
75
+ model: z.ZodOptional<z.ZodString>;
76
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
77
+ launch: z.ZodOptional<z.ZodObject<{
78
+ command: z.ZodString;
79
+ args: z.ZodArray<z.ZodString>;
80
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
81
+ }, z.core.$strip>>;
82
+ }, z.core.$strip>], "kind">;
83
+ export type UsageScope = z.infer<typeof UsageScopeSchema>;
84
+ export interface UsageSourceRegistration {
85
+ id: string;
86
+ label: string;
87
+ icon?: string;
88
+ input: ZodType;
89
+ /** Accounts for this scope only. The same key in any scope identifies the same account. */
90
+ discover(scope: UsageScope): Promise<UsageAccount[]>;
91
+ /** Re-reads the login store; never writes it. */
92
+ fetch(input: unknown): Promise<UsageReport>;
93
+ }
94
+ interface WindowReading {
95
+ durationSeconds?: number | null;
96
+ /** Time of the reading, not the time a cached reading was retrieved. */
97
+ observedAtMs?: number;
98
+ resetsAt?: string | null;
99
+ utilizationPct: number | null | undefined;
100
+ }
101
+ export declare function windowFromUsedPct(input: WindowReading & {
102
+ id: string;
103
+ label: string;
104
+ shortLabel?: string;
105
+ summary?: boolean;
106
+ tone?: UsageWindow["tone"];
107
+ }): UsageWindow;
108
+ /**
109
+ * Numeric provider windows have one identity and vocabulary, independent of response slots.
110
+ * Pass null when the provider omits the duration; reset countdowns are not window lengths.
111
+ * Named API fields (weekly, monthly, etc.) use windowFromUsedPct instead.
112
+ */
113
+ export declare function windowFromReportedDuration(input: WindowReading & {
114
+ durationSeconds: number | null;
115
+ /** Stable quota identity and provider name for a model- or feature-scoped limit. */
116
+ scope?: {
117
+ id: string;
118
+ label: string;
119
+ };
120
+ /** Neutral identity and names when the provider does not report a positive duration. */
121
+ unknown: {
122
+ id: string;
123
+ label: string;
124
+ shortLabel: string;
125
+ };
126
+ summary?: boolean;
127
+ tone?: UsageWindow["tone"];
128
+ }): UsageWindow;
129
+ /**
130
+ * The tone scale for anything measured against a known limit, windows and balances alike.
131
+ *
132
+ * Thresholds match `deriveTone` in the app's provider-usage/tone.ts, which is what the
133
+ * client falls back to when a window arrives without a tone. Healthy is "ok" rather than
134
+ * "default" because that is what every provider setting a tone has always sent, and it is
135
+ * what the bars render today below their thresholds.
136
+ */
137
+ export declare function toneFromUsedPct(usedPct: number | null | undefined): UsageWindow["tone"];
138
+ /**
139
+ * Tone for a balance with no known limit, where a percentage cannot be computed and the
140
+ * only signal is whether anything is left. Prefer `toneFromUsedPct` when a limit exists:
141
+ * this one stays "ok" until the balance is completely spent.
142
+ */
143
+ export declare function balanceToneFromRemaining(remaining: number | null | undefined): UsageBalance["tone"];
144
+ /** Percentage of a limit consumed, or null when either side is unknown. */
145
+ export declare function usedPctOf(used: number | null | undefined, limit: number | null | undefined): number | null;
146
+ export declare function hashAccountKey(value: string): string;
147
+ export declare function unavailable(problem: UsageProblem): UsageReport;
148
+ export {};
149
+ //# sourceMappingURL=usage.d.ts.map
@@ -0,0 +1,134 @@
1
+ import { createHash } from "node:crypto";
2
+ import { z } from "zod";
3
+ import { ProviderLaunchSchema } from "./provider.js";
4
+ export const UsageScopeSchema = z.discriminatedUnion("kind", [
5
+ z.object({ kind: z.literal("global") }),
6
+ z.object({
7
+ kind: z.literal("session"),
8
+ provider: z.string(),
9
+ model: z.string().optional(),
10
+ env: z.record(z.string(), z.string()),
11
+ /** Effective provider launch for querying usage independently of a hosted session. */
12
+ launch: ProviderLaunchSchema.optional(),
13
+ }),
14
+ ]);
15
+ function estimateRunsOutAt({ durationSeconds, observedAtMs, resetsAt, utilizationPct, }) {
16
+ if (durationSeconds == null || observedAtMs == null || !resetsAt)
17
+ return undefined;
18
+ if (utilizationPct == null || !(utilizationPct > 0 && utilizationPct < 100))
19
+ return undefined;
20
+ // A zone-less reset would produce a different projection on different hosts.
21
+ if (!/(?:Z|[+-]\d\d:\d\d)$/i.test(resetsAt))
22
+ return undefined;
23
+ const reset = Date.parse(resetsAt);
24
+ const duration = durationSeconds * 1000;
25
+ const start = reset - duration;
26
+ const elapsed = observedAtMs - start;
27
+ // Ignore the noisy beginning of a window; a weekly quota need not wait several hours.
28
+ const minimumElapsed = Math.max(60000, Math.min(duration * 0.01, 3600000));
29
+ if (!(elapsed >= minimumElapsed && observedAtMs < reset))
30
+ return undefined;
31
+ const estimate = start + elapsed / (utilizationPct / 100);
32
+ return estimate > observedAtMs && estimate < reset ? new Date(estimate).toISOString() : undefined;
33
+ }
34
+ export function windowFromUsedPct(input) {
35
+ const usedPct = typeof input.utilizationPct === "number" ? input.utilizationPct : null;
36
+ const window = {
37
+ id: input.id,
38
+ label: input.label,
39
+ usedPct,
40
+ remainingPct: usedPct === null ? null : Math.max(0, 100 - usedPct),
41
+ resetsAt: input.resetsAt ?? null,
42
+ };
43
+ const runsOutAt = estimateRunsOutAt(input);
44
+ if (runsOutAt)
45
+ window.runsOutAt = runsOutAt;
46
+ if (input.shortLabel !== undefined)
47
+ window.shortLabel = input.shortLabel;
48
+ if (input.summary)
49
+ window.summary = true;
50
+ if (input.tone)
51
+ window.tone = input.tone;
52
+ return window;
53
+ }
54
+ /**
55
+ * Numeric provider windows have one identity and vocabulary, independent of response slots.
56
+ * Pass null when the provider omits the duration; reset countdowns are not window lengths.
57
+ * Named API fields (weekly, monthly, etc.) use windowFromUsedPct instead.
58
+ */
59
+ export function windowFromReportedDuration(input) {
60
+ const duration = input.durationSeconds;
61
+ const name = duration !== null && Number.isFinite(duration) && duration > 0
62
+ ? durationWindowName(duration)
63
+ : input.unknown;
64
+ const scope = input.scope;
65
+ return windowFromUsedPct({
66
+ id: scope ? `${scope.id}:${name.id}` : name.id,
67
+ label: scope ? `${scope.label} · ${name.label}` : name.label,
68
+ shortLabel: scope
69
+ ? `${scope.label}${name.shortLabel ? ` ${name.shortLabel}` : ""}`
70
+ : name.shortLabel,
71
+ utilizationPct: input.utilizationPct,
72
+ durationSeconds: duration,
73
+ observedAtMs: input.observedAtMs,
74
+ resetsAt: input.resetsAt,
75
+ summary: input.summary,
76
+ tone: input.tone,
77
+ });
78
+ }
79
+ function durationWindowName(seconds) {
80
+ if (seconds === 604800)
81
+ return { id: "weekly", label: "Weekly", shortLabel: "wk" };
82
+ const id = seconds === 18000 ? "five_hour" : `${seconds}s`;
83
+ const units = [
84
+ [86400, "day", "d"],
85
+ [3600, "hour", "h"],
86
+ [60, "minute", "m"],
87
+ [1, "second", "s"],
88
+ ];
89
+ const unit = units.find(([size]) => seconds % size === 0) ?? units[units.length - 1];
90
+ const amount = seconds / unit[0];
91
+ return { id, label: `${amount}-${unit[1]}`, shortLabel: `${amount}${unit[2]}` };
92
+ }
93
+ /**
94
+ * The tone scale for anything measured against a known limit, windows and balances alike.
95
+ *
96
+ * Thresholds match `deriveTone` in the app's provider-usage/tone.ts, which is what the
97
+ * client falls back to when a window arrives without a tone. Healthy is "ok" rather than
98
+ * "default" because that is what every provider setting a tone has always sent, and it is
99
+ * what the bars render today below their thresholds.
100
+ */
101
+ export function toneFromUsedPct(usedPct) {
102
+ if (typeof usedPct !== "number")
103
+ return "default";
104
+ if (usedPct > 90)
105
+ return "danger";
106
+ if (usedPct >= 70)
107
+ return "warning";
108
+ return "ok";
109
+ }
110
+ /**
111
+ * Tone for a balance with no known limit, where a percentage cannot be computed and the
112
+ * only signal is whether anything is left. Prefer `toneFromUsedPct` when a limit exists:
113
+ * this one stays "ok" until the balance is completely spent.
114
+ */
115
+ export function balanceToneFromRemaining(remaining) {
116
+ if (typeof remaining !== "number")
117
+ return "default";
118
+ if (remaining <= 0)
119
+ return "danger";
120
+ return "ok";
121
+ }
122
+ /** Percentage of a limit consumed, or null when either side is unknown. */
123
+ export function usedPctOf(used, limit) {
124
+ if (typeof used !== "number" || typeof limit !== "number" || limit <= 0)
125
+ return null;
126
+ return (used / limit) * 100;
127
+ }
128
+ export function hashAccountKey(value) {
129
+ return createHash("sha256").update(value).digest("hex");
130
+ }
131
+ export function unavailable(problem) {
132
+ return { status: "unavailable", problem };
133
+ }
134
+ //# sourceMappingURL=usage.js.map
@@ -0,0 +1,70 @@
1
+ import { z } from "zod";
2
+ import type { ZodType } from "zod";
3
+ export interface SettingsDefinition<Schema extends ZodType = ZodType> {
4
+ id: string;
5
+ scope: "host";
6
+ version: number;
7
+ schema: Schema;
8
+ /** Convert a previous stored version to the current schema. Runs on the host. */
9
+ migrate?: (values: unknown, fromVersion: number) => unknown | Promise<unknown>;
10
+ }
11
+ export declare function defineSettings<Schema extends ZodType>(definition: SettingsDefinition<Schema>): SettingsDefinition<Schema>;
12
+ export declare const SettingsReadResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
13
+ status: z.ZodLiteral<"ready">;
14
+ revision: z.ZodString;
15
+ values: z.ZodJSONSchema;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ status: z.ZodLiteral<"invalid">;
18
+ revision: z.ZodString;
19
+ error: z.ZodString;
20
+ }, z.core.$strip>], "status">;
21
+ export declare const SettingsWriteResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
22
+ status: z.ZodLiteral<"saved">;
23
+ revision: z.ZodString;
24
+ values: z.ZodJSONSchema;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ status: z.ZodLiteral<"conflict">;
27
+ error: z.ZodString;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ status: z.ZodLiteral<"invalid">;
30
+ error: z.ZodString;
31
+ }, z.core.$strip>], "status">;
32
+ export declare function settingsRpc(id: string): {
33
+ read: import("./rpc.js").PluginRpcContract<z.ZodObject<{}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
34
+ status: z.ZodLiteral<"ready">;
35
+ revision: z.ZodString;
36
+ values: z.ZodJSONSchema;
37
+ }, z.core.$strip>, z.ZodObject<{
38
+ status: z.ZodLiteral<"invalid">;
39
+ revision: z.ZodString;
40
+ error: z.ZodString;
41
+ }, z.core.$strip>], "status">>;
42
+ write: import("./rpc.js").PluginRpcContract<z.ZodObject<{
43
+ revision: z.ZodString;
44
+ values: z.ZodJSONSchema;
45
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
46
+ status: z.ZodLiteral<"saved">;
47
+ revision: z.ZodString;
48
+ values: z.ZodJSONSchema;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ status: z.ZodLiteral<"conflict">;
51
+ error: z.ZodString;
52
+ }, z.core.$strip>, z.ZodObject<{
53
+ status: z.ZodLiteral<"invalid">;
54
+ error: z.ZodString;
55
+ }, z.core.$strip>], "status">>;
56
+ reset: import("./rpc.js").PluginRpcContract<z.ZodObject<{
57
+ revision: z.ZodString;
58
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
59
+ status: z.ZodLiteral<"saved">;
60
+ revision: z.ZodString;
61
+ values: z.ZodJSONSchema;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ status: z.ZodLiteral<"conflict">;
64
+ error: z.ZodString;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ status: z.ZodLiteral<"invalid">;
67
+ error: z.ZodString;
68
+ }, z.core.$strip>], "status">>;
69
+ };
70
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1,40 @@
1
+ import { z } from "zod";
2
+ import { defineRpc } from "./rpc.js";
3
+ export function defineSettings(definition) {
4
+ if (!/^[a-z][a-z0-9_-]*$/.test(definition.id))
5
+ throw new Error("Invalid settings ID");
6
+ if (definition.scope !== "host")
7
+ throw new Error("Only host-scoped settings are supported");
8
+ if (!Number.isSafeInteger(definition.version) || definition.version < 1)
9
+ throw new Error("Invalid settings version");
10
+ return definition;
11
+ }
12
+ export const SettingsReadResultSchema = z.discriminatedUnion("status", [
13
+ z.object({ status: z.literal("ready"), revision: z.string(), values: z.json() }),
14
+ z.object({ status: z.literal("invalid"), revision: z.string(), error: z.string() }),
15
+ ]);
16
+ export const SettingsWriteResultSchema = z.discriminatedUnion("status", [
17
+ z.object({ status: z.literal("saved"), revision: z.string(), values: z.json() }),
18
+ z.object({ status: z.literal("conflict"), error: z.string() }),
19
+ z.object({ status: z.literal("invalid"), error: z.string() }),
20
+ ]);
21
+ export function settingsRpc(id) {
22
+ return {
23
+ read: defineRpc({
24
+ name: `settings.${id}.read`,
25
+ input: z.object({}),
26
+ output: SettingsReadResultSchema,
27
+ }),
28
+ write: defineRpc({
29
+ name: `settings.${id}.write`,
30
+ input: z.object({ revision: z.string(), values: z.json() }),
31
+ output: SettingsWriteResultSchema,
32
+ }),
33
+ reset: defineRpc({
34
+ name: `settings.${id}.reset`,
35
+ input: z.object({ revision: z.string() }),
36
+ output: SettingsWriteResultSchema,
37
+ }),
38
+ };
39
+ }
40
+ //# sourceMappingURL=settings.js.map
package/package.json CHANGED
@@ -1,6 +1,101 @@
1
1
  {
2
2
  "name": "@getmateo/plugin",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.18.0",
4
+ "description": "Mateo plugin SDK package",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/x2x3studio/mateo.git",
9
+ "directory": "packages/plugin"
10
+ },
11
+ "files": [
12
+ "dist",
13
+ "!dist/**/*.map"
14
+ ],
15
+ "type": "module",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "source": "./src/index.ts",
20
+ "default": "./dist/index.js"
21
+ },
22
+ "./server": {
23
+ "types": "./dist/server/index.d.ts",
24
+ "source": "./src/server/index.ts",
25
+ "default": "./dist/server/index.js"
26
+ },
27
+ "./server/provider": {
28
+ "types": "./dist/server/provider.d.ts",
29
+ "source": "./src/server/provider.ts",
30
+ "default": "./dist/server/provider.js"
31
+ },
32
+ "./server/usage": {
33
+ "types": "./dist/server/usage.d.ts",
34
+ "source": "./src/server/usage.ts",
35
+ "default": "./dist/server/usage.js"
36
+ },
37
+ "./server/acp": {
38
+ "types": "./dist/server/acp.d.ts",
39
+ "source": "./src/server/acp.ts",
40
+ "default": "./dist/server/acp.js"
41
+ },
42
+ "./client/react-native": {
43
+ "types": "./dist/client/react-native.d.ts",
44
+ "source": "./src/client/react-native.ts",
45
+ "default": "./dist/client/react-native.js"
46
+ },
47
+ "./client/host": {
48
+ "types": "./dist/client/host.d.ts",
49
+ "source": "./src/client/host.ts",
50
+ "default": "./dist/client/host.js"
51
+ },
52
+ "./client/ui": {
53
+ "types": "./dist/client/ui.d.ts",
54
+ "source": "./src/client/ui.ts",
55
+ "default": "./dist/client/ui.js"
56
+ },
57
+ "./client": {
58
+ "types": "./dist/client/index.d.ts",
59
+ "source": "./src/client/index.ts",
60
+ "default": "./dist/client/index.js"
61
+ }
62
+ },
63
+ "publishConfig": {
64
+ "access": "public"
65
+ },
66
+ "scripts": {
67
+ "clean": "node ../../scripts/clean-package-dist.mjs",
68
+ "build": "tsc -p tsconfig.json --incremental false",
69
+ "build:clean": "npm run clean && npm run build",
70
+ "prepack": "npm run build:clean",
71
+ "typecheck": "tsgo --noEmit && tsgo -p tsconfig.examples.json --noEmit",
72
+ "test": "vitest run"
73
+ },
74
+ "dependencies": {
75
+ "@agentclientprotocol/sdk": "^2.9.1",
76
+ "use-sync-external-store": "^1.6.0"
77
+ },
78
+ "devDependencies": {
79
+ "@getmateo/client": "0.18.0",
80
+ "@getmateo/protocol": "0.18.0",
81
+ "@types/node": "^20.9.0",
82
+ "@types/react": "~19.3.0",
83
+ "react": "19.3.0",
84
+ "react-native": "0.88.1",
85
+ "typescript": "^5.9.3",
86
+ "vitest": "^4.1.12",
87
+ "zod": "4.6.7"
88
+ },
89
+ "peerDependencies": {
90
+ "@getmateo/client": "0.18.0",
91
+ "@getmateo/protocol": "0.18.0",
92
+ "react": "^19.1.0",
93
+ "react-native": ">=0.81.5",
94
+ "zod": "4.6.7"
95
+ },
96
+ "peerDependenciesMeta": {
97
+ "react-native": {
98
+ "optional": true
99
+ }
100
+ }
101
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.