ultracontext 1.0.2 → 1.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 +201 -21
- package/README.md +102 -78
- package/assets/sounds/hello_mf.mp3 +0 -0
- package/assets/sounds/quack.mp3 +0 -0
- package/dist/Spinner-C7LzYron.mjs +153 -0
- package/dist/Spinner-C7LzYron.mjs.map +1 -0
- package/dist/cli/daemon/ctl.mjs +131 -0
- package/dist/cli/daemon/ctl.mjs.map +1 -0
- package/dist/cli/daemon/index.mjs +1871 -0
- package/dist/cli/daemon/index.mjs.map +1 -0
- package/dist/cli/daemon/launcher.mjs +142 -0
- package/dist/cli/daemon/launcher.mjs.map +1 -0
- package/dist/cli/entry.mjs +121 -0
- package/dist/cli/entry.mjs.map +1 -0
- package/dist/cli/onboarding.mjs +311 -0
- package/dist/cli/onboarding.mjs.map +1 -0
- package/dist/cli/tui/index.mjs +3195 -0
- package/dist/cli/tui/index.mjs.map +1 -0
- package/dist/index.d.mts +119 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +112 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lock-BektE0Hr.mjs +132 -0
- package/dist/lock-BektE0Hr.mjs.map +1 -0
- package/dist/protocol-CxTlSnc4.mjs +83 -0
- package/dist/protocol-CxTlSnc4.mjs.map +1 -0
- package/package.json +34 -15
- package/postinstall.mjs +14 -0
- package/ultracontext.mjs +31 -0
- package/dist/index.d.ts +0 -116
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -110
package/LICENSE
CHANGED
|
@@ -1,21 +1,201 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,84 +1,134 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://ultracontext.ai">
|
|
3
|
-
<img src="https://ultracontext.ai/
|
|
3
|
+
<img src="https://ultracontext.ai/gh-cover.png" alt="UltraContext" />
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
|
-
<h3 align="center">The
|
|
7
|
+
<h3 align="center">The Context Hub for AI agents.</h3>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<a href="https://ultracontext.ai/docs/quickstart/nodejs">Quickstart</a>
|
|
11
|
-
·
|
|
12
10
|
<a href="https://ultracontext.ai/docs">Documentation</a>
|
|
13
11
|
·
|
|
14
12
|
<a href="https://ultracontext.ai/docs/api-reference/introduction">API Reference</a>
|
|
13
|
+
·
|
|
14
|
+
<a href="https://ultracontext.ai/docs/changelog">Changelog</a>
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
17
|
<p align="center">
|
|
18
18
|
<a href="https://www.npmjs.com/package/ultracontext">
|
|
19
19
|
<img src="https://img.shields.io/npm/v/ultracontext" alt="npm version" />
|
|
20
20
|
</a>
|
|
21
|
+
<a href="https://pypi.org/project/ultracontext/">
|
|
22
|
+
<img src="https://img.shields.io/pypi/v/ultracontext" alt="PyPI version" />
|
|
23
|
+
</a>
|
|
21
24
|
<a href="https://github.com/ultracontext/ultracontext/blob/main/LICENSE">
|
|
22
25
|
<img src="https://img.shields.io/github/license/ultracontext/ultracontext" alt="license" />
|
|
23
26
|
</a>
|
|
27
|
+
<a href="https://github.com/ultracontext/ultracontext">
|
|
28
|
+
<img src="https://img.shields.io/github/stars/ultracontext/ultracontext.svg?style=social&label=Star" alt="GitHub stars" />
|
|
29
|
+
</a>
|
|
24
30
|
</p>
|
|
25
31
|
|
|
26
|
-
<
|
|
32
|
+
<div align="center">
|
|
33
|
+
<a href="https://twitter.com/ultracontext">
|
|
34
|
+
<img src="https://img.shields.io/badge/Follow%20on%20X-000000?style=for-the-badge&logo=x&logoColor=white" alt="Follow on X" />
|
|
35
|
+
</a>
|
|
36
|
+
</div>
|
|
27
37
|
|
|
28
|
-
<
|
|
29
|
-
<p align="center">
|
|
30
|
-
<a href="https://ultracontext.ai/docs/guides/store-retrieve-contexts">Store & Retrieve</a>
|
|
31
|
-
·
|
|
32
|
-
<a href="https://ultracontext.ai/docs/guides/edit-contexts">Edit Contexts</a>
|
|
33
|
-
·
|
|
34
|
-
<a href="https://ultracontext.ai/docs/guides/fork-clone-contexts">Fork & Clone</a>
|
|
35
|
-
·
|
|
36
|
-
<a href="https://ultracontext.ai/docs/guides/view-context-history">View History</a>
|
|
37
|
-
</p>
|
|
38
|
+
<div align="center">
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
## All agents. All machines. One Hub.
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
</div>
|
|
43
|
+
<img src="https://ultracontext.ai/ultracontext-hub.gif" alt="How it works" />
|
|
42
44
|
|
|
43
|
-
|
|
45
|
+
## Introduction
|
|
44
46
|
|
|
45
|
-
|
|
47
|
+
Agents now do our work. Today, most of our knowledge and key decisions live inside context windows. But they are spread across many agents, computers, and teams.
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
Not anymore.
|
|
48
50
|
|
|
49
|
-
|
|
51
|
+
## UltraContext Features
|
|
50
52
|
|
|
51
|
-
|
|
53
|
+
- **Auto-ingest** — Captures contexts from your agents in realtime.
|
|
54
|
+
- **Realtime access** — Immediately see contexts created on any machine, by any agent, whenever you want.
|
|
55
|
+
- **Collaborate** — Share contexts across your team. See what everyone sees, instantly and without any friction.
|
|
56
|
+
- **Switch between agents** — Pick up where one agent left off with another.
|
|
57
|
+
- **Open source** — Own your data. Self-host when you need to.
|
|
58
|
+
- **Plug and play** — Install and run with a single line of code.
|
|
59
|
+
- **Fork & clone** — Continue contexts while preserving the full history.
|
|
60
|
+
- **Customizable** — Add your own agents and extend behavior with the context API ([Docs here](https://ultracontext.ai/docs/api-reference/introduction)).
|
|
52
61
|
|
|
53
|
-
|
|
62
|
+
## Install
|
|
54
63
|
|
|
55
|
-
**
|
|
64
|
+
Requires **Node >= 22**.
|
|
56
65
|
|
|
57
|
-
|
|
66
|
+
```bash
|
|
67
|
+
npm install -g ultracontext
|
|
68
|
+
```
|
|
58
69
|
|
|
59
|
-
|
|
70
|
+
That's it. The setup wizard runs automatically — walks you through API key, sync preferences, and launches the dashboard.
|
|
60
71
|
|
|
61
|
-
|
|
62
|
-
- **Automatic versioning** — Updates/deletes create versions. Nothing is lost.
|
|
63
|
-
- **Time-travel** — Jump to any point by version, index, or timestamp.
|
|
64
|
-
- **Schema-free** — Store any JSON. Own your data structure.
|
|
65
|
-
- **Framework-agnostic** — Works with any LLM framework.
|
|
66
|
-
- **Fast** — Globally distributed. Low latency.
|
|
72
|
+
Already installed? Run `ultracontext config` to reconfigure.
|
|
67
73
|
|
|
68
|
-
|
|
74
|
+
## Quick Start
|
|
69
75
|
|
|
70
|
-
|
|
76
|
+
```bash
|
|
77
|
+
ultracontext # start daemon + open dashboard
|
|
78
|
+
ultracontext config # run setup wizard
|
|
79
|
+
ultracontext start # start daemon only
|
|
80
|
+
ultracontext stop # stop daemon
|
|
81
|
+
ultracontext status # check if daemon is running
|
|
82
|
+
ultracontext tui # open dashboard only
|
|
83
|
+
```
|
|
71
84
|
|
|
72
|
-
|
|
85
|
+
The default ultracontext command does everything: checks the daemon, starts it if needed, and opens the TUI dashboard.
|
|
86
|
+
|
|
87
|
+
## How it works
|
|
88
|
+
|
|
89
|
+
1. A daemon runs in the background, watching your agents.
|
|
90
|
+
2. Contexts are ingested in realtime with the Context API.
|
|
91
|
+
3. Your Context Hub gets updated.
|
|
92
|
+
|
|
93
|
+
We use a git-like context engineering API under the hood to interact with the agent's contexts. You can use it to add your own custom agents, tweak behavior and more. ([Docs here](https://ultracontext.ai/docs/))
|
|
94
|
+
|
|
95
|
+
When you open an existing session from the hub, it forks the context, so the original context is always preserved by default and automatically versioned so you can keep track of it later using metadata.
|
|
96
|
+
|
|
97
|
+
There is a local caching layer that prevents duplicate context creations and appends.
|
|
98
|
+
|
|
99
|
+
## Star History
|
|
100
|
+
|
|
101
|
+
[](https://www.star-history.com/#ultracontext/ultracontext&type=date&legend=top-left)
|
|
102
|
+
|
|
103
|
+
## Everything we built so far
|
|
104
|
+
|
|
105
|
+
- Daemon - Runs in the background, watching your agents.
|
|
106
|
+
- TUI - Terminal UI for the daemon.
|
|
107
|
+
- [Context API](https://ultracontext.ai/docs/) - Git-like context engineering API.
|
|
108
|
+
- [Context API SDKs](https://ultracontext.ai/docs/quickstart/nodejs) - Node and Python SDKs.
|
|
109
|
+
|
|
110
|
+
<div align="center">
|
|
111
|
+
|
|
112
|
+
# The Context API
|
|
113
|
+
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
The Context API is the simplest way to control what your agents see. Replace messages, compact/offload long context, replay decisions and roll back mistakes with a single API call. Versioned context out of the box. Full history. Zero complexity. You can use the API standalone to build your own agents or to tweak behavior of existing ones in ultracontext. ([Docs here](https://ultracontext.ai/docs/api-reference/introduction))
|
|
117
|
+
|
|
118
|
+
## Context API SDKs
|
|
119
|
+
|
|
120
|
+
| SDK | Install | Source |
|
|
121
|
+
|-----|---------|--------|
|
|
122
|
+
| JavaScript/TypeScript | `npm install ultracontext` | [apps/js-sdk](./apps/js-sdk) |
|
|
123
|
+
| Python | `pip install ultracontext` | [apps/python-sdk](./apps/python-sdk) |
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### JavaScript/TypeScript
|
|
73
127
|
|
|
74
128
|
```bash
|
|
75
129
|
npm install ultracontext
|
|
76
130
|
```
|
|
77
131
|
|
|
78
|
-
<br />
|
|
79
|
-
|
|
80
|
-
## Quick Start
|
|
81
|
-
|
|
82
132
|
```js
|
|
83
133
|
import { UltraContext } from 'ultracontext';
|
|
84
134
|
|
|
@@ -91,43 +141,25 @@ await uc.append(ctx.id, { role: 'user', content: 'Hello!' });
|
|
|
91
141
|
const response = await generateText({ model, messages: ctx.data });
|
|
92
142
|
```
|
|
93
143
|
|
|
94
|
-
|
|
144
|
+
### Python
|
|
95
145
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
```js
|
|
101
|
-
// create - new context or fork from existing
|
|
102
|
-
const ctx = await uc.create();
|
|
103
|
-
const fork = await uc.create({ from: 'ctx_abc123' });
|
|
146
|
+
```bash
|
|
147
|
+
pip install ultracontext
|
|
148
|
+
```
|
|
104
149
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
const { data } = await uc.get('ctx_abc123', { version: 2 });
|
|
108
|
-
const { data } = await uc.get('ctx_abc123', { at: 5 });
|
|
109
|
-
const { data, versions } = await uc.get('ctx_abc123', { history: true });
|
|
150
|
+
```python
|
|
151
|
+
from ultracontext import UltraContext
|
|
110
152
|
|
|
111
|
-
|
|
112
|
-
await uc.append(ctx.id, { role: 'user', content: 'Hi' });
|
|
113
|
-
await uc.append(ctx.id, [{ role: 'user', content: 'Hi' }, { foo: 'bar' }]);
|
|
153
|
+
uc = UltraContext(api_key="uc_live_...")
|
|
114
154
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
await uc.update(ctx.id, { index: -1, content: 'Fix last message' });
|
|
155
|
+
ctx = uc.create()
|
|
156
|
+
uc.append(ctx["id"], {"role": "user", "content": "Hello!"})
|
|
118
157
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
await uc.delete(ctx.id, -1);
|
|
158
|
+
# use with any LLM framework
|
|
159
|
+
response = generate_text(model=model, messages=uc.get(ctx["id"])["data"])
|
|
122
160
|
```
|
|
123
161
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
## Star History
|
|
127
|
-
|
|
128
|
-
[](https://www.star-history.com/#ultracontext/ultracontext&type=date&legend=top-left)
|
|
129
|
-
|
|
130
|
-
<br />
|
|
162
|
+
Get an API key from the [UltraContext Dashboard](https://ultracontext.ai/dashboard).
|
|
131
163
|
|
|
132
164
|
## Documentation
|
|
133
165
|
|
|
@@ -135,12 +167,4 @@ await uc.delete(ctx.id, -1);
|
|
|
135
167
|
- [Guides](https://ultracontext.ai/docs/guides/store-retrieve-contexts) — Practical patterns for common use cases
|
|
136
168
|
- [API Reference](https://ultracontext.ai/docs/api-reference/introduction) — Full endpoint documentation
|
|
137
169
|
|
|
138
|
-
---
|
|
139
|
-
|
|
140
|
-
<p align="center">
|
|
141
|
-
<a href="https://ultracontext.ai">Website</a>
|
|
142
|
-
·
|
|
143
|
-
<a href="https://ultracontext.ai/docs">Docs</a>
|
|
144
|
-
·
|
|
145
|
-
<a href="https://github.com/ultracontext/ultracontext/issues">Issues</a>
|
|
146
|
-
</p>
|
|
170
|
+
---
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { Box, Text } from "ink";
|
|
3
|
+
import figlet from "figlet";
|
|
4
|
+
|
|
5
|
+
//#region src/cli/tui/ui/hero-art.mjs
|
|
6
|
+
const HERO_TEXT = "UltraContext";
|
|
7
|
+
const HERO_FONT_ORDER = [
|
|
8
|
+
"Standard",
|
|
9
|
+
"Small",
|
|
10
|
+
"Mini",
|
|
11
|
+
"Slant"
|
|
12
|
+
];
|
|
13
|
+
const HERO_ART_CACHE = /* @__PURE__ */ new Map();
|
|
14
|
+
function trimBlankEdgeLines(lines) {
|
|
15
|
+
let start = 0;
|
|
16
|
+
let end = lines.length;
|
|
17
|
+
while (start < end && !String(lines[start] ?? "").trim()) start += 1;
|
|
18
|
+
while (end > start && !String(lines[end - 1] ?? "").trim()) end -= 1;
|
|
19
|
+
return lines.slice(start, end);
|
|
20
|
+
}
|
|
21
|
+
const HERO_FONT_ART = HERO_FONT_ORDER.map((font) => {
|
|
22
|
+
try {
|
|
23
|
+
const lines = trimBlankEdgeLines(figlet.textSync(HERO_TEXT, {
|
|
24
|
+
font,
|
|
25
|
+
horizontalLayout: "default",
|
|
26
|
+
verticalLayout: "default"
|
|
27
|
+
}).replace(/\n+$/g, "").split("\n").map((line) => line.replace(/\s+$/g, "")));
|
|
28
|
+
return {
|
|
29
|
+
lines,
|
|
30
|
+
width: Math.max(...lines.map((line) => line.length), 0)
|
|
31
|
+
};
|
|
32
|
+
} catch {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
}).filter(Boolean);
|
|
36
|
+
function heroArtForWidth(columns) {
|
|
37
|
+
const available = Math.max(columns ?? 8, 8);
|
|
38
|
+
const cacheKey = String(available);
|
|
39
|
+
if (HERO_ART_CACHE.has(cacheKey)) return HERO_ART_CACHE.get(cacheKey);
|
|
40
|
+
const candidate = HERO_FONT_ART.find((entry) => entry.width <= available);
|
|
41
|
+
const art = candidate ? candidate.lines.map((line) => line.padEnd(candidate.width, " ")) : available >= 12 ? [HERO_TEXT] : ["UC"];
|
|
42
|
+
HERO_ART_CACHE.set(cacheKey, art);
|
|
43
|
+
return art;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/cli/tui/ui/constants.mjs
|
|
48
|
+
const UC_BRAND_BLUE = "#2f6fb3";
|
|
49
|
+
const UC_BLUE_LIGHT = "#7ec3ff";
|
|
50
|
+
const UC_CLAUDE_ORANGE = "#f4a261";
|
|
51
|
+
const UC_CODEX_BLUE = "#5fb2ff";
|
|
52
|
+
const UC_OPENCLAW_RED = "#e76f51";
|
|
53
|
+
const MENU_TABS = [
|
|
54
|
+
{
|
|
55
|
+
id: "logs",
|
|
56
|
+
label: "Live View"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: "contexts",
|
|
60
|
+
label: "Contexts"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "configs",
|
|
64
|
+
label: "Configs"
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/cli/tui/Spinner.mjs
|
|
70
|
+
const WIDTH = 28;
|
|
71
|
+
const HEIGHT = 10;
|
|
72
|
+
const SCALE = 40;
|
|
73
|
+
const CAMERA_Z = 20;
|
|
74
|
+
const CHARS = "··..,,--::;;==!!**##$$@@";
|
|
75
|
+
const zBuffer = new Float32Array(WIDTH * HEIGHT);
|
|
76
|
+
const screenBuffer = new Uint8Array(WIDTH * HEIGHT);
|
|
77
|
+
const pointsData = [];
|
|
78
|
+
function addPoint(x, y, z, type) {
|
|
79
|
+
pointsData.push(x, y, z, type);
|
|
80
|
+
}
|
|
81
|
+
function addLine(x1, y1, z1, x2, y2, z2) {
|
|
82
|
+
const density = 15;
|
|
83
|
+
for (let i = 0; i <= density; i++) {
|
|
84
|
+
const t = i / density;
|
|
85
|
+
addPoint(x1 + (x2 - x1) * t, y1 + (y2 - y1) * t, z1 + (z2 - z1) * t, 0);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
addLine(-1.8, -1.2, 0, -1.8, 1.2, 0);
|
|
89
|
+
addLine(-1.8, 1.2, 0, -1, 1.2, 0);
|
|
90
|
+
addLine(-1.8, -1.2, 0, -1, -1.2, 0);
|
|
91
|
+
addLine(1.8, -1.2, 0, 1.8, 1.2, 0);
|
|
92
|
+
addLine(1.8, 1.2, 0, 1, 1.2, 0);
|
|
93
|
+
addLine(1.8, -1.2, 0, 1, -1.2, 0);
|
|
94
|
+
addPoint(0, 0, 0, 1);
|
|
95
|
+
const points = new Float32Array(pointsData);
|
|
96
|
+
const pointCount = points.length / 4;
|
|
97
|
+
function renderFrame(angle) {
|
|
98
|
+
zBuffer.fill(-Infinity);
|
|
99
|
+
screenBuffer.fill(32);
|
|
100
|
+
const cosA = Math.cos(angle);
|
|
101
|
+
const sinA = Math.sin(angle);
|
|
102
|
+
for (let i = 0; i < pointCount; i++) {
|
|
103
|
+
const idx = i * 4;
|
|
104
|
+
const px = points[idx];
|
|
105
|
+
const py = points[idx + 1];
|
|
106
|
+
const pz = points[idx + 2];
|
|
107
|
+
const ptype = points[idx + 3];
|
|
108
|
+
const xRot = px * cosA - pz * sinA;
|
|
109
|
+
const yRot = py;
|
|
110
|
+
const zRot = px * sinA + pz * cosA;
|
|
111
|
+
const ooz = -1 / (zRot - CAMERA_Z);
|
|
112
|
+
const screenX = Math.floor(WIDTH / 2 + xRot * ooz * SCALE * 2);
|
|
113
|
+
const screenY = Math.floor(HEIGHT / 2 - yRot * ooz * SCALE);
|
|
114
|
+
if (screenX >= 0 && screenX < WIDTH && screenY >= 0 && screenY < HEIGHT) {
|
|
115
|
+
const bufIdx = screenX + screenY * WIDTH;
|
|
116
|
+
if (ooz > zBuffer[bufIdx]) {
|
|
117
|
+
zBuffer[bufIdx] = ooz;
|
|
118
|
+
if (ptype === 1) screenBuffer[bufIdx] = 79;
|
|
119
|
+
else {
|
|
120
|
+
let charIdx = Math.floor((zRot + 2) * 4.5);
|
|
121
|
+
if (charIdx < 0) charIdx = 0;
|
|
122
|
+
if (charIdx >= 24) charIdx = 23;
|
|
123
|
+
screenBuffer[bufIdx] = CHARS.charCodeAt(charIdx);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
const lines = [];
|
|
129
|
+
for (let y = 0; y < HEIGHT; y++) {
|
|
130
|
+
let row = "";
|
|
131
|
+
const offset = y * WIDTH;
|
|
132
|
+
for (let x = 0; x < WIDTH; x++) row += String.fromCharCode(screenBuffer[offset + x]);
|
|
133
|
+
lines.push(row);
|
|
134
|
+
}
|
|
135
|
+
return lines;
|
|
136
|
+
}
|
|
137
|
+
const Spinner = ({ color = "green", prefix = "", suffix = "", prefixColor = "white", suffixColor = "white", sideLines = [], sideGap = 0, sideColor = "white" }) => {
|
|
138
|
+
const [frameRows, setFrameRows] = useState(() => renderFrame(0));
|
|
139
|
+
useEffect(() => {
|
|
140
|
+
let angle = 0;
|
|
141
|
+
const timer = setInterval(() => {
|
|
142
|
+
angle += .05;
|
|
143
|
+
setFrameRows(renderFrame(angle));
|
|
144
|
+
}, 33);
|
|
145
|
+
timer.unref?.();
|
|
146
|
+
return () => clearInterval(timer);
|
|
147
|
+
}, []);
|
|
148
|
+
return React.createElement(Box, { flexDirection: "column" }, ...frameRows.map((row, index) => React.createElement(Text, { key: `spinner-row-${index}` }, prefix ? React.createElement(Text, { color: prefixColor }, prefix) : "", React.createElement(Text, { color }, row), sideLines.length > 0 ? React.createElement(Text, { color: sideColor }, `${" ".repeat(Math.max(sideGap, 0))}${sideLines[index] ?? ""}`) : "", suffix ? React.createElement(Text, { color: suffixColor }, suffix) : "")));
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
//#endregion
|
|
152
|
+
export { UC_CLAUDE_ORANGE as a, heroArtForWidth as c, UC_BRAND_BLUE as i, MENU_TABS as n, UC_CODEX_BLUE as o, UC_BLUE_LIGHT as r, UC_OPENCLAW_RED as s, Spinner as t };
|
|
153
|
+
//# sourceMappingURL=Spinner-C7LzYron.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner-C7LzYron.mjs","names":[],"sources":["../src/cli/tui/ui/hero-art.mjs","../src/cli/tui/ui/constants.mjs","../src/cli/tui/Spinner.mjs"],"sourcesContent":["import figlet from \"figlet\";\n\nconst HERO_TEXT = \"UltraContext\";\nconst HERO_FONT_ORDER = [\"Standard\", \"Small\", \"Mini\", \"Slant\"];\nconst HERO_ART_CACHE = new Map();\n\nfunction trimBlankEdgeLines(lines) {\n let start = 0;\n let end = lines.length;\n while (start < end && !String(lines[start] ?? \"\").trim()) start += 1;\n while (end > start && !String(lines[end - 1] ?? \"\").trim()) end -= 1;\n return lines.slice(start, end);\n}\n\nconst HERO_FONT_ART = HERO_FONT_ORDER.map((font) => {\n try {\n const raw = figlet.textSync(HERO_TEXT, {\n font,\n horizontalLayout: \"default\",\n verticalLayout: \"default\",\n });\n const lines = trimBlankEdgeLines(\n raw\n .replace(/\\n+$/g, \"\")\n .split(\"\\n\")\n .map((line) => line.replace(/\\s+$/g, \"\"))\n );\n const width = Math.max(...lines.map((line) => line.length), 0);\n return { lines, width };\n } catch {\n return null;\n }\n}).filter(Boolean);\n\nexport function heroArtForWidth(columns) {\n const available = Math.max(columns ?? 8, 8);\n const cacheKey = String(available);\n if (HERO_ART_CACHE.has(cacheKey)) return HERO_ART_CACHE.get(cacheKey);\n\n const candidate = HERO_FONT_ART.find((entry) => entry.width <= available);\n const art = candidate\n ? candidate.lines.map((line) => line.padEnd(candidate.width, \" \"))\n : available >= 12\n ? [HERO_TEXT]\n : [\"UC\"];\n\n HERO_ART_CACHE.set(cacheKey, art);\n return art;\n}\n","export const UC_BRAND_BLUE = \"#2f6fb3\";\nexport const UC_BLUE_LIGHT = \"#7ec3ff\";\nexport const UC_CLAUDE_ORANGE = \"#f4a261\";\nexport const UC_CODEX_BLUE = \"#5fb2ff\";\nexport const UC_OPENCLAW_RED = \"#e76f51\";\n\nexport const MENU_TABS = [\n { id: \"logs\", label: \"Live View\" },\n { id: \"contexts\", label: \"Contexts\" },\n { id: \"configs\", label: \"Configs\" },\n];\n","import React, { useState, useEffect } from \"react\";\nimport { Box, Text } from \"ink\";\n\nconst WIDTH = 28;\nconst HEIGHT = 10;\nconst SCALE = 40.0;\nconst CAMERA_Z = 20.0;\nconst CHARS = \"··..,,--::;;==!!**##$$@@\";\n\nconst zBuffer = new Float32Array(WIDTH * HEIGHT);\nconst screenBuffer = new Uint8Array(WIDTH * HEIGHT);\n\nconst pointsData = [];\nfunction addPoint(x, y, z, type) {\n pointsData.push(x, y, z, type);\n}\n\nfunction addLine(x1, y1, z1, x2, y2, z2) {\n const density = 15;\n for (let i = 0; i <= density; i++) {\n const t = i / density;\n addPoint(\n x1 + (x2 - x1) * t,\n y1 + (y2 - y1) * t,\n z1 + (z2 - z1) * t,\n 0\n );\n }\n}\n\naddLine(-1.8, -1.2, 0, -1.8, 1.2, 0);\naddLine(-1.8, 1.2, 0, -1.0, 1.2, 0);\naddLine(-1.8, -1.2, 0, -1.0, -1.2, 0);\n\naddLine(1.8, -1.2, 0, 1.8, 1.2, 0);\naddLine(1.8, 1.2, 0, 1.0, 1.2, 0);\naddLine(1.8, -1.2, 0, 1.0, -1.2, 0);\n\naddPoint(0, 0, 0, 1);\n\nconst points = new Float32Array(pointsData);\nconst pointCount = points.length / 4;\n\nfunction renderFrame(angle) {\n zBuffer.fill(-Infinity);\n screenBuffer.fill(32);\n\n const cosA = Math.cos(angle);\n const sinA = Math.sin(angle);\n\n for (let i = 0; i < pointCount; i++) {\n const idx = i * 4;\n const px = points[idx];\n const py = points[idx + 1];\n const pz = points[idx + 2];\n const ptype = points[idx + 3];\n\n const xRot = px * cosA - pz * sinA;\n const yRot = py;\n const zRot = px * sinA + pz * cosA;\n\n const zFinal = zRot - CAMERA_Z;\n const ooz = -1.0 / zFinal;\n\n const screenX = Math.floor(WIDTH / 2 + xRot * ooz * SCALE * 2.0);\n const screenY = Math.floor(HEIGHT / 2 - yRot * ooz * SCALE);\n\n if (screenX >= 0 && screenX < WIDTH && screenY >= 0 && screenY < HEIGHT) {\n const bufIdx = screenX + screenY * WIDTH;\n if (ooz > zBuffer[bufIdx]) {\n zBuffer[bufIdx] = ooz;\n if (ptype === 1) {\n screenBuffer[bufIdx] = 79;\n } else {\n let charIdx = Math.floor((zRot + 2.0) * 4.5);\n if (charIdx < 0) charIdx = 0;\n if (charIdx >= CHARS.length) charIdx = CHARS.length - 1;\n screenBuffer[bufIdx] = CHARS.charCodeAt(charIdx);\n }\n }\n }\n }\n\n const lines = [];\n for (let y = 0; y < HEIGHT; y++) {\n let row = \"\";\n const offset = y * WIDTH;\n for (let x = 0; x < WIDTH; x++) {\n row += String.fromCharCode(screenBuffer[offset + x]);\n }\n lines.push(row);\n }\n return lines;\n}\n\nconst Spinner = ({\n color = \"green\",\n prefix = \"\",\n suffix = \"\",\n prefixColor = \"white\",\n suffixColor = \"white\",\n sideLines = [],\n sideGap = 0,\n sideColor = \"white\",\n}) => {\n const [frameRows, setFrameRows] = useState(() => renderFrame(0));\n\n useEffect(() => {\n let angle = 0;\n const timer = setInterval(() => {\n angle += 0.05;\n setFrameRows(renderFrame(angle));\n }, 33);\n timer.unref?.();\n return () => clearInterval(timer);\n }, []);\n\n return React.createElement(\n Box,\n { flexDirection: \"column\" },\n ...frameRows.map((row, index) =>\n React.createElement(\n Text,\n { key: `spinner-row-${index}` },\n prefix ? React.createElement(Text, { color: prefixColor }, prefix) : \"\",\n React.createElement(Text, { color }, row),\n sideLines.length > 0\n ? React.createElement(Text, { color: sideColor }, `${\" \".repeat(Math.max(sideGap, 0))}${sideLines[index] ?? \"\"}`)\n : \"\",\n suffix ? React.createElement(Text, { color: suffixColor }, suffix) : \"\"\n )\n )\n );\n};\n\nexport default Spinner;\n"],"mappings":";;;;;AAEA,MAAM,YAAY;AAClB,MAAM,kBAAkB;CAAC;CAAY;CAAS;CAAQ;CAAQ;AAC9D,MAAM,iCAAiB,IAAI,KAAK;AAEhC,SAAS,mBAAmB,OAAO;CACjC,IAAI,QAAQ;CACZ,IAAI,MAAM,MAAM;AAChB,QAAO,QAAQ,OAAO,CAAC,OAAO,MAAM,UAAU,GAAG,CAAC,MAAM,CAAE,UAAS;AACnE,QAAO,MAAM,SAAS,CAAC,OAAO,MAAM,MAAM,MAAM,GAAG,CAAC,MAAM,CAAE,QAAO;AACnE,QAAO,MAAM,MAAM,OAAO,IAAI;;AAGhC,MAAM,gBAAgB,gBAAgB,KAAK,SAAS;AAClD,KAAI;EAMF,MAAM,QAAQ,mBALF,OAAO,SAAS,WAAW;GACrC;GACA,kBAAkB;G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