toolnet-memory 0.2.20 → 0.3.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/.env.example +9 -0
- package/bin/toolnet-memory +76 -0
- package/bundle/agy-hook.js +67 -46
- package/bundle/agy.js +104 -38
- package/bundle/api.js +52 -0
- package/bundle/auto-integrate.js +66 -19
- package/bundle/claude-hook.js +78 -0
- package/bundle/claude.js +3 -0
- package/bundle/codex-context.js +30 -25
- package/bundle/codex.js +80 -61
- package/bundle/context-runtime.js +43 -38
- package/bundle/context.js +15 -14
- package/bundle/continuity-certify.js +49 -0
- package/bundle/doctor.js +4 -4
- package/bundle/full-index.js +18 -8
- package/bundle/graph-index.js +4 -4
- package/bundle/handoff-refresh.js +10 -10
- package/bundle/impact.js +3 -3
- package/bundle/incremental.js +4 -4
- package/bundle/init.js +763 -0
- package/bundle/learner.js +5 -5
- package/bundle/mcp.js +19 -15
- package/bundle/memory-agent.js +10 -11
- package/bundle/memory-query.js +7 -7
- package/bundle/opencode.js +72 -53
- package/bundle/production-certify.js +5 -0
- package/bundle/project-manual.js +6 -6
- package/bundle/recovery-certify.js +55 -0
- package/bundle/runtime.js +11 -11
- package/bundle/semantic.js +6 -6
- package/bundle/setup.js +69 -22
- package/bundle/snapshot.js +4 -4
- package/bundle/update.js +4 -1
- package/bundle/work-continuity.js +6 -6
- package/dist/sdk/public.d.ts +2 -0
- package/dist/sdk/public.js +2 -0
- package/dist/sdk/remote-client.d.ts +41 -0
- package/dist/sdk/remote-client.js +185 -0
- package/dist/sdk/types.d.ts +402 -0
- package/dist/sdk/types.js +1 -0
- package/package.json +14 -5
package/.env.example
CHANGED
|
@@ -55,3 +55,12 @@ TOOLNET_SESSION_LEARNING=1
|
|
|
55
55
|
TOOLNET_WORK_CONTINUITY=1
|
|
56
56
|
TOOLNET_SEMANTIC_CONTINUITY=1
|
|
57
57
|
TOOLNET_SMART_HANDOFF=1
|
|
58
|
+
|
|
59
|
+
# ToolNet Memory HTTP API
|
|
60
|
+
TOOLNET_API_HOST=127.0.0.1
|
|
61
|
+
TOOLNET_API_PORT=9750
|
|
62
|
+
TOOLNET_API_TOKEN=
|
|
63
|
+
|
|
64
|
+
# ToolNet Memory Hub
|
|
65
|
+
TOOLNET_HUB_OWNER=owner
|
|
66
|
+
TOOLNET_HUB_MAX_EVENTS=100
|
package/bin/toolnet-memory
CHANGED
|
@@ -41,6 +41,11 @@ run() {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
case "$COMMAND" in
|
|
44
|
+
init)
|
|
45
|
+
shift
|
|
46
|
+
run bundle/init.js src/production/init.ts "$@"
|
|
47
|
+
;;
|
|
48
|
+
|
|
44
49
|
ask)
|
|
45
50
|
shift
|
|
46
51
|
run bundle/memory-query.js src/work-continuity/memory-query-cli.ts "$@"
|
|
@@ -106,6 +111,14 @@ case "$COMMAND" in
|
|
|
106
111
|
run bundle/mcp.js src/mcp/bootstrap.ts
|
|
107
112
|
;;
|
|
108
113
|
|
|
114
|
+
api)
|
|
115
|
+
run bundle/api.js src/api/bootstrap.ts
|
|
116
|
+
;;
|
|
117
|
+
|
|
118
|
+
production:certify)
|
|
119
|
+
run bundle/production-certify.js src/production/production-certify-cli.ts
|
|
120
|
+
;;
|
|
121
|
+
|
|
109
122
|
index)
|
|
110
123
|
run bundle/full-index.js src/production/full-index.ts
|
|
111
124
|
;;
|
|
@@ -176,6 +189,11 @@ case "$COMMAND" in
|
|
|
176
189
|
exit 1
|
|
177
190
|
;;
|
|
178
191
|
|
|
192
|
+
integrate:detect)
|
|
193
|
+
shift
|
|
194
|
+
run bundle/auto-integrate.js src/production/auto-integrate.ts --detect-only "$@"
|
|
195
|
+
;;
|
|
196
|
+
|
|
179
197
|
integrate:auto)
|
|
180
198
|
shift
|
|
181
199
|
run bundle/auto-integrate.js src/production/auto-integrate.ts "$@"
|
|
@@ -240,6 +258,50 @@ case "$COMMAND" in
|
|
|
240
258
|
exec "$TSX" "$ROOT/src/session/agy/cli.ts" install-hooks "$@"
|
|
241
259
|
;;
|
|
242
260
|
|
|
261
|
+
certify:continuity)
|
|
262
|
+
shift
|
|
263
|
+
|
|
264
|
+
if [ -f "$ROOT/bundle/continuity-certify.js" ]; then
|
|
265
|
+
exec node "$ROOT/bundle/continuity-certify.js" "$@"
|
|
266
|
+
fi
|
|
267
|
+
|
|
268
|
+
if [ -x "${TSX:-}" ] && [ -f "$ROOT/src/production/continuity-certify-cli.ts" ]; then
|
|
269
|
+
exec "$TSX" "$ROOT/src/production/continuity-certify-cli.ts" "$@"
|
|
270
|
+
fi
|
|
271
|
+
|
|
272
|
+
echo "Continuity certification runtime not found."
|
|
273
|
+
exit 1
|
|
274
|
+
;;
|
|
275
|
+
|
|
276
|
+
session:claude-hook)
|
|
277
|
+
shift
|
|
278
|
+
|
|
279
|
+
if [ -f "$ROOT/bundle/claude-hook.js" ]; then
|
|
280
|
+
exec node "$ROOT/bundle/claude-hook.js" "$@"
|
|
281
|
+
fi
|
|
282
|
+
|
|
283
|
+
if [ -x "${TSX:-}" ] && [ -f "$ROOT/src/session/claude/hook.ts" ]; then
|
|
284
|
+
exec "$TSX" "$ROOT/src/session/claude/hook.ts" "$@"
|
|
285
|
+
fi
|
|
286
|
+
|
|
287
|
+
exit 0
|
|
288
|
+
;;
|
|
289
|
+
|
|
290
|
+
integrate:claude)
|
|
291
|
+
shift
|
|
292
|
+
|
|
293
|
+
if [ -f "$ROOT/bundle/claude.js" ]; then
|
|
294
|
+
exec node "$ROOT/bundle/claude.js" install "$@"
|
|
295
|
+
fi
|
|
296
|
+
|
|
297
|
+
if [ -x "${TSX:-}" ] && [ -f "$ROOT/src/session/claude/cli.ts" ]; then
|
|
298
|
+
exec "$TSX" "$ROOT/src/session/claude/cli.ts" install "$@"
|
|
299
|
+
fi
|
|
300
|
+
|
|
301
|
+
echo "Claude Code integration installer not found."
|
|
302
|
+
exit 1
|
|
303
|
+
;;
|
|
304
|
+
|
|
243
305
|
session:codex-notify)
|
|
244
306
|
shift
|
|
245
307
|
|
|
@@ -501,6 +563,16 @@ case "$COMMAND" in
|
|
|
501
563
|
cat <<'HELP'
|
|
502
564
|
ToolNet Memory - Project Context & Memory System
|
|
503
565
|
|
|
566
|
+
INTEGRATIONS:
|
|
567
|
+
toolnet-memory integrate:detect Detect Agy, Codex and OpenCode
|
|
568
|
+
toolnet-memory integrate:auto Detect and enable integrations
|
|
569
|
+
|
|
570
|
+
PROJECT SETUP:
|
|
571
|
+
toolnet-memory init [path] Initialize ToolNet for a project
|
|
572
|
+
toolnet-memory init --project <path> Initialize an explicit project
|
|
573
|
+
toolnet-memory init --json Print machine-readable result
|
|
574
|
+
toolnet-memory init --no-integrate Skip automatic agent integration
|
|
575
|
+
|
|
504
576
|
FAST CONTEXT (default):
|
|
505
577
|
toolnet-memory Print fast project context (default)
|
|
506
578
|
toolnet-memory context:print Print fast project context
|
|
@@ -567,6 +639,10 @@ SETUP & INTEGRATION:
|
|
|
567
639
|
toolnet-memory integrate:agy
|
|
568
640
|
toolnet-memory integrate:codex
|
|
569
641
|
toolnet-memory mcp
|
|
642
|
+
toolnet-memory api
|
|
643
|
+
|
|
644
|
+
PRODUCTION:
|
|
645
|
+
toolnet-memory production:certify Verify packaged production runtime
|
|
570
646
|
|
|
571
647
|
SNAPSHOTS:
|
|
572
648
|
toolnet-memory snapshot:list
|