negotium 0.1.37 → 0.1.39
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/README.md +19 -0
- package/dist/agent-helpers.js +15637 -5674
- package/dist/agent-helpers.js.map +85 -37
- package/dist/browser-runtime.js +1600 -0
- package/dist/browser-runtime.js.map +28 -0
- package/dist/hosted-agent.js +8 -8
- package/dist/hosted-agent.js.map +6 -5
- package/dist/main.js +3790 -3113
- package/dist/main.js.map +33 -29
- package/dist/mcp-factories.js +15141 -301
- package/dist/mcp-factories.js.map +100 -7
- package/dist/prompts.js +117 -49
- package/dist/prompts.js.map +3 -3
- package/dist/query-runtime.js +310 -1
- package/dist/query-runtime.js.map +10 -5
- package/dist/runtime/src/agents/archiver.ts +407 -296
- package/dist/runtime/src/agents/mcp-tools/ask-user.ts +440 -274
- package/dist/runtime/src/agents/mcp-tools/self-config.ts +139 -65
- package/dist/runtime/src/agents/mcp-tools/spawn-subagent.ts +1037 -816
- package/dist/runtime/src/agents/public-helpers.ts +82 -0
- package/dist/runtime/src/agents/self-config-core.ts +574 -278
- package/dist/runtime/src/agents/topic-cleanup.ts +167 -129
- package/dist/runtime/src/index.ts +4 -1
- package/dist/runtime/src/mcp/factories/index.ts +9 -0
- package/dist/runtime/src/mcp/session-comm/topic-catalog.ts +132 -0
- package/dist/runtime/src/mcp/session-comm/topics.ts +23 -57
- package/dist/runtime/src/platform/mcp-config.ts +2 -4
- package/dist/runtime/src/platform/playwright/browser-processes.ts +3 -2
- package/dist/runtime/src/platform/playwright/capability.ts +5 -0
- package/dist/runtime/src/platform/playwright/manager.ts +380 -66
- package/dist/runtime/src/platform/playwright/public-runtime.ts +45 -0
- package/dist/runtime/src/platform/playwright/transport-probe.ts +89 -0
- package/dist/runtime/src/prompts/builders.ts +192 -51
- package/dist/runtime/src/query/active-rooms.ts +2 -0
- package/dist/runtime/src/query/public-runtime.ts +8 -0
- package/dist/runtime/src/query/state.ts +69 -33
- package/dist/runtime/src/query/types.ts +1 -0
- package/dist/runtime/src/runtime/playwright-turn-abort.ts +59 -0
- package/dist/runtime/src/runtime/turn-event-stream.ts +23 -6
- package/dist/runtime/src/runtime/turn-runner.ts +6 -1
- package/dist/runtime/src/version.ts +1 -1
- package/dist/types/packages/core/src/agents/api-topic-agent-switch.d.ts +38 -0
- package/dist/types/packages/core/src/agents/archiver.d.ts +52 -16
- package/dist/types/packages/core/src/agents/mcp-tools/ask-user.d.ts +75 -4
- package/dist/types/packages/core/src/agents/mcp-tools/self-config.d.ts +17 -0
- package/dist/types/packages/core/src/agents/mcp-tools/spawn-subagent.d.ts +112 -25
- package/dist/types/packages/core/src/agents/public-helpers.d.ts +7 -0
- package/dist/types/packages/core/src/agents/self-config-core.d.ts +185 -0
- package/dist/types/packages/core/src/agents/topic-cleanup.d.ts +30 -24
- package/dist/types/packages/core/src/mcp/factories/index.d.ts +1 -0
- package/dist/types/packages/core/src/mcp/session-comm/topic-catalog.d.ts +46 -0
- package/dist/types/packages/core/src/platform/mcp-config.d.ts +2 -1
- package/dist/types/packages/core/src/platform/playwright/capability.d.ts +1 -0
- package/dist/types/packages/core/src/platform/playwright/manager.d.ts +65 -5
- package/dist/types/packages/core/src/platform/playwright/public-runtime.d.ts +4 -0
- package/dist/types/packages/core/src/platform/playwright/transport-probe.d.ts +13 -0
- package/dist/types/packages/core/src/prompts/builders.d.ts +29 -3
- package/dist/types/packages/core/src/query/active-rooms.d.ts +2 -0
- package/dist/types/packages/core/src/query/public-runtime.d.ts +1 -0
- package/dist/types/packages/core/src/query/state.d.ts +13 -0
- package/dist/types/packages/core/src/query/types.d.ts +2 -1
- package/dist/types/packages/core/src/runtime/playwright-turn-abort.d.ts +12 -0
- package/dist/types/packages/core/src/version.d.ts +1 -1
- package/package.json +6 -1
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
export {
|
|
2
|
+
type ArchiverAgentRuntimeHost,
|
|
3
|
+
type ArchiverConfigHost,
|
|
4
|
+
type ArchiverHost,
|
|
5
|
+
type ArchiverMessagingHost,
|
|
6
|
+
type ArchiverRuntime,
|
|
7
|
+
type ArchiverStorageHost,
|
|
8
|
+
createArchiverRuntime,
|
|
9
|
+
type RunArchiverTurnParams,
|
|
10
|
+
} from "#agents/archiver";
|
|
1
11
|
export {
|
|
2
12
|
type AgentAuthHost,
|
|
3
13
|
type AuthCheckResult,
|
|
@@ -33,6 +43,31 @@ export {
|
|
|
33
43
|
type ActiveTopicArchiveOptions,
|
|
34
44
|
archiveActiveTopicForMemory,
|
|
35
45
|
} from "#agents/idle-archiver";
|
|
46
|
+
export {
|
|
47
|
+
type AnswerAskUserQuestionResult,
|
|
48
|
+
type AskUserChoice,
|
|
49
|
+
type AskUserRuntime,
|
|
50
|
+
type AskUserRuntimeHost,
|
|
51
|
+
type AskUserToolContext,
|
|
52
|
+
createAskUserRuntime,
|
|
53
|
+
normalizeAskUserChoices,
|
|
54
|
+
normalizeAskUserQuestionInput,
|
|
55
|
+
} from "#agents/mcp-tools/ask-user";
|
|
56
|
+
export {
|
|
57
|
+
createSelfConfigRuntime,
|
|
58
|
+
createSelfConfigToolDefinitionsForCore,
|
|
59
|
+
type SelfConfigRuntime,
|
|
60
|
+
type SelfConfigRuntimeOptions,
|
|
61
|
+
} from "#agents/mcp-tools/self-config";
|
|
62
|
+
export {
|
|
63
|
+
createSubagentLifecycle,
|
|
64
|
+
type SpawnSubagentToolContext,
|
|
65
|
+
type SubagentLifecycle,
|
|
66
|
+
type SubagentLifecycleHost,
|
|
67
|
+
type SubagentLifecycleLimits,
|
|
68
|
+
type SubagentToolContext,
|
|
69
|
+
type SubagentWatch,
|
|
70
|
+
} from "#agents/mcp-tools/spawn-subagent";
|
|
36
71
|
export {
|
|
37
72
|
otiumVisualToolDefinitions,
|
|
38
73
|
showPngTool,
|
|
@@ -46,12 +81,59 @@ export {
|
|
|
46
81
|
visualToolDefinitions,
|
|
47
82
|
} from "#agents/mcp-tools/visuals";
|
|
48
83
|
export { MIN_MEMORY_ARCHIVE_EXCHANGES } from "#agents/memory-archive-policy";
|
|
84
|
+
export {
|
|
85
|
+
createSelfConfigCore,
|
|
86
|
+
DEFAULT_SELF_CONFIG_PRODUCT,
|
|
87
|
+
type SelfConfigAgentPolicy,
|
|
88
|
+
type SelfConfigAgentSwitchOptions,
|
|
89
|
+
type SelfConfigAgentSwitchResult,
|
|
90
|
+
type SelfConfigContext,
|
|
91
|
+
type SelfConfigCore,
|
|
92
|
+
type SelfConfigCreateScheduleResult,
|
|
93
|
+
type SelfConfigDerivedTopics,
|
|
94
|
+
type SelfConfigField,
|
|
95
|
+
type SelfConfigHost,
|
|
96
|
+
type SelfConfigModelPolicy,
|
|
97
|
+
type SelfConfigProductConfig,
|
|
98
|
+
type SelfConfigResult,
|
|
99
|
+
type SelfConfigRuntimeBoundary,
|
|
100
|
+
type SelfConfigSchedule,
|
|
101
|
+
type SelfConfigSchedules,
|
|
102
|
+
type SelfConfigTopic,
|
|
103
|
+
type SelfConfigTopicConfig,
|
|
104
|
+
type SelfConfigTopicStore,
|
|
105
|
+
} from "#agents/self-config-core";
|
|
49
106
|
export {
|
|
50
107
|
resolveTaskEventScope,
|
|
51
108
|
type TaskEventHost,
|
|
52
109
|
type TaskEventScope,
|
|
53
110
|
withTaskSnapshots,
|
|
54
111
|
} from "#agents/task-events";
|
|
112
|
+
export {
|
|
113
|
+
buildNumberedDiffSummary,
|
|
114
|
+
classifyShellToolName,
|
|
115
|
+
formatToolUse,
|
|
116
|
+
type NumberedDiffSummary,
|
|
117
|
+
summarizeDisplayText,
|
|
118
|
+
summarizeShellCommand,
|
|
119
|
+
summarizeToolInput,
|
|
120
|
+
type ToolCallSummaryInput,
|
|
121
|
+
type ToolCallSummaryValue,
|
|
122
|
+
} from "#agents/tool-format";
|
|
123
|
+
export {
|
|
124
|
+
cleanupTopicRollouts,
|
|
125
|
+
cleanupTopicRolloutsFromEntries,
|
|
126
|
+
createTopicLogMaintenance,
|
|
127
|
+
type PurgeSessionRef,
|
|
128
|
+
type PurgeTopicLogsOptions,
|
|
129
|
+
purgeTopicLogs,
|
|
130
|
+
type RotateTopicLogsOptions,
|
|
131
|
+
type RotateTopicLogsResult,
|
|
132
|
+
rotateTopicLogs,
|
|
133
|
+
type TopicConversationEntry,
|
|
134
|
+
type TopicLogMaintenance,
|
|
135
|
+
type TopicLogMaintenanceHost,
|
|
136
|
+
} from "#agents/topic-cleanup";
|
|
55
137
|
export {
|
|
56
138
|
createVaultToolPolicy,
|
|
57
139
|
isVaultBrokerTool,
|