@motebit/sdk 2.5.4 → 2.7.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.
- package/dist/models.d.ts +46 -7
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +120 -11
- package/dist/models.js.map +1 -1
- package/package.json +1 -1
package/dist/models.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
/** Anthropic Claude models: opus (strongest), sonnet (default), haiku (fast).
|
|
2
|
-
|
|
1
|
+
/** Anthropic Claude models: opus (strongest), sonnet (default), haiku (fast).
|
|
2
|
+
* Every id verified against the live GET /v1/models catalog (2026-07-30);
|
|
3
|
+
* `check-model-catalog-drift` (scheduled, weekly) goes red when this
|
|
4
|
+
* snapshot drifts from what the provider serves. Never construct an id. */
|
|
5
|
+
export declare const ANTHROPIC_MODELS: readonly ["claude-fable-5", "claude-opus-5", "claude-opus-4-8", "claude-opus-4-7", "claude-opus-4-6", "claude-sonnet-5", "claude-sonnet-4-6", "claude-haiku-4-5-20251001", "claude-opus-4-5-20251101", "claude-sonnet-4-5-20250929", "claude-opus-4-1-20250805"];
|
|
3
6
|
/** OpenAI models: gpt-5.4 (strongest), gpt-5.4-mini (default), gpt-5.4-nano (fast). */
|
|
4
7
|
export declare const OPENAI_MODELS: readonly ["gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano"];
|
|
5
8
|
/** Google models: 2.5 pro (strongest), 2.5 flash (default), 2.5 flash-lite (fast). */
|
|
@@ -51,7 +54,7 @@ export declare const GROQ_MODELS: readonly ["llama-3.3-70b-versatile", "openai/g
|
|
|
51
54
|
* any on-device / local-server UI. The user can pull any model; these are
|
|
52
55
|
* the safe defaults to surface first.
|
|
53
56
|
*/
|
|
54
|
-
export declare const LOCAL_SERVER_SUGGESTED_MODELS: readonly ["
|
|
57
|
+
export declare const LOCAL_SERVER_SUGGESTED_MODELS: readonly ["qwen3", "gpt-oss", "gemma3", "llama4", "phi4-mini", "deepseek-r1", "mistral-small3.2"];
|
|
55
58
|
/**
|
|
56
59
|
* @deprecated since 1.0.0, removed in 3.0.0. Use {@link LOCAL_SERVER_SUGGESTED_MODELS} instead.
|
|
57
60
|
*
|
|
@@ -60,7 +63,7 @@ export declare const LOCAL_SERVER_SUGGESTED_MODELS: readonly ["llama3.2", "llama
|
|
|
60
63
|
* llama.cpp, vLLM). Vendor-neutral naming matches the runtime's
|
|
61
64
|
* `"local-server"` provider discriminator.
|
|
62
65
|
*/
|
|
63
|
-
export declare const OLLAMA_SUGGESTED_MODELS: readonly ["
|
|
66
|
+
export declare const OLLAMA_SUGGESTED_MODELS: readonly ["qwen3", "gpt-oss", "gemma3", "llama4", "phi4-mini", "deepseek-r1", "mistral-small3.2"];
|
|
64
67
|
/** Models available through the Motebit proxy (all cloud providers). */
|
|
65
68
|
export declare const PROXY_MODELS: readonly ["claude-opus-4-7", "claude-sonnet-4-6", "claude-haiku-4-5-20251001", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite"];
|
|
66
69
|
/** Default Anthropic model. */
|
|
@@ -83,8 +86,13 @@ export declare const DEFAULT_DEEPSEEK_MODEL = "deepseek-chat";
|
|
|
83
86
|
* constants.
|
|
84
87
|
*/
|
|
85
88
|
export declare const DEFAULT_GROQ_MODEL = "llama-3.3-70b-versatile";
|
|
86
|
-
/** Default Ollama model — used as the `local-server` default too.
|
|
87
|
-
|
|
89
|
+
/** Default Ollama model — used as the `local-server` default too.
|
|
90
|
+
* 2026-07-31 refresh: `llama3.2` (Sept 2024, 3B) was the witnessed weak-model
|
|
91
|
+
* floor — safe under the governance stack but not useful (fabricated a money
|
|
92
|
+
* proposal from noise). `qwen3` is the current balanced, tool-capable local
|
|
93
|
+
* family. A default can be old; it can never be UNEXAMINED — see
|
|
94
|
+
* MODEL_DEFAULT_REVIEW_BY below. */
|
|
95
|
+
export declare const DEFAULT_OLLAMA_MODEL = "qwen3";
|
|
88
96
|
/**
|
|
89
97
|
* Canonical default model for the on-device `local-server` backend.
|
|
90
98
|
* Currently aliased to `DEFAULT_OLLAMA_MODEL` — Ollama's `llama3.2` is
|
|
@@ -93,9 +101,21 @@ export declare const DEFAULT_OLLAMA_MODEL = "llama3.2";
|
|
|
93
101
|
* Ollama-specific alias is retained for places that genuinely mean
|
|
94
102
|
* the Ollama model identifier.
|
|
95
103
|
*/
|
|
96
|
-
export declare const DEFAULT_LOCAL_SERVER_MODEL = "
|
|
104
|
+
export declare const DEFAULT_LOCAL_SERVER_MODEL = "qwen3";
|
|
97
105
|
/** Default proxy model (used when no model is specified). */
|
|
98
106
|
export declare const DEFAULT_PROXY_MODEL = "claude-sonnet-4-6";
|
|
107
|
+
/**
|
|
108
|
+
* Review-by dates for the DEFAULT_*_MODEL constants — defaults as
|
|
109
|
+
* perishable inventory with a printed expiry. Model half-life is months
|
|
110
|
+
* now; a default frozen at authoring time ships an old brain in a new
|
|
111
|
+
* body without anyone deciding that. The rule (coverage-graduation's
|
|
112
|
+
* shape applied to intelligence): a default can be old — behind-on-purpose
|
|
113
|
+
* is a product choice — but it can never be UNEXAMINED. The scheduled
|
|
114
|
+
* external gate (`check-model-catalog-drift`) goes red past a date with a
|
|
115
|
+
* repair naming this table; the fix is a DELIBERATE human review — bump
|
|
116
|
+
* the date with or without a model change. The gate never bumps a model.
|
|
117
|
+
*/
|
|
118
|
+
export declare const MODEL_DEFAULT_REVIEW_BY: Record<string, string>;
|
|
99
119
|
export type AnthropicModel = (typeof ANTHROPIC_MODELS)[number];
|
|
100
120
|
export type OpenAIModel = (typeof OPENAI_MODELS)[number];
|
|
101
121
|
export type GoogleModel = (typeof GOOGLE_MODELS)[number];
|
|
@@ -122,4 +142,23 @@ export declare function modelVendorHint(model: string): "anthropic" | "openai" |
|
|
|
122
142
|
* the class that fails opaquely at the API otherwise.
|
|
123
143
|
*/
|
|
124
144
|
export declare function providerAcceptsModel(provider: string, model: string): boolean;
|
|
145
|
+
/** Capability class of a model id. `unknown → "capable"` — permissive,
|
|
146
|
+
* like admission: registry lag must never lobotomize a good new model. */
|
|
147
|
+
export type ModelCapabilityTier = "frontier" | "capable" | "minimal";
|
|
148
|
+
/**
|
|
149
|
+
* Best-effort capability tier for a model id.
|
|
150
|
+
*
|
|
151
|
+
* Resolution order:
|
|
152
|
+
* 1. Ollama-style size tag (`model:NNb`) — the honest parameter signal
|
|
153
|
+
* for local pulls: under 7B → `minimal`, otherwise `capable` (a size
|
|
154
|
+
* tag never claims frontier).
|
|
155
|
+
* 2. Known-small families → `minimal`.
|
|
156
|
+
* 3. Frontier prefixes (with mini/nano demoted first) → `frontier`.
|
|
157
|
+
* 4. Everything else — including unknown ids — → `capable`.
|
|
158
|
+
*
|
|
159
|
+
* Like the defaults table, this is perishable knowledge: it rides the
|
|
160
|
+
* same review discipline (`MODEL_DEFAULT_REVIEW_BY`) rather than
|
|
161
|
+
* pretending to be timeless.
|
|
162
|
+
*/
|
|
163
|
+
export declare function modelCapabilityTier(model: string): ModelCapabilityTier;
|
|
125
164
|
//# sourceMappingURL=models.d.ts.map
|
package/dist/models.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AASA
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AASA;;;2EAG2E;AAC3E,eAAO,MAAM,gBAAgB,kQAYnB,CAAC;AAEX,uFAAuF;AACvF,eAAO,MAAM,aAAa,sDAAuD,CAAC;AAElF,sFAAsF;AACtF,eAAO,MAAM,aAAa,0EAIhB,CAAC;AAEX;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,4BAA6B,CAAC;AAE1D;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,WAAW,6DAA8D,CAAC;AAEvF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,6BAA6B,m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AAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAsB/E;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAO7E;AAaD;2EAC2E;AAC3E,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AA0BrE;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,mBAAmB,CA8BtE"}
|
package/dist/models.js
CHANGED
|
@@ -6,11 +6,22 @@
|
|
|
6
6
|
//
|
|
7
7
|
// 3 tiers per provider: strongest, default, fast.
|
|
8
8
|
// When a new model ships, update the arrays — every surface picks it up.
|
|
9
|
-
/** Anthropic Claude models: opus (strongest), sonnet (default), haiku (fast).
|
|
9
|
+
/** Anthropic Claude models: opus (strongest), sonnet (default), haiku (fast).
|
|
10
|
+
* Every id verified against the live GET /v1/models catalog (2026-07-30);
|
|
11
|
+
* `check-model-catalog-drift` (scheduled, weekly) goes red when this
|
|
12
|
+
* snapshot drifts from what the provider serves. Never construct an id. */
|
|
10
13
|
export const ANTHROPIC_MODELS = [
|
|
14
|
+
"claude-fable-5",
|
|
15
|
+
"claude-opus-5",
|
|
16
|
+
"claude-opus-4-8",
|
|
11
17
|
"claude-opus-4-7",
|
|
18
|
+
"claude-opus-4-6",
|
|
19
|
+
"claude-sonnet-5",
|
|
12
20
|
"claude-sonnet-4-6",
|
|
13
21
|
"claude-haiku-4-5-20251001",
|
|
22
|
+
"claude-opus-4-5-20251101",
|
|
23
|
+
"claude-sonnet-4-5-20250929",
|
|
24
|
+
"claude-opus-4-1-20250805",
|
|
14
25
|
];
|
|
15
26
|
/** OpenAI models: gpt-5.4 (strongest), gpt-5.4-mini (default), gpt-5.4-nano (fast). */
|
|
16
27
|
export const OPENAI_MODELS = ["gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano"];
|
|
@@ -68,14 +79,13 @@ export const GROQ_MODELS = ["llama-3.3-70b-versatile", "openai/gpt-oss-120b"];
|
|
|
68
79
|
* the safe defaults to surface first.
|
|
69
80
|
*/
|
|
70
81
|
export const LOCAL_SERVER_SUGGESTED_MODELS = [
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"qwen2",
|
|
82
|
+
"qwen3", // balanced all-rounder, tool-capable — the first-run default
|
|
83
|
+
"gpt-oss", // OpenAI open-weights — best small tool-use class (~16GB)
|
|
84
|
+
"gemma3", // Google open family
|
|
85
|
+
"llama4", // Meta current family
|
|
86
|
+
"phi4-mini", // minimal-hardware tier (entry laptops, iGPU)
|
|
87
|
+
"deepseek-r1", // reasoning-class open weights
|
|
88
|
+
"mistral-small3.2", // Mistral current small
|
|
79
89
|
];
|
|
80
90
|
/**
|
|
81
91
|
* @deprecated since 1.0.0, removed in 3.0.0. Use {@link LOCAL_SERVER_SUGGESTED_MODELS} instead.
|
|
@@ -119,8 +129,13 @@ export const DEFAULT_DEEPSEEK_MODEL = "deepseek-chat";
|
|
|
119
129
|
* constants.
|
|
120
130
|
*/
|
|
121
131
|
export const DEFAULT_GROQ_MODEL = "llama-3.3-70b-versatile";
|
|
122
|
-
/** Default Ollama model — used as the `local-server` default too.
|
|
123
|
-
|
|
132
|
+
/** Default Ollama model — used as the `local-server` default too.
|
|
133
|
+
* 2026-07-31 refresh: `llama3.2` (Sept 2024, 3B) was the witnessed weak-model
|
|
134
|
+
* floor — safe under the governance stack but not useful (fabricated a money
|
|
135
|
+
* proposal from noise). `qwen3` is the current balanced, tool-capable local
|
|
136
|
+
* family. A default can be old; it can never be UNEXAMINED — see
|
|
137
|
+
* MODEL_DEFAULT_REVIEW_BY below. */
|
|
138
|
+
export const DEFAULT_OLLAMA_MODEL = "qwen3";
|
|
124
139
|
/**
|
|
125
140
|
* Canonical default model for the on-device `local-server` backend.
|
|
126
141
|
* Currently aliased to `DEFAULT_OLLAMA_MODEL` — Ollama's `llama3.2` is
|
|
@@ -132,6 +147,26 @@ export const DEFAULT_OLLAMA_MODEL = "llama3.2";
|
|
|
132
147
|
export const DEFAULT_LOCAL_SERVER_MODEL = DEFAULT_OLLAMA_MODEL;
|
|
133
148
|
/** Default proxy model (used when no model is specified). */
|
|
134
149
|
export const DEFAULT_PROXY_MODEL = "claude-sonnet-4-6";
|
|
150
|
+
/**
|
|
151
|
+
* Review-by dates for the DEFAULT_*_MODEL constants — defaults as
|
|
152
|
+
* perishable inventory with a printed expiry. Model half-life is months
|
|
153
|
+
* now; a default frozen at authoring time ships an old brain in a new
|
|
154
|
+
* body without anyone deciding that. The rule (coverage-graduation's
|
|
155
|
+
* shape applied to intelligence): a default can be old — behind-on-purpose
|
|
156
|
+
* is a product choice — but it can never be UNEXAMINED. The scheduled
|
|
157
|
+
* external gate (`check-model-catalog-drift`) goes red past a date with a
|
|
158
|
+
* repair naming this table; the fix is a DELIBERATE human review — bump
|
|
159
|
+
* the date with or without a model change. The gate never bumps a model.
|
|
160
|
+
*/
|
|
161
|
+
export const MODEL_DEFAULT_REVIEW_BY = {
|
|
162
|
+
anthropic: "2026-10-31",
|
|
163
|
+
openai: "2026-10-31",
|
|
164
|
+
google: "2026-10-31",
|
|
165
|
+
deepseek: "2026-10-31",
|
|
166
|
+
groq: "2026-10-31",
|
|
167
|
+
"local-server": "2026-10-31",
|
|
168
|
+
proxy: "2026-10-31",
|
|
169
|
+
};
|
|
135
170
|
// === Provider ↔ model coherence ===
|
|
136
171
|
//
|
|
137
172
|
// Born live, 2026-07-06: `--provider anthropic` with a config-resident
|
|
@@ -160,10 +195,20 @@ export function modelVendorHint(model) {
|
|
|
160
195
|
return "groq";
|
|
161
196
|
if (m.startsWith("claude"))
|
|
162
197
|
return "anthropic";
|
|
198
|
+
// gpt-oss is OpenAI's OPEN-WEIGHTS family — local-served (ollama/LM
|
|
199
|
+
// Studio/Groq), never the hosted API. Must precede the `gpt-` branch or
|
|
200
|
+
// the local-server admission gate refuses its own suggested model.
|
|
201
|
+
if (m.startsWith("gpt-oss"))
|
|
202
|
+
return "local";
|
|
163
203
|
if (m.startsWith("gpt-") || /^o[0-9]/.test(m))
|
|
164
204
|
return "openai";
|
|
165
205
|
if (m.startsWith("gemini"))
|
|
166
206
|
return "google";
|
|
207
|
+
// deepseek-r1 is the OPEN-WEIGHTS reasoning family (ollama tag) — the
|
|
208
|
+
// hosted API ids are deepseek-chat / deepseek-reasoner. Caught by the
|
|
209
|
+
// suggested-table admissibility invariant on its first run (2026-07-31).
|
|
210
|
+
if (m.startsWith("deepseek-r1"))
|
|
211
|
+
return "local";
|
|
167
212
|
if (m.startsWith("deepseek"))
|
|
168
213
|
return "deepseek";
|
|
169
214
|
// Ollama-style tags and the common local families.
|
|
@@ -191,4 +236,68 @@ export function providerAcceptsModel(provider, model) {
|
|
|
191
236
|
return hint === "groq" || hint === "local"; // groq serves open models
|
|
192
237
|
return hint === provider;
|
|
193
238
|
}
|
|
239
|
+
/** Model families known to be small (≤~4B): useful for chat, memory, and
|
|
240
|
+
* local tools; not reliable instrument-holders. Matched on the id's base
|
|
241
|
+
* name (before any `:tag`). */
|
|
242
|
+
const MINIMAL_FAMILIES = [
|
|
243
|
+
"llama3.2", // 1B/3B family — the witnessed weak-model floor
|
|
244
|
+
"phi4-mini",
|
|
245
|
+
"phi-3",
|
|
246
|
+
"phi3",
|
|
247
|
+
"smollm",
|
|
248
|
+
"tinyllama",
|
|
249
|
+
"gpt-5.4-nano",
|
|
250
|
+
];
|
|
251
|
+
/** Frontier prefixes — the strongest hosted classes. Haiku is deliberately
|
|
252
|
+
* absent (capable); so are minis/flashes. */
|
|
253
|
+
const FRONTIER_PREFIXES = [
|
|
254
|
+
"claude-fable",
|
|
255
|
+
"claude-mythos",
|
|
256
|
+
"claude-opus",
|
|
257
|
+
"claude-sonnet",
|
|
258
|
+
"gpt-5.4", // bare flagship; -mini/-nano handled before this check
|
|
259
|
+
"gemini-2.5-pro",
|
|
260
|
+
];
|
|
261
|
+
/**
|
|
262
|
+
* Best-effort capability tier for a model id.
|
|
263
|
+
*
|
|
264
|
+
* Resolution order:
|
|
265
|
+
* 1. Ollama-style size tag (`model:NNb`) — the honest parameter signal
|
|
266
|
+
* for local pulls: under 7B → `minimal`, otherwise `capable` (a size
|
|
267
|
+
* tag never claims frontier).
|
|
268
|
+
* 2. Known-small families → `minimal`.
|
|
269
|
+
* 3. Frontier prefixes (with mini/nano demoted first) → `frontier`.
|
|
270
|
+
* 4. Everything else — including unknown ids — → `capable`.
|
|
271
|
+
*
|
|
272
|
+
* Like the defaults table, this is perishable knowledge: it rides the
|
|
273
|
+
* same review discipline (`MODEL_DEFAULT_REVIEW_BY`) rather than
|
|
274
|
+
* pretending to be timeless.
|
|
275
|
+
*/
|
|
276
|
+
export function modelCapabilityTier(model) {
|
|
277
|
+
const m = model.trim().toLowerCase();
|
|
278
|
+
if (m === "")
|
|
279
|
+
return "capable";
|
|
280
|
+
// 1. Embedded parameter size — ollama tags (`qwen3:0.6b`, `gemma3:4b`)
|
|
281
|
+
// and dash-form ids (`Llama-3.2-3B-Instruct…`, `gpt-oss-120b`,
|
|
282
|
+
// `llama-3.3-70b-versatile`). The honest signal wherever it appears.
|
|
283
|
+
const sizeTag = /[:\-_](\d+(?:\.\d+)?)b(?:[-_.:]|$)/.exec(m);
|
|
284
|
+
if (sizeTag != null) {
|
|
285
|
+
return parseFloat(sizeTag[1]) < 7 ? "minimal" : "capable";
|
|
286
|
+
}
|
|
287
|
+
const base = m.split(":")[0];
|
|
288
|
+
// 2. Known-small families — prefix match so version suffixes stay in
|
|
289
|
+
// the family (`smollm2`, `phi3.5`).
|
|
290
|
+
if (MINIMAL_FAMILIES.some((f) => base.startsWith(f))) {
|
|
291
|
+
return "minimal";
|
|
292
|
+
}
|
|
293
|
+
// 3. Frontier — demote the small variants of flagship names first.
|
|
294
|
+
if (base.endsWith("-mini") || base.endsWith("-nano") || base.includes("flash")) {
|
|
295
|
+
return "capable";
|
|
296
|
+
}
|
|
297
|
+
if (FRONTIER_PREFIXES.some((p) => base.startsWith(p))) {
|
|
298
|
+
return "frontier";
|
|
299
|
+
}
|
|
300
|
+
// 4. Permissive default.
|
|
301
|
+
return "capable";
|
|
302
|
+
}
|
|
194
303
|
//# sourceMappingURL=models.js.map
|
package/dist/models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,EAAE;AACF,oEAAoE;AACpE,sGAAsG;AACtG,4EAA4E;AAC5E,EAAE;AACF,kDAAkD;AAClD,yEAAyE;AAEzE
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,EAAE;AACF,oEAAoE;AACpE,sGAAsG;AACtG,4EAA4E;AAC5E,EAAE;AACF,kDAAkD;AAClD,yEAAyE;AAEzE;;;2EAG2E;AAC3E,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,gBAAgB;IAChB,eAAe;IACf,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,mBAAmB;IACnB,2BAA2B;IAC3B,0BAA0B;IAC1B,4BAA4B;IAC5B,0BAA0B;CAClB,CAAC;AAEX,uFAAuF;AACvF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAU,CAAC;AAElF,sFAAsF;AACtF,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,gBAAgB;IAChB,kBAAkB;IAClB,uBAAuB;CACf,CAAC;AAEX;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,eAAe,CAAU,CAAC;AAE1D;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC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ract for building Motebit-powered agents, services, and integrations — stable types, adapter interfaces, governance config. Re-exports @motebit/protocol.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|