ugly-app 0.1.527 → 0.1.528

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.
Files changed (42) hide show
  1. package/.pgdata/base/24577/1259 +0 -0
  2. package/.pgdata/base/24577/24619 +0 -0
  3. package/.pgdata/base/24577/24619_fsm +0 -0
  4. package/.pgdata/base/24577/24619_vm +0 -0
  5. package/.pgdata/base/24577/24627 +0 -0
  6. package/.pgdata/base/24577/24629 +0 -0
  7. package/.pgdata/base/24577/24629_fsm +0 -0
  8. package/.pgdata/base/24577/24630 +0 -0
  9. package/.pgdata/base/24577/24638 +0 -0
  10. package/.pgdata/base/24577/24640 +0 -0
  11. package/.pgdata/base/24577/24652 +0 -0
  12. package/.pgdata/base/24577/24652_fsm +0 -0
  13. package/.pgdata/base/24577/24660 +0 -0
  14. package/.pgdata/base/24577/24662 +0 -0
  15. package/.pgdata/base/24577/24662_fsm +0 -0
  16. package/.pgdata/base/24577/25512 +0 -0
  17. package/.pgdata/base/24577/25520 +0 -0
  18. package/.pgdata/base/24577/25522 +0 -0
  19. package/.pgdata/base/24577/25523 +0 -0
  20. package/.pgdata/base/24577/25531 +0 -0
  21. package/.pgdata/base/24577/25533 +0 -0
  22. package/.pgdata/base/24577/25534 +0 -0
  23. package/.pgdata/base/24577/25534_fsm +0 -0
  24. package/.pgdata/base/24577/25542 +0 -0
  25. package/.pgdata/base/24577/25544 +0 -0
  26. package/.pgdata/base/24577/25544_fsm +0 -0
  27. package/.pgdata/base/24577/2619 +0 -0
  28. package/.pgdata/base/24577/2619_fsm +0 -0
  29. package/.pgdata/base/24577/2619_vm +0 -0
  30. package/.pgdata/base/24577/2696 +0 -0
  31. package/.pgdata/global/pg_control +0 -0
  32. package/.pgdata/pg_wal/000000010000000000000008 +0 -0
  33. package/.pgdata/pg_xact/0000 +0 -0
  34. package/dist/cli/version.d.ts +1 -1
  35. package/dist/cli/version.js +1 -1
  36. package/dist/conversation/server/engine.d.ts +21 -0
  37. package/dist/conversation/server/engine.d.ts.map +1 -0
  38. package/dist/conversation/server/engine.js +3 -0
  39. package/dist/conversation/server/engine.js.map +1 -0
  40. package/package.json +2 -1
  41. package/src/cli/version.ts +1 -1
  42. package/src/conversation/server/engine.ts +83 -0
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- export declare const CLI_VERSION = "0.1.527";
1
+ export declare const CLI_VERSION = "0.1.528";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // Auto-generated by prebuild — do not edit manually
2
- export const CLI_VERSION = "0.1.527";
2
+ export const CLI_VERSION = "0.1.528";
3
3
  //# sourceMappingURL=version.js.map
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Workers-safe conversation engine barrel.
3
+ *
4
+ * Re-exports the dependency-injected conversation/user engine functions WITHOUT
5
+ * `ConversationServer` — that class statically imports the Node `nats` client
6
+ * (`server/Nats.js`), which can't be bundled for Cloudflare Workers and poisons
7
+ * the whole `./index.js` barrel via tree-shaking-resistant side-effect imports.
8
+ *
9
+ * Use this entry (`ugly-app/conversation/engine`) from Workers-targeted code
10
+ * that drives chat via `setConversationDeps` + the engine functions + trackDocs.
11
+ * Use `ugly-app/conversation/server` (which also exports `enableConversations`
12
+ * and `ConversationServer`) for Node apps that want the built-in AI-chat socket.
13
+ *
14
+ * Export lists mirror `./index.js` exactly (minus ConversationServer/
15
+ * enableConversations) so the two entries stay in sync.
16
+ */
17
+ export type { ConversationDeps } from './ConversationDeps.js';
18
+ export type { ConversationConfig, AIChatConfig, AIChatSession, AIChatMessage, AIChatTool, ConversationHooks, EmailFalloverConfig, SmsFalloverConfig, } from './types.js';
19
+ export { setConversationDeps, conversationCreate, conversationDelete, conversationDeleteAll, conversationGet, conversationLoad, conversationSearch, conversationMessageCreate, conversationMessageDelete, conversationMessageEdit, conversationMessageGet, conversationMessageSearch, conversationMessageReact, conversationMessageContinue, conversationMessageUpdate, conversationSetFields, conversationSetTyping, conversationRunHourly, conversationWebPageUpdated, conversationUpdateChargeUserIds, conversationGetName, getConversationTitle, messageGetText, textMaxLength, dispatchConversationHourly, dispatchConversationStart, dispatchConversationUserAdd, dispatchConversationUserVisible, dispatchConversationEmail, conversationHourly, conversationMessageCreateInternal, } from './Conversation.js';
20
+ export { setConversationUserDeps, conversationUserGet, conversationUserGetAll, conversationUserGetOwners, conversationUserGetChargeUserIds, conversationBotGetAll, conversationUserAdd, conversationBotAdd, conversationUserRemove, conversationBotRemove, conversationUserPublicSetButtons, conversationUserPublicContextMenuSet, conversationUserPrivateButtonsSet, conversationUserPrivateContextMenuSet, conversationUserPrivateUpdate, conversationUserUpdateRole, conversationBotUpdateParams, conversationBotRun, conversationDeleteUnpinned, } from './ConversationUser.js';
21
+ //# sourceMappingURL=engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../src/conversation/server/engine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,YAAY,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,YAAY,EACV,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,+BAA+B,EAC/B,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,+BAA+B,EAC/B,yBAAyB,EACzB,kBAAkB,EAClB,iCAAiC,GAClC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,gCAAgC,EAChC,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,gCAAgC,EAChC,oCAAoC,EACpC,iCAAiC,EACjC,qCAAqC,EACrC,6BAA6B,EAC7B,0BAA0B,EAC1B,2BAA2B,EAC3B,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { setConversationDeps, conversationCreate, conversationDelete, conversationDeleteAll, conversationGet, conversationLoad, conversationSearch, conversationMessageCreate, conversationMessageDelete, conversationMessageEdit, conversationMessageGet, conversationMessageSearch, conversationMessageReact, conversationMessageContinue, conversationMessageUpdate, conversationSetFields, conversationSetTyping, conversationRunHourly, conversationWebPageUpdated, conversationUpdateChargeUserIds, conversationGetName, getConversationTitle, messageGetText, textMaxLength, dispatchConversationHourly, dispatchConversationStart, dispatchConversationUserAdd, dispatchConversationUserVisible, dispatchConversationEmail, conversationHourly, conversationMessageCreateInternal, } from './Conversation.js';
2
+ export { setConversationUserDeps, conversationUserGet, conversationUserGetAll, conversationUserGetOwners, conversationUserGetChargeUserIds, conversationBotGetAll, conversationUserAdd, conversationBotAdd, conversationUserRemove, conversationBotRemove, conversationUserPublicSetButtons, conversationUserPublicContextMenuSet, conversationUserPrivateButtonsSet, conversationUserPrivateContextMenuSet, conversationUserPrivateUpdate, conversationUserUpdateRole, conversationBotUpdateParams, conversationBotRun, conversationDeleteUnpinned, } from './ConversationUser.js';
3
+ //# sourceMappingURL=engine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine.js","sourceRoot":"","sources":["../../../src/conversation/server/engine.ts"],"names":[],"mappings":"AA4BA,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,+BAA+B,EAC/B,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,+BAA+B,EAC/B,yBAAyB,EACzB,kBAAkB,EAClB,iCAAiC,GAClC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,gCAAgC,EAChC,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,gCAAgC,EAChC,oCAAoC,EACpC,iCAAiC,EACjC,qCAAqC,EACrC,6BAA6B,EAC7B,0BAA0B,EAC1B,2BAA2B,EAC3B,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugly-app",
3
- "version": "0.1.527",
3
+ "version": "0.1.528",
4
4
  "type": "module",
5
5
  "main": "./dist/server/index.js",
6
6
  "exports": {
@@ -16,6 +16,7 @@
16
16
  "./markdown/client": "./dist/markdown/client/index.js",
17
17
  "./conversation/shared": "./dist/conversation/shared/index.js",
18
18
  "./conversation/server": "./dist/conversation/server/index.js",
19
+ "./conversation/engine": "./dist/conversation/server/engine.js",
19
20
  "./conversation/client": "./dist/conversation/client/index.js",
20
21
  "./webrtc": {
21
22
  "default": "./dist/webrtc/index.js"
@@ -1,2 +1,2 @@
1
1
  // Auto-generated by prebuild — do not edit manually
2
- export const CLI_VERSION = "0.1.527";
2
+ export const CLI_VERSION = "0.1.528";
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Workers-safe conversation engine barrel.
3
+ *
4
+ * Re-exports the dependency-injected conversation/user engine functions WITHOUT
5
+ * `ConversationServer` — that class statically imports the Node `nats` client
6
+ * (`server/Nats.js`), which can't be bundled for Cloudflare Workers and poisons
7
+ * the whole `./index.js` barrel via tree-shaking-resistant side-effect imports.
8
+ *
9
+ * Use this entry (`ugly-app/conversation/engine`) from Workers-targeted code
10
+ * that drives chat via `setConversationDeps` + the engine functions + trackDocs.
11
+ * Use `ugly-app/conversation/server` (which also exports `enableConversations`
12
+ * and `ConversationServer`) for Node apps that want the built-in AI-chat socket.
13
+ *
14
+ * Export lists mirror `./index.js` exactly (minus ConversationServer/
15
+ * enableConversations) so the two entries stay in sync.
16
+ */
17
+ export type { ConversationDeps } from './ConversationDeps.js';
18
+ export type {
19
+ ConversationConfig,
20
+ AIChatConfig,
21
+ AIChatSession,
22
+ AIChatMessage,
23
+ AIChatTool,
24
+ ConversationHooks,
25
+ EmailFalloverConfig,
26
+ SmsFalloverConfig,
27
+ } from './types.js';
28
+
29
+ export {
30
+ setConversationDeps,
31
+ conversationCreate,
32
+ conversationDelete,
33
+ conversationDeleteAll,
34
+ conversationGet,
35
+ conversationLoad,
36
+ conversationSearch,
37
+ conversationMessageCreate,
38
+ conversationMessageDelete,
39
+ conversationMessageEdit,
40
+ conversationMessageGet,
41
+ conversationMessageSearch,
42
+ conversationMessageReact,
43
+ conversationMessageContinue,
44
+ conversationMessageUpdate,
45
+ conversationSetFields,
46
+ conversationSetTyping,
47
+ conversationRunHourly,
48
+ conversationWebPageUpdated,
49
+ conversationUpdateChargeUserIds,
50
+ conversationGetName,
51
+ getConversationTitle,
52
+ messageGetText,
53
+ textMaxLength,
54
+ dispatchConversationHourly,
55
+ dispatchConversationStart,
56
+ dispatchConversationUserAdd,
57
+ dispatchConversationUserVisible,
58
+ dispatchConversationEmail,
59
+ conversationHourly,
60
+ conversationMessageCreateInternal,
61
+ } from './Conversation.js';
62
+
63
+ export {
64
+ setConversationUserDeps,
65
+ conversationUserGet,
66
+ conversationUserGetAll,
67
+ conversationUserGetOwners,
68
+ conversationUserGetChargeUserIds,
69
+ conversationBotGetAll,
70
+ conversationUserAdd,
71
+ conversationBotAdd,
72
+ conversationUserRemove,
73
+ conversationBotRemove,
74
+ conversationUserPublicSetButtons,
75
+ conversationUserPublicContextMenuSet,
76
+ conversationUserPrivateButtonsSet,
77
+ conversationUserPrivateContextMenuSet,
78
+ conversationUserPrivateUpdate,
79
+ conversationUserUpdateRole,
80
+ conversationBotUpdateParams,
81
+ conversationBotRun,
82
+ conversationDeleteUnpinned,
83
+ } from './ConversationUser.js';