pi-roundtable 0.33.0 → 0.35.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/CHANGELOG.md +19 -0
- package/README.md +1 -1
- package/README.zh-TW.md +1 -1
- package/docs/plugins.md +2 -2
- package/package.json +1 -2
- package/src/cli/checks/configuration.ts +2 -2
- package/src/cli/checks/database.ts +2 -2
- package/src/cli/checks/identity.ts +1 -1
- package/src/cli/checks/model.ts +1 -1
- package/src/cli/cli.ts +2 -2
- package/src/cli/principal.ts +1 -1
- package/src/cli/project.ts +2 -2
- package/src/cli/runtime.ts +3 -3
- package/src/cli/start.ts +1 -1
- package/src/core/agents/agent-claim.ts +4 -4
- package/src/core/agents/agent-dashboard.ts +3 -3
- package/src/core/agents/agent-messages.ts +2 -2
- package/src/core/agents/agent-outbox.ts +1 -1
- package/src/core/agents/agent-ports.ts +1 -1
- package/src/core/agents/agent-prompt.ts +4 -4
- package/src/core/agents/agent-rules.ts +1 -1
- package/src/core/agents/agent-schema.ts +4 -1
- package/src/core/agents/agent-settings.ts +2 -2
- package/src/core/agents/agent-store.ts +9 -9
- package/src/core/agents/agent-team-fixture.ts +4 -3
- package/src/core/agents/agent-team.ts +12 -16
- package/src/core/agents/agent-tools.ts +15 -15
- package/src/core/agents/avatar-refresh.ts +1 -1
- package/src/core/agents/avatar-studio.ts +2 -2
- package/src/core/agents/group-round.ts +2 -2
- package/src/core/agents/group-turns.ts +1 -1
- package/src/core/agents/helper-create.ts +24 -40
- package/src/core/agents/helper-modes.ts +2 -2
- package/src/core/agents/helper-preset-ops.ts +207 -0
- package/src/core/agents/helper-preset-tools.ts +109 -0
- package/src/core/agents/helper-presets.ts +128 -0
- package/src/core/agents/helper-test-kit.ts +1 -1
- package/src/core/agents/helper-tools.ts +42 -22
- package/src/core/agents/helper-work.ts +1 -1
- package/src/core/agents/message-target.ts +1 -1
- package/src/core/agents/routes.ts +1 -1
- package/src/core/agents/team-approval.ts +2 -2
- package/src/core/agents/team-editing.ts +2 -2
- package/src/core/agents/team-keys.ts +1 -1
- package/src/core/agents/team-layout.ts +1 -1
- package/src/core/agents/team-options.ts +4 -4
- package/src/core/agents/team-selection.ts +1 -1
- package/src/core/agents/team-status.ts +1 -1
- package/src/core/agents/team-text.ts +3 -3
- package/src/core/agents/team-turn-types.ts +7 -7
- package/src/core/agents/team-turns.ts +3 -3
- package/src/core/attachments/attachment-fetcher.ts +1 -1
- package/src/core/attachments/attachment-port.ts +2 -2
- package/src/core/attachments/attachment-retention.ts +3 -3
- package/src/core/attachments/attachment-store.ts +2 -2
- package/src/core/attachments/model-images.ts +1 -1
- package/src/core/attachments/turn-attachments.ts +1 -1
- package/src/core/builtin/agent-server.ts +17 -10
- package/src/core/builtin/channel-context.ts +2 -2
- package/src/core/builtin/discord-admin.ts +2 -2
- package/src/core/builtin/discord.ts +4 -3
- package/src/core/{identity/identity-plugin.ts → builtin/identity.ts} +15 -12
- package/src/core/builtin/modules.ts +12 -12
- package/src/core/builtin/prompts.ts +3 -3
- package/src/core/builtin/seeds.ts +1 -1
- package/src/core/builtin/session-tool.ts +1 -1
- package/src/core/builtin/skills.ts +3 -3
- package/src/core/builtin/stores.ts +10 -5
- package/src/core/builtin/threads.ts +2 -2
- package/src/core/builtin/worker-sessions.ts +3 -3
- package/src/core/config/access.ts +3 -3
- package/src/core/config/adapters.ts +1 -1
- package/src/core/config/config-schema.ts +9 -3
- package/src/core/config/config.ts +9 -10
- package/src/core/config/ops.ts +1 -1
- package/src/core/config/peer-bots.ts +74 -0
- package/src/core/config/routing.ts +1 -1
- package/src/core/contract/attachments.ts +1 -1
- package/src/core/contract/channels.ts +3 -5
- package/src/core/contract/runtime.ts +6 -6
- package/src/core/contract/surface.ts +3 -3
- package/src/core/conversations/conversation-registry.ts +1 -1
- package/src/core/conversations/conversation-retention.ts +2 -2
- package/src/core/conversations/conversation-store.ts +1 -1
- package/src/core/conversations/conversations-plugin.ts +2 -2
- package/src/core/db/migrations.ts +2 -2
- package/src/core/discord/agent-commands.ts +2 -2
- package/src/core/discord/agent-discord.ts +1 -1
- package/src/core/discord/agent-panel.ts +1 -1
- package/src/core/discord/card-audience.ts +1 -1
- package/src/core/discord/card-copies.ts +1 -1
- package/src/core/discord/channel-context.ts +1 -1
- package/src/core/discord/channel-executor.ts +1 -1
- package/src/core/discord/channel-operations.ts +1 -1
- package/src/core/discord/command-collection.ts +1 -1
- package/src/core/discord/compose-commands.ts +1 -1
- package/src/core/discord/context-images.ts +1 -1
- package/src/core/discord/discord-owners.ts +2 -2
- package/src/core/discord/discord-surface.ts +2 -2
- package/src/core/discord/member-events.ts +2 -2
- package/src/core/discord/message-changes.ts +1 -1
- package/src/core/discord/owner-cards.ts +1 -1
- package/src/core/discord/owner-command.ts +1 -1
- package/src/core/discord/schedule-commands.ts +1 -1
- package/src/core/domain/conversation.ts +5 -3
- package/src/core/{models.ts → domain/models.ts} +1 -1
- package/src/core/domain/ports.ts +2 -2
- package/src/core/{sessions.ts → domain/sessions.ts} +6 -6
- package/src/core/{define-roundtable.ts → host/define-roundtable.ts} +29 -29
- package/src/core/{drain.ts → host/drain.ts} +2 -7
- package/src/core/{events.ts → host/events.ts} +2 -2
- package/src/core/{host-background.ts → host/host-background.ts} +3 -3
- package/src/core/{host-registration.ts → host/host-registration.ts} +30 -30
- package/src/core/{host.ts → host/host.ts} +19 -15
- package/src/core/http/listeners.ts +2 -2
- package/src/core/http/websocket.ts +1 -1
- package/src/core/identity/access-policy.ts +8 -8
- package/src/core/identity/actor-facts.ts +1 -1
- package/src/core/identity/caching-principal-store.ts +1 -1
- package/src/core/identity/config-owner.ts +1 -1
- package/src/core/identity/contact.ts +2 -2
- package/src/core/identity/identity-links.ts +2 -2
- package/src/core/identity/identity-port.ts +2 -2
- package/src/core/identity/identity-schema.ts +1 -1
- package/src/core/identity/identity-service.ts +3 -3
- package/src/core/identity/identity-view.ts +1 -1
- package/src/core/{identity.ts → identity/owner-identity.ts} +1 -1
- package/src/core/identity/person-profiles.ts +1 -1
- package/src/core/identity/plugin-identities.ts +2 -2
- package/src/core/identity/principal-reads.ts +1 -1
- package/src/core/identity/principal-store.ts +1 -1
- package/src/core/identity/principal-types.ts +1 -1
- package/src/core/identity/seen-throttle.ts +1 -1
- package/src/core/{speakers.ts → identity/speakers.ts} +3 -6
- package/src/core/images/codex-images-plugin.ts +3 -3
- package/src/core/interactions/prompts.ts +1 -1
- package/src/core/judging/confirmation-judge.ts +1 -1
- package/src/core/judging/effort-judge.ts +2 -2
- package/src/core/judging/model-judge.ts +1 -1
- package/src/core/modes/conversation-modes.ts +4 -4
- package/src/core/modes/mode-inheritance.ts +1 -1
- package/src/core/modes/modes-plugin.ts +2 -2
- package/src/core/modules/background/background-turns.ts +4 -4
- package/src/core/modules/delegation/delegate.ts +3 -3
- package/src/core/modules/delegation/delegator.ts +4 -4
- package/src/core/modules/delegation/web-research-worker.ts +2 -2
- package/src/core/modules/delegation/worker-session.ts +5 -2
- package/src/core/modules/discord-admin/discord-admin.ts +1 -1
- package/src/core/modules/host-shell/shell-policy.ts +1 -1
- package/src/core/modules/memory/owner-memory-store.ts +1 -1
- package/src/core/modules/memory/owner-memory.ts +6 -3
- package/src/core/modules/notify/notify.ts +4 -1
- package/src/core/modules/notify/session-notify.ts +3 -3
- package/src/core/modules/prompts/prompt-documents.ts +1 -1
- package/src/core/modules/schedules/precheck-tools.ts +4 -4
- package/src/core/modules/schedules/prechecks.ts +2 -2
- package/src/core/modules/schedules/recurrence.ts +6 -1
- package/src/core/modules/schedules/schedule-prechecks.ts +4 -4
- package/src/core/modules/schedules/schedule-store.ts +2 -2
- package/src/core/modules/schedules/schedule-tools.ts +4 -4
- package/src/core/modules/schedules/scheduled-turn-text.ts +1 -1
- package/src/core/modules/schedules/scheduler.ts +3 -3
- package/src/core/modules/schedules/schedules.ts +5 -5
- package/src/core/modules/skills/missing-warning.ts +1 -1
- package/src/core/modules/skills/package-skills.ts +1 -1
- package/src/core/modules/skills/skill-registry.ts +2 -2
- package/src/core/modules/skills/skill-rules.ts +1 -1
- package/src/core/modules/skills/skill-tools.ts +1 -1
- package/src/core/ops/error-reporter.ts +2 -2
- package/src/core/ops/ops-alerts.ts +1 -1
- package/src/core/{define.ts → plugin-api/define.ts} +18 -20
- package/src/core/{event-types.ts → plugin-api/event-types.ts} +1 -1
- package/src/core/{holds.ts → plugin-api/holds.ts} +3 -3
- package/src/core/{plugin-removed.ts → plugin-api/plugin-removed.ts} +2 -2
- package/src/core/{plugin.ts → plugin-api/plugin.ts} +26 -26
- package/src/core/{services.ts → plugin-api/services.ts} +28 -28
- package/src/core/{tool-turn.ts → plugin-api/tool-turn.ts} +12 -5
- package/src/core/presence/delivery-router.ts +1 -1
- package/src/core/presence/direct-channels.ts +1 -1
- package/src/core/registry/chat-commands.ts +1 -1
- package/src/core/registry/contributions.ts +11 -11
- package/src/core/registry/providers.ts +2 -2
- package/src/core/registry/services.ts +2 -2
- package/src/core/registry/surface-service.ts +1 -1
- package/src/core/routing/actor-of.ts +1 -1
- package/src/core/routing/channel-queue.ts +2 -2
- package/src/core/routing/channel-router.ts +3 -3
- package/src/core/routing/claim-events.ts +2 -2
- package/src/core/routing/conversation-turns.ts +10 -6
- package/src/core/routing/forward-join.ts +1 -1
- package/src/core/routing/message-observers.ts +1 -1
- package/src/core/routing/message-text.ts +1 -1
- package/src/core/routing/peer-bots.ts +6 -74
- package/src/core/routing/queued-messages.ts +2 -2
- package/src/core/routing/settle-turn.ts +1 -1
- package/src/core/routing/surface-port.ts +3 -3
- package/src/core/runtime/ask-questions.ts +1 -1
- package/src/core/runtime/bridge-guard.ts +5 -5
- package/src/core/runtime/chat-only.ts +1 -1
- package/src/core/runtime/conversation-sessions.ts +2 -2
- package/src/core/runtime/extensions/agent-prompt.ts +1 -1
- package/src/core/runtime/extensions/ask-user-text.ts +5 -1
- package/src/core/runtime/extensions/ask-user.ts +4 -1
- package/src/core/runtime/extensions/card-ask.ts +1 -1
- package/src/core/runtime/extensions/confirmation-fixture.ts +1 -1
- package/src/core/runtime/extensions/confirmation-gate-extension.ts +1 -1
- package/src/core/runtime/extensions/confirmation-gate.ts +5 -5
- package/src/core/runtime/extensions/gate-refusals.ts +5 -2
- package/src/core/runtime/extensions/held-calls.ts +2 -2
- package/src/core/runtime/extensions/hold-describer.ts +3 -3
- package/src/core/runtime/extensions/hold-lookups.ts +4 -4
- package/src/core/runtime/extensions/persona-prompt.ts +1 -1
- package/src/core/runtime/extensions/prompt-read.ts +1 -1
- package/src/core/runtime/extensions/yolo.ts +1 -1
- package/src/core/runtime/interim-text.ts +1 -1
- package/src/core/runtime/pi-agent-runtime.ts +4 -4
- package/src/core/runtime/running-turn.ts +1 -1
- package/src/core/runtime/runtime-plugin.ts +13 -8
- package/src/core/runtime/runtime-types.ts +14 -10
- package/src/core/runtime/session-conversation.ts +3 -3
- package/src/core/runtime/session-factory.ts +5 -5
- package/src/core/runtime/thinking-level.ts +2 -2
- package/src/core/{tool-tiers.ts → runtime/tool-tiers.ts} +5 -5
- package/src/core/runtime/turn-answer.ts +1 -1
- package/src/core/runtime/turn-budget.ts +1 -1
- package/src/core/runtime/turn-limits.ts +1 -1
- package/src/core/runtime/turn-tools.ts +2 -2
- package/src/core/runtime/worker-task.ts +1 -1
- package/src/core/shared/attach-file-tool.ts +1 -1
- package/src/core/shared/child-env.ts +3 -5
- package/src/core/shared/delegate-tool.ts +1 -1
- package/src/core/shared/generate-image-tool.ts +1 -1
- package/src/core/{modules/background → shared}/personal-target.ts +2 -2
- package/src/core/{reply-files.ts → shared/reply-files.ts} +1 -1
- package/src/core/testing/eager-catalog.ts +1 -1
- package/src/core/testing/locale.ts +1 -1
- package/src/core/testing/map-identity.ts +5 -1
- package/src/core/testing/module-sessions.ts +3 -3
- package/src/core/testing/modules.ts +17 -13
- package/src/core/testing/owner.ts +2 -2
- package/src/core/testing/recording-logger.ts +1 -1
- package/src/core/testing/run-tool.ts +2 -2
- package/src/core/testing/surface-contract-support.ts +1 -1
- package/src/core/testing/surface-contract.ts +2 -2
- package/src/core/testing/test-host.ts +12 -12
- package/src/core/testing/thread-host.ts +1 -1
- package/src/core/testing/tool-set.ts +3 -3
- package/src/core/threads/dispatch-threads.ts +1 -1
- package/src/core/tool-set.snapshot.json +12 -0
- package/src/index.ts +76 -72
- package/src/kit/domain.ts +9 -9
- package/src/kit/holds.ts +4 -1
- package/src/kit/jev-judge.ts +1 -1
- package/src/kit/jev.ts +1 -1
- package/src/kit/presentation.ts +1 -1
- package/src/kit/support.ts +3 -3
- package/src/testing.ts +21 -20
- /package/src/core/{errors.ts → kernel/errors.ts} +0 -0
- /package/src/core/{freeze.ts → kernel/freeze.ts} +0 -0
- /package/src/core/{log.ts → kernel/log.ts} +0 -0
- /package/src/core/{time.ts → kernel/time.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { type Tier, tierAtLeast } from "../identity/speakers.ts";
|
|
2
|
+
import { PluginError } from "../kernel/errors.ts";
|
|
3
|
+
import type { Logger } from "../kernel/log.ts";
|
|
4
|
+
import { ASK_USER_TOOL } from "./extensions/ask-user.ts";
|
|
5
|
+
import { COMPACT_TOOL } from "./extensions/self-compact-guard.ts";
|
|
6
6
|
|
|
7
7
|
/** The lowest tier that may use each tool; a tool that is not named needs the owner. */
|
|
8
8
|
export interface ToolTiers {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TranscriptEntry, TurnResult } from "../domain/conversation.ts";
|
|
2
2
|
import { AgentRunError } from "../domain/errors.ts";
|
|
3
|
-
import { hasReplyFiles } from "../reply-files.ts";
|
|
3
|
+
import { hasReplyFiles } from "../shared/reply-files.ts";
|
|
4
4
|
import { lastAssistant, textOf } from "../shared/session-messages.ts";
|
|
5
5
|
import { TRANSCRIPT_ENTRY_CHARS } from "./runtime-types.ts";
|
|
6
6
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChannelKey } from "../domain/sessions.ts";
|
|
1
2
|
import type {
|
|
2
3
|
TurnLimit,
|
|
3
4
|
TurnTimeout,
|
|
@@ -6,7 +7,6 @@ import type {
|
|
|
6
7
|
import { messages } from "../i18n/index.ts";
|
|
7
8
|
import type { Approval } from "../interactions/prompts.ts";
|
|
8
9
|
import { DEFAULT_YOLO_TIMEOUT_CARD_GRACE_MS } from "../modes/autonomy.ts";
|
|
9
|
-
import type { ChannelKey } from "../sessions.ts";
|
|
10
10
|
import type { PromptSlot } from "./prompt-slot.ts";
|
|
11
11
|
import type { PiAgentRuntimeOptions } from "./runtime-types.ts";
|
|
12
12
|
import type { ActivityTracker } from "./turn-activity.ts";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AgentSessionEvent } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import type { TurnResult } from "../domain/conversation.ts";
|
|
3
3
|
import { AgentRunError } from "../domain/errors.ts";
|
|
4
|
+
import type { ChannelKey } from "../domain/sessions.ts";
|
|
4
5
|
import { type TurnTimeout, TurnTimeoutError } from "../domain/turn-timeout.ts";
|
|
5
6
|
import { catalogFor } from "../i18n/index.ts";
|
|
6
7
|
import { DEFAULT_AUTONOMY } from "../modes/autonomy.ts";
|
|
7
|
-
import type { ChannelKey } from "../sessions.ts";
|
|
8
8
|
import type { PromptSlot } from "./prompt-slot.ts";
|
|
9
9
|
import type { PiAgentRuntimeOptions } from "./runtime-types.ts";
|
|
10
10
|
import { activityTracker } from "./turn-activity.ts";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HeldCall } from "../domain/conversation.ts";
|
|
2
|
+
import type { Tier } from "../identity/speakers.ts";
|
|
2
3
|
import { MEMORY_TOOLS } from "../modules/memory/owner-memory.ts";
|
|
3
|
-
import type
|
|
4
|
-
import { type ToolTiers, toolsForTier } from "../tool-tiers.ts";
|
|
4
|
+
import { type ToolTiers, toolsForTier } from "./tool-tiers.ts";
|
|
5
5
|
|
|
6
6
|
const MEMORY = new Set<string>(MEMORY_TOOLS);
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@ import type {
|
|
|
3
3
|
ModelRuntime,
|
|
4
4
|
} from "@earendil-works/pi-coding-agent";
|
|
5
5
|
import { AgentRunError, ConfigError } from "../domain/errors.ts";
|
|
6
|
-
import { parseModelRef } from "../models.ts";
|
|
6
|
+
import { parseModelRef } from "../domain/models.ts";
|
|
7
7
|
import { lastAssistant, textOf } from "../shared/session-messages.ts";
|
|
8
8
|
|
|
9
9
|
export const MAX_REPORT_CHARS = 20_000;
|
|
@@ -20,8 +20,8 @@ export interface ShellEnvConfig {
|
|
|
20
20
|
* What the agents' shell gets of the host's environment besides `SHELL_ENV_NAMES` (the user,
|
|
21
21
|
* locale, terminal, paths and proxies): host variables to `pass` by name and fixed values to
|
|
22
22
|
* `set`. Plugins read it as `env.shellEnv` for shells of their own. Default: `pass` is
|
|
23
|
-
* `DEFAULT_SHELL_PASS
|
|
24
|
-
*
|
|
23
|
+
* `DEFAULT_SHELL_PASS`, empty, so no host secret reaches the shell; a shell that runs `gh` or
|
|
24
|
+
* `git push` needs a token named, as in `pass: ["GH_TOKEN"]`, or a narrower one in `set`.
|
|
25
25
|
*/
|
|
26
26
|
shellEnv?: ShellEnv;
|
|
27
27
|
}
|
|
@@ -99,9 +99,7 @@ export function frozenShellEnv(shellEnv: ShellEnv): Readonly<ShellEnv> {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/** The host variables an agent's shell gets beyond `SHELL_ENV_NAMES` when `shellEnv.pass` is not given. */
|
|
102
|
-
export const DEFAULT_SHELL_PASS: readonly string[] = Object.freeze([
|
|
103
|
-
"GH_TOKEN",
|
|
104
|
-
]);
|
|
102
|
+
export const DEFAULT_SHELL_PASS: readonly string[] = Object.freeze([]);
|
|
105
103
|
|
|
106
104
|
/** The environment of an agent's shell: `childEnv` with `shellEnv`, whose `pass` defaults to `DEFAULT_SHELL_PASS`. */
|
|
107
105
|
export function shellChildEnv(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BackgroundTarget } from "
|
|
2
|
-
import { messages } from "
|
|
1
|
+
import type { BackgroundTarget } from "../contract/channels.ts";
|
|
2
|
+
import { messages } from "../i18n/index.ts";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The host's own background target: every person's conversations whose claim answers background
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
|
-
import type { ReplyFile, TurnResult } from "
|
|
2
|
+
import type { ReplyFile, TurnResult } from "../domain/conversation.ts";
|
|
3
3
|
|
|
4
4
|
/** Limits across all tools in one turn, independent of the surface's own limits. */
|
|
5
5
|
export const REPLY_FILE_LIMITS = Object.freeze({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Locale, setLocale } from "../i18n/index.ts";
|
|
2
|
-
import { setTimeZone } from "../time.ts";
|
|
2
|
+
import { setTimeZone } from "../kernel/time.ts";
|
|
3
3
|
|
|
4
4
|
/** What a test file runs under; the core's own suite uses the neutral defaults. */
|
|
5
5
|
export interface TestLocale {
|
|
@@ -3,7 +3,11 @@ import type { ActorFacts } from "../identity/actor-facts.ts";
|
|
|
3
3
|
import type { ContactAssessor } from "../identity/contact.ts";
|
|
4
4
|
import type { IdentityService } from "../identity/identity-service.ts";
|
|
5
5
|
import type { IdentityLink, Principal } from "../identity/principal-store.ts";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
type SpeakerMap,
|
|
8
|
+
speakerPolicy,
|
|
9
|
+
tierAtLeast,
|
|
10
|
+
} from "../identity/speakers.ts";
|
|
7
11
|
|
|
8
12
|
/**
|
|
9
13
|
* Who a 0.8 speaker map serves, for a test without a database: each person their own principal,
|
|
@@ -2,13 +2,13 @@ import type {
|
|
|
2
2
|
ExtensionAPI,
|
|
3
3
|
ExtensionFactory,
|
|
4
4
|
} from "@earendil-works/pi-coding-agent";
|
|
5
|
-
import type { OwnerIdentity } from "../identity.ts";
|
|
6
5
|
import type {
|
|
7
6
|
AgentTurnScope,
|
|
8
7
|
ChannelKey,
|
|
9
8
|
SessionContext,
|
|
10
|
-
} from "../sessions.ts";
|
|
11
|
-
import
|
|
9
|
+
} from "../domain/sessions.ts";
|
|
10
|
+
import type { OwnerIdentity } from "../identity/owner-identity.ts";
|
|
11
|
+
import { type Speaker, THE_SPEAKER } from "../identity/speakers.ts";
|
|
12
12
|
import { OWNER_CHANNEL, type setUpModules } from "./modules.ts";
|
|
13
13
|
import { OWNER_SPEAKER } from "./owner.ts";
|
|
14
14
|
|
|
@@ -9,22 +9,20 @@ import type { ConversationRegistry } from "../conversations/conversation-registr
|
|
|
9
9
|
import type { ChannelKey } from "../domain/conversation.ts";
|
|
10
10
|
import type { IdentityService } from "../identity/identity-service.ts";
|
|
11
11
|
import type { Principal } from "../identity/principal-store.ts";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import type { Tier } from "../identity/speakers.ts";
|
|
13
|
+
import { silentLogger } from "../kernel/log.ts";
|
|
14
14
|
import type { SkillStore } from "../modules/skills/skill-store.ts";
|
|
15
15
|
import {
|
|
16
16
|
type Contribution,
|
|
17
17
|
type PluginContext,
|
|
18
18
|
pluginContext,
|
|
19
19
|
type RoundtablePlugin,
|
|
20
|
-
} from "../plugin.ts";
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
import { surfacePort } from "../routing/surface-port.ts";
|
|
27
|
-
import type { AgentServer, MemoryStore, ScheduleStore } from "../services.ts";
|
|
20
|
+
} from "../plugin-api/plugin.ts";
|
|
21
|
+
import type {
|
|
22
|
+
AgentServer,
|
|
23
|
+
MemoryStore,
|
|
24
|
+
ScheduleStore,
|
|
25
|
+
} from "../plugin-api/services.ts";
|
|
28
26
|
import {
|
|
29
27
|
AGENTS,
|
|
30
28
|
CONVERSATIONS,
|
|
@@ -32,10 +30,16 @@ import {
|
|
|
32
30
|
MEMORY,
|
|
33
31
|
SCHEDULES,
|
|
34
32
|
THREADS,
|
|
35
|
-
} from "../services.ts";
|
|
36
|
-
import
|
|
33
|
+
} from "../plugin-api/services.ts";
|
|
34
|
+
import {
|
|
35
|
+
type DirectChannelProvider,
|
|
36
|
+
directChannelsPort,
|
|
37
|
+
} from "../presence/direct-channels.ts";
|
|
38
|
+
import { ServiceRegistry } from "../registry/services.ts";
|
|
39
|
+
import { surfacePort } from "../routing/surface-port.ts";
|
|
40
|
+
import { toolTiers } from "../runtime/tool-tiers.ts";
|
|
41
|
+
import { PERSONAL_TARGET } from "../shared/personal-target.ts";
|
|
37
42
|
import type { DispatchThreads } from "../threads/dispatch-threads.ts";
|
|
38
|
-
import { toolTiers } from "../tool-tiers.ts";
|
|
39
43
|
|
|
40
44
|
/** What the modules' tools did, for a test to read. */
|
|
41
45
|
export interface ModuleRecord {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { OwnerIdentity } from "../identity/owner-identity.ts";
|
|
1
2
|
import type { Principal } from "../identity/principal-store.ts";
|
|
2
|
-
import type {
|
|
3
|
-
import type { Speaker } from "../speakers.ts";
|
|
3
|
+
import type { Speaker } from "../identity/speakers.ts";
|
|
4
4
|
|
|
5
5
|
/** The owner tests speak for; its words match the texts the tests expect. */
|
|
6
6
|
export const TEST_OWNER: OwnerIdentity = {
|
|
@@ -4,12 +4,12 @@ import type {
|
|
|
4
4
|
} from "@earendil-works/pi-coding-agent";
|
|
5
5
|
import type { ClientPart } from "../domain/client.ts";
|
|
6
6
|
import type { ReplyFile } from "../domain/conversation.ts";
|
|
7
|
-
import { PluginError } from "../errors.ts";
|
|
7
|
+
import { PluginError } from "../kernel/errors.ts";
|
|
8
8
|
import {
|
|
9
9
|
attachReplyFile,
|
|
10
10
|
hasReplyFileScope,
|
|
11
11
|
withReplyFiles,
|
|
12
|
-
} from "../reply-files.ts";
|
|
12
|
+
} from "../shared/reply-files.ts";
|
|
13
13
|
|
|
14
14
|
/** What a session registers of a tool: the call the model's tool call reaches. */
|
|
15
15
|
export interface RegisteredTool {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { InboundMessage } from "../contract/channels.ts";
|
|
2
|
+
import type { Speaker } from "../identity/speakers.ts";
|
|
2
3
|
import {
|
|
3
4
|
type Approval,
|
|
4
5
|
type ApprovedBy,
|
|
5
6
|
type PromptScope,
|
|
6
7
|
promptScope,
|
|
7
8
|
} from "../interactions/prompts.ts";
|
|
8
|
-
import type { Speaker } from "../speakers.ts";
|
|
9
9
|
import type {
|
|
10
10
|
SurfaceContractAnswerer,
|
|
11
11
|
SurfaceContractSubject,
|
|
@@ -2,13 +2,13 @@ import { describe, test } from "bun:test";
|
|
|
2
2
|
import type { ChatSurface } from "../contract/surface.ts";
|
|
3
3
|
import { parseChannelKey } from "../contract/surface.ts";
|
|
4
4
|
import type { TurnProgress } from "../domain/progress.ts";
|
|
5
|
+
import type { ChannelKey } from "../domain/sessions.ts";
|
|
6
|
+
import type { Speaker } from "../identity/speakers.ts";
|
|
5
7
|
import type { Approval } from "../interactions/prompts.ts";
|
|
6
8
|
import type {
|
|
7
9
|
Questionnaire,
|
|
8
10
|
QuestionnaireAnswer,
|
|
9
11
|
} from "../interactions/questionnaire.ts";
|
|
10
|
-
import type { ChannelKey } from "../sessions.ts";
|
|
11
|
-
import type { Speaker } from "../speakers.ts";
|
|
12
12
|
import { QUESTIONNAIRE_CHECKS } from "./surface-contract-questionnaire.ts";
|
|
13
13
|
import {
|
|
14
14
|
answeredOnlyByThem,
|
|
@@ -11,7 +11,6 @@ import { type RoundtableConfig, resolveConfig } from "../config/config.ts";
|
|
|
11
11
|
import type { ConversationPort } from "../contract/channels.ts";
|
|
12
12
|
import type { AgentRuntime } from "../contract/runtime.ts";
|
|
13
13
|
import type { ChatSurface } from "../contract/surface.ts";
|
|
14
|
-
import { defineRoundtable, discordOwnerOf } from "../define-roundtable.ts";
|
|
15
14
|
import { CommandCollection } from "../discord/command-collection.ts";
|
|
16
15
|
import type { ComposedCommands } from "../discord/compose-commands.ts";
|
|
17
16
|
import type { DiscordConnection } from "../discord/connection.ts";
|
|
@@ -22,21 +21,22 @@ import type {
|
|
|
22
21
|
} from "../discord/interaction-module.ts";
|
|
23
22
|
import { commandGuard, ownerRootCommand } from "../discord/owner-command.ts";
|
|
24
23
|
import type { DiscordPoster } from "../discord/poster/poster.ts";
|
|
25
|
-
import type { HoldDescription } from "../holds.ts";
|
|
26
|
-
import { Roundtable } from "../host.ts";
|
|
27
|
-
import { silentLogger } from "../log.ts";
|
|
28
|
-
import type { PluginContext, RoundtablePlugin } from "../plugin.ts";
|
|
29
|
-
import { CompactionTiers } from "../runtime/compaction-tiers.ts";
|
|
30
|
-
import { privateCompaction } from "../runtime/extensions/private-memory.ts";
|
|
31
|
-
import { sessionExtensions } from "../runtime/runtime-types.ts";
|
|
32
|
-
import { IDENTITY } from "../services.ts";
|
|
33
24
|
import type {
|
|
34
25
|
AgentTurnScope,
|
|
35
26
|
ChannelKey,
|
|
36
27
|
SessionContext,
|
|
37
|
-
} from "../sessions.ts";
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
28
|
+
} from "../domain/sessions.ts";
|
|
29
|
+
import { defineRoundtable, discordOwnerOf } from "../host/define-roundtable.ts";
|
|
30
|
+
import { Roundtable } from "../host/host.ts";
|
|
31
|
+
import { type Speaker, THE_SPEAKER } from "../identity/speakers.ts";
|
|
32
|
+
import { silentLogger } from "../kernel/log.ts";
|
|
33
|
+
import type { HoldDescription } from "../plugin-api/holds.ts";
|
|
34
|
+
import type { PluginContext, RoundtablePlugin } from "../plugin-api/plugin.ts";
|
|
35
|
+
import { IDENTITY } from "../plugin-api/services.ts";
|
|
36
|
+
import { toolTurn } from "../plugin-api/tool-turn.ts";
|
|
37
|
+
import { CompactionTiers } from "../runtime/compaction-tiers.ts";
|
|
38
|
+
import { privateCompaction } from "../runtime/extensions/private-memory.ts";
|
|
39
|
+
import { sessionExtensions } from "../runtime/runtime-types.ts";
|
|
40
40
|
import { testDatabaseUrl } from "./database.ts";
|
|
41
41
|
import { fakeDiscordPoster } from "./fake-poster.ts";
|
|
42
42
|
import { callRegisteredTool, registeredTools, toolNamed } from "./run-tool.ts";
|
|
@@ -3,7 +3,7 @@ import { tmpdir } from "node:os";
|
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import type { ChatSurface } from "../contract/surface.ts";
|
|
5
5
|
import type { InterimMessage } from "../domain/interim.ts";
|
|
6
|
-
import { silentLogger } from "../log.ts";
|
|
6
|
+
import { silentLogger } from "../kernel/log.ts";
|
|
7
7
|
import { surfacePort } from "../routing/surface-port.ts";
|
|
8
8
|
import {
|
|
9
9
|
DispatchThreads,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ChannelKey } from "../domain/conversation.ts";
|
|
2
|
-
import type {
|
|
2
|
+
import type { AgentTurnScope } from "../domain/sessions.ts";
|
|
3
|
+
import type { RoundtablePlugin } from "../plugin-api/plugin.ts";
|
|
4
|
+
import { AGENTS } from "../plugin-api/services.ts";
|
|
3
5
|
import { ASK_USER_TOOL } from "../runtime/extensions/ask-user.ts";
|
|
4
6
|
import { COMPACT_TOOL } from "../runtime/extensions/self-compact-guard.ts";
|
|
5
|
-
import { AGENTS } from "../services.ts";
|
|
6
|
-
import type { AgentTurnScope } from "../sessions.ts";
|
|
7
7
|
import type { TestHost } from "./test-host.ts";
|
|
8
8
|
|
|
9
9
|
export const scout: AgentTurnScope = {
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import type { ChannelKey } from "../domain/conversation.ts";
|
|
16
16
|
import type { InterimMessage, InterimPosts } from "../domain/interim.ts";
|
|
17
17
|
import { messages } from "../i18n/index.ts";
|
|
18
|
-
import type { Logger } from "../log.ts";
|
|
18
|
+
import type { Logger } from "../kernel/log.ts";
|
|
19
19
|
import { threadsOfHost } from "./host-threads.ts";
|
|
20
20
|
|
|
21
21
|
/** The only surface a `ThreadHost` serves. */
|
|
@@ -91,6 +91,9 @@
|
|
|
91
91
|
"group_update",
|
|
92
92
|
"helper_create",
|
|
93
93
|
"helper_end",
|
|
94
|
+
"helper_preset_delete",
|
|
95
|
+
"helper_preset_list",
|
|
96
|
+
"helper_preset_set",
|
|
94
97
|
"memory_add",
|
|
95
98
|
"memory_remove",
|
|
96
99
|
"memory_search",
|
|
@@ -125,6 +128,9 @@
|
|
|
125
128
|
"group_update",
|
|
126
129
|
"helper_create",
|
|
127
130
|
"helper_end",
|
|
131
|
+
"helper_preset_delete",
|
|
132
|
+
"helper_preset_list",
|
|
133
|
+
"helper_preset_set",
|
|
128
134
|
"message_agent",
|
|
129
135
|
"read",
|
|
130
136
|
"skill_create",
|
|
@@ -185,6 +191,9 @@
|
|
|
185
191
|
"group_update",
|
|
186
192
|
"helper_create",
|
|
187
193
|
"helper_end",
|
|
194
|
+
"helper_preset_delete",
|
|
195
|
+
"helper_preset_list",
|
|
196
|
+
"helper_preset_set",
|
|
188
197
|
"memory_add",
|
|
189
198
|
"memory_remove",
|
|
190
199
|
"memory_search",
|
|
@@ -281,6 +290,9 @@
|
|
|
281
290
|
"group_update": "admin",
|
|
282
291
|
"helper_create": "member",
|
|
283
292
|
"helper_end": "member",
|
|
293
|
+
"helper_preset_delete": "member",
|
|
294
|
+
"helper_preset_list": "member",
|
|
295
|
+
"helper_preset_set": "member",
|
|
284
296
|
"memory_add": "member",
|
|
285
297
|
"memory_remove": "member",
|
|
286
298
|
"memory_search": "member",
|
package/src/index.ts
CHANGED
|
@@ -56,6 +56,10 @@ export type {
|
|
|
56
56
|
export type { ConversationsConfig } from "./core/config/conversations.ts";
|
|
57
57
|
export type { HelpersConfig } from "./core/config/helpers.ts";
|
|
58
58
|
export type { LimitsConfig } from "./core/config/limits.ts";
|
|
59
|
+
export type {
|
|
60
|
+
PeerBotEntry,
|
|
61
|
+
PeerBotsConfig,
|
|
62
|
+
} from "./core/config/peer-bots.ts";
|
|
59
63
|
export type { ProfilesConfig } from "./core/config/profiles.ts";
|
|
60
64
|
export type {
|
|
61
65
|
AgentRoutes,
|
|
@@ -134,18 +138,6 @@ export type {
|
|
|
134
138
|
} from "./core/conversations/conversation-registry.ts";
|
|
135
139
|
export type { Migration, MigrationReport } from "./core/db/migrations.ts";
|
|
136
140
|
export { migrateDatabase } from "./core/db/migrations.ts";
|
|
137
|
-
export type {
|
|
138
|
-
ToolContribution,
|
|
139
|
-
ToolOutput,
|
|
140
|
-
ToolSpec,
|
|
141
|
-
ToolTurn,
|
|
142
|
-
} from "./core/define.ts";
|
|
143
|
-
export { definePlugin, defineTool, ToolRefusal } from "./core/define.ts";
|
|
144
|
-
export type {
|
|
145
|
-
DefinedRoundtable,
|
|
146
|
-
DefineOverrides,
|
|
147
|
-
} from "./core/define-roundtable.ts";
|
|
148
|
-
export { defineRoundtable } from "./core/define-roundtable.ts";
|
|
149
141
|
export type {
|
|
150
142
|
AttachmentFailure,
|
|
151
143
|
ModelImage,
|
|
@@ -183,34 +175,37 @@ export type {
|
|
|
183
175
|
InterimPosts,
|
|
184
176
|
InterimTextMode,
|
|
185
177
|
} from "./core/domain/interim.ts";
|
|
178
|
+
export type { ThinkingLevel, ThinkingSetting } from "./core/domain/models.ts";
|
|
186
179
|
export type { TurnConversation, TurnRequest } from "./core/domain/ports.ts";
|
|
187
180
|
export type { HoldRefusal, TurnProgress } from "./core/domain/progress.ts";
|
|
188
181
|
export type { RoundEnd, RoundProgress } from "./core/domain/round.ts";
|
|
182
|
+
export type {
|
|
183
|
+
AgentTurnScope,
|
|
184
|
+
ChannelKey,
|
|
185
|
+
SessionContext,
|
|
186
|
+
SessionConversation,
|
|
187
|
+
SessionPlan,
|
|
188
|
+
SessionTool,
|
|
189
|
+
SessionToolSnapshot,
|
|
190
|
+
ToolSelection,
|
|
191
|
+
TransientTask,
|
|
192
|
+
TurnSelection,
|
|
193
|
+
} from "./core/domain/sessions.ts";
|
|
189
194
|
export {
|
|
190
195
|
type TurnLimit,
|
|
191
196
|
type TurnTimeout,
|
|
192
197
|
type TurnTimeoutEnd,
|
|
193
198
|
TurnTimeoutError,
|
|
194
199
|
} from "./core/domain/turn-timeout.ts";
|
|
195
|
-
export type { DrainOptions } from "./core/drain.ts";
|
|
196
|
-
export {
|
|
197
|
-
HostStoppingError,
|
|
198
|
-
JudgeError,
|
|
199
|
-
MigrationError,
|
|
200
|
-
NotLinkedError,
|
|
201
|
-
PluginError,
|
|
202
|
-
ProviderError,
|
|
203
|
-
} from "./core/errors.ts";
|
|
204
200
|
export type {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
} from "./core/
|
|
211
|
-
export
|
|
212
|
-
export {
|
|
213
|
-
export type { RegistrationReport } from "./core/host-registration.ts";
|
|
201
|
+
DefinedRoundtable,
|
|
202
|
+
DefineOverrides,
|
|
203
|
+
} from "./core/host/define-roundtable.ts";
|
|
204
|
+
export { defineRoundtable } from "./core/host/define-roundtable.ts";
|
|
205
|
+
export type { DrainOptions } from "./core/host/drain.ts";
|
|
206
|
+
export type { HostEnvironment, RoundtableOptions } from "./core/host/host.ts";
|
|
207
|
+
export { Roundtable } from "./core/host/host.ts";
|
|
208
|
+
export type { RegistrationReport } from "./core/host/host-registration.ts";
|
|
214
209
|
export type {
|
|
215
210
|
HttpRoute,
|
|
216
211
|
ListenerAddress,
|
|
@@ -250,6 +245,8 @@ export type {
|
|
|
250
245
|
ProfileRules,
|
|
251
246
|
ProfileSource,
|
|
252
247
|
} from "./core/identity/profiles.ts";
|
|
248
|
+
export type { Speaker, Tier } from "./core/identity/speakers.ts";
|
|
249
|
+
export { THE_SPEAKER, TIERS } from "./core/identity/speakers.ts";
|
|
253
250
|
export type {
|
|
254
251
|
Approval,
|
|
255
252
|
ApprovalDetails,
|
|
@@ -279,18 +276,21 @@ export {
|
|
|
279
276
|
validateQuestionnaire,
|
|
280
277
|
} from "./core/interactions/questionnaire.ts";
|
|
281
278
|
export type { JudgeModel } from "./core/judging/model-judge.ts";
|
|
282
|
-
export
|
|
283
|
-
|
|
279
|
+
export {
|
|
280
|
+
HostStoppingError,
|
|
281
|
+
JudgeError,
|
|
282
|
+
MigrationError,
|
|
283
|
+
NotLinkedError,
|
|
284
|
+
PluginError,
|
|
285
|
+
ProviderError,
|
|
286
|
+
} from "./core/kernel/errors.ts";
|
|
287
|
+
export type { LogEntry, LogFn, Logger } from "./core/kernel/log.ts";
|
|
284
288
|
export type {
|
|
285
289
|
AutoApproval,
|
|
286
290
|
ConversationMode,
|
|
287
291
|
ConversationModes,
|
|
288
292
|
ModeChange,
|
|
289
293
|
} from "./core/modes/conversation-modes.ts";
|
|
290
|
-
export {
|
|
291
|
-
PERSONAL_TARGET,
|
|
292
|
-
type PerPrincipalLimits,
|
|
293
|
-
} from "./core/modules/background/personal-target.ts";
|
|
294
294
|
export type {
|
|
295
295
|
DelegationJob,
|
|
296
296
|
DelegationOutcome,
|
|
@@ -343,6 +343,24 @@ export type {
|
|
|
343
343
|
} from "./core/modules/skills/skill-rules.ts";
|
|
344
344
|
export { SkillConflictError } from "./core/modules/skills/skill-rules.ts";
|
|
345
345
|
export type { SkillGroup } from "./core/modules/skills/skill-store.ts";
|
|
346
|
+
export type {
|
|
347
|
+
ToolContribution,
|
|
348
|
+
ToolOutput,
|
|
349
|
+
ToolSpec,
|
|
350
|
+
ToolTurn,
|
|
351
|
+
} from "./core/plugin-api/define.ts";
|
|
352
|
+
export {
|
|
353
|
+
definePlugin,
|
|
354
|
+
defineTool,
|
|
355
|
+
ToolRefusal,
|
|
356
|
+
} from "./core/plugin-api/define.ts";
|
|
357
|
+
export type {
|
|
358
|
+
ClassedHold,
|
|
359
|
+
HoldCheck,
|
|
360
|
+
HoldContext,
|
|
361
|
+
HoldDescription,
|
|
362
|
+
HoldRule,
|
|
363
|
+
} from "./core/plugin-api/holds.ts";
|
|
346
364
|
export type {
|
|
347
365
|
ActionEvent,
|
|
348
366
|
AgentTools,
|
|
@@ -364,26 +382,7 @@ export type {
|
|
|
364
382
|
TurnEndEvent,
|
|
365
383
|
TurnEvent,
|
|
366
384
|
TurnProgressEvent,
|
|
367
|
-
} from "./core/plugin.ts";
|
|
368
|
-
export type {
|
|
369
|
-
DirectChannelProvider,
|
|
370
|
-
DirectChannels,
|
|
371
|
-
DirectReach,
|
|
372
|
-
} from "./core/presence/direct-channels.ts";
|
|
373
|
-
export {
|
|
374
|
-
attachReplyFile,
|
|
375
|
-
REPLY_FILE_LIMITS,
|
|
376
|
-
ReplyFileError,
|
|
377
|
-
withReplyFiles,
|
|
378
|
-
} from "./core/reply-files.ts";
|
|
379
|
-
export type {
|
|
380
|
-
ConversationTurnInput,
|
|
381
|
-
ConversationTurns,
|
|
382
|
-
} from "./core/routing/conversation-turns.ts";
|
|
383
|
-
export type {
|
|
384
|
-
PeerBotEntry,
|
|
385
|
-
PeerBotsConfig,
|
|
386
|
-
} from "./core/routing/peer-bots.ts";
|
|
385
|
+
} from "./core/plugin-api/plugin.ts";
|
|
387
386
|
export type {
|
|
388
387
|
AgentChange,
|
|
389
388
|
AgentDirectory,
|
|
@@ -401,7 +400,7 @@ export type {
|
|
|
401
400
|
SpeakerMemory,
|
|
402
401
|
WorkerSessionRequest,
|
|
403
402
|
WorkerSessions,
|
|
404
|
-
} from "./core/services.ts";
|
|
403
|
+
} from "./core/plugin-api/services.ts";
|
|
405
404
|
export {
|
|
406
405
|
AGENTS,
|
|
407
406
|
BACKGROUND_TURNS,
|
|
@@ -420,20 +419,25 @@ export {
|
|
|
420
419
|
SKILLS,
|
|
421
420
|
THREADS,
|
|
422
421
|
WORKER_SESSIONS,
|
|
423
|
-
} from "./core/services.ts";
|
|
422
|
+
} from "./core/plugin-api/services.ts";
|
|
424
423
|
export type {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
TurnSelection,
|
|
435
|
-
} from "./core/sessions.ts";
|
|
424
|
+
DirectChannelProvider,
|
|
425
|
+
DirectChannels,
|
|
426
|
+
DirectReach,
|
|
427
|
+
} from "./core/presence/direct-channels.ts";
|
|
428
|
+
export type {
|
|
429
|
+
ConversationTurnInput,
|
|
430
|
+
ConversationTurns,
|
|
431
|
+
} from "./core/routing/conversation-turns.ts";
|
|
432
|
+
export type { ToolTiers, ToolTierTable } from "./core/runtime/tool-tiers.ts";
|
|
436
433
|
export type { ShellEnv, ShellEnvConfig } from "./core/shared/child-env.ts";
|
|
437
|
-
export
|
|
438
|
-
|
|
439
|
-
|
|
434
|
+
export {
|
|
435
|
+
PERSONAL_TARGET,
|
|
436
|
+
type PerPrincipalLimits,
|
|
437
|
+
} from "./core/shared/personal-target.ts";
|
|
438
|
+
export {
|
|
439
|
+
attachReplyFile,
|
|
440
|
+
REPLY_FILE_LIMITS,
|
|
441
|
+
ReplyFileError,
|
|
442
|
+
withReplyFiles,
|
|
443
|
+
} from "./core/shared/reply-files.ts";
|