memeloop 0.1.2 → 0.2.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/dist/browser.d.cts +14 -14
- package/dist/browser.d.ts +14 -14
- package/dist/{chunk-MAJWHAKR.js → chunk-5VYZV33O.js} +3 -2
- package/dist/{chunk-MAJWHAKR.js.map → chunk-5VYZV33O.js.map} +1 -1
- package/dist/chunk-ECNKBH5A.js +1235 -0
- package/dist/chunk-ECNKBH5A.js.map +1 -0
- package/dist/{chunk-MRKY4HGF.js → chunk-EPHRIRAL.js} +20 -11
- package/dist/chunk-EPHRIRAL.js.map +1 -0
- package/dist/{chunk-KFS2EJT6.js → chunk-K5KZJNDP.js} +2 -2
- package/dist/{chunk-2C6BJZI3.js → chunk-KV6TC5UJ.js} +3 -3
- package/dist/{chunk-T7FSXWFR.js → chunk-LGUGYRR4.js} +4 -4
- package/dist/{chunk-T7FSXWFR.js.map → chunk-LGUGYRR4.js.map} +1 -1
- package/dist/chunk-MXRXYGWW.js +1 -0
- package/dist/conversation.d.cts +3 -3
- package/dist/conversation.d.ts +3 -3
- package/dist/device-network-portable.cjs +757 -144
- package/dist/device-network-portable.cjs.map +1 -1
- package/dist/device-network-portable.d.cts +24 -14
- package/dist/device-network-portable.d.ts +24 -14
- package/dist/device-network-portable.js +18 -2
- package/dist/device-network.cjs +776 -154
- package/dist/device-network.cjs.map +1 -1
- package/dist/device-network.d.cts +5 -5
- package/dist/device-network.d.ts +5 -5
- package/dist/device-network.js +19 -3
- package/dist/{fetchProvider-WWnWnQFP.d.ts → fetchProvider-BhqRqi5-.d.ts} +1 -1
- package/dist/{fetchProvider-toTHy5Nu.d.cts → fetchProvider-HJ_FkORN.d.cts} +1 -1
- package/dist/index.cjs +785 -158
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -16
- package/dist/index.d.ts +16 -16
- package/dist/index.js +26 -8
- package/dist/index.js.map +1 -1
- package/dist/{interface-IrKBFtL1.d.ts → interface-3C3eG8Hn.d.cts} +13 -1
- package/dist/{interface-IrKBFtL1.d.cts → interface-3C3eG8Hn.d.ts} +13 -1
- package/dist/llm-providers.d.cts +2 -2
- package/dist/llm-providers.d.ts +2 -2
- package/dist/loop-api.cjs +4 -3
- package/dist/loop-api.cjs.map +1 -1
- package/dist/loop-api.d.cts +7 -7
- package/dist/loop-api.d.ts +7 -7
- package/dist/loop-api.js +4 -4
- package/dist/mobile.cjs +3 -3
- package/dist/mobile.cjs.map +1 -1
- package/dist/mobile.d.cts +5 -5
- package/dist/mobile.d.ts +5 -5
- package/dist/mobile.js +2 -2
- package/dist/{orchestration-portable-BHB_YrNN.d.ts → orchestration-portable-BbkwLbC9.d.ts} +4 -4
- package/dist/{orchestration-portable-mvYBvGBb.d.cts → orchestration-portable-DNKzAtNq.d.cts} +4 -4
- package/dist/orchestration-portable.d.cts +5 -5
- package/dist/orchestration-portable.d.ts +5 -5
- package/dist/pairingInvite-DDx_-IAp.d.cts +271 -0
- package/dist/pairingInvite-Dkz8CLsb.d.ts +271 -0
- package/dist/{promptConcat-0WNFTg4l.d.ts → promptConcat-CUEIA_3T.d.ts} +3 -3
- package/dist/{promptConcat-D6wr5V-V.d.cts → promptConcat-VLe5SEN4.d.cts} +3 -3
- package/dist/{providerRegistry-CPsktuiX.d.cts → providerRegistry-BDGGs5gz.d.cts} +2 -2
- package/dist/{providerRegistry-Bi6pAvSj.d.ts → providerRegistry-CaFK_aUd.d.ts} +2 -2
- package/dist/{registry-D0kbxksn.d.cts → registry-DNSEVYug.d.cts} +3 -3
- package/dist/{registry-DDbvhlhs.d.ts → registry-yGnYHWhq.d.ts} +3 -3
- package/dist/{remoteClient-CBggnRy3.d.cts → remoteClient-BKmQEQY9.d.cts} +1 -1
- package/dist/{remoteClient-B_spK019.d.ts → remoteClient-D5hco6cS.d.ts} +1 -1
- package/dist/{runtime-PGWR6FIV.js → runtime-6EELHWVB.js} +3 -3
- package/dist/{scriptDeploymentPipeline-CXJcC82H.d.ts → scriptDeploymentPipeline-B1q-UhrO.d.ts} +1 -1
- package/dist/{scriptDeploymentPipeline-yG1ZhVVI.d.cts → scriptDeploymentPipeline-XJzQyYys.d.cts} +1 -1
- package/dist/{syncCloudDevices-Ds_Kcgrv.d.cts → syncCloudDevices-BFw_c1g5.d.cts} +6 -5
- package/dist/{syncCloudDevices-BEqwgrhD.d.ts → syncCloudDevices-C8fCUhnX.d.ts} +6 -5
- package/dist/{types-CdFVSntj.d.ts → types-C8gnhG9M.d.cts} +6 -4
- package/dist/{types-7pYti-k9.d.cts → types-CcFFIk8W.d.ts} +6 -4
- package/package.json +1 -1
- package/dist/chunk-426CJUZP.js +0 -630
- package/dist/chunk-426CJUZP.js.map +0 -1
- package/dist/chunk-MRKY4HGF.js.map +0 -1
- package/dist/chunk-VZKQX5PP.js +0 -1
- package/dist/pairingInvite-BXPWY3aM.d.cts +0 -149
- package/dist/pairingInvite-Cuz0wuq9.d.ts +0 -149
- /package/dist/{chunk-KFS2EJT6.js.map → chunk-K5KZJNDP.js.map} +0 -0
- /package/dist/{chunk-2C6BJZI3.js.map → chunk-KV6TC5UJ.js.map} +0 -0
- /package/dist/{chunk-VZKQX5PP.js.map → chunk-MXRXYGWW.js.map} +0 -0
- /package/dist/{runtime-PGWR6FIV.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
|
|
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
|
|
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 };
|
package/dist/llm-providers.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as ILLMProvider } from './scriptDeploymentPipeline-
|
|
2
|
-
import './interface-
|
|
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.
|
package/dist/llm-providers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as ILLMProvider } from './scriptDeploymentPipeline-
|
|
2
|
-
import './interface-
|
|
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
|
@@ -6797,7 +6797,7 @@ var init_builtinProfileSources = __esm({
|
|
|
6797
6797
|
' "name": "\u901A\u7528\u52A9\u624B",',
|
|
6798
6798
|
' "description": "\u53EF\u9760\u7684\u901A\u7528\u667A\u80FD\u4F53\uFF0C\u7528\u4E8E\u5BF9\u8BDD\u3001Wiki \u77E5\u8BC6\u5DE5\u4F5C\u3001\u76EE\u6807\u63A8\u8FDB\u548C\u65E5\u5E38\u8BA1\u7B97\u673A\u64CD\u4F5C\u3002",',
|
|
6799
6799
|
' "loopId": "agent-tool-loop",',
|
|
6800
|
-
` "systemPrompt": "You are MemeLoop, a reliable general-purpose agent for conversation, knowledge work, goal completion, and everyday computer tasks.\\n\\nOperating contract:\\n- Treat the user request as the active goal. For a task with three or more meaningful steps, use
|
|
6800
|
+
` "systemPrompt": "You are MemeLoop, a reliable general-purpose agent for conversation, knowledge work, goal completion, and everyday computer tasks.\\n\\nOperating contract:\\n- Treat the user request as the active goal. For a task with three or more meaningful steps, use an enabled planning tool listed in the injected tool instructions to create a short plan, keep exactly one item in progress, and update it as work advances. Continue until the goal is achieved or genuinely blocked.\\n- Use tools for actions and for facts that must be read from the user's environment. Never claim that an action succeeded without a successful tool result. Never invent search results, file contents, counts, or completion evidence.\\n- Use the exact tool name and parameter schema shown in the tool list. When calling a tool, output ONLY one tool call in this exact XML format:\\n<tool_use name=\\"TOOL_NAME\\">{\\"param\\":\\"value\\"}</tool_use>\\n The JSON must be valid. Never wrap the call in markdown or add text before or after it. After the tool result, reassess the goal and continue.\\n- If a tool fails, read the error and change the arguments or approach. Do not repeat an identical failed call more than once, and do not retry the same approach more than twice.\\n- For Wiki work, use an injected available workspace name or ID; do not guess one. Search before relying on stored knowledge. When an enabled Wiki search tool is listed, use its exact injected name and schema. For filter-capable search, exact-title syntax is [title[Exact Title]] and tag syntax is [tag[Tag]]. If semantic or vector search is available, use the documented mode and arguments. After a write, verify important content with an exact-title search. If verification fails, report that honestly.\\n- Save durable facts, decisions, plans, and user-requested memories to Wiki when useful. Do not store credentials or other sensitive data unless the user explicitly asks.\\n- For UI or computer actions, inspect the current state before acting, prefer reversible changes, verify the resulting state, and ask before destructive actions or consequential external communication.\\n- Do not ask for confirmation before an explicitly requested reversible action when the target is already known. Ask a concise question only when missing information materially changes the result. Otherwise make safe, explicit assumptions and proceed.\\n- In the final response, lead with the outcome, cite concrete verification, and state any remaining limitation briefly.",`,
|
|
6801
6801
|
' "tools": [',
|
|
6802
6802
|
' "workspacesList",',
|
|
6803
6803
|
' "wikiSearch",',
|
|
@@ -6884,7 +6884,7 @@ var init_builtinProfileSources = __esm({
|
|
|
6884
6884
|
" {",
|
|
6885
6885
|
' "id": "builtin-system",',
|
|
6886
6886
|
' "role": "system",',
|
|
6887
|
-
` "text": "You are MemeLoop, a reliable general-purpose agent for conversation, knowledge work, goal completion, and everyday computer tasks.\\n\\nOperating contract:\\n- Treat the user request as the active goal. For a task with three or more meaningful steps, use
|
|
6887
|
+
` "text": "You are MemeLoop, a reliable general-purpose agent for conversation, knowledge work, goal completion, and everyday computer tasks.\\n\\nOperating contract:\\n- Treat the user request as the active goal. For a task with three or more meaningful steps, use an enabled planning tool listed in the injected tool instructions to create a short plan, keep exactly one item in progress, and update it as work advances. Continue until the goal is achieved or genuinely blocked.\\n- Use tools for actions and for facts that must be read from the user's environment. Never claim that an action succeeded without a successful tool result. Never invent search results, file contents, counts, or completion evidence.\\n- Use the exact tool name and parameter schema shown in the tool list. When calling a tool, output ONLY one tool call in this exact XML format:\\n<tool_use name=\\"TOOL_NAME\\">{\\"param\\":\\"value\\"}</tool_use>\\n The JSON must be valid. Never wrap the call in markdown or add text before or after it. After the tool result, reassess the goal and continue.\\n- If a tool fails, read the error and change the arguments or approach. Do not repeat an identical failed call more than once, and do not retry the same approach more than twice.\\n- For Wiki work, use an injected available workspace name or ID; do not guess one. Search before relying on stored knowledge. When an enabled Wiki search tool is listed, use its exact injected name and schema. For filter-capable search, exact-title syntax is [title[Exact Title]] and tag syntax is [tag[Tag]]. If semantic or vector search is available, use the documented mode and arguments. After a write, verify important content with an exact-title search. If verification fails, report that honestly.\\n- Save durable facts, decisions, plans, and user-requested memories to Wiki when useful. Do not store credentials or other sensitive data unless the user explicitly asks.\\n- For UI or computer actions, inspect the current state before acting, prefer reversible changes, verify the resulting state, and ask before destructive actions or consequential external communication.\\n- Do not ask for confirmation before an explicitly requested reversible action when the target is already known. Ask a concise question only when missing information materially changes the result. Otherwise make safe, explicit assumptions and proceed.\\n- In the final response, lead with the outcome, cite concrete verification, and state any remaining limitation briefly."`,
|
|
6888
6888
|
" }",
|
|
6889
6889
|
" ],",
|
|
6890
6890
|
' "plugins": [{ "toolId": "fullReplacement" }],',
|
|
@@ -6896,7 +6896,7 @@ var init_builtinProfileSources = __esm({
|
|
|
6896
6896
|
' "temperature": 0.5,',
|
|
6897
6897
|
' "maxTokens": 4096',
|
|
6898
6898
|
" },",
|
|
6899
|
-
' "version": "1.1.
|
|
6899
|
+
' "version": "1.1.1"',
|
|
6900
6900
|
"}",
|
|
6901
6901
|
""
|
|
6902
6902
|
].join("\n"),
|
|
@@ -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
|
};
|