atris 3.68.0 → 3.68.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/atris/skills/youtube/SKILL.md +12 -1
- package/commands/member.js +24 -1
- package/commands/youtube.js +12 -2
- package/package.json +1 -1
- package/scripts/det/ytnotes +11 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: youtube
|
|
3
3
|
description: "YouTube discovery and learning. Get watch permalinks with atris youtube search QUERY (free, local ytsearch/yt-dlp). On 429 use printed rows if any; else the CLI retries once, then cached rows if printed, else STOP. Never run --paid after a 429. --paid only when the user explicitly asked to buy permalinks (5 credits). After a URL is picked, atris youtube notes URL (free, ephemeral unless --save). atris youtube process only to store knowledge (5 credits). Never paste tokens. Never /auth/cli. Mint with atris login --agent from a stored login. Never summarize a video from model memory. Triggers on: youtube search, find videos, paid youtube search, any youtube.com or youtu.be link, youtube, video, watch this, notes on this."
|
|
4
|
-
version: 2.18.
|
|
4
|
+
version: 2.18.24
|
|
5
5
|
tags:
|
|
6
6
|
- youtube
|
|
7
7
|
- research
|
|
@@ -11,6 +11,17 @@ tags:
|
|
|
11
11
|
|
|
12
12
|
# YouTube Skill
|
|
13
13
|
|
|
14
|
+
## Route first: learning vs product
|
|
15
|
+
|
|
16
|
+
Two rails. Pick one before running anything.
|
|
17
|
+
|
|
18
|
+
- **Learning rail (free):** `atris youtube notes URL` or `atris youtube teach URL`. Local yt-dlp captions plus a local AI writer, zero credits, no login. Use it when the ask is "learn from", "notes on", "alpha", "rabbit hole", "what does this say". This replaces the old alpha-learn skill.
|
|
19
|
+
- **Product rail (5 credits):** `atris youtube process URL` (bare `atris youtube URL` is the same call). Stores the analysis in the Atris backend, needs a stored login, and is gated on a filled Apply. Use it only when the ask is "process", "store", "add to knowledge", or `--agent ID --store`.
|
|
20
|
+
|
|
21
|
+
Process is gated. It exits 2 with `write one apply (change + receipt) before process.` until `atris/wiki/briefs/youtube-<id>.apply.md` (relative to the current directory) has real `change:` and `receipt:` lines. `fill this` does not count, and a notes/search keep-sidecar (`change: apply atris/experiments/...`) does not count. The CLI prints the exact file on the next line. It writes a fill-this stub there only when `atris/wiki/` already exists; otherwise create the file yourself. The gate runs before any login or billing, so a refusal never spends credits. Write the Apply from what the person will actually change, not a placeholder.
|
|
22
|
+
|
|
23
|
+
Notes writer: Gemini Flash through the Antigravity CLI (`agy -p`) when installed, else Haiku (`claude`), then Codex, then Cursor. The Antigravity editor's own `agy` launcher has no `-p` mode and is skipped. `notes by <writer>` names who wrote them. `check: fill this` after notes, teach, or search means the video had no number or named mechanism to build a check from; it is not an error.
|
|
24
|
+
|
|
14
25
|
## Feature map
|
|
15
26
|
|
|
16
27
|
Hard path. Follow in order. Soft memory does not override this.
|
package/commands/member.js
CHANGED
|
@@ -5889,6 +5889,26 @@ function fallbackSupervisorAnalysis(receipts) {
|
|
|
5889
5889
|
async function runSupervisorWake(name, paths, { execute = false } = {}) {
|
|
5890
5890
|
const mode = execute ? 'execute' : 'dry_run';
|
|
5891
5891
|
const root = process.cwd();
|
|
5892
|
+
const llmConfigured = Boolean(process.env.ATRIS_SUPERVISOR_LLM_JSON)
|
|
5893
|
+
|| process.env.ATRIS_SUPERVISOR_LLM === '1';
|
|
5894
|
+
if (!execute && !llmConfigured) {
|
|
5895
|
+
return {
|
|
5896
|
+
ok: true,
|
|
5897
|
+
skipped: true,
|
|
5898
|
+
action: 'wake',
|
|
5899
|
+
member: name,
|
|
5900
|
+
mode,
|
|
5901
|
+
decision: 'wait',
|
|
5902
|
+
reason: 'skipped_llm_not_configured',
|
|
5903
|
+
executed: false,
|
|
5904
|
+
needs_user: false,
|
|
5905
|
+
ask: null,
|
|
5906
|
+
next_command: null,
|
|
5907
|
+
receipt_path: null,
|
|
5908
|
+
log_path: null,
|
|
5909
|
+
recommendations_path: supervisorRecommendationsPath(root),
|
|
5910
|
+
};
|
|
5911
|
+
}
|
|
5892
5912
|
const receipts = listRecentSupervisorReceipts(root);
|
|
5893
5913
|
const logs = readSupervisorMemberLogs(root);
|
|
5894
5914
|
let llm = null;
|
|
@@ -8139,6 +8159,7 @@ const WAKE_REASON_TEXT = {
|
|
|
8139
8159
|
heuristic_objective_proposal_dry_run: 'it previewed an objective proposal using its built-in heuristics, without writing it',
|
|
8140
8160
|
install_requires_clean_git: 'installing needs a clean git tree first',
|
|
8141
8161
|
insufficient_world_model_data: 'its world model is too thin to act on yet',
|
|
8162
|
+
skipped_llm_not_configured: 'no model is configured here, so it skipped quietly instead of writing another dry-run receipt',
|
|
8142
8163
|
llm_json_parse_failed: 'the model reply did not parse, so it stopped rather than act on garbage',
|
|
8143
8164
|
llm_json_parse_failed_heuristic_used: 'the model reply did not parse, so it fell back to built-in heuristics',
|
|
8144
8165
|
missing_domain_input: 'it needs a domain file or domain text from you to work on',
|
|
@@ -8231,7 +8252,9 @@ function wakeBootLines(name, result) {
|
|
|
8231
8252
|
|| /^open_experiment_/.test(result.reason || '');
|
|
8232
8253
|
lines.push('', ` ${s.bold(ballWithHuman ? 'Your move' : 'Next step')}`, ` ${s.cyan(result.next_command)}`);
|
|
8233
8254
|
}
|
|
8234
|
-
|
|
8255
|
+
if (result.receipt_path) {
|
|
8256
|
+
lines.push('', ` ${s.dim(`receipt \u00b7 ${path.relative(process.cwd(), result.receipt_path)}`)}`, '');
|
|
8257
|
+
}
|
|
8235
8258
|
return lines;
|
|
8236
8259
|
}
|
|
8237
8260
|
|
package/commands/youtube.js
CHANGED
|
@@ -1021,16 +1021,26 @@ function runYoutubeUnsave(args = [], deps = {}) {
|
|
|
1021
1021
|
|
|
1022
1022
|
function ensureProcessApply({ cwd, url, now, output } = {}) {
|
|
1023
1023
|
const id = videoIdFromUrl(url);
|
|
1024
|
-
|
|
1024
|
+
const rel = id ? applySidecarRel(id) : null;
|
|
1025
|
+
const code = applyGate.ensureApply({
|
|
1025
1026
|
cwd,
|
|
1026
1027
|
source: url,
|
|
1027
|
-
rel
|
|
1028
|
+
rel,
|
|
1028
1029
|
now,
|
|
1029
1030
|
output,
|
|
1030
1031
|
incompleteMessage: PROCESS_APPLY_MESSAGE,
|
|
1031
1032
|
required: true,
|
|
1032
1033
|
human: true,
|
|
1033
1034
|
});
|
|
1035
|
+
if (code !== 0 && rel) {
|
|
1036
|
+
// Name the file so the gate is passable, including in a workspace with no atris/wiki yet.
|
|
1037
|
+
const print = typeof output === 'function' ? output : (line = '') => console.error(line);
|
|
1038
|
+
const exists = Boolean(cwd) && fs.existsSync(path.join(cwd, rel));
|
|
1039
|
+
print(exists
|
|
1040
|
+
? `next: fill change: and receipt: in ${rel}, then rerun process`
|
|
1041
|
+
: `next: create ${rel} with change: and receipt: lines, then rerun process`);
|
|
1042
|
+
}
|
|
1043
|
+
return code;
|
|
1034
1044
|
}
|
|
1035
1045
|
|
|
1036
1046
|
function processExperimentSlug(id) {
|
package/package.json
CHANGED
package/scripts/det/ytnotes
CHANGED
|
@@ -379,8 +379,18 @@ run_haiku() {
|
|
|
379
379
|
# Gemini Flash through the Antigravity CLI (agy). On an 85-minute transcript it
|
|
380
380
|
# writes notes in about 8s; Haiku takes 30-40s. The old gemini CLI is retired.
|
|
381
381
|
# Low effort is the floor for notes: high effort is slower and not sharper here.
|
|
382
|
+
# The Antigravity editor ships its own `agy` (a VS Code-style launcher script).
|
|
383
|
+
# It has no -p mode: it hands -p and --model to Electron and prints nothing, so
|
|
384
|
+
# it is not a writer. Only the Antigravity CLI is.
|
|
385
|
+
agy_is_cli() {
|
|
386
|
+
local bin
|
|
387
|
+
bin=$(command -v agy 2>/dev/null) || return 1
|
|
388
|
+
! head -c 4096 "$bin" 2>/dev/null | grep -q 'VSCODE_IPC_HOOK_CLI'
|
|
389
|
+
}
|
|
390
|
+
|
|
382
391
|
run_gemini() {
|
|
383
392
|
command -v agy >/dev/null 2>&1 || { echo "agy is not installed" >&2; return 127; }
|
|
393
|
+
agy_is_cli || { echo "agy on PATH is the Antigravity editor launcher, which has no -p mode. Install the Antigravity CLI for Gemini notes." >&2; return 127; }
|
|
384
394
|
run_with_timeout 120 agy -p "$PROMPT" --model "${ATRIS_YTNOTES_GEMINI_MODEL:-${1:-gemini-3.8-flash}}" \
|
|
385
395
|
--effort "${2:-low}" --print-timeout 110s </dev/null
|
|
386
396
|
}
|
|
@@ -448,6 +458,7 @@ run_auto() {
|
|
|
448
458
|
for entry in $(writer_list); do
|
|
449
459
|
IFS='|' read -r cmd model effort label <<< "$entry"
|
|
450
460
|
command -v "$cmd" >/dev/null 2>&1 || continue
|
|
461
|
+
if [ "$cmd" = agy ] && ! agy_is_cli; then continue; fi
|
|
451
462
|
if [ -n "$tried" ]; then
|
|
452
463
|
echo "$tried did not answer; writing the notes with $label instead." >&2
|
|
453
464
|
fi
|