@stringsync/splates 0.0.0-stage → 0.0.45
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/LICENSE +21 -0
- package/README.md +308 -2
- package/acp-extensions.d.ts +82 -0
- package/add.d.ts +53 -0
- package/adherence.d.ts +49 -0
- package/age.d.ts +2 -0
- package/agent-connection.d.ts +171 -0
- package/agent-errors.d.ts +2 -0
- package/agent-process.d.ts +65 -0
- package/agent-stream.d.ts +91 -0
- package/agents.d.ts +15 -0
- package/artifact-room.d.ts +47 -0
- package/artifact-viewers.d.ts +6 -0
- package/artifact.d.ts +30 -0
- package/artifacts.d.ts +161 -0
- package/asked.d.ts +146 -0
- package/asked.js +7 -0
- package/assumed.d.ts +34 -0
- package/attach.d.ts +30 -0
- package/attachments.d.ts +43 -0
- package/baselines.d.ts +55 -0
- package/claim.d.ts +17 -0
- package/cloudflare-api.d.ts +25 -0
- package/cloudflare-error.d.ts +5 -0
- package/cloudflared-tunnel-provider.d.ts +27 -0
- package/codex-limits.d.ts +19 -0
- package/compaction.d.ts +17 -0
- package/config-source.d.ts +13 -0
- package/config.d.ts +98 -0
- package/config.js +7 -0
- package/conversation-archive.d.ts +6 -0
- package/conversation-background.d.ts +21 -0
- package/conversation-choice.d.ts +4 -0
- package/conversation-files.d.ts +51 -0
- package/conversation-given.d.ts +8 -0
- package/conversation-host.d.ts +102 -0
- package/conversation-listing.d.ts +15 -0
- package/conversation-log.d.ts +301 -0
- package/conversation-messages.d.ts +18 -0
- package/conversation-name.d.ts +28 -0
- package/conversation-options.d.ts +73 -0
- package/conversation-reference.d.ts +2 -0
- package/conversation-state.d.ts +472 -0
- package/conversation-turns.d.ts +115 -0
- package/conversation.d.ts +209 -0
- package/conversations.d.ts +140 -0
- package/coordinator-state.d.ts +28 -0
- package/creds.d.ts +123 -0
- package/darwin-temperature.d.ts +7 -0
- package/decided.d.ts +18 -0
- package/demo.d.ts +29 -0
- package/dev/api.d.ts +209 -0
- package/dev/assets.d.ts +24 -0
- package/dev/conversation-address.d.ts +47 -0
- package/dev/conversation-feed.d.ts +166 -0
- package/dev/live-stream.d.ts +29 -0
- package/dev/worker.d.ts +33 -0
- package/dev-access.d.ts +61 -0
- package/dev-artifacts.d.ts +22 -0
- package/dev-budgets.d.ts +18 -0
- package/dev-conversation-events.d.ts +39 -0
- package/dev-conversation-routes.d.ts +90 -0
- package/dev-creds.d.ts +17 -0
- package/dev-dictation-connection.d.ts +18 -0
- package/dev-dictation.d.ts +17 -0
- package/dev-http.d.ts +76 -0
- package/dev-open.d.ts +15 -0
- package/dev-options.d.ts +133 -0
- package/dev-outcomes.d.ts +21 -0
- package/dev-pages.d.ts +16 -0
- package/dev-picker.d.ts +57 -0
- package/dev-port-socket.d.ts +26 -0
- package/dev-ports.d.ts +11 -0
- package/dev-project-watch.d.ts +44 -0
- package/dev-project.d.ts +168 -0
- package/dev-push.d.ts +59 -0
- package/dev-restart.d.ts +141 -0
- package/dev-servers.d.ts +30 -0
- package/dev-setup-native.d.ts +23 -0
- package/dev-setup-opencode.d.ts +29 -0
- package/dev-setup.d.ts +16 -0
- package/dev-shell.d.ts +70 -0
- package/dev-slot.d.ts +28 -0
- package/dev-sockets.d.ts +13 -0
- package/dev-task-ports.d.ts +73 -0
- package/dev-tasks.d.ts +20 -0
- package/dev-terminal-connection.d.ts +19 -0
- package/dev-terminal.d.ts +42 -0
- package/dev-todos.d.ts +35 -0
- package/dev-transcriber.d.ts +15 -0
- package/dev-tunnel.d.ts +38 -0
- package/dev-versions.d.ts +53 -0
- package/dev-workers.d.ts +55 -0
- package/dev.d.ts +24 -0
- package/diff.d.ts +29 -0
- package/dispatched.d.ts +16 -0
- package/editors.d.ts +22 -0
- package/escalate.d.ts +27 -0
- package/events.d.ts +311 -0
- package/everywhere.d.ts +41 -0
- package/exhibit.d.ts +21 -0
- package/exit.d.ts +54 -0
- package/fact-todos.d.ts +18 -0
- package/fake-agent.d.ts +107 -0
- package/fake-agent.js +284 -0
- package/finding-facts.d.ts +38 -0
- package/findings.d.ts +84 -0
- package/fold.d.ts +43 -0
- package/follow.d.ts +41 -0
- package/format.d.ts +68 -0
- package/git.d.ts +112 -0
- package/handed-out.d.ts +79 -0
- package/handoff.d.ts +23 -0
- package/heavy-run.d.ts +12 -0
- package/heavy.d.ts +28 -0
- package/heavy.js +16 -0
- package/held.d.ts +22 -0
- package/index-0tfvy823.js +272 -0
- package/index-43pq33n4.js +157 -0
- package/index-4776671w.js +698 -0
- package/index-d4hjrzaq.js +464 -0
- package/index-gcfq7awr.js +740 -0
- package/index-k73tsw5g.js +101 -0
- package/index-kaa44k7q.js +59 -0
- package/index-vcv9m93e.js +1265 -0
- package/index-xmfmy729.js +249 -0
- package/index.d.ts +2 -0
- package/index.js +26928 -0
- package/init.d.ts +28 -0
- package/journal.d.ts +57 -0
- package/landed.d.ts +14 -0
- package/lane-todos.d.ts +44 -0
- package/lane.d.ts +55 -0
- package/lanes-from-tags.d.ts +17 -0
- package/lanes.d.ts +96 -0
- package/legacy-names.d.ts +70 -0
- package/legacy-ps.d.ts +31 -0
- package/limits.d.ts +32 -0
- package/list.d.ts +18 -0
- package/load-config.d.ts +44 -0
- package/log.d.ts +14 -0
- package/machine.d.ts +42 -0
- package/merge.d.ts +35 -0
- package/migrate-config.d.ts +31 -0
- package/models.d.ts +24 -0
- package/needs.d.ts +115 -0
- package/notices.d.ts +39 -0
- package/offered.d.ts +39 -0
- package/opencode-usage.d.ts +37 -0
- package/outcomes.d.ts +114 -0
- package/package.json +74 -5
- package/path.d.ts +13 -0
- package/plan.d.ts +236 -0
- package/port-forward.d.ts +22 -0
- package/port-pipe.d.ts +36 -0
- package/ports-list.d.ts +19 -0
- package/probe-runtime.d.ts +5 -0
- package/probe-runtime.js +13 -0
- package/project-reaches.d.ts +23 -0
- package/projects.d.ts +136 -0
- package/prompts.d.ts +128 -0
- package/pty.d.ts +39 -0
- package/pulse.d.ts +8 -0
- package/recommend.d.ts +31 -0
- package/release.d.ts +41 -0
- package/remote-process.d.ts +26 -0
- package/remote-pty.d.ts +29 -0
- package/remote-worker.d.ts +77 -0
- package/remove.d.ts +31 -0
- package/repository.d.ts +91 -0
- package/retry.d.ts +34 -0
- package/roster.d.ts +63 -0
- package/saved-ports-host.d.ts +25 -0
- package/saved-tunnel.d.ts +44 -0
- package/server-worker-socket.d.ts +21 -0
- package/setup-areas.d.ts +7 -0
- package/setup-opencode-model-error.d.ts +3 -0
- package/setup-opencode-models.d.ts +54 -0
- package/setup-opencode-recipe.d.ts +26 -0
- package/setup-opencode.d.ts +46 -0
- package/setup.d.ts +102 -0
- package/shared-browser.d.ts +50 -0
- package/shell.d.ts +17 -0
- package/show.d.ts +106 -0
- package/skill-checks.d.ts +73 -0
- package/skill-checks.js +10 -0
- package/skills.d.ts +16 -0
- package/slot-tunnel.d.ts +27 -0
- package/slots.d.ts +135 -0
- package/snapshot.d.ts +75 -0
- package/splates-artifact.d.ts +3 -0
- package/splates-creds.d.ts +3 -0
- package/splates-dev.d.ts +22 -0
- package/splates-flags.d.ts +34 -0
- package/splates-lane.d.ts +3 -0
- package/splates-projects.d.ts +3 -0
- package/splates-setup.d.ts +17 -0
- package/splates-slots.d.ts +3 -0
- package/splates-todo.d.ts +3 -0
- package/splates-tunnel.d.ts +3 -0
- package/splates-worker.d.ts +3 -0
- package/splates.d.ts +28 -0
- package/stats.d.ts +186 -0
- package/supervise.d.ts +50 -0
- package/system-changes.d.ts +67 -0
- package/system.d.ts +28 -0
- package/systems.d.ts +119 -0
- package/systems.js +21 -0
- package/table.d.ts +5 -0
- package/task-log.d.ts +35 -0
- package/task-ports.d.ts +25 -0
- package/tell.d.ts +47 -0
- package/todo-edit.d.ts +60 -0
- package/todo-file.d.ts +6 -0
- package/todo-lanes.d.ts +82 -0
- package/todo-list.d.ts +26 -0
- package/todo-take.d.ts +27 -0
- package/todo.d.ts +146 -0
- package/todos.d.ts +157 -0
- package/tool-calls.d.ts +18 -0
- package/tunnel-provider.d.ts +37 -0
- package/tunnel-provider.js +0 -0
- package/tunnel-remove.d.ts +28 -0
- package/tunnel-setup.d.ts +104 -0
- package/unix-worker-listener.d.ts +23 -0
- package/unix-worker-socket.d.ts +30 -0
- package/update.d.ts +29 -0
- package/update.js +10 -0
- package/vocabulary.d.ts +9 -0
- package/wait.d.ts +36 -0
- package/watch.d.ts +46 -0
- package/watched.d.ts +43 -0
- package/websocket-worker-socket.d.ts +18 -0
- package/worker-call-host.d.ts +51 -0
- package/worker-channel.d.ts +83 -0
- package/worker-connection.d.ts +24 -0
- package/worker-daemon.d.ts +64 -0
- package/worker-git.d.ts +18 -0
- package/worker-list.d.ts +49 -0
- package/worker-machine.d.ts +34 -0
- package/worker-port-host.d.ts +21 -0
- package/worker-process-host.d.ts +29 -0
- package/worker-protocol.d.ts +104 -0
- package/worker-pty-host.d.ts +34 -0
- package/worker-registry.d.ts +68 -0
- package/worker-replay.d.ts +25 -0
- package/worker-run.d.ts +20 -0
- package/worker-session.d.ts +189 -0
- package/worker-socket.d.ts +15 -0
- package/worktree-service.d.ts +113 -0
- package/worktree.d.ts +232 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Resource } from "webappwiz/disposable";
|
|
2
|
+
import type { RemoteWorker } from "./remote-worker.js";
|
|
3
|
+
/**
|
|
4
|
+
* A loopback port on the coordinator standing in for `port` on a worker:
|
|
5
|
+
* each connection made to it goes down the worker's socket as a `port`
|
|
6
|
+
* channel, so a task's dev server opens here wherever its worker runs.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PortForward implements Resource {
|
|
9
|
+
readonly worker: RemoteWorker;
|
|
10
|
+
/** The worker's port, which this forwards to. */
|
|
11
|
+
readonly port: number;
|
|
12
|
+
private readonly listener;
|
|
13
|
+
private constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Listens on `prefer` when it is free, so the task's port keeps its
|
|
16
|
+
* number here, and on any free port when not.
|
|
17
|
+
*/
|
|
18
|
+
static listen(worker: RemoteWorker, port: number, prefer?: number | null): PortForward;
|
|
19
|
+
/** The coordinator's port it listens on. */
|
|
20
|
+
get local(): number;
|
|
21
|
+
dispose(): void;
|
|
22
|
+
}
|
package/port-pipe.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Resource } from "webappwiz/disposable";
|
|
2
|
+
import type { WorkerChannel } from "./worker-channel.js";
|
|
3
|
+
import type { WorkerSession } from "./worker-session.js";
|
|
4
|
+
/**
|
|
5
|
+
* Bun's TCP socket, whose handlers hand each event to the `PortPipe` it
|
|
6
|
+
* carries: none yet on one a listener just took in, until its `open` makes one.
|
|
7
|
+
*/
|
|
8
|
+
export type PipedSocket = Bun.Socket<PortPipe | undefined>;
|
|
9
|
+
/** The handlers `Bun.connect` and `Bun.listen` take for a piped socket. */
|
|
10
|
+
export declare const PIPE_HANDLERS: Bun.SocketHandler<PortPipe | undefined>;
|
|
11
|
+
/**
|
|
12
|
+
* One TCP connection carried over a `port` channel, the same at both ends: at
|
|
13
|
+
* the worker, to the task's port; at the coordinator, from whoever opened its
|
|
14
|
+
* forward. Bytes go both ways as the channel's data, the socket stops reading
|
|
15
|
+
* while the session is full, and either end closing closes the other.
|
|
16
|
+
*/
|
|
17
|
+
export declare class PortPipe implements Resource {
|
|
18
|
+
private readonly channel;
|
|
19
|
+
private readonly session;
|
|
20
|
+
private socket;
|
|
21
|
+
/** What the kernel would not take yet, sent on the next drain. */
|
|
22
|
+
private unsent;
|
|
23
|
+
/** The channel closed, so the socket ends once `unsent` is out. */
|
|
24
|
+
private ending;
|
|
25
|
+
private done;
|
|
26
|
+
constructor(channel: WorkerChannel, session: WorkerSession);
|
|
27
|
+
/** Takes the socket it pipes, once it is open. */
|
|
28
|
+
attach(socket: PipedSocket): void;
|
|
29
|
+
/** Bun's `data` handler calls this with each chunk it read. */
|
|
30
|
+
received(chunk: Uint8Array): void;
|
|
31
|
+
/** Sends what the kernel has room for now, and ends once all is out. */
|
|
32
|
+
flush(): void;
|
|
33
|
+
/** The socket closed, from either end: so does the channel. */
|
|
34
|
+
closed(): void;
|
|
35
|
+
dispose(): void;
|
|
36
|
+
}
|
package/ports-list.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Logger } from "webappwiz/log";
|
|
2
|
+
import type { Ps } from "webappwiz/system";
|
|
3
|
+
/** What `splates ports` is run with. */
|
|
4
|
+
export interface PortsOptions {
|
|
5
|
+
/** Only this task's; empty for every task's. */
|
|
6
|
+
task: string;
|
|
7
|
+
/** The `splates server` to ask; empty for the one this agent runs under, or this machine's. */
|
|
8
|
+
dev: string;
|
|
9
|
+
json: boolean;
|
|
10
|
+
log: Logger;
|
|
11
|
+
ps: Ps;
|
|
12
|
+
send?: typeof fetch;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* `splates ports`: asks the running `splates server` which ports tasks serve, each
|
|
16
|
+
* with its link through the saved ports host and its link on this machine,
|
|
17
|
+
* so an agent can hand the user both.
|
|
18
|
+
*/
|
|
19
|
+
export declare function portsLs(opts: PortsOptions): Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Execution primitives shared with the focused skill eval runner. */
|
|
2
|
+
export type { Agent, AgentProcess, Launch } from "./agent-process.js";
|
|
3
|
+
export { framed } from "./agent-process.js";
|
|
4
|
+
export { AgentStream } from "./agent-stream.js";
|
|
5
|
+
export { Roster } from "./roster.js";
|
package/probe-runtime.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Logger } from "webappwiz/log";
|
|
2
|
+
import type { Git } from "./git.js";
|
|
3
|
+
import type { Projects, Reach } from "./projects.js";
|
|
4
|
+
/**
|
|
5
|
+
* `splates projects list`: each other project, with what it may do in the one
|
|
6
|
+
* `git` is in, and what that one may do there.
|
|
7
|
+
*/
|
|
8
|
+
export declare function listReaches({ projects, git, log }: {
|
|
9
|
+
projects: Projects;
|
|
10
|
+
git: Git;
|
|
11
|
+
log: Logger;
|
|
12
|
+
}, { json }?: {
|
|
13
|
+
json?: boolean;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* `splates projects grant`: lets agents of the project `slug` names do as much
|
|
17
|
+
* as `reach` in the one `git` is in.
|
|
18
|
+
*/
|
|
19
|
+
export declare function grantReach({ projects, git, log }: {
|
|
20
|
+
projects: Projects;
|
|
21
|
+
git: Git;
|
|
22
|
+
log: Logger;
|
|
23
|
+
}, slug: string, reach: Reach): Promise<void>;
|
package/projects.d.ts
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { Logger } from "webappwiz/log";
|
|
2
|
+
import { type Fs, type Lock, type Ps } from "webappwiz/system";
|
|
3
|
+
/** A repository splates has run in, as the registry keeps it. */
|
|
4
|
+
export interface ProjectRecord {
|
|
5
|
+
/** The main tree's root, never a task's worktree. */
|
|
6
|
+
root: string;
|
|
7
|
+
/** When splates first ran there, as an ISO timestamp. */
|
|
8
|
+
added: string;
|
|
9
|
+
/**
|
|
10
|
+
* What each other project may do here, by its root, those left out
|
|
11
|
+
* `DEFAULT_REACH`.
|
|
12
|
+
*/
|
|
13
|
+
grants?: Record<string, Reach>;
|
|
14
|
+
}
|
|
15
|
+
/** A registered repository, as the registry reads it back. */
|
|
16
|
+
export interface Project extends ProjectRecord {
|
|
17
|
+
/**
|
|
18
|
+
* What a URL names it by: the root's last part, `webappwiz`, with `-2`
|
|
19
|
+
* and on for a second of the same name, in the order they joined.
|
|
20
|
+
*/
|
|
21
|
+
slug: string;
|
|
22
|
+
/** The repository is no longer there: moved or deleted since. */
|
|
23
|
+
gone: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** What `Projects` works with. */
|
|
26
|
+
export interface ProjectsOptions {
|
|
27
|
+
fs: Fs;
|
|
28
|
+
/** Held while the file is rewritten, so two commands never drop each other's. */
|
|
29
|
+
lock: Lock;
|
|
30
|
+
/** The current time; a test passes its own. */
|
|
31
|
+
now?: () => Date;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Every splates project on this machine, kept in one file under the user's
|
|
35
|
+
* home: an explicit roster that `splates init` writes each into, so one
|
|
36
|
+
* `splates server` can find them all without scanning the disk.
|
|
37
|
+
*/
|
|
38
|
+
export declare class Projects {
|
|
39
|
+
/** `~/.splates/projects.json`, or a test's own. */
|
|
40
|
+
readonly path: string;
|
|
41
|
+
private readonly fs;
|
|
42
|
+
private readonly lock;
|
|
43
|
+
private readonly now;
|
|
44
|
+
/**
|
|
45
|
+
* This machine's registry, in `SPLATES_HOME`, `~/.splates` for none, with a
|
|
46
|
+
* lock that counts as stale after `stalenessMs`.
|
|
47
|
+
*/
|
|
48
|
+
static ofMachine({ fs, ps, log }: {
|
|
49
|
+
fs: Fs;
|
|
50
|
+
ps: Ps;
|
|
51
|
+
log: Logger;
|
|
52
|
+
}, stalenessMs?: number): Projects;
|
|
53
|
+
constructor(
|
|
54
|
+
/** `~/.splates/projects.json`, or a test's own. */
|
|
55
|
+
path: string, { fs, lock, now }: ProjectsOptions);
|
|
56
|
+
/**
|
|
57
|
+
* Adds the repository at `root`, once, saying whether it did: registering
|
|
58
|
+
* it again changes nothing.
|
|
59
|
+
*/
|
|
60
|
+
register(root: string): Promise<boolean>;
|
|
61
|
+
/**
|
|
62
|
+
* Makes the registered repository at `root` the one an address naming
|
|
63
|
+
* none shows, as picking it on the page does, saying whether it is
|
|
64
|
+
* registered.
|
|
65
|
+
*/
|
|
66
|
+
focus(root: string): Promise<boolean>;
|
|
67
|
+
/**
|
|
68
|
+
* The project an address naming none shows: the one focused last, else
|
|
69
|
+
* the one focused before it, and so on, else the first registered,
|
|
70
|
+
* skipping those gone; null while there is none.
|
|
71
|
+
*/
|
|
72
|
+
focused(): Promise<Project | null>;
|
|
73
|
+
/**
|
|
74
|
+
* Every registered project, in the order splates first ran in each, those
|
|
75
|
+
* whose repository is gone flagged rather than dropped: one on a drive
|
|
76
|
+
* that is not mounted comes back.
|
|
77
|
+
*/
|
|
78
|
+
list(): Promise<Project[]>;
|
|
79
|
+
/**
|
|
80
|
+
* What the project at `from` may do in the one at `to`: what `to` granted
|
|
81
|
+
* it, else `DEFAULT_REACH`.
|
|
82
|
+
*/
|
|
83
|
+
reach(from: string, to: string): Promise<Reach>;
|
|
84
|
+
/**
|
|
85
|
+
* Lets the project at `from` do as much as `reach` in the registered one
|
|
86
|
+
* at `to`, saying whether `to` is registered.
|
|
87
|
+
*/
|
|
88
|
+
grant(to: string, from: string, reach: Reach): Promise<boolean>;
|
|
89
|
+
/**
|
|
90
|
+
* The registered project a command names as `slug`, refusing one that is
|
|
91
|
+
* not there.
|
|
92
|
+
*/
|
|
93
|
+
named(slug: string): Promise<Project>;
|
|
94
|
+
/**
|
|
95
|
+
* Drops the repository at `root`, saying whether it was there: one gone
|
|
96
|
+
* for good, or one `splates server` should no longer offer.
|
|
97
|
+
*/
|
|
98
|
+
forget(root: string): Promise<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
* Rewrites the file as `edit` says, under the lock, saying whether it
|
|
101
|
+
* did: `edit` returns null to leave it as it is.
|
|
102
|
+
*/
|
|
103
|
+
private change;
|
|
104
|
+
private get dir();
|
|
105
|
+
private read;
|
|
106
|
+
private write;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* What an agent working in one project may do in another through splates,
|
|
110
|
+
* each including those before it: read its tasks, todos, lanes and systems;
|
|
111
|
+
* add todos to its untriaged lane; or hand its tasks to agents and
|
|
112
|
+
* orchestrate them. Grants stop splates commands, not file edits.
|
|
113
|
+
*/
|
|
114
|
+
export declare const REACHES: readonly ["read", "todos", "tasks"];
|
|
115
|
+
export type Reach = (typeof REACHES)[number];
|
|
116
|
+
/** What a project lets another do that it has granted nothing. */
|
|
117
|
+
export declare const DEFAULT_REACH: Reach;
|
|
118
|
+
/** Whether `granted` covers what `needed` asks for. */
|
|
119
|
+
export declare function reaches(granted: Reach, needed: Reach): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* One line telling an agent where a project a prompt names as `#slug` sits,
|
|
122
|
+
* and how to change it:
|
|
123
|
+
*
|
|
124
|
+
* ```
|
|
125
|
+
* #shop is the splates project at /Users/me/shop: read its code there, and land any change to it from a task added there.
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
export declare function projectLine({ slug, root, reach, }: {
|
|
129
|
+
slug: string;
|
|
130
|
+
root: string;
|
|
131
|
+
/**
|
|
132
|
+
* What the project the prompt is in may do there; null when it is that
|
|
133
|
+
* project, or in none.
|
|
134
|
+
*/
|
|
135
|
+
reach: Reach | null;
|
|
136
|
+
}): string;
|
package/prompts.d.ts
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import type { AgentPick } from "./roster.js";
|
|
2
|
+
/** What a chat with an agent takes to mean todo `id`. */
|
|
3
|
+
export declare function todoReference(id: number): string;
|
|
4
|
+
/**
|
|
5
|
+
* What the untriaged lane, the todos in no lane, goes by where a lane's
|
|
6
|
+
* number would: `[SPLATES LANE untriaged]`, `splates lane show untriaged`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const UNTRIAGED = "untriaged";
|
|
9
|
+
/**
|
|
10
|
+
* What a chat with an agent takes to mean "work down lane `id`", or, for
|
|
11
|
+
* null, "place the untriaged todos in lanes, then work those down".
|
|
12
|
+
*/
|
|
13
|
+
export declare function laneReference(id: number | null): string;
|
|
14
|
+
/** What a chat with an agent takes to mean "claim `task` and carry on with it". */
|
|
15
|
+
export declare function taskReference(task: string): string;
|
|
16
|
+
/** What a chat with an agent takes to mean "walk the user through setup step `step`". */
|
|
17
|
+
export declare function setupReference(step: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* What a chat with an agent takes to mean "the agent at work on `task` handed
|
|
20
|
+
* it to you: claim it and carry on from where its `SPLATES.md` says it stands".
|
|
21
|
+
*/
|
|
22
|
+
export declare function handoffReference(task: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* What asks the agent in a conversation to hand its task off to `pick`'s
|
|
25
|
+
* agent, on its model when it names one, as the page's Hand off action sends.
|
|
26
|
+
*/
|
|
27
|
+
export declare function handoffToReference(pick: AgentPick): string;
|
|
28
|
+
/**
|
|
29
|
+
* What tells the conversation that handed `task` out that it stopped:
|
|
30
|
+
* escalated, merged or removed, which `splates show` says.
|
|
31
|
+
*/
|
|
32
|
+
export declare function reportReference(task: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* What tells the conversation that handed `task` out that the person
|
|
35
|
+
* terminated its agent, leaving the task as it stood.
|
|
36
|
+
*/
|
|
37
|
+
export declare function stoppedReference(task: string): string;
|
|
38
|
+
/**
|
|
39
|
+
* What tells the conversation that handed `task` out that its agent's turn
|
|
40
|
+
* ended, or failed, with the task still under way and not escalated, so it
|
|
41
|
+
* waits on nothing that will come.
|
|
42
|
+
*/
|
|
43
|
+
export declare function idleReference(task: string): string;
|
|
44
|
+
/**
|
|
45
|
+
* What asks the conversation that handed tasks out, idle `HEARTBEAT_IDLE` while
|
|
46
|
+
* an agent it handed one to is at work, to check on each and say where its
|
|
47
|
+
* lanes stand.
|
|
48
|
+
*/
|
|
49
|
+
export declare const HEARTBEAT = "[SPLATES HEARTBEAT]";
|
|
50
|
+
/**
|
|
51
|
+
* What tells a lane's orchestrator that todo `id`, in a lane it works, left
|
|
52
|
+
* the list: merged, or removed.
|
|
53
|
+
*/
|
|
54
|
+
export declare function todoDoneReference(id: number): string;
|
|
55
|
+
/**
|
|
56
|
+
* What tells a lane's orchestrator that todo `id`, in a lane it works, is
|
|
57
|
+
* open again: the task that took it released it or was removed.
|
|
58
|
+
*/
|
|
59
|
+
export declare function todoOpenReference(id: number): string;
|
|
60
|
+
/**
|
|
61
|
+
* What tells a lane's orchestrator that every lane it works is done, however
|
|
62
|
+
* the last todo landed, so it ends on its Finished report.
|
|
63
|
+
*/
|
|
64
|
+
export declare const LANES_DONE = "[SPLATES LANES DONE]";
|
|
65
|
+
/**
|
|
66
|
+
* Whether `text` is an update splates itself tells the conversation that handed
|
|
67
|
+
* tasks out: a report, idle, stopped, a todo done or open, heartbeat or
|
|
68
|
+
* lanes done, never the person's word.
|
|
69
|
+
*/
|
|
70
|
+
export declare function isUpdate(text: string): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* What asks an agent to bring its `SPLATES.md` up to date and stop, as before a
|
|
73
|
+
* restart: the splates skill says what it means.
|
|
74
|
+
*/
|
|
75
|
+
export declare const CHECKPOINT = "[SPLATES CHECKPOINT]";
|
|
76
|
+
/**
|
|
77
|
+
* What asks an agent to carry on from where its `SPLATES.md` says it stopped,
|
|
78
|
+
* after a checkpoint: the splates skill says what it means.
|
|
79
|
+
*/
|
|
80
|
+
export declare const RESUME = "[SPLATES RESUME]";
|
|
81
|
+
/**
|
|
82
|
+
* What asks an agent to carry on with a turn a lost connection cut short, as
|
|
83
|
+
* the page's Reconnect button sends: the splates skill says what it means.
|
|
84
|
+
*/
|
|
85
|
+
export declare const RECONNECT = "[SPLATES RECONNECT]";
|
|
86
|
+
/**
|
|
87
|
+
* What approves a task's review and asks the agent to merge it, as the Ready
|
|
88
|
+
* to merge card's Merge button sends: the splates skill says what it means.
|
|
89
|
+
*/
|
|
90
|
+
export declare const MERGE = "[SPLATES MERGE]";
|
|
91
|
+
/**
|
|
92
|
+
* What approves an agent's proposal as it stands and asks it to go ahead,
|
|
93
|
+
* the answers to any calls it chose nothing for after it, as the Proposed
|
|
94
|
+
* card's Approve button sends: the splates skill says what it means.
|
|
95
|
+
*/
|
|
96
|
+
export declare const APPROVE = "[SPLATES APPROVE]";
|
|
97
|
+
/**
|
|
98
|
+
* What asks an agent long at work to say where its work stands and carry on,
|
|
99
|
+
* as the page's Check in button sends: the splates skill says what it means.
|
|
100
|
+
*/
|
|
101
|
+
export declare const CHECK_IN = "[SPLATES UPDATE]";
|
|
102
|
+
/**
|
|
103
|
+
* What asks an agent to make the request after it a todo rather than do it,
|
|
104
|
+
* or, alone, to make the person's message before it one, with what it did on
|
|
105
|
+
* it since, and stop, as the composer's Defer offers: the splates skill says
|
|
106
|
+
* what it means.
|
|
107
|
+
*/
|
|
108
|
+
export declare const DEFER = "[SPLATES DEFER]";
|
|
109
|
+
/**
|
|
110
|
+
* What the agent alone is told of a message the person dictated: the page
|
|
111
|
+
* marks it with a mic, and never shows these words.
|
|
112
|
+
*/
|
|
113
|
+
export declare const DICTATED = "(Dictated by voice: words that sound alike may be swapped, and names in this project misspelled. Read a near miss as the closest name in the project, and ask before acting on a reading that changes what you do.)";
|
|
114
|
+
/** Each `[SPLATES ...]` directive in a text, wherever it stands. */
|
|
115
|
+
export declare const DIRECTIVES: RegExp;
|
|
116
|
+
/**
|
|
117
|
+
* The directives `text` starts with, in order, and what follows them; none
|
|
118
|
+
* when it starts with anything else.
|
|
119
|
+
*/
|
|
120
|
+
export declare function leadingDirectives(text: string): {
|
|
121
|
+
directives: string[];
|
|
122
|
+
rest: string;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* `text` trimmed, read as splates's directive when it is one of arbor's, as a
|
|
126
|
+
* conversation from before the rename holds.
|
|
127
|
+
*/
|
|
128
|
+
export declare function directive(text: string): string;
|
package/pty.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { AsyncResource } from "webappwiz/disposable";
|
|
2
|
+
import { type Eventful } from "webappwiz/events";
|
|
3
|
+
import type { Ps } from "webappwiz/system";
|
|
4
|
+
/** What a shell on a `Pty` says: bytes it wrote, and that it is gone. */
|
|
5
|
+
export interface PtyEvents extends Record<string, unknown> {
|
|
6
|
+
data: Uint8Array;
|
|
7
|
+
exit: number;
|
|
8
|
+
}
|
|
9
|
+
/** Where and how big a `Pty` starts. */
|
|
10
|
+
export interface PtyOptions {
|
|
11
|
+
argv: string[];
|
|
12
|
+
cwd: string;
|
|
13
|
+
cols: number;
|
|
14
|
+
rows: number;
|
|
15
|
+
env?: Record<string, string>;
|
|
16
|
+
ps?: Ps;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A program on a pseudo-terminal of its own, the way a terminal window runs a
|
|
20
|
+
* shell: whatever it writes arrives as `data`, and `write` is typing at it.
|
|
21
|
+
* POSIX only, since `Bun.Terminal` is.
|
|
22
|
+
*/
|
|
23
|
+
export declare class Pty implements AsyncResource, Eventful<PtyEvents> {
|
|
24
|
+
private readonly dispatcher;
|
|
25
|
+
readonly events: import("webappwiz/events").Events<PtyEvents>;
|
|
26
|
+
private readonly child;
|
|
27
|
+
constructor({ argv, cwd, cols, rows, env, ps, }: PtyOptions);
|
|
28
|
+
/** The shell's pid, for the job it runs. */
|
|
29
|
+
get pid(): number;
|
|
30
|
+
/** Types `data` at the program, keys and pastes alike. */
|
|
31
|
+
write(data: string | Uint8Array): void;
|
|
32
|
+
/** What a window resize does: the program hears of it as SIGWINCH. */
|
|
33
|
+
resize(cols: number, rows: number): void;
|
|
34
|
+
/**
|
|
35
|
+
* Hangs up, as closing a terminal window does: the shell passes it on to
|
|
36
|
+
* its jobs, background ones included.
|
|
37
|
+
*/
|
|
38
|
+
disposeAsync(): Promise<void>;
|
|
39
|
+
}
|
package/pulse.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Duration } from "webappwiz/time";
|
|
2
|
+
/**
|
|
3
|
+
* How often `splates server` says a stream it serves is still there, so the page
|
|
4
|
+
* can tell one that went quiet, as across a sleep, from one with no news.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PULSE: Duration;
|
|
7
|
+
/** The event it says so with, one the page's handlers for news never hear. */
|
|
8
|
+
export declare const PULSE_EVENT: Uint8Array<ArrayBuffer>;
|
package/recommend.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type LaneRecord, type LaneState } from "./lanes.js";
|
|
2
|
+
import type { Todo } from "./todo.js";
|
|
3
|
+
import type { Todos } from "./todos.js";
|
|
4
|
+
/** What a finished task should be followed by, and what should just go. */
|
|
5
|
+
export interface Recommendation {
|
|
6
|
+
/** The todo to pick up next, or null when there is nothing fresh left. */
|
|
7
|
+
next: Todo | null;
|
|
8
|
+
/** Todos left waiting so long they probably no longer apply. */
|
|
9
|
+
stale: Todo[];
|
|
10
|
+
/**
|
|
11
|
+
* The lane the finished task's todos ran in, when it has more to do:
|
|
12
|
+
* `next` is its next step then, even one another lane still blocks.
|
|
13
|
+
*/
|
|
14
|
+
lane?: LaneState;
|
|
15
|
+
/** Every lane there is now, to name those `lane` is blocked by. */
|
|
16
|
+
records?: LaneRecord[];
|
|
17
|
+
/** A lane the finished task's todos emptied: its agent is done. */
|
|
18
|
+
finished?: LaneRecord;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Which todo to take up after `task`. A task whose todos ran in a lane goes
|
|
22
|
+
* on down that lane, since that is what its agent was handed. Otherwise one
|
|
23
|
+
* that came up in it first, since whoever just finished it knows that context
|
|
24
|
+
* best, then the open one highest on the list, which is how
|
|
25
|
+
* whoever keeps the list says what matters most; never one still blocked by
|
|
26
|
+
* another yet to merge. Todos past `staleness` are never recommended, only
|
|
27
|
+
* offered for removal.
|
|
28
|
+
*/
|
|
29
|
+
export declare function recommend(todos: Todos, task: string | null, staleness: number, ran?: LaneRecord[]): Promise<Recommendation>;
|
|
30
|
+
/** The lines `merge` ends with, or none when there is nothing to say. */
|
|
31
|
+
export declare function recommendation({ next, stale, lane, records, finished, }: Recommendation): string[];
|
package/release.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Ps } from "webappwiz/system";
|
|
2
|
+
/** The version of splates running now, as `ship` stamped it. */
|
|
3
|
+
export declare const RUNNING: string;
|
|
4
|
+
/** Where npm says which version of splates is the latest. */
|
|
5
|
+
export declare const REGISTRY = "https://registry.npmjs.org/@stringsync%2fsplates/latest";
|
|
6
|
+
/** A newer splates than the one serving, published since it started. */
|
|
7
|
+
export interface Release {
|
|
8
|
+
running: string;
|
|
9
|
+
newest: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Commits to splates's own source since `splates server` started from a checkout of
|
|
13
|
+
* it, which a restart picks up.
|
|
14
|
+
*/
|
|
15
|
+
export interface Behind {
|
|
16
|
+
/** The last commit to the source as the server started. */
|
|
17
|
+
running: string;
|
|
18
|
+
/** The last commit to it now. */
|
|
19
|
+
newest: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The directories splates runs from in a checkout: its own, and the webappwiz
|
|
23
|
+
* library it imports, whose commits change what the server runs just as much.
|
|
24
|
+
*/
|
|
25
|
+
export declare const SOURCE: string[];
|
|
26
|
+
/**
|
|
27
|
+
* The last commit to `source`, or null when splates does not run from a
|
|
28
|
+
* checkout, as from npm, or git cannot say. Never throws, like `newest`.
|
|
29
|
+
*/
|
|
30
|
+
export declare function sourceCommit(ps: Ps, source?: string[]): Promise<string | null>;
|
|
31
|
+
/**
|
|
32
|
+
* The latest version of splates on npm, or null when the registry cannot say:
|
|
33
|
+
* offline, slow, or answering with something else. A check that fails has
|
|
34
|
+
* nothing to tell the person at the page, so it never throws.
|
|
35
|
+
*/
|
|
36
|
+
export declare function newest(registry?: string): Promise<string | null>;
|
|
37
|
+
/**
|
|
38
|
+
* Whether `version` is past `than`, by major, minor and patch. A prerelease is
|
|
39
|
+
* never newer: only what `@latest` installs is worth a restart.
|
|
40
|
+
*/
|
|
41
|
+
export declare function isNewer(version: string, than: string): boolean;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AgentFrame, AgentProcess, ProcessHandle } from "./agent-process.js";
|
|
2
|
+
import type { WorkerChannel } from "./worker-channel.js";
|
|
3
|
+
import type { WorkerSession } from "./worker-session.js";
|
|
4
|
+
/**
|
|
5
|
+
* A process running on a worker, seen from the coordinator as any
|
|
6
|
+
* `AgentProcess` is: writing `input` is its stdin, `output` its stdout, each
|
|
7
|
+
* frame in the seq its channel gave it, acked back to the worker once written
|
|
8
|
+
* down. Its pid is null until the worker says it started; one taken back
|
|
9
|
+
* after a restart asks again, since the word came before.
|
|
10
|
+
*/
|
|
11
|
+
export declare class RemoteProcess implements AgentProcess {
|
|
12
|
+
private readonly channel;
|
|
13
|
+
readonly input: WritableStream<Uint8Array>;
|
|
14
|
+
readonly output: ReadableStream<AgentFrame>;
|
|
15
|
+
readonly exited: Promise<number>;
|
|
16
|
+
readonly handle: ProcessHandle;
|
|
17
|
+
private _pid;
|
|
18
|
+
private tail;
|
|
19
|
+
constructor(channel: WorkerChannel, session: WorkerSession, worker: string, { resumed }?: {
|
|
20
|
+
resumed?: boolean;
|
|
21
|
+
});
|
|
22
|
+
get pid(): number | null;
|
|
23
|
+
stderr(): string;
|
|
24
|
+
ack(seq: number): void;
|
|
25
|
+
kill(): void;
|
|
26
|
+
}
|
package/remote-pty.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AsyncResource } from "webappwiz/disposable";
|
|
2
|
+
import { type Eventful } from "webappwiz/events";
|
|
3
|
+
import type { ProcessHandle } from "./agent-process.js";
|
|
4
|
+
import type { PtyEvents } from "./pty.js";
|
|
5
|
+
import type { WorkerChannel } from "./worker-channel.js";
|
|
6
|
+
/**
|
|
7
|
+
* A shell on a worker's pseudo-terminal, seen from the coordinator as a
|
|
8
|
+
* `Pty` is: what it writes arrives as `data`, and `write` is typing at it.
|
|
9
|
+
* Its pid is null until the worker says it started, or says it again when
|
|
10
|
+
* asked to `describe` itself, as one taken back after a restart is.
|
|
11
|
+
*/
|
|
12
|
+
export declare class RemotePty implements AsyncResource, Eventful<PtyEvents> {
|
|
13
|
+
private readonly channel;
|
|
14
|
+
private readonly dispatcher;
|
|
15
|
+
readonly events: import("webappwiz/events").Events<PtyEvents>;
|
|
16
|
+
/** What takes it back after a coordinator restart. */
|
|
17
|
+
readonly handle: ProcessHandle;
|
|
18
|
+
private _pid;
|
|
19
|
+
private exited;
|
|
20
|
+
constructor(channel: WorkerChannel, worker: string);
|
|
21
|
+
get pid(): number | null;
|
|
22
|
+
write(data: string | Uint8Array): void;
|
|
23
|
+
resize(cols: number, rows: number): void;
|
|
24
|
+
/** Asks the worker to say the pid again and write the screen it kept, as `data`. */
|
|
25
|
+
describe(): void;
|
|
26
|
+
/** Hangs up, as closing a terminal window does. */
|
|
27
|
+
disposeAsync(): Promise<void>;
|
|
28
|
+
private exit;
|
|
29
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { ListeningEntry, ProcessEntry } from "webappwiz/system";
|
|
2
|
+
import type { Launch, ProcessHandle } from "./agent-process.js";
|
|
3
|
+
import type { GitResult } from "./git.js";
|
|
4
|
+
import { RemoteProcess } from "./remote-process.js";
|
|
5
|
+
import { RemotePty } from "./remote-pty.js";
|
|
6
|
+
import type { WorkerChannel } from "./worker-channel.js";
|
|
7
|
+
import type { WorkerMachine, WorkerRead } from "./worker-machine.js";
|
|
8
|
+
import type { Json } from "./worker-protocol.js";
|
|
9
|
+
import type { WorkerSession } from "./worker-session.js";
|
|
10
|
+
/** Where and how big a shell on a worker starts, as `Pty` takes it. */
|
|
11
|
+
export interface RemotePtyOptions {
|
|
12
|
+
argv: string[];
|
|
13
|
+
cwd: string;
|
|
14
|
+
cols: number;
|
|
15
|
+
rows: number;
|
|
16
|
+
env?: Record<string, string>;
|
|
17
|
+
}
|
|
18
|
+
/** How a worker joined: over this machine's socket, or by its own say-so. */
|
|
19
|
+
export type WorkerKind = "local" | "registered";
|
|
20
|
+
/**
|
|
21
|
+
* The coordinator's handle on one worker: what it said of itself in its
|
|
22
|
+
* hello, and the work it can be given. Its session outlives any one
|
|
23
|
+
* connection, so a call or process started before a drop finishes after it.
|
|
24
|
+
*/
|
|
25
|
+
export declare class RemoteWorker implements WorkerMachine {
|
|
26
|
+
readonly id: string;
|
|
27
|
+
/** Slots, platform and build, as its last hello said. */
|
|
28
|
+
info: {
|
|
29
|
+
[key: string]: Json;
|
|
30
|
+
};
|
|
31
|
+
readonly session: WorkerSession;
|
|
32
|
+
/** How its last connection arrived. */
|
|
33
|
+
kind: WorkerKind;
|
|
34
|
+
private calls;
|
|
35
|
+
private nextCall;
|
|
36
|
+
private readonly pending;
|
|
37
|
+
constructor(id: string,
|
|
38
|
+
/** Slots, platform and build, as its last hello said. */
|
|
39
|
+
info: {
|
|
40
|
+
[key: string]: Json;
|
|
41
|
+
}, session: WorkerSession,
|
|
42
|
+
/** How its last connection arrived. */
|
|
43
|
+
kind?: WorkerKind);
|
|
44
|
+
get connected(): boolean;
|
|
45
|
+
/** `start`, as the `Launch` that conversations start their agents with. */
|
|
46
|
+
readonly launch: Launch;
|
|
47
|
+
/** Starts `argv` in `cwd` on the worker, its stdio piped back here. */
|
|
48
|
+
start(argv: string[], cwd: string, env?: Record<string, string>): RemoteProcess;
|
|
49
|
+
/**
|
|
50
|
+
* Takes back the process `handle` names, which this worker kept running
|
|
51
|
+
* while its coordinator restarted: its output replays from past `held`,
|
|
52
|
+
* the last frame the coordinator wrote down, or from wherever the worker's
|
|
53
|
+
* replay starts for null.
|
|
54
|
+
*/
|
|
55
|
+
resume(handle: ProcessHandle, held: number | null): RemoteProcess;
|
|
56
|
+
/** Starts a shell on a pseudo-terminal of the worker's. */
|
|
57
|
+
pty({ argv, cwd, cols, rows, env }: RemotePtyOptions): RemotePty;
|
|
58
|
+
/**
|
|
59
|
+
* Takes back a shell the worker kept through a coordinator restart, by
|
|
60
|
+
* the `handle` the last run's `pty` had; it says its pid and screen again
|
|
61
|
+
* once asked to describe itself. One the worker no longer runs exits.
|
|
62
|
+
*/
|
|
63
|
+
resumePty(handle: ProcessHandle): RemotePty;
|
|
64
|
+
/**
|
|
65
|
+
* Opens a connection to `port` on the worker's loopback, such as a task's
|
|
66
|
+
* dev server, as a `port` channel for a `PortPipe` to carry.
|
|
67
|
+
*/
|
|
68
|
+
port(port: number): WorkerChannel;
|
|
69
|
+
git(cwd: string, args: string[]): Promise<GitResult>;
|
|
70
|
+
processes(): Promise<ProcessEntry[]>;
|
|
71
|
+
listening(): Promise<ListeningEntry[]>;
|
|
72
|
+
exists(path: string): Promise<boolean>;
|
|
73
|
+
read(path: string, from: number): Promise<WorkerRead>;
|
|
74
|
+
private call;
|
|
75
|
+
/** One `calls` channel for every call, opened on the first. */
|
|
76
|
+
private channel;
|
|
77
|
+
}
|