memeloop 0.1.3 → 0.2.1

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 (80) hide show
  1. package/dist/browser.cjs +1 -1
  2. package/dist/browser.cjs.map +1 -1
  3. package/dist/browser.d.cts +15 -15
  4. package/dist/browser.d.ts +15 -15
  5. package/dist/browser.js +1 -1
  6. package/dist/{chunk-5JEV7632.js → chunk-5VYZV33O.js} +2 -1
  7. package/dist/{chunk-5JEV7632.js.map → chunk-5VYZV33O.js.map} +1 -1
  8. package/dist/chunk-E5R24U4I.js +1292 -0
  9. package/dist/chunk-E5R24U4I.js.map +1 -0
  10. package/dist/{chunk-MRKY4HGF.js → chunk-EPHRIRAL.js} +20 -11
  11. package/dist/chunk-EPHRIRAL.js.map +1 -0
  12. package/dist/{chunk-P6L3444O.js → chunk-KV6TC5UJ.js} +2 -2
  13. package/dist/chunk-MXRXYGWW.js +1 -0
  14. package/dist/{chunk-CCEFAOSH.js → chunk-WHXFUMDE.js} +2 -2
  15. package/dist/{chunk-CCEFAOSH.js.map → chunk-WHXFUMDE.js.map} +1 -1
  16. package/dist/conversation.d.cts +3 -3
  17. package/dist/conversation.d.ts +3 -3
  18. package/dist/device-network-portable.cjs +814 -144
  19. package/dist/device-network-portable.cjs.map +1 -1
  20. package/dist/device-network-portable.d.cts +24 -14
  21. package/dist/device-network-portable.d.ts +24 -14
  22. package/dist/device-network-portable.js +18 -2
  23. package/dist/device-network.cjs +833 -154
  24. package/dist/device-network.cjs.map +1 -1
  25. package/dist/device-network.d.cts +5 -5
  26. package/dist/device-network.d.ts +5 -5
  27. package/dist/device-network.js +19 -3
  28. package/dist/{fetchProvider-WWnWnQFP.d.ts → fetchProvider-BhqRqi5-.d.ts} +1 -1
  29. package/dist/{fetchProvider-toTHy5Nu.d.cts → fetchProvider-HJ_FkORN.d.cts} +1 -1
  30. package/dist/index.cjs +841 -157
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.cts +16 -16
  33. package/dist/index.d.ts +16 -16
  34. package/dist/index.js +26 -8
  35. package/dist/index.js.map +1 -1
  36. package/dist/{interface-IrKBFtL1.d.ts → interface-3C3eG8Hn.d.cts} +13 -1
  37. package/dist/{interface-IrKBFtL1.d.cts → interface-3C3eG8Hn.d.ts} +13 -1
  38. package/dist/llm-providers.d.cts +2 -2
  39. package/dist/llm-providers.d.ts +2 -2
  40. package/dist/loop-api.cjs +1 -0
  41. package/dist/loop-api.cjs.map +1 -1
  42. package/dist/loop-api.d.cts +7 -7
  43. package/dist/loop-api.d.ts +7 -7
  44. package/dist/loop-api.js +2 -2
  45. package/dist/mobile.d.cts +5 -5
  46. package/dist/mobile.d.ts +5 -5
  47. package/dist/{orchestration-portable-BHB_YrNN.d.ts → orchestration-portable-B4udCSVd.d.ts} +4 -4
  48. package/dist/{orchestration-portable-mvYBvGBb.d.cts → orchestration-portable-BWaCsCGK.d.cts} +4 -4
  49. package/dist/orchestration-portable.cjs +1 -1
  50. package/dist/orchestration-portable.cjs.map +1 -1
  51. package/dist/orchestration-portable.d.cts +5 -5
  52. package/dist/orchestration-portable.d.ts +5 -5
  53. package/dist/orchestration-portable.js +1 -1
  54. package/dist/pairingInvite-DENOiqa0.d.cts +271 -0
  55. package/dist/pairingInvite-DZy77i0p.d.ts +271 -0
  56. package/dist/{promptConcat-0WNFTg4l.d.ts → promptConcat-CUEIA_3T.d.ts} +3 -3
  57. package/dist/{promptConcat-D6wr5V-V.d.cts → promptConcat-VLe5SEN4.d.cts} +3 -3
  58. package/dist/{providerRegistry-CPsktuiX.d.cts → providerRegistry-BDGGs5gz.d.cts} +2 -2
  59. package/dist/{providerRegistry-Bi6pAvSj.d.ts → providerRegistry-CaFK_aUd.d.ts} +2 -2
  60. package/dist/{registry-D0kbxksn.d.cts → registry-DNSEVYug.d.cts} +3 -3
  61. package/dist/{registry-DDbvhlhs.d.ts → registry-yGnYHWhq.d.ts} +3 -3
  62. package/dist/{remoteClient-CBggnRy3.d.cts → remoteClient-DFIyCZEv.d.cts} +2 -2
  63. package/dist/{remoteClient-B_spK019.d.ts → remoteClient-DwBCoHpc.d.ts} +2 -2
  64. package/dist/{runtime-UONPTAYK.js → runtime-6EELHWVB.js} +2 -2
  65. package/dist/{scriptDeploymentPipeline-CXJcC82H.d.ts → scriptDeploymentPipeline-B1q-UhrO.d.ts} +1 -1
  66. package/dist/{scriptDeploymentPipeline-yG1ZhVVI.d.cts → scriptDeploymentPipeline-XJzQyYys.d.cts} +1 -1
  67. package/dist/{syncCloudDevices-Ds_Kcgrv.d.cts → syncCloudDevices-BFw_c1g5.d.cts} +6 -5
  68. package/dist/{syncCloudDevices-BEqwgrhD.d.ts → syncCloudDevices-C8fCUhnX.d.ts} +6 -5
  69. package/dist/{types-CdFVSntj.d.ts → types-C8gnhG9M.d.cts} +6 -4
  70. package/dist/{types-7pYti-k9.d.cts → types-CcFFIk8W.d.ts} +6 -4
  71. package/package.json +1 -1
  72. package/dist/chunk-426CJUZP.js +0 -630
  73. package/dist/chunk-426CJUZP.js.map +0 -1
  74. package/dist/chunk-MRKY4HGF.js.map +0 -1
  75. package/dist/chunk-VZKQX5PP.js +0 -1
  76. package/dist/pairingInvite-BXPWY3aM.d.cts +0 -149
  77. package/dist/pairingInvite-Cuz0wuq9.d.ts +0 -149
  78. /package/dist/{chunk-P6L3444O.js.map → chunk-KV6TC5UJ.js.map} +0 -0
  79. /package/dist/{chunk-VZKQX5PP.js.map → chunk-MXRXYGWW.js.map} +0 -0
  80. /package/dist/{runtime-UONPTAYK.js.map → runtime-6EELHWVB.js.map} +0 -0
@@ -412,6 +412,8 @@ interface ConversationMeta {
412
412
  lastMessageTimestamp: number;
413
413
  messageCount: number;
414
414
  originNodeId: string;
415
+ /** Lamport clock of the origin metadata event; never substitute messageCount. */
416
+ originClock: number;
415
417
  definitionId: string;
416
418
  instanceDelta?: Record<string, unknown>;
417
419
  isUserInitiated: boolean;
@@ -422,6 +424,16 @@ interface ConversationMeta {
422
424
  };
423
425
  }
424
426
  declare function isConversationMeta(value: unknown): value is ConversationMeta;
427
+ interface VersionRange {
428
+ originNodeId: string;
429
+ fromExclusive: number;
430
+ toInclusive: number;
431
+ }
432
+ declare function computeMissingVersionRanges(currentVersion: VersionVector, availableVersion: VersionVector): VersionRange[];
433
+ interface ConversationMetadataPage {
434
+ items: ConversationMeta[];
435
+ nextCursor?: string;
436
+ }
425
437
 
426
438
  /**
427
439
  * Narrow logical storage ports (plan 24.41).
@@ -490,4 +502,4 @@ interface FullAgentStorage extends ConversationEventStore, ConversationDirectory
490
502
  */
491
503
  type IAgentStorage = FullAgentStorage;
492
504
 
493
- export { type AgentOrchestrationCapabilities as $, type AttachmentReference as A, type OrchestrationGetOptions as B, type ConversationMeta as C, type DetailRefType as D, type OrchestrationResource as E, type OrchestrationResourceQuery as F, type GetMessagesOptions as G, type HostAgentToolConfig as H, type IAgentStorage as I, type OrchestrationListOptions as J, type OrchestrationResourceList as K, type ListConversationsOptions as L, type ModelParameters as M, type OrchestrationWatchOptions as N, type OrchestrationErrorData as O, type OrchestrationWatchEvent as P, type OrchestrationDeleteOptions as Q, type OrchestrationDeleteResult as R, type AgentFrameworkConfig as S, type ToolCall as T, type IPrompt as U, type VersionVector as V, type PromptNode as W, type AgentPromptDescription as X, type FullAgentStorage as Y, type AgentInfrastructureInterface as Z, type AgentInstanceStore as _, type ChatAttachmentPart as a, type AgentOrchestrationOperation as a0, type BlobStore as a1, type ConversationDirectoryStore as a2, type DefinitionStore as a3, type IMChannel as a4, type IMChannelBinding as a5, type IMPlatformType as a6, type ImBindingStore as a7, type ImChannelBindingRecord as a8, ORCHESTRATION_ERROR_CODES as a9, type OrchestrationApplyOptions as aa, type OrchestrationBookmarkWatchEvent as ab, type OrchestrationCondition as ac, type OrchestrationConditionStatus as ad, OrchestrationError as ae, type OrchestrationErrorCode as af, type OrchestrationErrorWatchEvent as ag, type OrchestrationEvent as ah, type OrchestrationEventSeverity as ai, type OrchestrationManifestMetadata as aj, type OrchestrationPreconditions as ak, type OrchestrationResourceWatchEvent as al, type OrchestrationResourceWatchEventType as am, type PromptPluginConfig as an, isOrchestrationError as ao, toOrchestrationErrorData as ap, type ChatMessage as b, type ChatMessagePart as c, type ChatReasoningPart as d, type ChatRole as e, type ChatTextPart as f, type ChatToolCallPart as g, type ChatToolResultPart as h, isConversationMeta as i, type ConversationQueryMode as j, type DetailReference as k, type ConversationEventStore as l, type AgentDefinition as m, type AgentDefinitionModelConfig as n, type AgentDefinitionToolConfig as o, type AgentHeartbeatConfig as p, type AgentInstanceMeta as q, type AiAPIConfig as r, type ModelSelection as s, type AgentOrchestrationClient as t, type OrchestrationResourceManifest as u, type OrchestrationOwnerReference as v, type OrchestrationTypeMeta as w, type OrchestrationObjectMetadata as x, type OrchestrationResourceStatus as y, type OrchestrationResourceReference as z };
505
+ export { type FullAgentStorage as $, type AttachmentReference as A, type OrchestrationObjectMetadata as B, type ConversationMeta as C, type DetailRefType as D, type OrchestrationResourceStatus as E, type OrchestrationResourceReference as F, type GetMessagesOptions as G, type HostAgentToolConfig as H, type IAgentStorage as I, type OrchestrationGetOptions as J, type OrchestrationResource as K, type ListConversationsOptions as L, type ModelParameters as M, type OrchestrationResourceQuery as N, type OrchestrationErrorData as O, type OrchestrationListOptions as P, type OrchestrationResourceList as Q, type OrchestrationWatchOptions as R, type OrchestrationWatchEvent as S, type ToolCall as T, type OrchestrationDeleteOptions as U, type VersionRange as V, type OrchestrationDeleteResult as W, type AgentFrameworkConfig as X, type IPrompt as Y, type PromptNode as Z, type AgentPromptDescription as _, type ConversationMetadataPage as a, type AgentInfrastructureInterface as a0, type AgentInstanceStore as a1, type AgentOrchestrationCapabilities as a2, type AgentOrchestrationOperation as a3, type BlobStore as a4, type ConversationDirectoryStore as a5, type DefinitionStore as a6, type IMChannel as a7, type IMChannelBinding as a8, type IMPlatformType as a9, type ImBindingStore as aa, type ImChannelBindingRecord as ab, ORCHESTRATION_ERROR_CODES as ac, type OrchestrationApplyOptions as ad, type OrchestrationBookmarkWatchEvent as ae, type OrchestrationCondition as af, type OrchestrationConditionStatus as ag, OrchestrationError as ah, type OrchestrationErrorCode as ai, type OrchestrationErrorWatchEvent as aj, type OrchestrationEvent as ak, type OrchestrationEventSeverity as al, type OrchestrationManifestMetadata as am, type OrchestrationPreconditions as an, type OrchestrationResourceWatchEvent as ao, type OrchestrationResourceWatchEventType as ap, type PromptPluginConfig as aq, isOrchestrationError as ar, toOrchestrationErrorData as as, type VersionVector as b, computeMissingVersionRanges as c, type ChatAttachmentPart as d, type ChatMessage as e, type ChatMessagePart as f, type ChatReasoningPart as g, type ChatRole as h, isConversationMeta as i, type ChatTextPart as j, type ChatToolCallPart as k, type ChatToolResultPart as l, type ConversationQueryMode as m, type DetailReference as n, type ConversationEventStore as o, type AgentDefinition as p, type AgentDefinitionModelConfig as q, type AgentDefinitionToolConfig as r, type AgentHeartbeatConfig as s, type AgentInstanceMeta as t, type AiAPIConfig as u, type ModelSelection as v, type AgentOrchestrationClient as w, type OrchestrationResourceManifest as x, type OrchestrationOwnerReference as y, type OrchestrationTypeMeta as z };
@@ -412,6 +412,8 @@ interface ConversationMeta {
412
412
  lastMessageTimestamp: number;
413
413
  messageCount: number;
414
414
  originNodeId: string;
415
+ /** Lamport clock of the origin metadata event; never substitute messageCount. */
416
+ originClock: number;
415
417
  definitionId: string;
416
418
  instanceDelta?: Record<string, unknown>;
417
419
  isUserInitiated: boolean;
@@ -422,6 +424,16 @@ interface ConversationMeta {
422
424
  };
423
425
  }
424
426
  declare function isConversationMeta(value: unknown): value is ConversationMeta;
427
+ interface VersionRange {
428
+ originNodeId: string;
429
+ fromExclusive: number;
430
+ toInclusive: number;
431
+ }
432
+ declare function computeMissingVersionRanges(currentVersion: VersionVector, availableVersion: VersionVector): VersionRange[];
433
+ interface ConversationMetadataPage {
434
+ items: ConversationMeta[];
435
+ nextCursor?: string;
436
+ }
425
437
 
426
438
  /**
427
439
  * Narrow logical storage ports (plan 24.41).
@@ -490,4 +502,4 @@ interface FullAgentStorage extends ConversationEventStore, ConversationDirectory
490
502
  */
491
503
  type IAgentStorage = FullAgentStorage;
492
504
 
493
- export { type AgentOrchestrationCapabilities as $, type AttachmentReference as A, type OrchestrationGetOptions as B, type ConversationMeta as C, type DetailRefType as D, type OrchestrationResource as E, type OrchestrationResourceQuery as F, type GetMessagesOptions as G, type HostAgentToolConfig as H, type IAgentStorage as I, type OrchestrationListOptions as J, type OrchestrationResourceList as K, type ListConversationsOptions as L, type ModelParameters as M, type OrchestrationWatchOptions as N, type OrchestrationErrorData as O, type OrchestrationWatchEvent as P, type OrchestrationDeleteOptions as Q, type OrchestrationDeleteResult as R, type AgentFrameworkConfig as S, type ToolCall as T, type IPrompt as U, type VersionVector as V, type PromptNode as W, type AgentPromptDescription as X, type FullAgentStorage as Y, type AgentInfrastructureInterface as Z, type AgentInstanceStore as _, type ChatAttachmentPart as a, type AgentOrchestrationOperation as a0, type BlobStore as a1, type ConversationDirectoryStore as a2, type DefinitionStore as a3, type IMChannel as a4, type IMChannelBinding as a5, type IMPlatformType as a6, type ImBindingStore as a7, type ImChannelBindingRecord as a8, ORCHESTRATION_ERROR_CODES as a9, type OrchestrationApplyOptions as aa, type OrchestrationBookmarkWatchEvent as ab, type OrchestrationCondition as ac, type OrchestrationConditionStatus as ad, OrchestrationError as ae, type OrchestrationErrorCode as af, type OrchestrationErrorWatchEvent as ag, type OrchestrationEvent as ah, type OrchestrationEventSeverity as ai, type OrchestrationManifestMetadata as aj, type OrchestrationPreconditions as ak, type OrchestrationResourceWatchEvent as al, type OrchestrationResourceWatchEventType as am, type PromptPluginConfig as an, isOrchestrationError as ao, toOrchestrationErrorData as ap, type ChatMessage as b, type ChatMessagePart as c, type ChatReasoningPart as d, type ChatRole as e, type ChatTextPart as f, type ChatToolCallPart as g, type ChatToolResultPart as h, isConversationMeta as i, type ConversationQueryMode as j, type DetailReference as k, type ConversationEventStore as l, type AgentDefinition as m, type AgentDefinitionModelConfig as n, type AgentDefinitionToolConfig as o, type AgentHeartbeatConfig as p, type AgentInstanceMeta as q, type AiAPIConfig as r, type ModelSelection as s, type AgentOrchestrationClient as t, type OrchestrationResourceManifest as u, type OrchestrationOwnerReference as v, type OrchestrationTypeMeta as w, type OrchestrationObjectMetadata as x, type OrchestrationResourceStatus as y, type OrchestrationResourceReference as z };
505
+ export { type FullAgentStorage as $, type AttachmentReference as A, type OrchestrationObjectMetadata as B, type ConversationMeta as C, type DetailRefType as D, type OrchestrationResourceStatus as E, type OrchestrationResourceReference as F, type GetMessagesOptions as G, type HostAgentToolConfig as H, type IAgentStorage as I, type OrchestrationGetOptions as J, type OrchestrationResource as K, type ListConversationsOptions as L, type ModelParameters as M, type OrchestrationResourceQuery as N, type OrchestrationErrorData as O, type OrchestrationListOptions as P, type OrchestrationResourceList as Q, type OrchestrationWatchOptions as R, type OrchestrationWatchEvent as S, type ToolCall as T, type OrchestrationDeleteOptions as U, type VersionRange as V, type OrchestrationDeleteResult as W, type AgentFrameworkConfig as X, type IPrompt as Y, type PromptNode as Z, type AgentPromptDescription as _, type ConversationMetadataPage as a, type AgentInfrastructureInterface as a0, type AgentInstanceStore as a1, type AgentOrchestrationCapabilities as a2, type AgentOrchestrationOperation as a3, type BlobStore as a4, type ConversationDirectoryStore as a5, type DefinitionStore as a6, type IMChannel as a7, type IMChannelBinding as a8, type IMPlatformType as a9, type ImBindingStore as aa, type ImChannelBindingRecord as ab, ORCHESTRATION_ERROR_CODES as ac, type OrchestrationApplyOptions as ad, type OrchestrationBookmarkWatchEvent as ae, type OrchestrationCondition as af, type OrchestrationConditionStatus as ag, OrchestrationError as ah, type OrchestrationErrorCode as ai, type OrchestrationErrorWatchEvent as aj, type OrchestrationEvent as ak, type OrchestrationEventSeverity as al, type OrchestrationManifestMetadata as am, type OrchestrationPreconditions as an, type OrchestrationResourceWatchEvent as ao, type OrchestrationResourceWatchEventType as ap, type PromptPluginConfig as aq, isOrchestrationError as ar, toOrchestrationErrorData as as, type VersionVector as b, computeMissingVersionRanges as c, type ChatAttachmentPart as d, type ChatMessage as e, type ChatMessagePart as f, type ChatReasoningPart as g, type ChatRole as h, isConversationMeta as i, type ChatTextPart as j, type ChatToolCallPart as k, type ChatToolResultPart as l, type ConversationQueryMode as m, type DetailReference as n, type ConversationEventStore as o, type AgentDefinition as p, type AgentDefinitionModelConfig as q, type AgentDefinitionToolConfig as r, type AgentHeartbeatConfig as s, type AgentInstanceMeta as t, type AiAPIConfig as u, type ModelSelection as v, type AgentOrchestrationClient as w, type OrchestrationResourceManifest as x, type OrchestrationOwnerReference as y, type OrchestrationTypeMeta as z };
@@ -1,5 +1,5 @@
1
- import { k as ILLMProvider } from './scriptDeploymentPipeline-yG1ZhVVI.cjs';
2
- import './interface-IrKBFtL1.cjs';
1
+ import { k as ILLMProvider } from './scriptDeploymentPipeline-XJzQyYys.cjs';
2
+ import './interface-3C3eG8Hn.cjs';
3
3
 
4
4
  /**
5
5
  * Pre-built, config-driven LLM providers.
@@ -1,5 +1,5 @@
1
- import { k as ILLMProvider } from './scriptDeploymentPipeline-CXJcC82H.js';
2
- import './interface-IrKBFtL1.js';
1
+ import { k as ILLMProvider } from './scriptDeploymentPipeline-B1q-UhrO.js';
2
+ import './interface-3C3eG8Hn.js';
3
3
 
4
4
  /**
5
5
  * Pre-built, config-driven LLM providers.
package/dist/loop-api.cjs CHANGED
@@ -7311,6 +7311,7 @@ function createMemeLoopRuntime(context) {
7311
7311
  lastMessageTimestamp: now,
7312
7312
  messageCount: context.runAgentToolLoop || !options.initialMessage ? 0 : 1,
7313
7313
  originNodeId: "local",
7314
+ originClock: 1,
7314
7315
  definitionId: options.definitionId,
7315
7316
  isUserInitiated: true
7316
7317
  };