@motebit/sdk 0.1.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/LICENSE +26 -0
- package/README.md +51 -0
- package/dist/index.d.ts +470 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +145 -0
- package/dist/index.js.map +1 -0
- package/package.json +62 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Motebit
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
"Motebit" is a trademark of Daniel Hakim. The MIT License grants rights to
|
|
24
|
+
this software, not to any Motebit trademarks, logos, or branding. You may not
|
|
25
|
+
use Motebit branding in a way that suggests endorsement or affiliation without
|
|
26
|
+
written permission.
|
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# @motebit/sdk
|
|
2
|
+
|
|
3
|
+
Core types for the motebit protocol.
|
|
4
|
+
|
|
5
|
+
Zero dependencies. Pure TypeScript interfaces, enums, and type definitions for building on the motebit identity and agent protocol.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @motebit/sdk
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## What's included
|
|
14
|
+
|
|
15
|
+
| Category | Types |
|
|
16
|
+
|----------|-------|
|
|
17
|
+
| **Identity** | `MotebitIdentity`, `MotebitType`, `AgentTrustLevel`, `AgentTrustRecord` |
|
|
18
|
+
| **State vector** | `MotebitState`, `TrustMode`, `BatteryMode` |
|
|
19
|
+
| **Behavior** | `BehaviorCues`, `SPECIES_CONSTRAINTS` |
|
|
20
|
+
| **Memory** | `MemoryNode`, `MemoryEdge`, `MemoryCandidate`, `MemoryType`, `RelationType`, `SensitivityLevel` |
|
|
21
|
+
| **Policy** | `PolicyDecision`, `ToolRiskProfile`, `RiskLevel`, `DataClass`, `SideEffect`, `TurnContext`, `InjectionWarning`, `ToolAuditEntry` |
|
|
22
|
+
| **Tools** | `ToolDefinition`, `ToolResult`, `ToolHandler`, `ToolRegistry` |
|
|
23
|
+
| **AI provider** | `ContextPack`, `AIResponse`, `IntelligenceProvider`, `ConversationMessage`, `ToolCall` |
|
|
24
|
+
| **Events** | `EventLogEntry`, `EventType` |
|
|
25
|
+
| **Sync** | `SyncCursor`, `ConflictEdge`, `SyncConversation`, `SyncConversationMessage`, `ConversationSyncResult` |
|
|
26
|
+
| **Plans** | `Plan`, `PlanStep`, `PlanStatus`, `StepStatus` |
|
|
27
|
+
| **Agent protocol** | `AgentTask`, `AgentTaskStatus`, `ExecutionReceipt`, `AgentCapabilities` |
|
|
28
|
+
| **Render** | `RenderSpec`, `GeometrySpec`, `MaterialSpec`, `LightingSpec` |
|
|
29
|
+
| **Privacy** | `AuditRecord`, `ExportManifest` |
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import { MotebitState, TrustMode, RiskLevel, ExecutionReceipt } from "@motebit/sdk";
|
|
35
|
+
|
|
36
|
+
const state: MotebitState = {
|
|
37
|
+
attention: 0.7,
|
|
38
|
+
processing: 0.3,
|
|
39
|
+
confidence: 0.85,
|
|
40
|
+
affect_valence: 0.6,
|
|
41
|
+
affect_arousal: 0.2,
|
|
42
|
+
social_distance: 0.4,
|
|
43
|
+
curiosity: 0.5,
|
|
44
|
+
trust_mode: TrustMode.Guarded,
|
|
45
|
+
battery_mode: BatteryMode.Normal,
|
|
46
|
+
};
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
MIT. Motebit is a trademark of Daniel Hakim.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
export declare enum TrustMode {
|
|
2
|
+
Full = "full",
|
|
3
|
+
Guarded = "guarded",
|
|
4
|
+
Minimal = "minimal"
|
|
5
|
+
}
|
|
6
|
+
export declare enum BatteryMode {
|
|
7
|
+
Normal = "normal",
|
|
8
|
+
LowPower = "low_power",
|
|
9
|
+
Critical = "critical"
|
|
10
|
+
}
|
|
11
|
+
export declare enum AgentTrustLevel {
|
|
12
|
+
Unknown = "unknown",
|
|
13
|
+
FirstContact = "first_contact",
|
|
14
|
+
Verified = "verified",
|
|
15
|
+
Trusted = "trusted",
|
|
16
|
+
Blocked = "blocked"
|
|
17
|
+
}
|
|
18
|
+
export declare enum MotebitType {
|
|
19
|
+
Personal = "personal",
|
|
20
|
+
Service = "service",
|
|
21
|
+
Collaborative = "collaborative"
|
|
22
|
+
}
|
|
23
|
+
export interface AgentTrustRecord {
|
|
24
|
+
motebit_id: string;
|
|
25
|
+
remote_motebit_id: string;
|
|
26
|
+
trust_level: AgentTrustLevel;
|
|
27
|
+
public_key?: string;
|
|
28
|
+
first_seen_at: number;
|
|
29
|
+
last_seen_at: number;
|
|
30
|
+
interaction_count: number;
|
|
31
|
+
notes?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare enum SensitivityLevel {
|
|
34
|
+
None = "none",
|
|
35
|
+
Personal = "personal",
|
|
36
|
+
Medical = "medical",
|
|
37
|
+
Financial = "financial",
|
|
38
|
+
Secret = "secret"
|
|
39
|
+
}
|
|
40
|
+
export declare enum EventType {
|
|
41
|
+
IdentityCreated = "identity_created",
|
|
42
|
+
StateUpdated = "state_updated",
|
|
43
|
+
MemoryFormed = "memory_formed",
|
|
44
|
+
MemoryDecayed = "memory_decayed",
|
|
45
|
+
MemoryDeleted = "memory_deleted",
|
|
46
|
+
MemoryAccessed = "memory_accessed",
|
|
47
|
+
ProviderSwapped = "provider_swapped",
|
|
48
|
+
ExportRequested = "export_requested",
|
|
49
|
+
DeleteRequested = "delete_requested",
|
|
50
|
+
SyncCompleted = "sync_completed",
|
|
51
|
+
AuditEntry = "audit_entry",
|
|
52
|
+
ToolUsed = "tool_used",
|
|
53
|
+
PolicyViolation = "policy_violation",
|
|
54
|
+
GoalCreated = "goal_created",
|
|
55
|
+
GoalExecuted = "goal_executed",
|
|
56
|
+
GoalRemoved = "goal_removed",
|
|
57
|
+
ApprovalRequested = "approval_requested",
|
|
58
|
+
ApprovalApproved = "approval_approved",
|
|
59
|
+
ApprovalDenied = "approval_denied",
|
|
60
|
+
ApprovalExpired = "approval_expired",
|
|
61
|
+
GoalCompleted = "goal_completed",
|
|
62
|
+
GoalProgress = "goal_progress",
|
|
63
|
+
MemoryAudit = "memory_audit",
|
|
64
|
+
MemoryPinned = "memory_pinned",
|
|
65
|
+
PlanCreated = "plan_created",
|
|
66
|
+
PlanStepStarted = "plan_step_started",
|
|
67
|
+
PlanStepCompleted = "plan_step_completed",
|
|
68
|
+
PlanStepFailed = "plan_step_failed",
|
|
69
|
+
PlanCompleted = "plan_completed",
|
|
70
|
+
PlanFailed = "plan_failed",
|
|
71
|
+
HousekeepingRun = "housekeeping_run",
|
|
72
|
+
ReflectionCompleted = "reflection_completed",
|
|
73
|
+
MemoryConsolidated = "memory_consolidated",
|
|
74
|
+
AgentTaskCompleted = "agent_task_completed",
|
|
75
|
+
AgentTaskFailed = "agent_task_failed",
|
|
76
|
+
AgentTaskDenied = "agent_task_denied"
|
|
77
|
+
}
|
|
78
|
+
export declare enum RelationType {
|
|
79
|
+
Related = "related",
|
|
80
|
+
CausedBy = "caused_by",
|
|
81
|
+
FollowedBy = "followed_by",
|
|
82
|
+
ConflictsWith = "conflicts_with",
|
|
83
|
+
Reinforces = "reinforces",
|
|
84
|
+
PartOf = "part_of",
|
|
85
|
+
Supersedes = "supersedes"
|
|
86
|
+
}
|
|
87
|
+
export declare enum MemoryType {
|
|
88
|
+
Episodic = "episodic",
|
|
89
|
+
Semantic = "semantic"
|
|
90
|
+
}
|
|
91
|
+
export interface MotebitIdentity {
|
|
92
|
+
readonly motebit_id: string;
|
|
93
|
+
readonly created_at: number;
|
|
94
|
+
readonly owner_id: string;
|
|
95
|
+
version_clock: number;
|
|
96
|
+
}
|
|
97
|
+
export interface MotebitState {
|
|
98
|
+
attention: number;
|
|
99
|
+
processing: number;
|
|
100
|
+
confidence: number;
|
|
101
|
+
affect_valence: number;
|
|
102
|
+
affect_arousal: number;
|
|
103
|
+
social_distance: number;
|
|
104
|
+
curiosity: number;
|
|
105
|
+
trust_mode: TrustMode;
|
|
106
|
+
battery_mode: BatteryMode;
|
|
107
|
+
}
|
|
108
|
+
export interface BehaviorCues {
|
|
109
|
+
hover_distance: number;
|
|
110
|
+
drift_amplitude: number;
|
|
111
|
+
glow_intensity: number;
|
|
112
|
+
eye_dilation: number;
|
|
113
|
+
smile_curvature: number;
|
|
114
|
+
speaking_activity: number;
|
|
115
|
+
}
|
|
116
|
+
export declare const SPECIES_CONSTRAINTS: Readonly<{
|
|
117
|
+
readonly MAX_AROUSAL: 0.35;
|
|
118
|
+
readonly SMILE_DELTA_MAX: 0.08;
|
|
119
|
+
readonly GLOW_DELTA_MAX: 0.15;
|
|
120
|
+
readonly DRIFT_VARIATION_MAX: 0.1;
|
|
121
|
+
}>;
|
|
122
|
+
export type SpeciesConstraints = typeof SPECIES_CONSTRAINTS;
|
|
123
|
+
export interface MemoryNode {
|
|
124
|
+
node_id: string;
|
|
125
|
+
motebit_id: string;
|
|
126
|
+
content: string;
|
|
127
|
+
embedding: number[];
|
|
128
|
+
confidence: number;
|
|
129
|
+
sensitivity: SensitivityLevel;
|
|
130
|
+
created_at: number;
|
|
131
|
+
last_accessed: number;
|
|
132
|
+
half_life: number;
|
|
133
|
+
tombstoned: boolean;
|
|
134
|
+
pinned: boolean;
|
|
135
|
+
memory_type?: MemoryType;
|
|
136
|
+
valid_from?: number;
|
|
137
|
+
valid_until?: number | null;
|
|
138
|
+
}
|
|
139
|
+
export interface MemoryEdge {
|
|
140
|
+
edge_id: string;
|
|
141
|
+
source_id: string;
|
|
142
|
+
target_id: string;
|
|
143
|
+
relation_type: RelationType;
|
|
144
|
+
weight: number;
|
|
145
|
+
confidence: number;
|
|
146
|
+
}
|
|
147
|
+
export interface MemoryCandidate {
|
|
148
|
+
content: string;
|
|
149
|
+
confidence: number;
|
|
150
|
+
sensitivity: SensitivityLevel;
|
|
151
|
+
memory_type?: MemoryType;
|
|
152
|
+
}
|
|
153
|
+
export interface EventLogEntry {
|
|
154
|
+
event_id: string;
|
|
155
|
+
motebit_id: string;
|
|
156
|
+
/** Device that originated this event (for multi-device conflict resolution) */
|
|
157
|
+
device_id?: string;
|
|
158
|
+
timestamp: number;
|
|
159
|
+
event_type: EventType;
|
|
160
|
+
payload: Record<string, unknown>;
|
|
161
|
+
version_clock: number;
|
|
162
|
+
tombstoned: boolean;
|
|
163
|
+
}
|
|
164
|
+
export declare enum RiskLevel {
|
|
165
|
+
R0_READ = 0,
|
|
166
|
+
R1_DRAFT = 1,
|
|
167
|
+
R2_WRITE = 2,
|
|
168
|
+
R3_EXECUTE = 3,
|
|
169
|
+
R4_MONEY = 4
|
|
170
|
+
}
|
|
171
|
+
export declare enum DataClass {
|
|
172
|
+
PUBLIC = "public",
|
|
173
|
+
PRIVATE = "private",
|
|
174
|
+
SECRET = "secret"
|
|
175
|
+
}
|
|
176
|
+
export declare enum SideEffect {
|
|
177
|
+
NONE = "none",
|
|
178
|
+
REVERSIBLE = "reversible",
|
|
179
|
+
IRREVERSIBLE = "irreversible"
|
|
180
|
+
}
|
|
181
|
+
export interface ToolRiskProfile {
|
|
182
|
+
risk: RiskLevel;
|
|
183
|
+
dataClass: DataClass;
|
|
184
|
+
sideEffect: SideEffect;
|
|
185
|
+
requiresApproval: boolean;
|
|
186
|
+
}
|
|
187
|
+
export interface PolicyDecision {
|
|
188
|
+
allowed: boolean;
|
|
189
|
+
requiresApproval: boolean;
|
|
190
|
+
reason?: string;
|
|
191
|
+
budgetRemaining?: {
|
|
192
|
+
calls: number;
|
|
193
|
+
timeMs: number;
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
export interface TurnContext {
|
|
197
|
+
turnId: string;
|
|
198
|
+
runId?: string;
|
|
199
|
+
toolCallCount: number;
|
|
200
|
+
turnStartMs: number;
|
|
201
|
+
costAccumulated: number;
|
|
202
|
+
/** Caller motebit ID — set in MCP server mode when caller presents a signed token. */
|
|
203
|
+
callerMotebitId?: string;
|
|
204
|
+
/** Caller trust level — set in MCP server mode for identity-aware policy decisions. */
|
|
205
|
+
callerTrustLevel?: AgentTrustLevel;
|
|
206
|
+
/** Type of the remote motebit making the call (personal/service/collaborative). */
|
|
207
|
+
remoteMotebitType?: string;
|
|
208
|
+
}
|
|
209
|
+
export interface InjectionWarning {
|
|
210
|
+
detected: boolean;
|
|
211
|
+
patterns: string[];
|
|
212
|
+
directiveDensity?: number;
|
|
213
|
+
structuralFlags?: string[];
|
|
214
|
+
}
|
|
215
|
+
export interface ToolAuditEntry {
|
|
216
|
+
turnId: string;
|
|
217
|
+
runId?: string;
|
|
218
|
+
callId: string;
|
|
219
|
+
tool: string;
|
|
220
|
+
args: Record<string, unknown>;
|
|
221
|
+
decision: PolicyDecision;
|
|
222
|
+
result?: {
|
|
223
|
+
ok: boolean;
|
|
224
|
+
durationMs: number;
|
|
225
|
+
};
|
|
226
|
+
injection?: InjectionWarning;
|
|
227
|
+
timestamp: number;
|
|
228
|
+
}
|
|
229
|
+
export interface ToolDefinition {
|
|
230
|
+
name: string;
|
|
231
|
+
description: string;
|
|
232
|
+
inputSchema: Record<string, unknown>;
|
|
233
|
+
requiresApproval?: boolean;
|
|
234
|
+
/** Risk hint for PolicyGate classification. If absent, inferred from name/description. */
|
|
235
|
+
riskHint?: {
|
|
236
|
+
risk?: RiskLevel;
|
|
237
|
+
dataClass?: DataClass;
|
|
238
|
+
sideEffect?: SideEffect;
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
export interface ToolResult {
|
|
242
|
+
ok: boolean;
|
|
243
|
+
data?: unknown;
|
|
244
|
+
error?: string;
|
|
245
|
+
/** Set by adapters that already applied boundary wrapping (e.g. MCP client). */
|
|
246
|
+
_sanitized?: boolean;
|
|
247
|
+
}
|
|
248
|
+
export type ToolHandler = (args: Record<string, unknown>) => Promise<ToolResult>;
|
|
249
|
+
export interface ToolRegistry {
|
|
250
|
+
list(): ToolDefinition[];
|
|
251
|
+
execute(name: string, args: Record<string, unknown>): Promise<ToolResult>;
|
|
252
|
+
register(tool: ToolDefinition, handler: ToolHandler): void;
|
|
253
|
+
}
|
|
254
|
+
export interface ContextPack {
|
|
255
|
+
recent_events: EventLogEntry[];
|
|
256
|
+
relevant_memories: MemoryNode[];
|
|
257
|
+
current_state: MotebitState;
|
|
258
|
+
user_message: string;
|
|
259
|
+
conversation_history?: ConversationMessage[];
|
|
260
|
+
behavior_cues?: BehaviorCues;
|
|
261
|
+
tools?: ToolDefinition[];
|
|
262
|
+
/** Session resumption info — set when continuing a persisted conversation. */
|
|
263
|
+
sessionInfo?: {
|
|
264
|
+
continued: boolean;
|
|
265
|
+
lastActiveAt: number;
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
export type ConversationMessage = {
|
|
269
|
+
role: "user";
|
|
270
|
+
content: string;
|
|
271
|
+
} | {
|
|
272
|
+
role: "assistant";
|
|
273
|
+
content: string;
|
|
274
|
+
tool_calls?: ToolCall[];
|
|
275
|
+
} | {
|
|
276
|
+
role: "tool";
|
|
277
|
+
content: string;
|
|
278
|
+
tool_call_id: string;
|
|
279
|
+
};
|
|
280
|
+
export interface ToolCall {
|
|
281
|
+
id: string;
|
|
282
|
+
name: string;
|
|
283
|
+
args: Record<string, unknown>;
|
|
284
|
+
}
|
|
285
|
+
export interface AIResponse {
|
|
286
|
+
text: string;
|
|
287
|
+
confidence: number;
|
|
288
|
+
memory_candidates: MemoryCandidate[];
|
|
289
|
+
state_updates: Partial<MotebitState>;
|
|
290
|
+
tool_calls?: ToolCall[];
|
|
291
|
+
/** Token usage from the provider, if available. */
|
|
292
|
+
usage?: {
|
|
293
|
+
input_tokens: number;
|
|
294
|
+
output_tokens: number;
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
export interface IntelligenceProvider {
|
|
298
|
+
generate(contextPack: ContextPack): Promise<AIResponse>;
|
|
299
|
+
estimateConfidence(): Promise<number>;
|
|
300
|
+
extractMemoryCandidates(response: AIResponse): Promise<MemoryCandidate[]>;
|
|
301
|
+
}
|
|
302
|
+
export interface AuditRecord {
|
|
303
|
+
audit_id: string;
|
|
304
|
+
motebit_id: string;
|
|
305
|
+
timestamp: number;
|
|
306
|
+
action: string;
|
|
307
|
+
target_type: string;
|
|
308
|
+
target_id: string;
|
|
309
|
+
details: Record<string, unknown>;
|
|
310
|
+
}
|
|
311
|
+
export interface ExportManifest {
|
|
312
|
+
motebit_id: string;
|
|
313
|
+
exported_at: number;
|
|
314
|
+
identity: MotebitIdentity;
|
|
315
|
+
memories: MemoryNode[];
|
|
316
|
+
edges: MemoryEdge[];
|
|
317
|
+
events: EventLogEntry[];
|
|
318
|
+
audit_log: AuditRecord[];
|
|
319
|
+
}
|
|
320
|
+
export interface SyncCursor {
|
|
321
|
+
motebit_id: string;
|
|
322
|
+
last_event_id: string;
|
|
323
|
+
last_version_clock: number;
|
|
324
|
+
}
|
|
325
|
+
export interface ConflictEdge {
|
|
326
|
+
local_event: EventLogEntry;
|
|
327
|
+
remote_event: EventLogEntry;
|
|
328
|
+
resolution: "local_wins" | "remote_wins" | "merged" | "unresolved";
|
|
329
|
+
}
|
|
330
|
+
/** Conversation metadata for sync. Matches persistence Conversation shape using snake_case for wire format. */
|
|
331
|
+
export interface SyncConversation {
|
|
332
|
+
conversation_id: string;
|
|
333
|
+
motebit_id: string;
|
|
334
|
+
started_at: number;
|
|
335
|
+
last_active_at: number;
|
|
336
|
+
title: string | null;
|
|
337
|
+
summary: string | null;
|
|
338
|
+
message_count: number;
|
|
339
|
+
}
|
|
340
|
+
/** Conversation message for sync. Matches persistence ConversationMessage shape using snake_case for wire format. */
|
|
341
|
+
export interface SyncConversationMessage {
|
|
342
|
+
message_id: string;
|
|
343
|
+
conversation_id: string;
|
|
344
|
+
motebit_id: string;
|
|
345
|
+
role: string;
|
|
346
|
+
content: string;
|
|
347
|
+
tool_calls: string | null;
|
|
348
|
+
tool_call_id: string | null;
|
|
349
|
+
created_at: number;
|
|
350
|
+
token_estimate: number;
|
|
351
|
+
}
|
|
352
|
+
/** Result of a conversation sync cycle. */
|
|
353
|
+
export interface ConversationSyncResult {
|
|
354
|
+
conversations_pushed: number;
|
|
355
|
+
conversations_pulled: number;
|
|
356
|
+
messages_pushed: number;
|
|
357
|
+
messages_pulled: number;
|
|
358
|
+
}
|
|
359
|
+
export interface RenderSpec {
|
|
360
|
+
geometry: GeometrySpec;
|
|
361
|
+
material: MaterialSpec;
|
|
362
|
+
lighting: LightingSpec;
|
|
363
|
+
}
|
|
364
|
+
export interface GeometrySpec {
|
|
365
|
+
form: "droplet";
|
|
366
|
+
base_radius: number;
|
|
367
|
+
height: number;
|
|
368
|
+
}
|
|
369
|
+
export interface MaterialSpec {
|
|
370
|
+
ior: number;
|
|
371
|
+
subsurface: number;
|
|
372
|
+
roughness: number;
|
|
373
|
+
clearcoat: number;
|
|
374
|
+
surface_noise_amplitude: number;
|
|
375
|
+
base_color: [number, number, number];
|
|
376
|
+
emissive_intensity: number;
|
|
377
|
+
tint: [number, number, number];
|
|
378
|
+
}
|
|
379
|
+
export interface LightingSpec {
|
|
380
|
+
environment: "hdri";
|
|
381
|
+
exposure: number;
|
|
382
|
+
ambient_intensity: number;
|
|
383
|
+
}
|
|
384
|
+
export declare enum PlanStatus {
|
|
385
|
+
Active = "active",
|
|
386
|
+
Completed = "completed",
|
|
387
|
+
Failed = "failed",
|
|
388
|
+
Paused = "paused"
|
|
389
|
+
}
|
|
390
|
+
export declare enum StepStatus {
|
|
391
|
+
Pending = "pending",
|
|
392
|
+
Running = "running",
|
|
393
|
+
Completed = "completed",
|
|
394
|
+
Failed = "failed",
|
|
395
|
+
Skipped = "skipped"
|
|
396
|
+
}
|
|
397
|
+
export interface PlanStep {
|
|
398
|
+
step_id: string;
|
|
399
|
+
plan_id: string;
|
|
400
|
+
ordinal: number;
|
|
401
|
+
description: string;
|
|
402
|
+
prompt: string;
|
|
403
|
+
depends_on: string[];
|
|
404
|
+
optional: boolean;
|
|
405
|
+
status: StepStatus;
|
|
406
|
+
result_summary: string | null;
|
|
407
|
+
error_message: string | null;
|
|
408
|
+
tool_calls_made: number;
|
|
409
|
+
started_at: number | null;
|
|
410
|
+
completed_at: number | null;
|
|
411
|
+
retry_count: number;
|
|
412
|
+
}
|
|
413
|
+
export interface Plan {
|
|
414
|
+
plan_id: string;
|
|
415
|
+
goal_id: string;
|
|
416
|
+
motebit_id: string;
|
|
417
|
+
title: string;
|
|
418
|
+
status: PlanStatus;
|
|
419
|
+
created_at: number;
|
|
420
|
+
updated_at: number;
|
|
421
|
+
current_step_index: number;
|
|
422
|
+
total_steps: number;
|
|
423
|
+
}
|
|
424
|
+
export declare enum AgentTaskStatus {
|
|
425
|
+
Pending = "pending",
|
|
426
|
+
Claimed = "claimed",
|
|
427
|
+
Running = "running",
|
|
428
|
+
Completed = "completed",
|
|
429
|
+
Failed = "failed",
|
|
430
|
+
Denied = "denied",
|
|
431
|
+
Expired = "expired"
|
|
432
|
+
}
|
|
433
|
+
export interface AgentTask {
|
|
434
|
+
task_id: string;
|
|
435
|
+
motebit_id: string;
|
|
436
|
+
prompt: string;
|
|
437
|
+
submitted_at: number;
|
|
438
|
+
submitted_by?: string;
|
|
439
|
+
wall_clock_ms?: number;
|
|
440
|
+
status: AgentTaskStatus;
|
|
441
|
+
claimed_by?: string;
|
|
442
|
+
}
|
|
443
|
+
export interface ExecutionReceipt {
|
|
444
|
+
task_id: string;
|
|
445
|
+
motebit_id: string;
|
|
446
|
+
device_id: string;
|
|
447
|
+
submitted_at: number;
|
|
448
|
+
completed_at: number;
|
|
449
|
+
status: "completed" | "failed" | "denied";
|
|
450
|
+
result: string;
|
|
451
|
+
tools_used: string[];
|
|
452
|
+
memories_formed: number;
|
|
453
|
+
prompt_hash: string;
|
|
454
|
+
result_hash: string;
|
|
455
|
+
delegation_receipts?: ExecutionReceipt[];
|
|
456
|
+
signature: string;
|
|
457
|
+
}
|
|
458
|
+
export interface AgentCapabilities {
|
|
459
|
+
motebit_id: string;
|
|
460
|
+
public_key: string;
|
|
461
|
+
tools: string[];
|
|
462
|
+
governance: {
|
|
463
|
+
trust_mode: string;
|
|
464
|
+
max_risk_auto: number;
|
|
465
|
+
require_approval_above: number;
|
|
466
|
+
deny_above: number;
|
|
467
|
+
};
|
|
468
|
+
online_devices: number;
|
|
469
|
+
}
|
|
470
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,oBAAY,SAAS;IACnB,IA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@ -0,0 +1,145 @@
|
|
|
1
|
+
// === Enums ===
|
|
2
|
+
export var TrustMode;
|
|
3
|
+
(function (TrustMode) {
|
|
4
|
+
TrustMode["Full"] = "full";
|
|
5
|
+
TrustMode["Guarded"] = "guarded";
|
|
6
|
+
TrustMode["Minimal"] = "minimal";
|
|
7
|
+
})(TrustMode || (TrustMode = {}));
|
|
8
|
+
export var BatteryMode;
|
|
9
|
+
(function (BatteryMode) {
|
|
10
|
+
BatteryMode["Normal"] = "normal";
|
|
11
|
+
BatteryMode["LowPower"] = "low_power";
|
|
12
|
+
BatteryMode["Critical"] = "critical";
|
|
13
|
+
})(BatteryMode || (BatteryMode = {}));
|
|
14
|
+
export var AgentTrustLevel;
|
|
15
|
+
(function (AgentTrustLevel) {
|
|
16
|
+
AgentTrustLevel["Unknown"] = "unknown";
|
|
17
|
+
AgentTrustLevel["FirstContact"] = "first_contact";
|
|
18
|
+
AgentTrustLevel["Verified"] = "verified";
|
|
19
|
+
AgentTrustLevel["Trusted"] = "trusted";
|
|
20
|
+
AgentTrustLevel["Blocked"] = "blocked";
|
|
21
|
+
})(AgentTrustLevel || (AgentTrustLevel = {}));
|
|
22
|
+
export var MotebitType;
|
|
23
|
+
(function (MotebitType) {
|
|
24
|
+
MotebitType["Personal"] = "personal";
|
|
25
|
+
MotebitType["Service"] = "service";
|
|
26
|
+
MotebitType["Collaborative"] = "collaborative";
|
|
27
|
+
})(MotebitType || (MotebitType = {}));
|
|
28
|
+
export var SensitivityLevel;
|
|
29
|
+
(function (SensitivityLevel) {
|
|
30
|
+
SensitivityLevel["None"] = "none";
|
|
31
|
+
SensitivityLevel["Personal"] = "personal";
|
|
32
|
+
SensitivityLevel["Medical"] = "medical";
|
|
33
|
+
SensitivityLevel["Financial"] = "financial";
|
|
34
|
+
SensitivityLevel["Secret"] = "secret";
|
|
35
|
+
})(SensitivityLevel || (SensitivityLevel = {}));
|
|
36
|
+
export var EventType;
|
|
37
|
+
(function (EventType) {
|
|
38
|
+
EventType["IdentityCreated"] = "identity_created";
|
|
39
|
+
EventType["StateUpdated"] = "state_updated";
|
|
40
|
+
EventType["MemoryFormed"] = "memory_formed";
|
|
41
|
+
EventType["MemoryDecayed"] = "memory_decayed";
|
|
42
|
+
EventType["MemoryDeleted"] = "memory_deleted";
|
|
43
|
+
EventType["MemoryAccessed"] = "memory_accessed";
|
|
44
|
+
EventType["ProviderSwapped"] = "provider_swapped";
|
|
45
|
+
EventType["ExportRequested"] = "export_requested";
|
|
46
|
+
EventType["DeleteRequested"] = "delete_requested";
|
|
47
|
+
EventType["SyncCompleted"] = "sync_completed";
|
|
48
|
+
EventType["AuditEntry"] = "audit_entry";
|
|
49
|
+
EventType["ToolUsed"] = "tool_used";
|
|
50
|
+
EventType["PolicyViolation"] = "policy_violation";
|
|
51
|
+
EventType["GoalCreated"] = "goal_created";
|
|
52
|
+
EventType["GoalExecuted"] = "goal_executed";
|
|
53
|
+
EventType["GoalRemoved"] = "goal_removed";
|
|
54
|
+
EventType["ApprovalRequested"] = "approval_requested";
|
|
55
|
+
EventType["ApprovalApproved"] = "approval_approved";
|
|
56
|
+
EventType["ApprovalDenied"] = "approval_denied";
|
|
57
|
+
EventType["ApprovalExpired"] = "approval_expired";
|
|
58
|
+
EventType["GoalCompleted"] = "goal_completed";
|
|
59
|
+
EventType["GoalProgress"] = "goal_progress";
|
|
60
|
+
EventType["MemoryAudit"] = "memory_audit";
|
|
61
|
+
EventType["MemoryPinned"] = "memory_pinned";
|
|
62
|
+
EventType["PlanCreated"] = "plan_created";
|
|
63
|
+
EventType["PlanStepStarted"] = "plan_step_started";
|
|
64
|
+
EventType["PlanStepCompleted"] = "plan_step_completed";
|
|
65
|
+
EventType["PlanStepFailed"] = "plan_step_failed";
|
|
66
|
+
EventType["PlanCompleted"] = "plan_completed";
|
|
67
|
+
EventType["PlanFailed"] = "plan_failed";
|
|
68
|
+
EventType["HousekeepingRun"] = "housekeeping_run";
|
|
69
|
+
EventType["ReflectionCompleted"] = "reflection_completed";
|
|
70
|
+
EventType["MemoryConsolidated"] = "memory_consolidated";
|
|
71
|
+
EventType["AgentTaskCompleted"] = "agent_task_completed";
|
|
72
|
+
EventType["AgentTaskFailed"] = "agent_task_failed";
|
|
73
|
+
EventType["AgentTaskDenied"] = "agent_task_denied";
|
|
74
|
+
})(EventType || (EventType = {}));
|
|
75
|
+
export var RelationType;
|
|
76
|
+
(function (RelationType) {
|
|
77
|
+
RelationType["Related"] = "related";
|
|
78
|
+
RelationType["CausedBy"] = "caused_by";
|
|
79
|
+
RelationType["FollowedBy"] = "followed_by";
|
|
80
|
+
RelationType["ConflictsWith"] = "conflicts_with";
|
|
81
|
+
RelationType["Reinforces"] = "reinforces";
|
|
82
|
+
RelationType["PartOf"] = "part_of";
|
|
83
|
+
RelationType["Supersedes"] = "supersedes";
|
|
84
|
+
})(RelationType || (RelationType = {}));
|
|
85
|
+
export var MemoryType;
|
|
86
|
+
(function (MemoryType) {
|
|
87
|
+
MemoryType["Episodic"] = "episodic";
|
|
88
|
+
MemoryType["Semantic"] = "semantic";
|
|
89
|
+
})(MemoryType || (MemoryType = {}));
|
|
90
|
+
// === Species Constraints (type re-export only — enforcement in policy-invariants) ===
|
|
91
|
+
export const SPECIES_CONSTRAINTS = Object.freeze({
|
|
92
|
+
MAX_AROUSAL: 0.35,
|
|
93
|
+
SMILE_DELTA_MAX: 0.08,
|
|
94
|
+
GLOW_DELTA_MAX: 0.15,
|
|
95
|
+
DRIFT_VARIATION_MAX: 0.1,
|
|
96
|
+
});
|
|
97
|
+
// === Risk Model ===
|
|
98
|
+
export var RiskLevel;
|
|
99
|
+
(function (RiskLevel) {
|
|
100
|
+
RiskLevel[RiskLevel["R0_READ"] = 0] = "R0_READ";
|
|
101
|
+
RiskLevel[RiskLevel["R1_DRAFT"] = 1] = "R1_DRAFT";
|
|
102
|
+
RiskLevel[RiskLevel["R2_WRITE"] = 2] = "R2_WRITE";
|
|
103
|
+
RiskLevel[RiskLevel["R3_EXECUTE"] = 3] = "R3_EXECUTE";
|
|
104
|
+
RiskLevel[RiskLevel["R4_MONEY"] = 4] = "R4_MONEY";
|
|
105
|
+
})(RiskLevel || (RiskLevel = {}));
|
|
106
|
+
export var DataClass;
|
|
107
|
+
(function (DataClass) {
|
|
108
|
+
DataClass["PUBLIC"] = "public";
|
|
109
|
+
DataClass["PRIVATE"] = "private";
|
|
110
|
+
DataClass["SECRET"] = "secret";
|
|
111
|
+
})(DataClass || (DataClass = {}));
|
|
112
|
+
export var SideEffect;
|
|
113
|
+
(function (SideEffect) {
|
|
114
|
+
SideEffect["NONE"] = "none";
|
|
115
|
+
SideEffect["REVERSIBLE"] = "reversible";
|
|
116
|
+
SideEffect["IRREVERSIBLE"] = "irreversible";
|
|
117
|
+
})(SideEffect || (SideEffect = {}));
|
|
118
|
+
// === Plan-Execute Engine ===
|
|
119
|
+
export var PlanStatus;
|
|
120
|
+
(function (PlanStatus) {
|
|
121
|
+
PlanStatus["Active"] = "active";
|
|
122
|
+
PlanStatus["Completed"] = "completed";
|
|
123
|
+
PlanStatus["Failed"] = "failed";
|
|
124
|
+
PlanStatus["Paused"] = "paused";
|
|
125
|
+
})(PlanStatus || (PlanStatus = {}));
|
|
126
|
+
export var StepStatus;
|
|
127
|
+
(function (StepStatus) {
|
|
128
|
+
StepStatus["Pending"] = "pending";
|
|
129
|
+
StepStatus["Running"] = "running";
|
|
130
|
+
StepStatus["Completed"] = "completed";
|
|
131
|
+
StepStatus["Failed"] = "failed";
|
|
132
|
+
StepStatus["Skipped"] = "skipped";
|
|
133
|
+
})(StepStatus || (StepStatus = {}));
|
|
134
|
+
// === Agent Protocol ===
|
|
135
|
+
export var AgentTaskStatus;
|
|
136
|
+
(function (AgentTaskStatus) {
|
|
137
|
+
AgentTaskStatus["Pending"] = "pending";
|
|
138
|
+
AgentTaskStatus["Claimed"] = "claimed";
|
|
139
|
+
AgentTaskStatus["Running"] = "running";
|
|
140
|
+
AgentTaskStatus["Completed"] = "completed";
|
|
141
|
+
AgentTaskStatus["Failed"] = "failed";
|
|
142
|
+
AgentTaskStatus["Denied"] = "denied";
|
|
143
|
+
AgentTaskStatus["Expired"] = "expired";
|
|
144
|
+
})(AgentTaskStatus || (AgentTaskStatus = {}));
|
|
145
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAEhB,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;AACrB,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AAED,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,qCAAsB,CAAA;IACtB,oCAAqB,CAAA;AACvB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED,MAAM,CAAN,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,iDAA8B,CAAA;IAC9B,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;AACrB,CAAC,EANW,eAAe,KAAf,eAAe,QAM1B;AAED,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;IACnB,8CAA+B,CAAA;AACjC,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAaD,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,qCAAiB,CAAA;AACnB,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B;AAED,MAAM,CAAN,IAAY,SAqCX;AArCD,WAAY,SAAS;IACnB,iDAAoC,CAAA;IACpC,2CAA8B,CAAA;IAC9B,2CAA8B,CAAA;IA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|
|
|
1
|
+
{
|
|
2
|
+
"name": "@motebit/sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Core types for the motebit protocol — state vectors, identity, memory, policy, tools, and agent delegation",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist/index.js",
|
|
16
|
+
"dist/index.js.map",
|
|
17
|
+
"dist/index.d.ts",
|
|
18
|
+
"dist/index.d.ts.map",
|
|
19
|
+
"LICENSE",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"keywords": [
|
|
25
|
+
"motebit",
|
|
26
|
+
"agent",
|
|
27
|
+
"identity",
|
|
28
|
+
"protocol",
|
|
29
|
+
"types",
|
|
30
|
+
"state-vector",
|
|
31
|
+
"memory",
|
|
32
|
+
"policy",
|
|
33
|
+
"ed25519",
|
|
34
|
+
"ai"
|
|
35
|
+
],
|
|
36
|
+
"homepage": "https://github.com/motebit/motebit/tree/main/packages/sdk#readme",
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/motebit/motebit/issues"
|
|
39
|
+
},
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "https://github.com/motebit/motebit",
|
|
43
|
+
"directory": "packages/sdk"
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"typescript": "^5.6.0",
|
|
50
|
+
"vitest": "^2.1.0"
|
|
51
|
+
},
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=18"
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"build": "tsc -b",
|
|
57
|
+
"test": "vitest run",
|
|
58
|
+
"typecheck": "tsc --noEmit",
|
|
59
|
+
"lint": "eslint src/",
|
|
60
|
+
"clean": "rm -rf dist .turbo *.tsbuildinfo"
|
|
61
|
+
}
|
|
62
|
+
}
|