motebit 0.6.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 (4) hide show
  1. package/LICENSE +112 -0
  2. package/README.md +69 -0
  3. package/dist/index.js +29562 -0
  4. package/package.json +88 -0
package/LICENSE ADDED
@@ -0,0 +1,112 @@
1
+ Business Source License 1.1
2
+
3
+ Parameters
4
+
5
+ Licensor: Motebit, Inc.
6
+ Licensed Work: Motebit
7
+ The Licensed Work is (c) 2026 Motebit
8
+ Additional Use Grant: You may make use of the Licensed Work, provided that
9
+ you do not use the Licensed Work for a Commercial
10
+ Purpose.
11
+
12
+ A "Commercial Purpose" means use of the Licensed Work
13
+ in any manner that is primarily intended for or
14
+ directed toward commercial advantage or monetary
15
+ compensation. This includes, but is not limited to:
16
+
17
+ (a) Offering the Licensed Work or a modified version
18
+ as a hosted service (SaaS, API, or managed service)
19
+ to third parties;
20
+
21
+ (b) Distributing the Licensed Work or a modified
22
+ version as part of a commercial product;
23
+
24
+ (c) Using the Licensed Work to provide services to
25
+ third parties for a fee.
26
+
27
+ The following are expressly permitted under this grant:
28
+
29
+ (i) Personal, educational, and research use;
30
+ (ii) Internal business use (using the software within
31
+ your own organization, not offering it to others);
32
+ (iii) Contributing to the Licensed Work;
33
+ (iv) Using the MIT-licensed components (see below)
34
+ for any purpose without restriction.
35
+
36
+ Change Date: Four years from the date the Licensed Work is published
37
+
38
+ Change License: Apache License, Version 2.0
39
+
40
+ For information about alternative licensing arrangements for the Licensed
41
+ Work, please contact: daniel@motebit.com
42
+
43
+ Notice
44
+
45
+ The Business Source License (this document, or the "License") is not an Open
46
+ Source license. However, the Licensed Work will eventually be made available
47
+ under an Open Source License, as stated in this License.
48
+
49
+ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
50
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
51
+
52
+ MIT-Licensed Components
53
+
54
+ The following components of this repository are licensed under the MIT License
55
+ (see their individual LICENSE files) and are NOT subject to the Business
56
+ Source License:
57
+
58
+ spec/ motebit/identity@1.0 specification
59
+ packages/verify/ @motebit/verify — signature verification
60
+ packages/sdk/ @motebit/sdk — type definitions
61
+ packages/create-motebit/ create-motebit — identity scaffolding CLI
62
+ packages/github-action/ motebit-verify GitHub Action
63
+
64
+ These components may be used, modified, and distributed for any purpose,
65
+ including commercial use, under the terms of the MIT License.
66
+
67
+ Terms
68
+
69
+ The Licensor hereby grants you the right to copy, modify, create derivative
70
+ works, redistribute, and make non-production use of the Licensed Work. The
71
+ Licensor may make an Additional Use Grant, above, permitting limited
72
+ production use.
73
+
74
+ Effective on the Change Date, or the fourth anniversary of the first publicly
75
+ available distribution of a specific version of the Licensed Work under this
76
+ License, whichever comes first, the Licensor hereby grants you rights under
77
+ the terms of the Change License, and the rights granted in the paragraph
78
+ above terminate.
79
+
80
+ If your use of the Licensed Work does not comply with the requirements
81
+ currently in effect as described in this License, you must purchase a
82
+ commercial license from the Licensor, its affiliated entities, or authorized
83
+ resellers, or you must refrain from using the Licensed Work.
84
+
85
+ All copies of the original and modified Licensed Work, and derivative works
86
+ of the Licensed Work, are subject to this License. This License applies
87
+ separately for each version of the Licensed Work and the Change Date may vary
88
+ for each version of the Licensed Work released by the Licensor.
89
+
90
+ You must conspicuously display this License on each original or modified copy
91
+ of the Licensed Work. If you receive the Licensed Work in original or
92
+ modified form from a third party, the terms and conditions set forth in this
93
+ License apply to your use of that work.
94
+
95
+ Any use of the Licensed Work in violation of this License will automatically
96
+ terminate your rights under this License for the current and all other
97
+ versions of the Licensed Work.
98
+
99
+ This License does not grant you any right in any trademark or logo of
100
+ Licensor or its affiliates (provided that you may use a trademark or logo of
101
+ Licensor as expressly required by this License).
102
+
103
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
104
+ AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
105
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
106
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
107
+ TITLE.
108
+
109
+ MariaDB hereby grants you permission to use this License's text to license
110
+ your works, and to refer to it using the trademark "Business Source License",
111
+ as long as you comply with the Cowardly Conditions of the MariaDB Business
112
+ Source License.
package/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # motebit
2
+
3
+ Sovereign AI agent for the terminal. Persistent identity, accumulated trust, governance at the boundary.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g motebit
9
+ ```
10
+
11
+ Requires Node.js >= 20. After install, run `motebit doctor` to verify everything is working.
12
+
13
+ ## Quick start
14
+
15
+ ```bash
16
+ # Check system readiness
17
+ motebit doctor
18
+
19
+ # Interactive REPL — chat with your agent
20
+ motebit
21
+
22
+ # Export a signed identity file
23
+ motebit export
24
+
25
+ # Verify an identity file
26
+ motebit verify motebit.md
27
+
28
+ # Run in daemon mode with scheduled goals
29
+ motebit run --identity motebit.md
30
+ ```
31
+
32
+ ## What is a motebit?
33
+
34
+ A motebit is a persistent, cryptographically-anchored agent — a vessel that connects to any intelligence provider, any tool ecosystem (MCP), and any device. The intelligence is a commodity. The identity, with its accumulated memory, trust, and governance, is the asset.
35
+
36
+ ## Features
37
+
38
+ - **REPL** — Interactive chat with streaming, tool use, and approval flow
39
+ - **Identity** — Ed25519 keypair, encrypted with PBKDF2, stored locally
40
+ - **Daemon mode** — Scheduled goals, tool approval queue, fail-closed governance
41
+ - **MCP** — Connect to any MCP server for tool discovery
42
+ - **Operator mode** — Gated write/exec tools with per-call approval
43
+ - **Memory** — Semantic graph with confidence decay and sensitivity governance
44
+ - **Sync** — Multi-device sync via HTTP/WebSocket relay
45
+
46
+ ## Providers
47
+
48
+ | Provider | Setup |
49
+ | ------------- | ---------------------------------------------------------------- |
50
+ | **Anthropic** | `export ANTHROPIC_API_KEY=sk-ant-...` |
51
+ | **Ollama** | Install [Ollama](https://ollama.ai), `motebit --provider ollama` |
52
+
53
+ ## Troubleshooting
54
+
55
+ If `npm install -g motebit` fails with native module errors (`better-sqlite3`):
56
+
57
+ - **macOS**: Install Xcode command line tools: `xcode-select --install`
58
+ - **Linux**: Install build essentials: `apt install build-essential python3` (Debian/Ubuntu)
59
+ - **Windows**: Install windows-build-tools: `npm install -g windows-build-tools`
60
+
61
+ Run `motebit doctor` to diagnose issues after install.
62
+
63
+ ## Documentation
64
+
65
+ See [docs.motebit.com](https://docs.motebit.com) for full documentation.
66
+
67
+ ## License
68
+
69
+ BSL-1.1 — see [LICENSE](./LICENSE).