@giftsofprometheus/cli 0.5.0 → 0.5.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/dist/index.js
CHANGED
|
@@ -85,7 +85,7 @@ async function readState(file, schema) {
|
|
|
85
85
|
}
|
|
86
86
|
async function request(path, method = 'GET', body, authenticated = true) {
|
|
87
87
|
if (!path.startsWith('/') || path.includes('\\'))
|
|
88
|
-
throw new ApiError(
|
|
88
|
+
throw new ApiError(`Invalid API path: pass a full path starting with ${publicApi.join(', ')}, e.g. /api/knowledge/profile`);
|
|
89
89
|
const target = new URL(base + path);
|
|
90
90
|
// Checked after URL normalization, so `..` cannot leave the public API
|
|
91
91
|
if (target.origin !== new URL(base).origin || !publicApi.some(prefix => target.pathname.startsWith(prefix)))
|
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@ giftsofprometheus --json profile get # interests and curre
|
|
|
47
47
|
- Lists are paginated: check `totalPages` and pass `--page`.
|
|
48
48
|
- Search and use the returned `slug` or `id` for exact reads.
|
|
49
49
|
- A transcript is in the talk's original language. Segment timecodes are in milliseconds from the start of the talk. When a talk is a part of a longer recording, `sourceRange` gives its bounds in that recording. A talk without a transcript returns an empty array.
|
|
50
|
-
- `request <path>` makes a read-only GET to a path under `/api/knowledge/` or `/api/account/` that no command covers.
|
|
50
|
+
- `request <path>` makes a read-only GET to a full path under `/api/knowledge/` or `/api/account/` that no command covers, for example `request /api/knowledge/talks/<slug>/state` for the user's current reaction and bookmark on a talk.
|
|
51
51
|
- Reading never needs the user's confirmation: search, open talks and transcripts as the task requires.
|
|
52
52
|
- A list with a `recId` (feed, search, similar, `ask`) returns it at the top of the response. When you open a talk from that list, pass it on: `talks content <slug> --rec-id <recId>`, and `favorites add <slug> --rec-id <recId>` when the user saves it.
|
|
53
53
|
|
package/skills/history.json
CHANGED
|
@@ -48,5 +48,10 @@
|
|
|
48
48
|
"version": "0.5.0",
|
|
49
49
|
"hash": "d67f041ffd94e30e",
|
|
50
50
|
"description": "description: Find AI conference talks (AI Engineer, BAAI, Apsara and others) with Russian summaries, read their full transcripts, and manage the signed-in user's favorites, interests and personal feed through the giftsofprometheus CLI, and build a starting profile in the chat. Use when the user asks for talks, speakers or transcripts on an AI engineering topic, or wants to save, list or remove favorites on Gifts of Prometheus."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"version": "0.5.1",
|
|
54
|
+
"hash": "a5decd76f9054068",
|
|
55
|
+
"description": "description: Find AI conference talks (AI Engineer, BAAI, Apsara and others) with Russian summaries, read their full transcripts, and manage the signed-in user's favorites, interests and personal feed through the giftsofprometheus CLI, and build a starting profile in the chat. Use when the user asks for talks, speakers or transcripts on an AI engineering topic, or wants to save, list or remove favorites on Gifts of Prometheus."
|
|
51
56
|
}
|
|
52
57
|
]
|