pi-roundtable 0.1.0 → 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.
- package/CHANGELOG.md +148 -0
- package/README.md +10 -6
- package/README.zh-TW.md +144 -0
- package/docs/plugins.md +1448 -66
- package/examples/echo-runtime.test.ts +122 -0
- package/examples/echo-runtime.ts +107 -0
- package/examples/events.test.ts +1 -0
- package/examples/events.ts +2 -2
- package/examples/fake-surface.test.ts +180 -0
- package/examples/fake-surface.ts +109 -0
- package/examples/interactions.test.ts +12 -3
- package/examples/interactions.ts +19 -19
- package/examples/shared-services.test.ts +74 -0
- package/examples/shared-services.ts +60 -0
- package/examples/study-room.test.ts +69 -0
- package/examples/study-room.ts +52 -0
- package/examples/support-desk.test.ts +34 -0
- package/examples/support-desk.ts +40 -0
- package/package.json +11 -3
- package/src/cli/checks/database.ts +11 -30
- package/src/cli/checks/images.ts +19 -0
- package/src/cli/doctor.ts +6 -0
- package/src/cli/main.ts +2 -1
- package/src/core/agents/agent-claim.ts +42 -16
- package/src/core/agents/agent-messages.ts +4 -4
- package/src/core/agents/agent-ports.ts +8 -21
- package/src/core/agents/agent-prompt.ts +3 -1
- package/src/core/agents/agent-store.ts +6 -4
- package/src/core/agents/agent-team-fixture.ts +389 -0
- package/src/core/agents/agent-team.ts +26 -25
- package/src/core/agents/agent-tools.ts +34 -15
- package/src/core/agents/avatar-studio.ts +40 -6
- package/src/core/agents/fallback-avatar.ts +85 -0
- package/src/core/agents/team-editing.ts +49 -10
- package/src/core/agents/team-keys.ts +22 -9
- package/src/core/agents/team-layout.ts +4 -3
- package/src/core/agents/team-lifecycle.ts +28 -2
- package/src/core/agents/team-options.ts +9 -5
- package/src/core/agents/team-status.ts +4 -4
- package/src/core/agents/team-text.ts +8 -6
- package/src/core/agents/team-turn-types.ts +4 -4
- package/src/core/agents/team-turns.ts +6 -5
- package/src/core/builtin/agent-server.ts +187 -121
- package/src/core/builtin/discord-admin.ts +41 -0
- package/src/core/builtin/discord.ts +65 -40
- package/src/core/builtin/modules.ts +67 -58
- package/src/core/builtin/session-tool.ts +24 -0
- package/src/core/builtin/skills.ts +72 -0
- package/src/core/builtin/stores.ts +55 -31
- package/src/core/config/config.ts +45 -4
- package/src/core/config/schema.ts +6 -0
- package/src/core/contract/channels.ts +54 -14
- package/src/core/contract/providers.ts +17 -0
- package/src/core/contract/runtime.ts +138 -0
- package/src/core/contract/services.ts +45 -0
- package/src/core/contract/surface.ts +88 -0
- package/src/core/db/migrations.ts +118 -3
- package/src/core/define-roundtable.ts +70 -46
- package/src/core/define.ts +2 -1
- package/src/core/discord/agent-commands.ts +39 -14
- package/src/core/discord/agent-panel.ts +66 -0
- package/src/core/discord/channel-executor.ts +6 -3
- package/src/core/discord/channel-operations.ts +14 -11
- package/src/core/discord/command-collection.ts +46 -0
- package/src/core/{registry/interactions.ts → discord/compose-commands.ts} +5 -5
- package/src/core/discord/connection.ts +35 -0
- package/src/core/discord/discord-surface.ts +32 -94
- package/src/core/discord/dispatch-threads.ts +2 -2
- package/src/core/discord/inbound-message.ts +99 -0
- package/src/core/discord/interaction-module.ts +57 -1
- package/src/core/discord/owner-cards.ts +4 -4
- package/src/core/discord/owner-command.ts +44 -11
- package/src/core/discord/owner-discord.ts +2 -2
- package/src/core/discord/schedule-commands.ts +21 -18
- package/src/core/discord/stop-button.ts +44 -1
- package/src/core/domain/attachment.ts +12 -8
- package/src/core/domain/conversation.ts +3 -4
- package/src/core/domain/owner-prompts.ts +5 -5
- package/src/core/domain/ports.ts +9 -53
- package/src/core/freeze.ts +9 -0
- package/src/core/host.ts +255 -82
- package/src/core/http/listeners.ts +55 -20
- package/src/core/i18n/agent-panel.ts +4 -0
- package/src/core/i18n/index.ts +12 -2
- package/src/core/i18n/owner.ts +7 -1
- package/src/core/i18n/schedules.ts +12 -6
- package/src/core/identity.ts +1 -1
- package/src/core/judging/effort-judge.ts +25 -3
- package/src/core/log.ts +21 -3
- package/src/core/models.ts +2 -2
- package/src/core/modules/background/background-turns.ts +6 -4
- package/src/core/modules/delegation/delegate.ts +3 -2
- package/src/core/modules/delegation/delegator.ts +15 -13
- package/src/core/modules/delegation/{sol-worker.ts → web-research-worker.ts} +6 -6
- package/src/core/modules/discord-admin/discord-admin.ts +6 -6
- package/src/core/modules/host-shell/shell-policy.ts +8 -3
- package/src/core/modules/memory/owner-memory-store.ts +27 -25
- package/src/core/modules/memory/owner-memory.ts +9 -13
- package/src/core/modules/schedules/recurrence.ts +5 -3
- package/src/core/modules/schedules/schedule-store.ts +11 -11
- package/src/core/modules/schedules/schedule-tools.ts +22 -20
- package/src/core/modules/schedules/scheduler.ts +7 -2
- package/src/core/modules/schedules/schedules.ts +9 -3
- package/src/core/modules/skills/skill-registry.ts +3 -2
- package/src/core/modules/skills/skill-store.ts +2 -15
- package/src/core/modules/skills/skill-tools.ts +10 -4
- package/src/core/ops/error-reporter.ts +1 -1
- package/src/core/plugin.ts +232 -28
- package/src/core/registry/contributions.ts +173 -14
- package/src/core/registry/providers.ts +35 -5
- package/src/core/registry/services.ts +229 -0
- package/src/core/routing/channel-queue.ts +5 -0
- package/src/core/routing/channel-router.ts +21 -7
- package/src/core/routing/conversation-turns.ts +139 -0
- package/src/core/routing/message-text.ts +9 -2
- package/src/core/routing/surface-port.ts +39 -0
- package/src/core/runtime/conversation-sessions.ts +4 -3
- package/src/core/runtime/extensions/confirmation-fixture.ts +11 -0
- package/src/core/runtime/extensions/confirmation-gate.ts +11 -9
- package/src/core/runtime/mcp.ts +1 -1
- package/src/core/runtime/pending-confirmation-store.ts +10 -12
- package/src/core/runtime/pi-agent-runtime.ts +9 -6
- package/src/core/runtime/prompt-slot.ts +8 -3
- package/src/core/runtime/runtime-types.ts +9 -35
- package/src/core/runtime/session-factory.ts +21 -5
- package/src/core/runtime/text-tools.ts +1 -3
- package/src/core/services.ts +238 -90
- package/src/core/sessions.ts +3 -2
- package/src/core/shared/{profile-tools.ts → active-tools.ts} +2 -2
- package/src/core/shared/delegate-tool.ts +4 -3
- package/src/core/shared/schedule-tools.ts +22 -13
- package/src/core/shared/session-messages.ts +1 -1
- package/src/core/speakers.ts +6 -38
- package/src/core/testing/database.ts +1 -7
- package/src/core/testing/eager-catalog.ts +30 -0
- package/src/core/testing/locale.ts +23 -5
- package/src/core/testing/modules.ts +105 -41
- package/src/core/testing/test-host.ts +279 -0
- package/src/core/testing/tool-set.ts +64 -0
- package/src/core/time.ts +6 -1
- package/src/core/tool-set.snapshot.json +288 -0
- package/src/core/tool-tiers.ts +17 -57
- package/src/discord/index.ts +64 -0
- package/src/index.ts +181 -10
- package/src/kit/channels.ts +14 -0
- package/src/kit/domain.ts +18 -0
- package/src/kit/holds.ts +4 -0
- package/src/kit/index.ts +129 -0
- package/src/kit/judging.ts +10 -0
- package/src/kit/memory.ts +3 -0
- package/src/kit/mirror.ts +19 -0
- package/src/kit/presentation.ts +7 -0
- package/src/kit/shell.ts +7 -0
- package/src/kit/skills.ts +8 -0
- package/src/kit/support.ts +21 -0
- package/src/kit/threads.ts +7 -0
- package/src/kit/tools.ts +14 -0
- package/src/kit/worker.ts +16 -0
- package/src/testing.ts +394 -34
- package/examples/guide.test.ts +0 -52
- package/src/cli/add-plugin.test.ts +0 -107
- package/src/cli/checks/basic.test.ts +0 -276
- package/src/cli/checks/database.test.ts +0 -117
- package/src/cli/checks/discord.test.ts +0 -200
- package/src/cli/cli.test.ts +0 -122
- package/src/cli/config-edit.test.ts +0 -130
- package/src/cli/doctor.test.ts +0 -184
- package/src/cli/init.test.ts +0 -127
- package/src/cli/size.test.ts +0 -9
- package/src/cli/templates.test.ts +0 -129
- package/src/cli/testing/fixtures.ts +0 -106
- package/src/core/agents/agent-claim.test.ts +0 -142
- package/src/core/agents/agent-dashboard.test.ts +0 -120
- package/src/core/agents/agent-guild.test.ts +0 -124
- package/src/core/agents/agent-store.test.ts +0 -205
- package/src/core/agents/avatar-studio.test.ts +0 -88
- package/src/core/agents/group-round.test.ts +0 -143
- package/src/core/agents/owner-identity.test.ts +0 -172
- package/src/core/agents/team-turns.test.ts +0 -278
- package/src/core/attachments/attachments.test.ts +0 -85
- package/src/core/boundary.test.ts +0 -45
- package/src/core/builtin/modules.test.ts +0 -127
- package/src/core/config/config.test.ts +0 -135
- package/src/core/contract/discord.ts +0 -33
- package/src/core/db/migrations.test.ts +0 -237
- package/src/core/define-roundtable.test.ts +0 -134
- package/src/core/define.test.ts +0 -144
- package/src/core/discord/agent-commands.test.ts +0 -58
- package/src/core/discord/agent-discord.test.ts +0 -70
- package/src/core/discord/dispatch-thread-host.test.ts +0 -114
- package/src/core/discord/dispatch-threads.test.ts +0 -94
- package/src/core/discord/owner-cards.test.ts +0 -435
- package/src/core/discord/owner-discord.test.ts +0 -325
- package/src/core/domain/expression.ts +0 -21
- package/src/core/domain/profile.ts +0 -32
- package/src/core/drain.test.ts +0 -46
- package/src/core/events.test.ts +0 -81
- package/src/core/holds.test.ts +0 -54
- package/src/core/host.test.ts +0 -536
- package/src/core/http/listeners.test.ts +0 -164
- package/src/core/i18n/i18n.test.ts +0 -139
- package/src/core/identity.test.ts +0 -18
- package/src/core/judging/effort-judge.test.ts +0 -112
- package/src/core/judging/model-judge.test.ts +0 -126
- package/src/core/modules/delegation/delegator.test.ts +0 -170
- package/src/core/modules/memory/owner-memory-store.test.ts +0 -244
- package/src/core/modules/schedules/schedule.test.ts +0 -358
- package/src/core/modules/skills/skill-kind.test.ts +0 -55
- package/src/core/modules/skills/skill-registry.test.ts +0 -376
- package/src/core/ops/error-reporter.test.ts +0 -283
- package/src/core/presentation/card-cadence.ts +0 -41
- package/src/core/presentation/presentation.test.ts +0 -166
- package/src/core/public-entry.test.ts +0 -59
- package/src/core/registry/contributions.test.ts +0 -215
- package/src/core/registry/interactions.test.ts +0 -87
- package/src/core/registry/providers.test.ts +0 -103
- package/src/core/routing/channel-queue.test.ts +0 -31
- package/src/core/routing/channel-router.test.ts +0 -326
- package/src/core/routing/conversation-kind.ts +0 -14
- package/src/core/routing/settle-turn.test.ts +0 -21
- package/src/core/runtime/compaction-tiers.test.ts +0 -227
- package/src/core/runtime/extensions/ask-user.test.ts +0 -114
- package/src/core/runtime/extensions/self-compact-guard.test.ts +0 -50
- package/src/core/runtime/pending-confirmation-store.test.ts +0 -52
- package/src/core/runtime/session-archive.test.ts +0 -20
- package/src/core/runtime/steerable-run.test.ts +0 -264
- package/src/core/runtime/text-tools.test.ts +0 -110
- package/src/core/runtime/turn-answer.test.ts +0 -72
- package/src/core/runtime/worker-task.test.ts +0 -82
- package/src/core/services.test.ts +0 -28
- package/src/core/sessions.test.ts +0 -85
- package/src/core/shared/unix-server.ts +0 -18
- package/src/core/size.test.ts +0 -9
- package/src/core/speakers.test.ts +0 -78
- package/src/core/testing/file-size.ts +0 -34
- package/src/core/time.test.ts +0 -166
- package/src/core/tool-tiers.test.ts +0 -117
- package/src/entries.test.ts +0 -112
- package/src/testing.test.ts +0 -156
package/src/kit/holds.ts
ADDED
package/src/kit/index.ts
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// Unstable before 1.0; not covered by semver. Helpers for owner commands, claims, and naming existing core parts.
|
|
2
|
+
|
|
3
|
+
export type { ChannelQueue } from "./channels.ts";
|
|
4
|
+
export {
|
|
5
|
+
attachmentsOf,
|
|
6
|
+
channelQueue,
|
|
7
|
+
channelSegment,
|
|
8
|
+
discordKey,
|
|
9
|
+
outcome,
|
|
10
|
+
ownerAttachmentDir,
|
|
11
|
+
settleTurn,
|
|
12
|
+
withAttachmentsBlock,
|
|
13
|
+
withReference,
|
|
14
|
+
} from "./channels.ts";
|
|
15
|
+
export type {
|
|
16
|
+
ChoiceAnswer,
|
|
17
|
+
ChoiceQuestion,
|
|
18
|
+
ModelRef,
|
|
19
|
+
OwnerIdentity,
|
|
20
|
+
ScoreQuestion,
|
|
21
|
+
YesNoQuestion,
|
|
22
|
+
} from "./domain.ts";
|
|
23
|
+
export {
|
|
24
|
+
AgentError,
|
|
25
|
+
AUTO_THINKING,
|
|
26
|
+
formatModelRef,
|
|
27
|
+
parseModelRef,
|
|
28
|
+
THINKING_LEVELS,
|
|
29
|
+
thinkingLabel,
|
|
30
|
+
} from "./domain.ts";
|
|
31
|
+
export { holdChain } from "./holds.ts";
|
|
32
|
+
export type {
|
|
33
|
+
EffortBrief,
|
|
34
|
+
EffortJudgeOptions,
|
|
35
|
+
EffortLevel,
|
|
36
|
+
EffortPicker,
|
|
37
|
+
PreviousTurn,
|
|
38
|
+
} from "./judging.ts";
|
|
39
|
+
export {
|
|
40
|
+
effortJudge,
|
|
41
|
+
JUDGE_WORK,
|
|
42
|
+
} from "./judging.ts";
|
|
43
|
+
export { searchTerms } from "./memory.ts";
|
|
44
|
+
export type {
|
|
45
|
+
ScheduleToolContext,
|
|
46
|
+
ScheduleToolName,
|
|
47
|
+
ScheduleToolSpec,
|
|
48
|
+
ScheduleToolWording,
|
|
49
|
+
} from "./mirror.ts";
|
|
50
|
+
export {
|
|
51
|
+
callScheduleTool,
|
|
52
|
+
DELEGATE_TOOL,
|
|
53
|
+
DELEGATE_TOOL_SPEC,
|
|
54
|
+
isScheduleTool,
|
|
55
|
+
SCHEDULE_TOOLS,
|
|
56
|
+
scheduleToolSpecs,
|
|
57
|
+
} from "./mirror.ts";
|
|
58
|
+
export {
|
|
59
|
+
headline,
|
|
60
|
+
quietLinks,
|
|
61
|
+
splitReply,
|
|
62
|
+
thinkingLine,
|
|
63
|
+
zonedStamp,
|
|
64
|
+
} from "./presentation.ts";
|
|
65
|
+
export {
|
|
66
|
+
SHELL_TOOLS,
|
|
67
|
+
shellHoldRule,
|
|
68
|
+
} from "./shell.ts";
|
|
69
|
+
export {
|
|
70
|
+
checkRepoName,
|
|
71
|
+
SKILL_LIST_TOOL,
|
|
72
|
+
skillListExtension,
|
|
73
|
+
} from "./skills.ts";
|
|
74
|
+
export type {
|
|
75
|
+
AgentCategory,
|
|
76
|
+
AgentChannelLookup,
|
|
77
|
+
AgentChannels,
|
|
78
|
+
AgentModels,
|
|
79
|
+
AgentOps,
|
|
80
|
+
AgentPost,
|
|
81
|
+
AgentTurnRunner,
|
|
82
|
+
AssistantLike,
|
|
83
|
+
Backlog,
|
|
84
|
+
CategoryLayout,
|
|
85
|
+
ChannelMessage,
|
|
86
|
+
DashboardBoard,
|
|
87
|
+
DelegationWorker,
|
|
88
|
+
GroupMessage,
|
|
89
|
+
OwnerNotifier,
|
|
90
|
+
SpeakerFacts,
|
|
91
|
+
SpeakerPolicy,
|
|
92
|
+
ThinkingPicker,
|
|
93
|
+
ThreadHost,
|
|
94
|
+
} from "./support.ts";
|
|
95
|
+
export type {
|
|
96
|
+
DispatchThread,
|
|
97
|
+
DispatchThreads,
|
|
98
|
+
DispatchThreadsOptions,
|
|
99
|
+
} from "./threads.ts";
|
|
100
|
+
export type {
|
|
101
|
+
TextToolDef,
|
|
102
|
+
ToolInput,
|
|
103
|
+
} from "./tools.ts";
|
|
104
|
+
export {
|
|
105
|
+
activeToolsExtension,
|
|
106
|
+
lastAssistant,
|
|
107
|
+
requiredString,
|
|
108
|
+
stringList,
|
|
109
|
+
textOf,
|
|
110
|
+
textToolsExtension,
|
|
111
|
+
toolError,
|
|
112
|
+
toolText,
|
|
113
|
+
} from "./tools.ts";
|
|
114
|
+
export type {
|
|
115
|
+
McpEndpoint,
|
|
116
|
+
PromptSlot,
|
|
117
|
+
VirtualServer,
|
|
118
|
+
} from "./worker.ts";
|
|
119
|
+
export {
|
|
120
|
+
approvalCard,
|
|
121
|
+
archiveSessions,
|
|
122
|
+
canonicalJson,
|
|
123
|
+
mcpAdapterExtension,
|
|
124
|
+
mcpExtension,
|
|
125
|
+
promptSlot,
|
|
126
|
+
readAttachmentExtension,
|
|
127
|
+
runWorkerTask,
|
|
128
|
+
workTimeout,
|
|
129
|
+
} from "./worker.ts";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Unstable plugin helpers; see the plugin guide.
|
|
2
|
+
|
|
3
|
+
export type {
|
|
4
|
+
EffortBrief,
|
|
5
|
+
EffortJudgeOptions,
|
|
6
|
+
EffortLevel,
|
|
7
|
+
EffortPicker,
|
|
8
|
+
PreviousTurn,
|
|
9
|
+
} from "../core/judging/effort-judge.ts";
|
|
10
|
+
export { effortJudge, JUDGE_WORK } from "../core/judging/effort-judge.ts";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Unstable plugin helpers; see the plugin guide.
|
|
2
|
+
// Mirror a built-in tool in a worker that cannot reach the host: the specs and the dispatcher.
|
|
3
|
+
|
|
4
|
+
export type { ScheduleToolContext } from "../core/modules/schedules/schedule-tools.ts";
|
|
5
|
+
export { callScheduleTool } from "../core/modules/schedules/schedule-tools.ts";
|
|
6
|
+
export {
|
|
7
|
+
DELEGATE_TOOL,
|
|
8
|
+
DELEGATE_TOOL_SPEC,
|
|
9
|
+
} from "../core/shared/delegate-tool.ts";
|
|
10
|
+
export type {
|
|
11
|
+
ScheduleToolName,
|
|
12
|
+
ScheduleToolSpec,
|
|
13
|
+
ScheduleToolWording,
|
|
14
|
+
} from "../core/shared/schedule-tools.ts";
|
|
15
|
+
export {
|
|
16
|
+
isScheduleTool,
|
|
17
|
+
SCHEDULE_TOOLS,
|
|
18
|
+
scheduleToolSpecs,
|
|
19
|
+
} from "../core/shared/schedule-tools.ts";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Unstable plugin helpers; see the plugin guide.
|
|
2
|
+
|
|
3
|
+
export { headline } from "../core/presentation/headline.ts";
|
|
4
|
+
export { quietLinks } from "../core/presentation/quiet-links.ts";
|
|
5
|
+
export { splitReply } from "../core/presentation/reply-splitter.ts";
|
|
6
|
+
export { thinkingLine } from "../core/presentation/thinking-line.ts";
|
|
7
|
+
export { zonedStampIn as zonedStamp } from "../core/time.ts";
|
package/src/kit/shell.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Unstable plugin helpers; see the plugin guide.
|
|
2
|
+
// Skills and repositories: the names a repository shelf accepts, and the tool that lists skills.
|
|
3
|
+
|
|
4
|
+
export { checkRepoName } from "../core/modules/skills/repo-name.ts";
|
|
5
|
+
export {
|
|
6
|
+
SKILL_LIST_TOOL,
|
|
7
|
+
skillListExtension,
|
|
8
|
+
} from "../core/modules/skills/skill-tools.ts";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Supporting data types for the unstable service and helper contracts.
|
|
2
|
+
|
|
3
|
+
export type {
|
|
4
|
+
AgentCategory,
|
|
5
|
+
AgentChannels,
|
|
6
|
+
AgentModels,
|
|
7
|
+
AgentPost,
|
|
8
|
+
AgentTurnRunner,
|
|
9
|
+
CategoryLayout,
|
|
10
|
+
ChannelMessage,
|
|
11
|
+
DashboardBoard,
|
|
12
|
+
} from "../core/agents/agent-ports.ts";
|
|
13
|
+
export type { Backlog, GroupMessage } from "../core/agents/agent-rules.ts";
|
|
14
|
+
export type { AgentOps } from "../core/agents/agent-tools.ts";
|
|
15
|
+
export type { ThreadHost } from "../core/discord/dispatch-threads.ts";
|
|
16
|
+
export type { OwnerNotifier } from "../core/domain/ports.ts";
|
|
17
|
+
export type { ThinkingPicker } from "../core/models.ts";
|
|
18
|
+
export type { DelegationWorker } from "../core/modules/delegation/delegator.ts";
|
|
19
|
+
export type { AgentChannelLookup } from "../core/modules/schedules/schedules.ts";
|
|
20
|
+
export type { AssistantLike } from "../core/shared/session-messages.ts";
|
|
21
|
+
export type { SpeakerFacts, SpeakerPolicy } from "../core/speakers.ts";
|
package/src/kit/tools.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Unstable plugin helpers; see the plugin guide.
|
|
2
|
+
|
|
3
|
+
export type {
|
|
4
|
+
TextToolDef,
|
|
5
|
+
ToolInput,
|
|
6
|
+
} from "../core/runtime/text-tools.ts";
|
|
7
|
+
export {
|
|
8
|
+
requiredString,
|
|
9
|
+
stringList,
|
|
10
|
+
textToolsExtension,
|
|
11
|
+
} from "../core/runtime/text-tools.ts";
|
|
12
|
+
export { activeToolsExtension } from "../core/shared/active-tools.ts";
|
|
13
|
+
export { lastAssistant, textOf } from "../core/shared/session-messages.ts";
|
|
14
|
+
export { toolError, toolText } from "../core/shared/tool-result.ts";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Unstable plugin helpers; see the plugin guide.
|
|
2
|
+
// Running a Pi session of your own: MCP servers for it, its work timeout, its held-action cards.
|
|
3
|
+
|
|
4
|
+
export {
|
|
5
|
+
approvalCard,
|
|
6
|
+
canonicalJson,
|
|
7
|
+
} from "../core/runtime/extensions/confirmation-gate.ts";
|
|
8
|
+
export type { VirtualServer } from "../core/runtime/mcp.ts";
|
|
9
|
+
export { mcpExtension } from "../core/runtime/mcp.ts";
|
|
10
|
+
export type { PromptSlot } from "../core/runtime/prompt-slot.ts";
|
|
11
|
+
export { promptSlot, workTimeout } from "../core/runtime/prompt-slot.ts";
|
|
12
|
+
export { archiveSessions } from "../core/runtime/session-archive.ts";
|
|
13
|
+
export { runWorkerTask } from "../core/runtime/worker-task.ts";
|
|
14
|
+
export type { McpEndpoint } from "../core/shared/mcp-adapter.ts";
|
|
15
|
+
export { mcpAdapterExtension } from "../core/shared/mcp-adapter.ts";
|
|
16
|
+
export { readAttachmentExtension } from "../core/shared/read-attachment-tool.ts";
|