memax-cli 0.1.0-alpha.5 → 0.1.0-alpha.50
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/assets/skills/memax-memory/SKILL.md +173 -0
- package/dist/commands/agent-sessions.d.ts +62 -0
- package/dist/commands/agent-sessions.d.ts.map +1 -0
- package/dist/commands/agent-sessions.js +1447 -0
- package/dist/commands/agent-sessions.js.map +1 -0
- package/dist/commands/agent-sessions.test.d.ts +2 -0
- package/dist/commands/agent-sessions.test.d.ts.map +1 -0
- package/dist/commands/agent-sessions.test.js +255 -0
- package/dist/commands/agent-sessions.test.js.map +1 -0
- package/dist/commands/agents.d.ts +3 -0
- package/dist/commands/agents.d.ts.map +1 -0
- package/dist/commands/agents.js +36 -0
- package/dist/commands/agents.js.map +1 -0
- package/dist/commands/ask.d.ts +15 -0
- package/dist/commands/ask.d.ts.map +1 -0
- package/dist/commands/ask.js +483 -0
- package/dist/commands/ask.js.map +1 -0
- package/dist/commands/auth.d.ts +7 -0
- package/dist/commands/auth.d.ts.map +1 -1
- package/dist/commands/auth.js +99 -8
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/capture.d.ts +19 -0
- package/dist/commands/capture.d.ts.map +1 -0
- package/dist/commands/capture.js +69 -0
- package/dist/commands/capture.js.map +1 -0
- package/dist/commands/config.d.ts +2 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +13 -0
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/delete.d.ts +3 -1
- package/dist/commands/delete.d.ts.map +1 -1
- package/dist/commands/delete.js +30 -5
- package/dist/commands/delete.js.map +1 -1
- package/dist/commands/dreams.d.ts +22 -0
- package/dist/commands/dreams.d.ts.map +1 -0
- package/dist/commands/dreams.js +235 -0
- package/dist/commands/dreams.js.map +1 -0
- package/dist/commands/dreams.test.d.ts +2 -0
- package/dist/commands/dreams.test.d.ts.map +1 -0
- package/dist/commands/dreams.test.js +39 -0
- package/dist/commands/dreams.test.js.map +1 -0
- package/dist/commands/hook.d.ts +2 -0
- package/dist/commands/hook.d.ts.map +1 -1
- package/dist/commands/hook.js +25 -103
- package/dist/commands/hook.js.map +1 -1
- package/dist/commands/hub.d.ts +37 -0
- package/dist/commands/hub.d.ts.map +1 -0
- package/dist/commands/hub.js +347 -0
- package/dist/commands/hub.js.map +1 -0
- package/dist/commands/hub.test.d.ts +2 -0
- package/dist/commands/hub.test.d.ts.map +1 -0
- package/dist/commands/hub.test.js +62 -0
- package/dist/commands/hub.test.js.map +1 -0
- package/dist/commands/list.d.ts +9 -2
- package/dist/commands/list.d.ts.map +1 -1
- package/dist/commands/list.js +118 -9
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/list.test.d.ts +2 -0
- package/dist/commands/list.test.d.ts.map +1 -0
- package/dist/commands/list.test.js +20 -0
- package/dist/commands/list.test.js.map +1 -0
- package/dist/commands/login.d.ts +7 -1
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +85 -22
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +427 -60
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/push.d.ts +7 -2
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/push.js +80 -12
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/recall.d.ts +11 -1
- package/dist/commands/recall.d.ts.map +1 -1
- package/dist/commands/recall.js +228 -41
- package/dist/commands/recall.js.map +1 -1
- package/dist/commands/recall.test.d.ts +2 -0
- package/dist/commands/recall.test.d.ts.map +1 -0
- package/dist/commands/recall.test.js +31 -0
- package/dist/commands/recall.test.js.map +1 -0
- package/dist/commands/setup-hooks.d.ts +13 -0
- package/dist/commands/setup-hooks.d.ts.map +1 -0
- package/dist/commands/setup-hooks.js +193 -0
- package/dist/commands/setup-hooks.js.map +1 -0
- package/dist/commands/setup-instructions.d.ts +21 -0
- package/dist/commands/setup-instructions.d.ts.map +1 -0
- package/dist/commands/setup-instructions.js +172 -0
- package/dist/commands/setup-instructions.js.map +1 -0
- package/dist/commands/setup-mcp.d.ts +40 -0
- package/dist/commands/setup-mcp.d.ts.map +1 -0
- package/dist/commands/setup-mcp.js +414 -0
- package/dist/commands/setup-mcp.js.map +1 -0
- package/dist/commands/setup-types.d.ts +33 -0
- package/dist/commands/setup-types.d.ts.map +1 -0
- package/dist/commands/setup-types.js +60 -0
- package/dist/commands/setup-types.js.map +1 -0
- package/dist/commands/setup.d.ts +13 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +289 -313
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/show.d.ts +5 -1
- package/dist/commands/show.d.ts.map +1 -1
- package/dist/commands/show.js +36 -14
- package/dist/commands/show.js.map +1 -1
- package/dist/commands/sync.d.ts +47 -3
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +1351 -135
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/sync.test.d.ts +2 -0
- package/dist/commands/sync.test.d.ts.map +1 -0
- package/dist/commands/sync.test.js +130 -0
- package/dist/commands/sync.test.js.map +1 -0
- package/dist/commands/topic.d.ts +32 -0
- package/dist/commands/topic.d.ts.map +1 -0
- package/dist/commands/topic.js +265 -0
- package/dist/commands/topic.js.map +1 -0
- package/dist/commands/topic.test.d.ts +2 -0
- package/dist/commands/topic.test.d.ts.map +1 -0
- package/dist/commands/topic.test.js +114 -0
- package/dist/commands/topic.test.js.map +1 -0
- package/dist/index.js +35 -125
- package/dist/index.js.map +1 -1
- package/dist/lib/client.d.ts +10 -0
- package/dist/lib/client.d.ts.map +1 -0
- package/dist/lib/client.js +104 -0
- package/dist/lib/client.js.map +1 -0
- package/dist/lib/client.test.d.ts +2 -0
- package/dist/lib/client.test.d.ts.map +1 -0
- package/dist/lib/client.test.js +44 -0
- package/dist/lib/client.test.js.map +1 -0
- package/dist/lib/config.d.ts +43 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +72 -1
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/credentials.d.ts +3 -0
- package/dist/lib/credentials.d.ts.map +1 -1
- package/dist/lib/credentials.js +24 -2
- package/dist/lib/credentials.js.map +1 -1
- package/dist/lib/hubs.d.ts +7 -0
- package/dist/lib/hubs.d.ts.map +1 -0
- package/dist/lib/hubs.js +33 -0
- package/dist/lib/hubs.js.map +1 -0
- package/dist/lib/hubs.test.d.ts +2 -0
- package/dist/lib/hubs.test.d.ts.map +1 -0
- package/dist/lib/hubs.test.js +58 -0
- package/dist/lib/hubs.test.js.map +1 -0
- package/dist/lib/project-context.d.ts +56 -0
- package/dist/lib/project-context.d.ts.map +1 -0
- package/dist/lib/project-context.js +225 -0
- package/dist/lib/project-context.js.map +1 -0
- package/dist/lib/project-context.test.d.ts +2 -0
- package/dist/lib/project-context.test.d.ts.map +1 -0
- package/dist/lib/project-context.test.js +75 -0
- package/dist/lib/project-context.test.js.map +1 -0
- package/dist/lib/prompt.d.ts +7 -0
- package/dist/lib/prompt.d.ts.map +1 -0
- package/dist/lib/prompt.js +41 -0
- package/dist/lib/prompt.js.map +1 -0
- package/dist/lib/trash.d.ts +6 -0
- package/dist/lib/trash.d.ts.map +1 -0
- package/dist/lib/trash.js +28 -0
- package/dist/lib/trash.js.map +1 -0
- package/package.json +17 -13
- package/.vscode/mcp.json +0 -8
- package/dist/lib/api.d.ts +0 -4
- package/dist/lib/api.d.ts.map +0 -1
- package/dist/lib/api.js +0 -95
- package/dist/lib/api.js.map +0 -1
- package/src/commands/auth.ts +0 -92
- package/src/commands/config.ts +0 -27
- package/src/commands/delete.ts +0 -20
- package/src/commands/hook.ts +0 -243
- package/src/commands/list.ts +0 -38
- package/src/commands/login.ts +0 -162
- package/src/commands/mcp.ts +0 -357
- package/src/commands/push.ts +0 -82
- package/src/commands/recall.ts +0 -163
- package/src/commands/setup.ts +0 -682
- package/src/commands/show.ts +0 -35
- package/src/commands/sync.ts +0 -403
- package/src/index.ts +0 -192
- package/src/lib/api.ts +0 -110
- package/src/lib/config.ts +0 -61
- package/src/lib/credentials.ts +0 -42
- package/tsconfig.json +0 -9
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: memax-memory
|
|
3
|
+
description: Persistent memory layer using Memax. Gives Claude the ability to recall past context and store new learnings across sessions via the Memax MCP tools (memax_recall, memax_push, memax_get, memax_list, memax_forget, memax_capture, memax_topics, memax_hubs, memax_hub_members). Use this skill at the START of every conversation to do a light context check, and throughout the session whenever the user references past decisions, project context, architecture, or conventions — or whenever Claude discovers something worth remembering for future sessions. Also trigger when the user explicitly asks to remember or forget something, or when working on a project where prior context would prevent redundant questions. If Memax MCP tools are available, this skill applies.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Memax Memory — Persistent Context for Claude
|
|
7
|
+
|
|
8
|
+
You have access to **Memax**, a persistent cloud knowledge hub shared across all your AI agents. It survives between sessions — anything you push now is available in every future conversation.
|
|
9
|
+
|
|
10
|
+
Your job is to use it proactively. Don't wait for the user to say "check Memax" or "remember this." Treat it like your own long-term memory.
|
|
11
|
+
|
|
12
|
+
## Tools
|
|
13
|
+
|
|
14
|
+
| Tool | Purpose |
|
|
15
|
+
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
16
|
+
| `memax_recall` | Semantic search — find memories relevant to a natural language query across all accessible hubs |
|
|
17
|
+
| `memax_push` | Save a new memory — supports `hub_id` to target a specific hub, `hub_reason` (required for team hubs), and automatic classification for retrieval |
|
|
18
|
+
| `memax_get` | Read the full content of a specific memory by ID |
|
|
19
|
+
| `memax_list` | Browse/list memories with pagination and sorting |
|
|
20
|
+
| `memax_forget` | Delete a memory by ID |
|
|
21
|
+
| `memax_capture` | Extract and save key decisions, learnings from a session summary |
|
|
22
|
+
| `memax_topics` | Browse the topic tree, or list memories within a specific topic |
|
|
23
|
+
| `memax_hubs` | List hubs the user can access (IDs, slugs, roles, memory counts) |
|
|
24
|
+
| `memax_hub_members` | List members of a specific hub |
|
|
25
|
+
|
|
26
|
+
## When to recall (read)
|
|
27
|
+
|
|
28
|
+
### Every session — light check
|
|
29
|
+
|
|
30
|
+
At the very start of a conversation, before diving into the user's request, do a quick `memax_recall` with a query derived from the user's first message. This takes a second and often saves minutes of redundant back-and-forth.
|
|
31
|
+
|
|
32
|
+
**Example:** User says "Let's work on the auth flow." → `memax_recall("auth flow")` before responding.
|
|
33
|
+
|
|
34
|
+
If the first message is generic (e.g. "hey" or "what's up"), skip the recall — there's nothing meaningful to search for yet. Resume checking once the conversation has a topic.
|
|
35
|
+
|
|
36
|
+
### On cues — deeper recall
|
|
37
|
+
|
|
38
|
+
Go deeper when you notice:
|
|
39
|
+
|
|
40
|
+
- References to past decisions: "the approach we agreed on," "like last time," "what did we decide about..."
|
|
41
|
+
- Project names, codenames, or domain-specific terms you don't have full context for
|
|
42
|
+
- Architecture or convention questions: "how do we handle X," "what's our pattern for Y"
|
|
43
|
+
- The user correcting you on something that suggests prior context exists
|
|
44
|
+
|
|
45
|
+
For deeper recall, chain multiple calls: `memax_recall` to find relevant memories, then `memax_get` on specific IDs to read full details, `memax_list` to browse recent memories, or `memax_topics` to explore the user's knowledge tree and find memories organized by topic.
|
|
46
|
+
|
|
47
|
+
### Don't over-recall
|
|
48
|
+
|
|
49
|
+
One or two recall calls at session start is plenty for most conversations. Don't recall on every single message — that's noisy and slow. Use judgment: if you already have the context you need, just work.
|
|
50
|
+
|
|
51
|
+
## When to push (write)
|
|
52
|
+
|
|
53
|
+
Push memories **proactively during the conversation** whenever something important surfaces. Don't hoard insights until the end — if you discover something worth remembering, push it now. Sessions can end abruptly (browser closed, timeout, context limit), and anything not pushed is lost.
|
|
54
|
+
|
|
55
|
+
### What to push
|
|
56
|
+
|
|
57
|
+
Things that would save time or prevent mistakes in a future session:
|
|
58
|
+
|
|
59
|
+
- **Architecture decisions** — "We chose X over Y because Z"
|
|
60
|
+
- **API conventions** — naming patterns, error handling approaches, auth schemes
|
|
61
|
+
- **Debugging solutions** — especially non-obvious ones that took effort to find
|
|
62
|
+
- **Deployment processes** — steps, gotchas, environment-specific details
|
|
63
|
+
- **Team/project preferences** — coding style, tool choices, workflow preferences
|
|
64
|
+
- **Infrastructure details** — server setup, service configurations, access patterns
|
|
65
|
+
- **Key decisions with rationale** — not just what, but why
|
|
66
|
+
|
|
67
|
+
### What NOT to push
|
|
68
|
+
|
|
69
|
+
- Ephemeral task details ("fix the typo on line 42")
|
|
70
|
+
- File contents — they belong in git, not memory
|
|
71
|
+
- Obvious things that any Claude session would already know
|
|
72
|
+
- Verbatim code blocks — summarize the approach instead
|
|
73
|
+
- Anything the user explicitly says is temporary or experimental
|
|
74
|
+
|
|
75
|
+
### How to write good memories
|
|
76
|
+
|
|
77
|
+
Write memories as if explaining to a future Claude session that has zero context about the current conversation. Be specific and self-contained.
|
|
78
|
+
|
|
79
|
+
**Good:**
|
|
80
|
+
|
|
81
|
+
> Memax uses JWT auth with RS256 signing. Tokens are issued by the API gateway and verified by each microservice independently. We chose RS256 over HS256 so services don't need a shared secret. Decision made 2025-01.
|
|
82
|
+
|
|
83
|
+
**Bad:**
|
|
84
|
+
|
|
85
|
+
> We're using JWT now.
|
|
86
|
+
|
|
87
|
+
Include the _why_ behind decisions — rationale is the most valuable thing to remember because it prevents future sessions from relitigating settled questions.
|
|
88
|
+
|
|
89
|
+
### Push cadence
|
|
90
|
+
|
|
91
|
+
- Push when you reach a durable decision, solve a non-obvious problem, or learn something worth keeping across sessions
|
|
92
|
+
- If a conversation is heavy on decisions (e.g., architecture planning), you might push 3-5 memories
|
|
93
|
+
- For a routine task, zero pushes is fine — not every session produces lasting knowledge
|
|
94
|
+
- Routine progress and mid-task notes don't need to be pushed — save the signal, skip the noise. Memax handles deduplication on the server side, so don't worry about overlap with existing memories.
|
|
95
|
+
|
|
96
|
+
## Handling outdated information
|
|
97
|
+
|
|
98
|
+
If you recall a memory that looks outdated or contradicts what you're learning in the current session, just push the new information as a fresh memory. Don't bother deleting the old one — Memax's cloud layer handles conflict resolution and merging automatically.
|
|
99
|
+
|
|
100
|
+
The exception: if the user explicitly asks you to delete something ("forget that we use Redis" or "remove the old deployment notes"), use `memax_forget` to honor the request.
|
|
101
|
+
|
|
102
|
+
## Classification
|
|
103
|
+
|
|
104
|
+
Memax classifies memories automatically using invisible retrieval axes. Do not pass taxonomy labels when pushing. Instead, write clear, self-contained content and use `hint` when extra context would help the server understand the memory.
|
|
105
|
+
|
|
106
|
+
Good hints are short and plain-language:
|
|
107
|
+
|
|
108
|
+
- "Architecture decision from today's auth review"
|
|
109
|
+
- "Runbook for staging deploy recovery"
|
|
110
|
+
- "Personal preference about code review style"
|
|
111
|
+
|
|
112
|
+
Use topics, tags, pins, and explicit forget/delete actions for user-facing organization and corrections. Retrieval searches across every hub the token can access, with active hub context used as a ranking boost rather than a hard boundary.
|
|
113
|
+
|
|
114
|
+
## Topics
|
|
115
|
+
|
|
116
|
+
Memax automatically organizes memories into a topic tree based on content. Use `memax_topics` to:
|
|
117
|
+
|
|
118
|
+
- **Browse the full tree** (no arguments) — returns all topics with memory counts, useful for understanding what the user's knowledge base covers
|
|
119
|
+
- **Drill into a topic** (pass `topic_id`) — returns the memories within that topic
|
|
120
|
+
|
|
121
|
+
Topics are great for structured exploration: "what do I know about deployment?" → browse topics → drill into the relevant one. This complements `memax_recall` (semantic search) with a more navigable, hierarchical view.
|
|
122
|
+
|
|
123
|
+
## Hubs
|
|
124
|
+
|
|
125
|
+
Users can have multiple hubs — a personal hub and shared team hubs. Use `memax_hubs` to list what's available. When pushing memories, you can optionally target a specific hub with `hub_id` and provide `hub_reason` to explain why the memory belongs there.
|
|
126
|
+
|
|
127
|
+
- `memax_recall` searches across **all accessible hubs** by default — no need to specify a hub for reading
|
|
128
|
+
- `memax_push` without `hub_id` saves to the user's personal hub
|
|
129
|
+
- `memax_hub_members` shows who has access to a given hub — useful when the user asks about team knowledge or shared context
|
|
130
|
+
|
|
131
|
+
## Behavior across environments
|
|
132
|
+
|
|
133
|
+
This skill works in both **Claude Code** and **Claude.ai**. The tools and behaviors are identical. The only difference is conversational style:
|
|
134
|
+
|
|
135
|
+
- In **Claude Code**, you're likely deep in a coding task — recall silently and weave context into your responses without narrating that you checked memory.
|
|
136
|
+
- In **Claude.ai**, conversations are more exploratory — it's fine to briefly mention what you found ("I see from past context that you're using pgvector for embeddings — want me to build on that?").
|
|
137
|
+
|
|
138
|
+
In both cases, push memories inline without ceremony. No need to announce "I'm saving this to Memax" unless the user would benefit from knowing (e.g., they asked you to remember something and you're confirming).
|
|
139
|
+
|
|
140
|
+
## Project context
|
|
141
|
+
|
|
142
|
+
When the Memax MCP server is connected, memories you push are automatically tagged with the current project context (git repo, project name, branch). This means:
|
|
143
|
+
|
|
144
|
+
- Memories pushed from Project A rank higher when recalled from Project A
|
|
145
|
+
- Cross-project knowledge still surfaces, just lower in the ranking
|
|
146
|
+
- You don't need to manually tag project context — it's handled by the transport layer
|
|
147
|
+
|
|
148
|
+
This is especially useful when the user works across multiple repos with different conventions (e.g., different package managers, different auth patterns). Your memories from each repo are contextually prioritized.
|
|
149
|
+
|
|
150
|
+
## At session end
|
|
151
|
+
|
|
152
|
+
If the conversation is ending (user says goodbye, context is running low, or the task is wrapping up) and you learned something significant during the session, push it before the session closes. Key candidates:
|
|
153
|
+
|
|
154
|
+
- Decisions made during this session
|
|
155
|
+
- Bugs found and their root causes
|
|
156
|
+
- Architectural changes or new patterns introduced
|
|
157
|
+
- User preferences you discovered (response style, tool choices, workflow)
|
|
158
|
+
|
|
159
|
+
Don't push a "session summary" — push the individual insights that would be useful standalone.
|
|
160
|
+
|
|
161
|
+
## Quick reference
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
Session start → memax_recall(topic from first message)
|
|
165
|
+
Cue detected → memax_recall(specific query) → memax_get(id) if needed
|
|
166
|
+
Browse structure → memax_topics() → memax_topics(topic_id) to drill in
|
|
167
|
+
Browse recent → memax_list(limit, cursor) with pagination
|
|
168
|
+
Check hubs → memax_hubs() → memax_hub_members(hub_id)
|
|
169
|
+
Important info → memax_push(clear, self-contained summary with rationale)
|
|
170
|
+
Team knowledge → memax_push(content, hub_id, hub_reason) to target a shared hub
|
|
171
|
+
User says forget → memax_forget(id)
|
|
172
|
+
Outdated memory → Just push the new version, Memax handles merging
|
|
173
|
+
```
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import { type ProjectScope } from "../lib/project-context.js";
|
|
3
|
+
import type { AgentSession, SessionSyncPlanAction, Scope } from "memax-sdk";
|
|
4
|
+
interface AgentSessionLocation {
|
|
5
|
+
agent: string;
|
|
6
|
+
path: string;
|
|
7
|
+
filePath: string;
|
|
8
|
+
scope: Scope;
|
|
9
|
+
sessionType: string;
|
|
10
|
+
projectRoot?: string;
|
|
11
|
+
contentHash?: string;
|
|
12
|
+
}
|
|
13
|
+
interface AgentSessionPlacement {
|
|
14
|
+
kind: "present" | "restorable" | "different_project" | "unresolved";
|
|
15
|
+
path?: string;
|
|
16
|
+
reason: string;
|
|
17
|
+
}
|
|
18
|
+
interface SessionProjectContext {
|
|
19
|
+
scope: Scope;
|
|
20
|
+
projectRoot?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function hashPortableSessionContent(agent: string, content: Buffer, projectRoot?: string): string;
|
|
23
|
+
export declare function computeSessionSyncHash(agent: string, scope: Scope, content: Buffer, currentProjectRootPath: string): string;
|
|
24
|
+
export declare function isLegacyGlobalSessionShadowed(action: SessionSyncPlanAction, projectScopedKeys: Set<string>): boolean;
|
|
25
|
+
interface ShadowedGlobalSessionPair {
|
|
26
|
+
global: AgentSession;
|
|
27
|
+
project: AgentSession;
|
|
28
|
+
}
|
|
29
|
+
export declare function findShadowedGlobalSessions(sessions: AgentSession[]): ShadowedGlobalSessionPair[];
|
|
30
|
+
export declare function computeSessionProjectContext(agent: string, path: string, fallbackProjectRoot?: string | null): SessionProjectContext;
|
|
31
|
+
export declare function materializeAgentSessionContent(agent: string, content: Buffer, options: {
|
|
32
|
+
scope: Scope;
|
|
33
|
+
currentProjectRootPath: string;
|
|
34
|
+
writePath: string;
|
|
35
|
+
}): Buffer;
|
|
36
|
+
export declare function syncAgentSessionsCommand(options?: {
|
|
37
|
+
push?: boolean;
|
|
38
|
+
pull?: boolean;
|
|
39
|
+
}): Promise<void>;
|
|
40
|
+
export declare function listAgentSessionsCommand(): Promise<void>;
|
|
41
|
+
export declare function listDeletedAgentSessionsCommand(): Promise<void>;
|
|
42
|
+
export declare function restoreDeletedAgentSessionsCommand(): Promise<void>;
|
|
43
|
+
export declare function deleteAgentSessionsCommand(): Promise<void>;
|
|
44
|
+
export declare function cleanupAgentSessionsCommand(options?: {
|
|
45
|
+
yes?: boolean;
|
|
46
|
+
}): Promise<void>;
|
|
47
|
+
export declare function doctorAgentSessionsCommand(): Promise<void>;
|
|
48
|
+
export declare function registerAgentSessionCommands(agentsCmd: Command): void;
|
|
49
|
+
export declare function resolveAgentSessionWritePath(agent: string, filePath: string, scope: Scope, options?: {
|
|
50
|
+
cwd?: string;
|
|
51
|
+
home?: string;
|
|
52
|
+
currentProjectScope?: ProjectScope;
|
|
53
|
+
currentProjectRootPath?: string;
|
|
54
|
+
}): string | null;
|
|
55
|
+
export declare function classifyAgentSessionPlacement(agent: string, filePath: string, scope: Scope, options?: {
|
|
56
|
+
cwd?: string;
|
|
57
|
+
home?: string;
|
|
58
|
+
currentProjectScope?: ProjectScope;
|
|
59
|
+
localByKey?: Map<string, AgentSessionLocation>;
|
|
60
|
+
}): AgentSessionPlacement;
|
|
61
|
+
export {};
|
|
62
|
+
//# sourceMappingURL=agent-sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-sessions.d.ts","sourceRoot":"","sources":["../../src/commands/agent-sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAcpC,OAAO,EAQL,KAAK,YAAY,EAClB,MAAM,2BAA2B,CAAC;AAIn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