@pmndre/pine 0.35.1 → 0.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/changes.json +6 -9
- package/docs/SKILL.md +4 -3
- package/docs/references/events.md +1 -1
- package/docs/references/operations.md +1 -1
- package/docs/references/setup.md +1 -1
- package/docs/references/source-types.md +498 -76
- package/docs/references/sources.md +75 -513
- package/package.json +1 -1
- package/src/cli.js +1 -1
- package/src/manual.d.ts +1 -1
- package/src/tools.js +1 -1
- package/src/tui/app.js +1 -1
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -419,7 +419,7 @@ async function main() {
|
|
|
419
419
|
if (typeof flags.read === "string")
|
|
420
420
|
return out(showRead(manual, flags.read.split(",")));
|
|
421
421
|
if (!rest.length)
|
|
422
|
-
return out(`The parts of pine's manual. Search it (pine manual telegram pairing), or read a part (pine manual --read
|
|
422
|
+
return out(`The parts of pine's manual. Search it (pine manual telegram pairing), or read a part (pine manual --read source-types#telegram).\n${manual.contents()}`);
|
|
423
423
|
return out(showSearch(manual, [rest.join(" ")]));
|
|
424
424
|
}
|
|
425
425
|
if (cmd === "init") {
|
package/src/manual.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface Part {
|
|
2
|
-
/** What it is read by: "
|
|
2
|
+
/** What it is read by: "source-types#telegram", or "configuration#agent-json/globalmcp" for a row. */
|
|
3
3
|
id: string;
|
|
4
4
|
kind: "section" | "row";
|
|
5
5
|
/** The file it is from, without ".md". */
|
package/src/tools.js
CHANGED
|
@@ -1483,7 +1483,7 @@ ${found.description}`, `this takes away something ${found.scope === "global" ? "
|
|
|
1483
1483
|
description: `Look something up in pine's own manual: how pine works and how it is set up. It covers your tools and what each takes, event sources and the options of every type, schedules, MCP servers, skills, agents and sub-agents, the configuration files and every key in them, modes, approvals and what is asked when, the sandbox and what an agent can reach, the terminal UI and its commands, and the pine command. Use it before you answer a question about pine, before you tell your owner what to change or say that something is not possible, and when one of your tools refuses and you want to know why. "search": one or several short queries in plain words, one thing each ("telegram pairing", "who may add a source for all agents", "bashTimeoutSec"); the answer names the best parts with the line that matched. "read": the ids of parts to get in full. Search first, then read the one or two parts that fit. With neither, the list of the manual's parts.`,
|
|
1484
1484
|
parameters: Type.Object({
|
|
1485
1485
|
search: Type.Optional(Type.Union([Type.String(), Type.Array(Type.String())], { description: "What to look for: one query, or several (one thing each)" })),
|
|
1486
|
-
read: Type.Optional(Type.Union([Type.String(), Type.Array(Type.String())], { description: 'Ids of parts to read in full, as a search lists them, e.g. "
|
|
1486
|
+
read: Type.Optional(Type.Union([Type.String(), Type.Array(Type.String())], { description: 'Ids of parts to read in full, as a search lists them, e.g. "source-types#telegram"' })),
|
|
1487
1487
|
}),
|
|
1488
1488
|
execute: async (_id, p) => {
|
|
1489
1489
|
const list = (v) => (Array.isArray(v) ? v : v === undefined || v === "" ? [] : [v]).map(String).map((x) => x.trim()).filter(Boolean);
|
package/src/tui/app.js
CHANGED
|
@@ -2617,7 +2617,7 @@ export class PineTui {
|
|
|
2617
2617
|
const list = await this.client.sources();
|
|
2618
2618
|
const t = this.active;
|
|
2619
2619
|
if (!list.length)
|
|
2620
|
-
return void this.say(t, c.gray(`no event sources configured. They go into "sources" in pine.json (for every agent) or an agent.json; docs/references/
|
|
2620
|
+
return void this.say(t, c.gray(`no event sources configured. They go into "sources" in pine.json (for every agent) or an agent.json; docs/references/source-types.md has the types.`));
|
|
2621
2621
|
this.say(t, list.map((x) => `${c.bold(x.name)}${x.scope === "global" ? "" : c.gray(` (of ${x.scope})`)} ${c.gray(x.type)} ${x.error ? c.red(`not running: ${x.error}`) : x.running ? c.green("running") : c.gray("idle")}${x.description ? c.gray(` · ${x.description}`) : ""}${x.status ? `\n ${x.status}` : ""}\n${c.gray(` subscribers: ${x.subscribers.join(", ") || "none"} · ${x.last ? `last event ${new Date(x.last.ts).toLocaleTimeString("sv-SE")}, ${x.events} since start` : "no events since start"}`)}`).join("\n"));
|
|
2622
2622
|
this.say(t, c.gray("/subscribe <source> [what to do] wakes this tab's agent on its events · /unsubscribe <source> stops that"), false);
|
|
2623
2623
|
},
|