pistils-chat-cli 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/LICENSE +202 -0
- package/README.md +110 -0
- package/dist/agent-client.d.ts +77 -0
- package/dist/agent-client.js +155 -0
- package/dist/agenttalk.d.ts +2 -0
- package/dist/agenttalk.js +682 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -0
- package/dist/module_bindings/channel_member_table.d.ts +15 -0
- package/dist/module_bindings/channel_member_table.js +13 -0
- package/dist/module_bindings/channel_table.d.ts +14 -0
- package/dist/module_bindings/channel_table.js +14 -0
- package/dist/module_bindings/create_channel_reducer.d.ts +5 -0
- package/dist/module_bindings/create_channel_reducer.js +11 -0
- package/dist/module_bindings/create_thread_reducer.d.ts +6 -0
- package/dist/module_bindings/create_thread_reducer.js +12 -0
- package/dist/module_bindings/index.d.ts +339 -0
- package/dist/module_bindings/index.js +122 -0
- package/dist/module_bindings/join_channel_reducer.d.ts +4 -0
- package/dist/module_bindings/join_channel_reducer.js +10 -0
- package/dist/module_bindings/leave_channel_reducer.d.ts +4 -0
- package/dist/module_bindings/leave_channel_reducer.js +10 -0
- package/dist/module_bindings/message_table.d.ts +23 -0
- package/dist/module_bindings/message_table.js +17 -0
- package/dist/module_bindings/send_thread_message_reducer.d.ts +5 -0
- package/dist/module_bindings/send_thread_message_reducer.js +11 -0
- package/dist/module_bindings/set_profile_reducer.d.ts +6 -0
- package/dist/module_bindings/set_profile_reducer.js +12 -0
- package/dist/module_bindings/thread_table.d.ts +19 -0
- package/dist/module_bindings/thread_table.js +15 -0
- package/dist/module_bindings/types/procedures.d.ts +1 -0
- package/dist/module_bindings/types/procedures.js +5 -0
- package/dist/module_bindings/types/reducers.d.ts +13 -0
- package/dist/module_bindings/types/reducers.js +4 -0
- package/dist/module_bindings/types.d.ts +45 -0
- package/dist/module_bindings/types.js +47 -0
- package/dist/module_bindings/user_table.d.ts +13 -0
- package/dist/module_bindings/user_table.js +15 -0
- package/package.json +62 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
|
3
|
+
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
const spacetimedb_1 = require("spacetimedb");
|
|
8
|
+
exports.default = {
|
|
9
|
+
name: spacetimedb_1.t.string(),
|
|
10
|
+
role: spacetimedb_1.t.string(),
|
|
11
|
+
bio: spacetimedb_1.t.string(),
|
|
12
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: import("spacetimedb").RowBuilder<{
|
|
2
|
+
id: import("spacetimedb").U64ColumnBuilder<{
|
|
3
|
+
isPrimaryKey: true;
|
|
4
|
+
}>;
|
|
5
|
+
channelId: import("spacetimedb").U64ColumnBuilder<{
|
|
6
|
+
name: "channel_id";
|
|
7
|
+
}>;
|
|
8
|
+
title: import("spacetimedb").StringBuilder;
|
|
9
|
+
createdBy: import("spacetimedb").OptionColumnBuilder<import("spacetimedb").IdentityBuilder, {
|
|
10
|
+
name: "created_by";
|
|
11
|
+
}>;
|
|
12
|
+
createdAt: import("spacetimedb").TimestampColumnBuilder<{
|
|
13
|
+
name: "created_at";
|
|
14
|
+
}>;
|
|
15
|
+
lastActivity: import("spacetimedb").TimestampColumnBuilder<{
|
|
16
|
+
name: "last_activity";
|
|
17
|
+
}>;
|
|
18
|
+
}>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
|
3
|
+
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
const spacetimedb_1 = require("spacetimedb");
|
|
8
|
+
exports.default = spacetimedb_1.t.row({
|
|
9
|
+
id: spacetimedb_1.t.u64().primaryKey(),
|
|
10
|
+
channelId: spacetimedb_1.t.u64().name("channel_id"),
|
|
11
|
+
title: spacetimedb_1.t.string(),
|
|
12
|
+
createdBy: spacetimedb_1.t.option(spacetimedb_1.t.identity()).name("created_by"),
|
|
13
|
+
createdAt: spacetimedb_1.t.timestamp().name("created_at"),
|
|
14
|
+
lastActivity: spacetimedb_1.t.timestamp().name("last_activity"),
|
|
15
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Infer as __Infer } from "spacetimedb";
|
|
2
|
+
import CreateChannelReducer from "../create_channel_reducer";
|
|
3
|
+
import CreateThreadReducer from "../create_thread_reducer";
|
|
4
|
+
import JoinChannelReducer from "../join_channel_reducer";
|
|
5
|
+
import LeaveChannelReducer from "../leave_channel_reducer";
|
|
6
|
+
import SendThreadMessageReducer from "../send_thread_message_reducer";
|
|
7
|
+
import SetProfileReducer from "../set_profile_reducer";
|
|
8
|
+
export type CreateChannelParams = __Infer<typeof CreateChannelReducer>;
|
|
9
|
+
export type CreateThreadParams = __Infer<typeof CreateThreadReducer>;
|
|
10
|
+
export type JoinChannelParams = __Infer<typeof JoinChannelReducer>;
|
|
11
|
+
export type LeaveChannelParams = __Infer<typeof LeaveChannelReducer>;
|
|
12
|
+
export type SendThreadMessageParams = __Infer<typeof SendThreadMessageReducer>;
|
|
13
|
+
export type SetProfileParams = __Infer<typeof SetProfileReducer>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type Infer as __Infer } from "spacetimedb";
|
|
2
|
+
export declare const Channel: import("spacetimedb").ProductBuilder<{
|
|
3
|
+
id: import("spacetimedb").U64Builder;
|
|
4
|
+
name: import("spacetimedb").StringBuilder;
|
|
5
|
+
topic: import("spacetimedb").StringBuilder;
|
|
6
|
+
createdBy: import("spacetimedb").OptionBuilder<import("spacetimedb").IdentityBuilder>;
|
|
7
|
+
createdAt: import("spacetimedb").TimestampBuilder;
|
|
8
|
+
}>;
|
|
9
|
+
export type Channel = __Infer<typeof Channel>;
|
|
10
|
+
export declare const ChannelMember: import("spacetimedb").ProductBuilder<{
|
|
11
|
+
id: import("spacetimedb").U64Builder;
|
|
12
|
+
channelId: import("spacetimedb").U64Builder;
|
|
13
|
+
memberIdentity: import("spacetimedb").IdentityBuilder;
|
|
14
|
+
joinedAt: import("spacetimedb").TimestampBuilder;
|
|
15
|
+
}>;
|
|
16
|
+
export type ChannelMember = __Infer<typeof ChannelMember>;
|
|
17
|
+
export declare const Message: import("spacetimedb").ProductBuilder<{
|
|
18
|
+
id: import("spacetimedb").U64Builder;
|
|
19
|
+
channelId: import("spacetimedb").U64Builder;
|
|
20
|
+
threadId: import("spacetimedb").U64Builder;
|
|
21
|
+
authorIdentity: import("spacetimedb").OptionBuilder<import("spacetimedb").IdentityBuilder>;
|
|
22
|
+
authorLabel: import("spacetimedb").StringBuilder;
|
|
23
|
+
authorKind: import("spacetimedb").StringBuilder;
|
|
24
|
+
text: import("spacetimedb").StringBuilder;
|
|
25
|
+
sent: import("spacetimedb").TimestampBuilder;
|
|
26
|
+
}>;
|
|
27
|
+
export type Message = __Infer<typeof Message>;
|
|
28
|
+
export declare const Thread: import("spacetimedb").ProductBuilder<{
|
|
29
|
+
id: import("spacetimedb").U64Builder;
|
|
30
|
+
channelId: import("spacetimedb").U64Builder;
|
|
31
|
+
title: import("spacetimedb").StringBuilder;
|
|
32
|
+
createdBy: import("spacetimedb").OptionBuilder<import("spacetimedb").IdentityBuilder>;
|
|
33
|
+
createdAt: import("spacetimedb").TimestampBuilder;
|
|
34
|
+
lastActivity: import("spacetimedb").TimestampBuilder;
|
|
35
|
+
}>;
|
|
36
|
+
export type Thread = __Infer<typeof Thread>;
|
|
37
|
+
export declare const User: import("spacetimedb").ProductBuilder<{
|
|
38
|
+
identity: import("spacetimedb").IdentityBuilder;
|
|
39
|
+
name: import("spacetimedb").OptionBuilder<import("spacetimedb").StringBuilder>;
|
|
40
|
+
role: import("spacetimedb").StringBuilder;
|
|
41
|
+
bio: import("spacetimedb").OptionBuilder<import("spacetimedb").StringBuilder>;
|
|
42
|
+
online: import("spacetimedb").BoolBuilder;
|
|
43
|
+
lastSeen: import("spacetimedb").TimestampBuilder;
|
|
44
|
+
}>;
|
|
45
|
+
export type User = __Infer<typeof User>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
|
3
|
+
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.User = exports.Thread = exports.Message = exports.ChannelMember = exports.Channel = void 0;
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
const spacetimedb_1 = require("spacetimedb");
|
|
9
|
+
exports.Channel = spacetimedb_1.t.object("Channel", {
|
|
10
|
+
id: spacetimedb_1.t.u64(),
|
|
11
|
+
name: spacetimedb_1.t.string(),
|
|
12
|
+
topic: spacetimedb_1.t.string(),
|
|
13
|
+
createdBy: spacetimedb_1.t.option(spacetimedb_1.t.identity()),
|
|
14
|
+
createdAt: spacetimedb_1.t.timestamp(),
|
|
15
|
+
});
|
|
16
|
+
exports.ChannelMember = spacetimedb_1.t.object("ChannelMember", {
|
|
17
|
+
id: spacetimedb_1.t.u64(),
|
|
18
|
+
channelId: spacetimedb_1.t.u64(),
|
|
19
|
+
memberIdentity: spacetimedb_1.t.identity(),
|
|
20
|
+
joinedAt: spacetimedb_1.t.timestamp(),
|
|
21
|
+
});
|
|
22
|
+
exports.Message = spacetimedb_1.t.object("Message", {
|
|
23
|
+
id: spacetimedb_1.t.u64(),
|
|
24
|
+
channelId: spacetimedb_1.t.u64(),
|
|
25
|
+
threadId: spacetimedb_1.t.u64(),
|
|
26
|
+
authorIdentity: spacetimedb_1.t.option(spacetimedb_1.t.identity()),
|
|
27
|
+
authorLabel: spacetimedb_1.t.string(),
|
|
28
|
+
authorKind: spacetimedb_1.t.string(),
|
|
29
|
+
text: spacetimedb_1.t.string(),
|
|
30
|
+
sent: spacetimedb_1.t.timestamp(),
|
|
31
|
+
});
|
|
32
|
+
exports.Thread = spacetimedb_1.t.object("Thread", {
|
|
33
|
+
id: spacetimedb_1.t.u64(),
|
|
34
|
+
channelId: spacetimedb_1.t.u64(),
|
|
35
|
+
title: spacetimedb_1.t.string(),
|
|
36
|
+
createdBy: spacetimedb_1.t.option(spacetimedb_1.t.identity()),
|
|
37
|
+
createdAt: spacetimedb_1.t.timestamp(),
|
|
38
|
+
lastActivity: spacetimedb_1.t.timestamp(),
|
|
39
|
+
});
|
|
40
|
+
exports.User = spacetimedb_1.t.object("User", {
|
|
41
|
+
identity: spacetimedb_1.t.identity(),
|
|
42
|
+
name: spacetimedb_1.t.option(spacetimedb_1.t.string()),
|
|
43
|
+
role: spacetimedb_1.t.string(),
|
|
44
|
+
bio: spacetimedb_1.t.option(spacetimedb_1.t.string()),
|
|
45
|
+
online: spacetimedb_1.t.bool(),
|
|
46
|
+
lastSeen: spacetimedb_1.t.timestamp(),
|
|
47
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import("spacetimedb").RowBuilder<{
|
|
2
|
+
identity: import("spacetimedb").IdentityColumnBuilder<{
|
|
3
|
+
isPrimaryKey: true;
|
|
4
|
+
}>;
|
|
5
|
+
name: import("spacetimedb").OptionBuilder<import("spacetimedb").StringBuilder>;
|
|
6
|
+
role: import("spacetimedb").StringBuilder;
|
|
7
|
+
bio: import("spacetimedb").OptionBuilder<import("spacetimedb").StringBuilder>;
|
|
8
|
+
online: import("spacetimedb").BoolBuilder;
|
|
9
|
+
lastSeen: import("spacetimedb").TimestampColumnBuilder<{
|
|
10
|
+
name: "last_seen";
|
|
11
|
+
}>;
|
|
12
|
+
}>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
|
3
|
+
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
const spacetimedb_1 = require("spacetimedb");
|
|
8
|
+
exports.default = spacetimedb_1.t.row({
|
|
9
|
+
identity: spacetimedb_1.t.identity().primaryKey(),
|
|
10
|
+
name: spacetimedb_1.t.option(spacetimedb_1.t.string()),
|
|
11
|
+
role: spacetimedb_1.t.string(),
|
|
12
|
+
bio: spacetimedb_1.t.option(spacetimedb_1.t.string()),
|
|
13
|
+
online: spacetimedb_1.t.bool(),
|
|
14
|
+
lastSeen: spacetimedb_1.t.timestamp().name("last_seen"),
|
|
15
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pistils-chat-cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Tiny realtime SpaceTimeDB v2 CLI for agent-first live chat",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"private": false,
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/con-urr/pistils_chat_cli.git"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://github.com/con-urr/pistils_chat_cli#readme",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/con-urr/pistils_chat_cli/issues"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"agent",
|
|
20
|
+
"chat",
|
|
21
|
+
"realtime",
|
|
22
|
+
"spacetimedb",
|
|
23
|
+
"cli"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=20.0.0"
|
|
27
|
+
},
|
|
28
|
+
"bin": {
|
|
29
|
+
"agenttalk": "dist/agenttalk.js"
|
|
30
|
+
},
|
|
31
|
+
"main": "dist/index.js",
|
|
32
|
+
"types": "dist/index.d.ts",
|
|
33
|
+
"exports": {
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"default": "./dist/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./client": {
|
|
39
|
+
"types": "./dist/agent-client.d.ts",
|
|
40
|
+
"default": "./dist/agent-client.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"dist",
|
|
45
|
+
"README.md",
|
|
46
|
+
"LICENSE"
|
|
47
|
+
],
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "tsc -p tsconfig.json",
|
|
50
|
+
"clean": "rm -rf dist",
|
|
51
|
+
"check": "npm run build && npm run pack:check",
|
|
52
|
+
"prepublishOnly": "npm run clean && npm run build && npm run pack:check",
|
|
53
|
+
"pack:check": "npm_config_cache=.npm-cache npm pack --dry-run"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"spacetimedb": "^2.0.1"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@types/node": "^22.13.10",
|
|
60
|
+
"typescript": "^5.6.2"
|
|
61
|
+
}
|
|
62
|
+
}
|