@hasna/conversations 0.2.51 → 0.2.53
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/bin/hook.js +24 -14
- package/bin/index.js +784 -77
- package/bin/mcp.js +43 -21
- package/dist/index.js +38 -17
- package/package.json +3 -2
package/bin/mcp.js
CHANGED
|
@@ -6,39 +6,60 @@ var __defProp = Object.defineProperty;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
function __accessProp(key) {
|
|
10
|
+
return this[key];
|
|
11
|
+
}
|
|
12
|
+
var __toESMCache_node;
|
|
13
|
+
var __toESMCache_esm;
|
|
9
14
|
var __toESM = (mod, isNodeMode, target) => {
|
|
15
|
+
var canCache = mod != null && typeof mod === "object";
|
|
16
|
+
if (canCache) {
|
|
17
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
18
|
+
var cached = cache.get(mod);
|
|
19
|
+
if (cached)
|
|
20
|
+
return cached;
|
|
21
|
+
}
|
|
10
22
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
11
23
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
12
24
|
for (let key of __getOwnPropNames(mod))
|
|
13
25
|
if (!__hasOwnProp.call(to, key))
|
|
14
26
|
__defProp(to, key, {
|
|
15
|
-
get: (
|
|
27
|
+
get: __accessProp.bind(mod, key),
|
|
16
28
|
enumerable: true
|
|
17
29
|
});
|
|
30
|
+
if (canCache)
|
|
31
|
+
cache.set(mod, to);
|
|
18
32
|
return to;
|
|
19
33
|
};
|
|
20
|
-
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
|
21
34
|
var __toCommonJS = (from) => {
|
|
22
|
-
var entry = __moduleCache.get(from), desc;
|
|
35
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
23
36
|
if (entry)
|
|
24
37
|
return entry;
|
|
25
38
|
entry = __defProp({}, "__esModule", { value: true });
|
|
26
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
40
|
+
for (var key of __getOwnPropNames(from))
|
|
41
|
+
if (!__hasOwnProp.call(entry, key))
|
|
42
|
+
__defProp(entry, key, {
|
|
43
|
+
get: __accessProp.bind(from, key),
|
|
44
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
45
|
+
});
|
|
46
|
+
}
|
|
31
47
|
__moduleCache.set(from, entry);
|
|
32
48
|
return entry;
|
|
33
49
|
};
|
|
50
|
+
var __moduleCache;
|
|
34
51
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
52
|
+
var __returnValue = (v) => v;
|
|
53
|
+
function __exportSetter(name, newValue) {
|
|
54
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
55
|
+
}
|
|
35
56
|
var __export = (target, all) => {
|
|
36
57
|
for (var name in all)
|
|
37
58
|
__defProp(target, name, {
|
|
38
59
|
get: all[name],
|
|
39
60
|
enumerable: true,
|
|
40
61
|
configurable: true,
|
|
41
|
-
set: (
|
|
62
|
+
set: __exportSetter.bind(all, name)
|
|
42
63
|
});
|
|
43
64
|
};
|
|
44
65
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
@@ -6610,11 +6631,11 @@ import { join as join5 } from "path";
|
|
|
6610
6631
|
import { join as join6, dirname } from "path";
|
|
6611
6632
|
import { existsSync as existsSync6, writeFileSync as writeFileSync2, unlinkSync, mkdirSync as mkdirSync3 } from "fs";
|
|
6612
6633
|
import { homedir as homedir5, platform } from "os";
|
|
6613
|
-
function
|
|
6634
|
+
function __accessProp2(key) {
|
|
6614
6635
|
return this[key];
|
|
6615
6636
|
}
|
|
6616
|
-
function
|
|
6617
|
-
this[name] =
|
|
6637
|
+
function __exportSetter2(name, newValue) {
|
|
6638
|
+
this[name] = __returnValue2.bind(null, newValue);
|
|
6618
6639
|
}
|
|
6619
6640
|
function translateSql(sql, dialect) {
|
|
6620
6641
|
if (dialect === "sqlite")
|
|
@@ -9255,10 +9276,10 @@ function registerCloudCommands(program, serviceName) {
|
|
|
9255
9276
|
}
|
|
9256
9277
|
});
|
|
9257
9278
|
}
|
|
9258
|
-
var __create2, __getProtoOf2, __defProp2, __getOwnPropNames2, __hasOwnProp2,
|
|
9279
|
+
var __create2, __getProtoOf2, __defProp2, __getOwnPropNames2, __hasOwnProp2, __toESMCache_node2, __toESMCache_esm2, __toESM2 = (mod, isNodeMode, target) => {
|
|
9259
9280
|
var canCache = mod != null && typeof mod === "object";
|
|
9260
9281
|
if (canCache) {
|
|
9261
|
-
var cache = isNodeMode ?
|
|
9282
|
+
var cache = isNodeMode ? __toESMCache_node2 ??= new WeakMap : __toESMCache_esm2 ??= new WeakMap;
|
|
9262
9283
|
var cached2 = cache.get(mod);
|
|
9263
9284
|
if (cached2)
|
|
9264
9285
|
return cached2;
|
|
@@ -9268,19 +9289,19 @@ var __create2, __getProtoOf2, __defProp2, __getOwnPropNames2, __hasOwnProp2, __t
|
|
|
9268
9289
|
for (let key of __getOwnPropNames2(mod))
|
|
9269
9290
|
if (!__hasOwnProp2.call(to, key))
|
|
9270
9291
|
__defProp2(to, key, {
|
|
9271
|
-
get:
|
|
9292
|
+
get: __accessProp2.bind(mod, key),
|
|
9272
9293
|
enumerable: true
|
|
9273
9294
|
});
|
|
9274
9295
|
if (canCache)
|
|
9275
9296
|
cache.set(mod, to);
|
|
9276
9297
|
return to;
|
|
9277
|
-
}, __commonJS2 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports),
|
|
9298
|
+
}, __commonJS2 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports), __returnValue2 = (v) => v, __export2 = (target, all) => {
|
|
9278
9299
|
for (var name in all)
|
|
9279
9300
|
__defProp2(target, name, {
|
|
9280
9301
|
get: all[name],
|
|
9281
9302
|
enumerable: true,
|
|
9282
9303
|
configurable: true,
|
|
9283
|
-
set:
|
|
9304
|
+
set: __exportSetter2.bind(all, name)
|
|
9284
9305
|
});
|
|
9285
9306
|
}, __esm2 = (fn, res) => () => (fn && (res = fn(fn = 0)), res), __require, require_postgres_array, require_arrayParser, require_postgres_date, require_mutable, require_postgres_interval, require_postgres_bytea, require_textParsers, require_pg_int8, require_binaryParsers, require_builtins, require_pg_types, require_defaults2, require_utils2, require_utils_legacy, require_utils_webcrypto, require_utils22, require_cert_signatures, require_sasl, require_type_overrides, require_pg_connection_string, require_connection_parameters, require_result, require_query, require_messages, require_buffer_writer, require_serializer, require_buffer_reader, require_parser, require_dist2, require_empty, require_stream, require_connection, require_split2, require_helper, require_lib, require_client, require_pg_pool, require_query2, require_client2, require_lib2, import_lib, Client, Pool, Connection, types, Query, DatabaseError, escapeIdentifier, escapeLiteral, Result, TypeOverrides, defaults, esm_default, init_esm, init_adapter, util2, objectUtil2, ZodParsedType2, getParsedType3 = (data) => {
|
|
9286
9307
|
const t = typeof data;
|
|
@@ -33358,7 +33379,7 @@ function finalize(ctx, schema) {
|
|
|
33358
33379
|
result.$schema = "http://json-schema.org/draft-07/schema#";
|
|
33359
33380
|
} else if (ctx.target === "draft-04") {
|
|
33360
33381
|
result.$schema = "http://json-schema.org/draft-04/schema#";
|
|
33361
|
-
} else if (ctx.target === "openapi-3.0") {}
|
|
33382
|
+
} else if (ctx.target === "openapi-3.0") {}
|
|
33362
33383
|
if (ctx.external?.uri) {
|
|
33363
33384
|
const id = ctx.external.registry.get(schema)?.id;
|
|
33364
33385
|
if (!id)
|
|
@@ -33606,7 +33627,7 @@ var literalProcessor = (schema, ctx, json, _params) => {
|
|
|
33606
33627
|
if (val === undefined) {
|
|
33607
33628
|
if (ctx.unrepresentable === "throw") {
|
|
33608
33629
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
33609
|
-
}
|
|
33630
|
+
}
|
|
33610
33631
|
} else if (typeof val === "bigint") {
|
|
33611
33632
|
if (ctx.unrepresentable === "throw") {
|
|
33612
33633
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -46879,7 +46900,7 @@ function startMcpHttpServer(options) {
|
|
|
46879
46900
|
// package.json
|
|
46880
46901
|
var package_default = {
|
|
46881
46902
|
name: "@hasna/conversations",
|
|
46882
|
-
version: "0.2.
|
|
46903
|
+
version: "0.2.53",
|
|
46883
46904
|
description: "Real-time CLI messaging for AI agents",
|
|
46884
46905
|
type: "module",
|
|
46885
46906
|
bin: {
|
|
@@ -46930,7 +46951,8 @@ var package_default = {
|
|
|
46930
46951
|
typescript: "^5"
|
|
46931
46952
|
},
|
|
46932
46953
|
dependencies: {
|
|
46933
|
-
"@hasna/cloud": "
|
|
46954
|
+
"@hasna/cloud": "0.1.30",
|
|
46955
|
+
"@hasna/events": "^0.1.6",
|
|
46934
46956
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
46935
46957
|
chalk: "^5.3.0",
|
|
46936
46958
|
commander: "^12.1.0",
|
package/dist/index.js
CHANGED
|
@@ -5,39 +5,60 @@ var __defProp = Object.defineProperty;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
function __accessProp(key) {
|
|
9
|
+
return this[key];
|
|
10
|
+
}
|
|
11
|
+
var __toESMCache_node;
|
|
12
|
+
var __toESMCache_esm;
|
|
8
13
|
var __toESM = (mod, isNodeMode, target) => {
|
|
14
|
+
var canCache = mod != null && typeof mod === "object";
|
|
15
|
+
if (canCache) {
|
|
16
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
17
|
+
var cached = cache.get(mod);
|
|
18
|
+
if (cached)
|
|
19
|
+
return cached;
|
|
20
|
+
}
|
|
9
21
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
10
22
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
11
23
|
for (let key of __getOwnPropNames(mod))
|
|
12
24
|
if (!__hasOwnProp.call(to, key))
|
|
13
25
|
__defProp(to, key, {
|
|
14
|
-
get: (
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
15
27
|
enumerable: true
|
|
16
28
|
});
|
|
29
|
+
if (canCache)
|
|
30
|
+
cache.set(mod, to);
|
|
17
31
|
return to;
|
|
18
32
|
};
|
|
19
|
-
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
|
20
33
|
var __toCommonJS = (from) => {
|
|
21
|
-
var entry = __moduleCache.get(from), desc;
|
|
34
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
22
35
|
if (entry)
|
|
23
36
|
return entry;
|
|
24
37
|
entry = __defProp({}, "__esModule", { value: true });
|
|
25
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
38
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
39
|
+
for (var key of __getOwnPropNames(from))
|
|
40
|
+
if (!__hasOwnProp.call(entry, key))
|
|
41
|
+
__defProp(entry, key, {
|
|
42
|
+
get: __accessProp.bind(from, key),
|
|
43
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
44
|
+
});
|
|
45
|
+
}
|
|
30
46
|
__moduleCache.set(from, entry);
|
|
31
47
|
return entry;
|
|
32
48
|
};
|
|
49
|
+
var __moduleCache;
|
|
33
50
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
51
|
+
var __returnValue = (v) => v;
|
|
52
|
+
function __exportSetter(name, newValue) {
|
|
53
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
54
|
+
}
|
|
34
55
|
var __export = (target, all) => {
|
|
35
56
|
for (var name in all)
|
|
36
57
|
__defProp(target, name, {
|
|
37
58
|
get: all[name],
|
|
38
59
|
enumerable: true,
|
|
39
60
|
configurable: true,
|
|
40
|
-
set: (
|
|
61
|
+
set: __exportSetter.bind(all, name)
|
|
41
62
|
});
|
|
42
63
|
};
|
|
43
64
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
@@ -63,11 +84,11 @@ import { homedir as homedir4 } from "os";
|
|
|
63
84
|
import { join as join4 } from "path";
|
|
64
85
|
import { join as join6, dirname } from "path";
|
|
65
86
|
import { homedir as homedir5, platform } from "os";
|
|
66
|
-
function
|
|
87
|
+
function __accessProp2(key) {
|
|
67
88
|
return this[key];
|
|
68
89
|
}
|
|
69
|
-
function
|
|
70
|
-
this[name] =
|
|
90
|
+
function __exportSetter2(name, newValue) {
|
|
91
|
+
this[name] = __returnValue2.bind(null, newValue);
|
|
71
92
|
}
|
|
72
93
|
function translateSql(sql, dialect) {
|
|
73
94
|
if (dialect === "sqlite")
|
|
@@ -1097,10 +1118,10 @@ class SyncProgressTracker {
|
|
|
1097
1118
|
}
|
|
1098
1119
|
}
|
|
1099
1120
|
}
|
|
1100
|
-
var __create2, __getProtoOf2, __defProp2, __getOwnPropNames2, __hasOwnProp2,
|
|
1121
|
+
var __create2, __getProtoOf2, __defProp2, __getOwnPropNames2, __hasOwnProp2, __toESMCache_node2, __toESMCache_esm2, __toESM2 = (mod, isNodeMode, target) => {
|
|
1101
1122
|
var canCache = mod != null && typeof mod === "object";
|
|
1102
1123
|
if (canCache) {
|
|
1103
|
-
var cache = isNodeMode ?
|
|
1124
|
+
var cache = isNodeMode ? __toESMCache_node2 ??= new WeakMap : __toESMCache_esm2 ??= new WeakMap;
|
|
1104
1125
|
var cached = cache.get(mod);
|
|
1105
1126
|
if (cached)
|
|
1106
1127
|
return cached;
|
|
@@ -1110,19 +1131,19 @@ var __create2, __getProtoOf2, __defProp2, __getOwnPropNames2, __hasOwnProp2, __t
|
|
|
1110
1131
|
for (let key of __getOwnPropNames2(mod))
|
|
1111
1132
|
if (!__hasOwnProp2.call(to, key))
|
|
1112
1133
|
__defProp2(to, key, {
|
|
1113
|
-
get:
|
|
1134
|
+
get: __accessProp2.bind(mod, key),
|
|
1114
1135
|
enumerable: true
|
|
1115
1136
|
});
|
|
1116
1137
|
if (canCache)
|
|
1117
1138
|
cache.set(mod, to);
|
|
1118
1139
|
return to;
|
|
1119
|
-
}, __commonJS2 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports),
|
|
1140
|
+
}, __commonJS2 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports), __returnValue2 = (v) => v, __export2 = (target, all) => {
|
|
1120
1141
|
for (var name in all)
|
|
1121
1142
|
__defProp2(target, name, {
|
|
1122
1143
|
get: all[name],
|
|
1123
1144
|
enumerable: true,
|
|
1124
1145
|
configurable: true,
|
|
1125
|
-
set:
|
|
1146
|
+
set: __exportSetter2.bind(all, name)
|
|
1126
1147
|
});
|
|
1127
1148
|
}, __esm2 = (fn, res) => () => (fn && (res = fn(fn = 0)), res), __require, require_postgres_array, require_arrayParser, require_postgres_date, require_mutable, require_postgres_interval, require_postgres_bytea, require_textParsers, require_pg_int8, require_binaryParsers, require_builtins, require_pg_types, require_defaults, require_utils, require_utils_legacy, require_utils_webcrypto, require_utils2, require_cert_signatures, require_sasl, require_type_overrides, require_pg_connection_string, require_connection_parameters, require_result, require_query, require_messages, require_buffer_writer, require_serializer, require_buffer_reader, require_parser, require_dist, require_empty, require_stream, require_connection, require_split2, require_helper, require_lib, require_client, require_pg_pool, require_query2, require_client2, require_lib2, import_lib, Client, Pool, Connection, types, Query, DatabaseError, escapeIdentifier, escapeLiteral, Result, TypeOverrides, defaults, esm_default, init_esm, init_adapter, util, objectUtil, ZodParsedType, getParsedType = (data) => {
|
|
1128
1149
|
const t = typeof data;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/conversations",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.53",
|
|
4
4
|
"description": "Real-time CLI messaging for AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"typescript": "^5"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@hasna/cloud": "
|
|
54
|
+
"@hasna/cloud": "0.1.30",
|
|
55
|
+
"@hasna/events": "^0.1.6",
|
|
55
56
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
56
57
|
"chalk": "^5.3.0",
|
|
57
58
|
"commander": "^12.1.0",
|