@hasna/conversations 0.0.8 → 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/README.md +222 -100
- package/bin/index.js +2349 -283
- package/bin/mcp.js +1124 -111
- package/dashboard/dist/assets/index-B6bl8Jzt.css +1 -0
- package/dashboard/dist/assets/index-Dbrg7by9.js +183 -0
- package/dashboard/dist/index.html +2 -2
- package/dist/cli/components/ChatView.d.ts +2 -2
- package/dist/cli/components/SessionList.d.ts +2 -2
- package/dist/index.d.ts +7 -5
- package/dist/index.js +700 -93
- package/dist/lib/messages.d.ts +22 -2
- package/dist/lib/poll.d.ts +3 -3
- package/dist/lib/presence.d.ts +7 -0
- package/dist/lib/projects.d.ts +27 -0
- package/dist/lib/projects.test.d.ts +1 -0
- package/dist/lib/spaces.d.ts +29 -0
- package/dist/lib/spaces.test.d.ts +1 -0
- package/dist/mcp/index.d.ts +1 -1
- package/dist/server/serve.d.ts +1 -1
- package/dist/types.d.ts +45 -7
- package/package.json +1 -1
- package/dashboard/dist/assets/index-C5hQqoWV.js +0 -163
- package/dashboard/dist/assets/index-Dr54QXlJ.css +0 -1
- package/dist/lib/channels.d.ts +0 -8
- /package/dist/lib/{channels.test.d.ts → presence.test.d.ts} +0 -0
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Hasna Conversations</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-Dbrg7by9.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-B6bl8Jzt.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="root"></div>
|
|
@@ -3,7 +3,7 @@ interface ChatViewProps {
|
|
|
3
3
|
onBack: () => void;
|
|
4
4
|
sessionId?: string;
|
|
5
5
|
recipient?: string;
|
|
6
|
-
|
|
6
|
+
spaceName?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare function ChatView({ agent, onBack, sessionId: initialSessionId, recipient,
|
|
8
|
+
export declare function ChatView({ agent, onBack, sessionId: initialSessionId, recipient, spaceName }: ChatViewProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -2,8 +2,8 @@ import type { Session } from "../../types.js";
|
|
|
2
2
|
interface SessionListProps {
|
|
3
3
|
agent: string;
|
|
4
4
|
onSelect: (session: Session) => void;
|
|
5
|
-
|
|
5
|
+
onSelectSpace: (spaceName: string) => void;
|
|
6
6
|
onNew: () => void;
|
|
7
7
|
}
|
|
8
|
-
export declare function SessionList({ agent, onSelect,
|
|
8
|
+
export declare function SessionList({ agent, onSelect, onSelectSpace, onNew }: SessionListProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -4,15 +4,17 @@
|
|
|
4
4
|
* Send and receive messages between AI agents on the same machine:
|
|
5
5
|
* conversations send --to claude-code "hello from codex"
|
|
6
6
|
* conversations read --to codex --json
|
|
7
|
-
* conversations
|
|
7
|
+
* conversations space send deployments "v1.2 deployed"
|
|
8
8
|
*
|
|
9
9
|
* Or use the interactive TUI:
|
|
10
10
|
* conversations
|
|
11
11
|
*/
|
|
12
|
-
export { sendMessage, readMessages, markRead, markSessionRead,
|
|
12
|
+
export { sendMessage, readMessages, markRead, markSessionRead, markSpaceRead, markAllRead, getMessageById, searchMessages, exportMessages, deleteMessage, editMessage, pinMessage, unpinMessage, getPinnedMessages, } from "./lib/messages.js";
|
|
13
13
|
export { listSessions, getSession, } from "./lib/sessions.js";
|
|
14
|
-
export {
|
|
14
|
+
export { createSpace, updateSpace, archiveSpace, unarchiveSpace, listSpaces, getSpace, joinSpace, leaveSpace, getSpaceMembers, isSpaceMember, getSpaceDepth, } from "./lib/spaces.js";
|
|
15
|
+
export { createProject, listProjects, getProject, getProjectByName, updateProject, deleteProject, } from "./lib/projects.js";
|
|
15
16
|
export { getDb, getDbPath, closeDb, } from "./lib/db.js";
|
|
16
|
-
export { startPolling,
|
|
17
|
+
export { startPolling, useSpaceMessages, } from "./lib/poll.js";
|
|
17
18
|
export { resolveIdentity, requireIdentity, } from "./lib/identity.js";
|
|
18
|
-
export
|
|
19
|
+
export { heartbeat, getPresence, listAgents, removePresence, } from "./lib/presence.js";
|
|
20
|
+
export type { Message, Session, Space, SpaceInfo, SpaceMember, Project, ProjectInfo, Priority, SendMessageOptions, ReadMessagesOptions, SearchMessagesOptions, AgentPresence, } from "./types.js";
|