@pmndre/pine 0.33.0 → 0.33.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/changes.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.1",
|
|
4
|
+
"changes": [
|
|
5
|
+
"chore: the package is @pmndre/pine, and the repository is pmndre/pine"
|
|
6
|
+
]
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"version": "0.33.0",
|
|
4
10
|
"changes": [
|
|
5
11
|
"feat: agents can watch feeds, calendars, mailboxes, Slack, Matrix, Discord, pushed streams, cameras, meters and the computer itself",
|
|
6
12
|
"fix: a page in pine's browser can no longer send anything past the guard, by WebRTC or QUIC"
|
|
@@ -254,12 +260,5 @@
|
|
|
254
260
|
"changes": [
|
|
255
261
|
"feat: an agent shows its browser on request, and screenshots come back clean"
|
|
256
262
|
]
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"version": "0.7.0",
|
|
260
|
-
"changes": [
|
|
261
|
-
"feat: the terminal UI shows what a model thinks",
|
|
262
|
-
"Update README.md"
|
|
263
|
-
]
|
|
264
263
|
}
|
|
265
264
|
]
|
|
@@ -32,7 +32,7 @@ To work on pine itself, use a checkout instead. `bin/pine` runs the sources as t
|
|
|
32
32
|
installs the dependencies the first time; `npm link` puts that copy on your PATH:
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
git clone https://github.com/
|
|
35
|
+
git clone https://github.com/pmndre/pine ~/dev/pine
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
```bash
|
|
@@ -88,10 +88,10 @@ before it starts" is a schedule the agent sets when it is told of the entry.
|
|
|
88
88
|
Say what you want watched. The agent picks the type, pine shows you what the source will do,
|
|
89
89
|
and you confirm:
|
|
90
90
|
|
|
91
|
-
> Tell me on Telegram when
|
|
91
|
+
> Tell me on Telegram when pmndre/pine has a new release.
|
|
92
92
|
|
|
93
93
|
The agent calls `add_source` with `type: "feed"`, the address, a description and a note for
|
|
94
|
-
itself. The dialog says "read the feed at https://github.com/
|
|
94
|
+
itself. The dialog says "read the feed at https://github.com/pmndre/pine/releases.atom
|
|
95
95
|
every 15m and report each new entry". A password, token or key is never typed into the conversation: the
|
|
96
96
|
agent leaves it out, and pine asks you for it in a dialog of its own and keeps it in `.env`
|
|
97
97
|
([sources.md](sources.md), "Secrets").
|
|
@@ -108,7 +108,7 @@ agent's `agent.json` (only that agent can). The options of the type lie next to
|
|
|
108
108
|
|
|
109
109
|
```json
|
|
110
110
|
"sources": {
|
|
111
|
-
"releases": { "type": "feed", "url": "https://github.com/
|
|
111
|
+
"releases": { "type": "feed", "url": "https://github.com/pmndre/pine/releases.atom", "every": "30m", "description": "new releases of pine" }
|
|
112
112
|
}
|
|
113
113
|
```
|
|
114
114
|
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pmndre/pine",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "PI neural engine: an event-driven multi-agent daemon built on the pi coding agent SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/
|
|
9
|
+
"url": "git+https://github.com/pmndre/pine.git"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://github.com/
|
|
11
|
+
"homepage": "https://github.com/pmndre/pine#readme",
|
|
12
12
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "https://github.com/pmndre/pine/issues"
|
|
14
14
|
},
|
|
15
15
|
"bin": {
|
|
16
16
|
"pine": "bin/pine.js"
|
package/src/sources/discord.js
CHANGED
|
@@ -97,7 +97,7 @@ export default function discord(source) {
|
|
|
97
97
|
const api = async (method, path, signal, body) => {
|
|
98
98
|
const res = await fetch(`${base}${path}`, {
|
|
99
99
|
method,
|
|
100
|
-
headers: { authorization: `Bot ${token}`, "user-agent": "DiscordBot (https://github.com/
|
|
100
|
+
headers: { authorization: `Bot ${token}`, "user-agent": "DiscordBot (https://github.com/pmndre/pine, 1)", ...(body !== undefined ? { "content-type": "application/json" } : {}) },
|
|
101
101
|
...(body !== undefined ? { body: JSON.stringify(body) } : {}),
|
|
102
102
|
redirect: "error",
|
|
103
103
|
signal: AbortSignal.any([signal, AbortSignal.timeout(20_000)]),
|