sideby 0.35.7 → 0.35.8
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/build.json +1 -1
- package/dist/src/core/history-index.d.ts +4 -0
- package/dist/src/core/history-index.js +46 -17
- package/dist/src/core/history-project.js +15 -2
- package/dist/src/core/history.d.ts +11 -1
- package/dist/src/core/history.js +70 -16
- package/dist/src/families/grok/bot.d.ts +6 -3
- package/dist/src/families/grok/bot.js +15 -4
- package/package.json +1 -1
- package/skills/sideby/SKILL.md +1 -1
- package/skills/sideby/references/unattended.md +1 -1
package/dist/build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"20261110T025220-5f0ccd"}
|
|
@@ -52,6 +52,8 @@ export interface Match {
|
|
|
52
52
|
id: number;
|
|
53
53
|
/** Higher is better; 1 for a match that has no FTS rank (short words only). */
|
|
54
54
|
relevance: number;
|
|
55
|
+
/** The title of the Session the match stands for (the parent's, for a match in a subagent Session). */
|
|
56
|
+
title: string;
|
|
55
57
|
}
|
|
56
58
|
export declare class HistoryIndex {
|
|
57
59
|
#private;
|
|
@@ -98,6 +100,8 @@ export declare class HistoryIndex {
|
|
|
98
100
|
* shorter ones are matched with LIKE. Subagent Sessions count for their parent (filters then apply to the parent).
|
|
99
101
|
*/
|
|
100
102
|
match(words: string[], f: Filters): Match[];
|
|
103
|
+
/** The newest subagent Session of `parent` whose own text matches every word: where a snippet comes from then. */
|
|
104
|
+
childMatch(parent: Pick<SessionRow, 'account' | 'sessionId'>, words: string[]): number | undefined;
|
|
101
105
|
/** Top-level Sessions matching the filters, newest first. */
|
|
102
106
|
recent(f: Filters, limit: number, offset: number): {
|
|
103
107
|
rows: SessionRow[];
|
|
@@ -7,7 +7,7 @@ import { dirname } from 'node:path';
|
|
|
7
7
|
import { cutText } from '../families/shared/history-text.js';
|
|
8
8
|
import { UserError } from './errors.js';
|
|
9
9
|
/** Bumped whenever the tables or what a reader stores changes; an older database is dropped and rebuilt. */
|
|
10
|
-
const SCHEMA =
|
|
10
|
+
const SCHEMA = 4;
|
|
11
11
|
let sqlite;
|
|
12
12
|
/** `node:sqlite` without its experimental warning (ADR-0042); undefined when this Node has none. */
|
|
13
13
|
function loadSqlite() {
|
|
@@ -329,14 +329,9 @@ export class HistoryIndex {
|
|
|
329
329
|
parts.push(`${col('script')} = 0`);
|
|
330
330
|
return { sql: parts.length ? parts.join(' AND ') : '1', args };
|
|
331
331
|
}
|
|
332
|
-
/**
|
|
333
|
-
|
|
334
|
-
* or more go through the trigram index and are ranked by bm25 (title and place before prompts before replies);
|
|
335
|
-
* shorter ones are matched with LIKE. Subagent Sessions count for their parent (filters then apply to the parent).
|
|
336
|
-
*/
|
|
337
|
-
match(words, f) {
|
|
332
|
+
/** The conditions on `text` that make a row match every word, and the expression that ranks it. */
|
|
333
|
+
#textConds(words) {
|
|
338
334
|
const longs = words.filter(long);
|
|
339
|
-
const shorts = words.filter((w) => !long(w));
|
|
340
335
|
const args = [];
|
|
341
336
|
const conds = [];
|
|
342
337
|
let rank = '1.0';
|
|
@@ -345,24 +340,58 @@ export class HistoryIndex {
|
|
|
345
340
|
args.push(longs.map(phrase).join(' '));
|
|
346
341
|
rank = '-bm25(text, 6.0, 4.0, 2.0, 1.0)';
|
|
347
342
|
}
|
|
348
|
-
for (const w of
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
343
|
+
for (const w of words.filter((x) => !long(x))) {
|
|
344
|
+
// LIKE ignores case for ASCII letters only, so a word without one matches the same rows through instr(),
|
|
345
|
+
// which reads the text about twice as fast.
|
|
346
|
+
if (/[a-z]/i.test(w)) {
|
|
347
|
+
conds.push("(text.title LIKE ? ESCAPE '\\' OR text.place LIKE ? ESCAPE '\\' OR text.prompts LIKE ? ESCAPE '\\' OR text.replies LIKE ? ESCAPE '\\')");
|
|
348
|
+
const l = like(w);
|
|
349
|
+
args.push(l, l, l, l);
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
conds.push('(instr(text.title, ?) OR instr(text.place, ?) OR instr(text.prompts, ?) OR instr(text.replies, ?))');
|
|
353
|
+
args.push(w, w, w, w);
|
|
354
|
+
}
|
|
352
355
|
}
|
|
356
|
+
return { conds, args, rank };
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Sessions that match every word (in title, place, prompts or replies) and the filters. Words of three characters
|
|
360
|
+
* or more go through the trigram index and are ranked by bm25 (title and place before prompts before replies);
|
|
361
|
+
* shorter ones are matched with LIKE. Subagent Sessions count for their parent (filters then apply to the parent).
|
|
362
|
+
*/
|
|
363
|
+
match(words, f) {
|
|
364
|
+
const { conds, args, rank } = this.#textConds(words);
|
|
353
365
|
// Lift a matching subagent Session to its parent, and apply the filters to whichever row stands for it.
|
|
354
366
|
const where = this.#where(f, (n) => `coalesce(p.${n}, s.${n})`);
|
|
355
|
-
|
|
356
|
-
|
|
367
|
+
const lift = `LEFT JOIN sessions p ON s.parent != '' AND p.account = s.account AND p.session_id = s.parent AND p.parent = ''`;
|
|
368
|
+
// With short words only there is no index to ask, and LIKE reads every row's text: read only the rows the
|
|
369
|
+
// filters keep.
|
|
370
|
+
const scoped = conds.length > 0 && !words.some(long) && where.sql !== '1';
|
|
371
|
+
const scope = scoped ? `text.rowid IN (SELECT s.id FROM sessions s ${lift} WHERE ${where.sql}) AND ` : '';
|
|
372
|
+
return this.#q(`WITH hits(id, rel) AS MATERIALIZED (SELECT text.rowid, ${rank} FROM text WHERE ${scope}${conds.join(' AND ') || '1'})
|
|
373
|
+
SELECT coalesce(p.id, s.id) AS id, max(h.rel) AS relevance, coalesce(p.title, s.title) AS title
|
|
357
374
|
FROM hits h JOIN sessions s ON s.id = h.id
|
|
358
|
-
|
|
375
|
+
${lift}
|
|
359
376
|
WHERE ${where.sql} GROUP BY 1`)
|
|
360
|
-
.all(...args, ...where.args)
|
|
377
|
+
.all(...(scoped ? where.args : []), ...args, ...where.args)
|
|
361
378
|
.map((r) => {
|
|
362
379
|
const m = r;
|
|
363
|
-
return { id: m.id, relevance: Math.max(m.relevance, 1e-6) };
|
|
380
|
+
return { id: m.id, relevance: Math.max(m.relevance, 1e-6), title: m.title };
|
|
364
381
|
});
|
|
365
382
|
}
|
|
383
|
+
/** The newest subagent Session of `parent` whose own text matches every word: where a snippet comes from then. */
|
|
384
|
+
childMatch(parent, words) {
|
|
385
|
+
const { conds, args } = this.#textConds(words);
|
|
386
|
+
if (!conds.length)
|
|
387
|
+
return undefined;
|
|
388
|
+
const r = this.#q(
|
|
389
|
+
// CROSS JOIN keeps this order: the few subagent Sessions first, then the text of each.
|
|
390
|
+
`SELECT c.id FROM sessions c CROSS JOIN text
|
|
391
|
+
WHERE c.parent = ? AND c.account = ? AND c.parent != '' AND text.rowid = c.id AND ${conds.join(' AND ')}
|
|
392
|
+
ORDER BY c.updated_at DESC LIMIT 1`).get(parent.sessionId, parent.account, ...args);
|
|
393
|
+
return r?.id;
|
|
394
|
+
}
|
|
366
395
|
/** Top-level Sessions matching the filters, newest first. */
|
|
367
396
|
recent(f, limit, offset) {
|
|
368
397
|
const w = this.#where(f);
|
|
@@ -43,7 +43,8 @@ export class ProjectResolver {
|
|
|
43
43
|
if (!cwd || !isAbsolute(cwd))
|
|
44
44
|
return { path: hostRoot ?? cwd ?? '', gone: false };
|
|
45
45
|
if ((await kind(cwd)) !== 'dir') {
|
|
46
|
-
|
|
46
|
+
// resolve() drops a trailing separator (Grok records `<repo>/`), so it groups with the live folder's Project.
|
|
47
|
+
const root = resolve(hostRoot && isAbsolute(hostRoot) ? hostRoot : cwd);
|
|
47
48
|
const main = (await kind(join(root, '.git'))) === 'file' ? await worktreeMain(join(root, '.git')) : undefined;
|
|
48
49
|
return { path: main ?? root, gone: true };
|
|
49
50
|
}
|
|
@@ -75,10 +76,22 @@ export function projectNames(paths) {
|
|
|
75
76
|
}
|
|
76
77
|
const parts = list.map((p) => p.split(/[\\/]+/).filter(Boolean));
|
|
77
78
|
const tail = (seg, n) => seg.slice(-n).join('/');
|
|
79
|
+
// How many of these Projects end with each tail of `n` folders, counted once per `n`.
|
|
80
|
+
const tails = new Map();
|
|
81
|
+
const shared = (seg, n) => {
|
|
82
|
+
let count = tails.get(n);
|
|
83
|
+
if (!count) {
|
|
84
|
+
count = new Map();
|
|
85
|
+
for (const o of parts)
|
|
86
|
+
count.set(tail(o, n), (count.get(tail(o, n)) ?? 0) + 1);
|
|
87
|
+
tails.set(n, count);
|
|
88
|
+
}
|
|
89
|
+
return count.get(tail(seg, n)) > 1;
|
|
90
|
+
};
|
|
78
91
|
for (const [i, p] of list.entries()) {
|
|
79
92
|
const seg = parts[i];
|
|
80
93
|
let n = 2;
|
|
81
|
-
while (n < seg.length &&
|
|
94
|
+
while (n < seg.length && shared(seg, n))
|
|
82
95
|
n++;
|
|
83
96
|
out.set(p, tail(seg, n));
|
|
84
97
|
}
|
|
@@ -124,8 +124,18 @@ export declare const historyBuilt: (rt: Runtime) => boolean;
|
|
|
124
124
|
* `/a/app` beside `/x/a/app`).
|
|
125
125
|
*/
|
|
126
126
|
export declare function projectsNamed(names: ReadonlyMap<string, string>, p: string): string[];
|
|
127
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* A snippet of `text`, about 40 characters each side of what was searched: the first place where the most of
|
|
129
|
+
* `words` stand within 80 characters of each other, so two words show together when the text has them together.
|
|
130
|
+
*/
|
|
128
131
|
export declare function snippetOf(text: string, words: string[]): string | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* How much a match in the title lifts a Session: the whole query in the title most, then every word, then a share
|
|
134
|
+
* of the words. A title is what people remember a Session by, and bm25 over trigrams hardly tells it from a mention.
|
|
135
|
+
*/
|
|
136
|
+
export declare function titleBoost(title: string, words: string[], query: string): number;
|
|
137
|
+
/** The share of a search score a Session keeps at its age: half at 30 days, a third at 60, never nothing. */
|
|
138
|
+
export declare const recency: (ageMs: number) => number;
|
|
129
139
|
/** The words of a search; `"two words"` in double quotes is one phrase, matched as written. */
|
|
130
140
|
export declare const splitWords: (q: string | undefined) => string[];
|
|
131
141
|
/**
|
package/dist/src/core/history.js
CHANGED
|
@@ -12,7 +12,8 @@ import { HistoryIndex, } from './history-index.js';
|
|
|
12
12
|
import { ProjectResolver, projectNames } from './history-project.js';
|
|
13
13
|
import { accountLabels, hostResumeArgs, liveKey, referenceText } from './live-sessions.js';
|
|
14
14
|
const DAY = 86_400_000;
|
|
15
|
-
|
|
15
|
+
/** How old a Session is when its age has halved its search score; older ones go on falling, more slowly. */
|
|
16
|
+
const RECENCY = 30 * DAY;
|
|
16
17
|
const SYNC_EVERY_MS = 5_000;
|
|
17
18
|
const PARSE_AT_ONCE = 4;
|
|
18
19
|
const STATES = new Map();
|
|
@@ -475,29 +476,69 @@ export function projectsNamed(names, p) {
|
|
|
475
476
|
}
|
|
476
477
|
const SAFE = /^[\w@%+=:,./-]+$/;
|
|
477
478
|
const shq = (v) => (SAFE.test(v) ? v : `'${v.replaceAll("'", "'\\''")}'`);
|
|
478
|
-
|
|
479
|
+
const SNIPPET_SPAN = 80;
|
|
480
|
+
/** Occurrences looked at per word: enough to find a place where the words meet, bounded for a long text. */
|
|
481
|
+
const SNIPPET_SEEK = 40;
|
|
482
|
+
/**
|
|
483
|
+
* A snippet of `text`, about 40 characters each side of what was searched: the first place where the most of
|
|
484
|
+
* `words` stand within 80 characters of each other, so two words show together when the text has them together.
|
|
485
|
+
*/
|
|
479
486
|
export function snippetOf(text, words) {
|
|
480
487
|
if (!text || !words.length)
|
|
481
488
|
return undefined;
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
489
|
+
// Matched in the text itself: lowercasing can change its length and move every position after it.
|
|
490
|
+
const found = words.map((w) => {
|
|
491
|
+
const re = new RegExp(w.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'giu');
|
|
492
|
+
const at = [];
|
|
493
|
+
// One word needs only its first place.
|
|
494
|
+
const seek = words.length > 1 ? SNIPPET_SEEK : 1;
|
|
495
|
+
for (let m = re.exec(text); m && at.length < seek; m = re.exec(text)) {
|
|
496
|
+
at.push({ index: m.index, end: m.index + m[0].length });
|
|
497
|
+
if (!m[0].length)
|
|
498
|
+
re.lastIndex++;
|
|
490
499
|
}
|
|
500
|
+
return at;
|
|
501
|
+
});
|
|
502
|
+
let best;
|
|
503
|
+
for (const start of found.flat().sort((x, y) => x.index - y.index)) {
|
|
504
|
+
let n = 0;
|
|
505
|
+
let end = start.end;
|
|
506
|
+
for (const at of found) {
|
|
507
|
+
const near = at.find((o) => o.index >= start.index && o.end <= start.index + SNIPPET_SPAN);
|
|
508
|
+
if (!near)
|
|
509
|
+
continue;
|
|
510
|
+
n++;
|
|
511
|
+
end = Math.max(end, near.end);
|
|
512
|
+
}
|
|
513
|
+
if (!best || n > best.words)
|
|
514
|
+
best = { at: start.index, end, words: n };
|
|
515
|
+
if (n === words.length)
|
|
516
|
+
break;
|
|
491
517
|
}
|
|
492
|
-
if (
|
|
518
|
+
if (!best)
|
|
493
519
|
return undefined;
|
|
494
|
-
let start = Math.max(0, at - 40);
|
|
520
|
+
let start = Math.max(0, best.at - 40);
|
|
495
521
|
if (start > 0 && /[\uDC00-\uDFFF]/.test(text[start]))
|
|
496
522
|
start--;
|
|
497
|
-
const end = start + cutText(text.slice(start),
|
|
523
|
+
const end = start + cutText(text.slice(start), best.end - start + 40).length;
|
|
498
524
|
const body = text.slice(start, end).replace(/\s+/g, ' ').trim();
|
|
499
525
|
return `${start > 0 ? '…' : ''}${body}${end < text.length ? '…' : ''}`;
|
|
500
526
|
}
|
|
527
|
+
/**
|
|
528
|
+
* How much a match in the title lifts a Session: the whole query in the title most, then every word, then a share
|
|
529
|
+
* of the words. A title is what people remember a Session by, and bm25 over trigrams hardly tells it from a mention.
|
|
530
|
+
*/
|
|
531
|
+
export function titleBoost(title, words, query) {
|
|
532
|
+
const t = title.toLowerCase();
|
|
533
|
+
const n = words.filter((w) => t.includes(w.toLowerCase())).length;
|
|
534
|
+
if (!n)
|
|
535
|
+
return 1;
|
|
536
|
+
if (t.includes(query.trim().toLowerCase()))
|
|
537
|
+
return 8;
|
|
538
|
+
return n === words.length ? 5 : 1 + (2 * n) / words.length;
|
|
539
|
+
}
|
|
540
|
+
/** The share of a search score a Session keeps at its age: half at 30 days, a third at 60, never nothing. */
|
|
541
|
+
export const recency = (ageMs) => 1 / (1 + Math.max(0, ageMs) / RECENCY);
|
|
501
542
|
const NAMES = new WeakMap();
|
|
502
543
|
/** Project names, worked out again only after the index changed. */
|
|
503
544
|
function namesOf(idx) {
|
|
@@ -614,7 +655,11 @@ async function search(rt, s, q, opts) {
|
|
|
614
655
|
const outline = idx.outlineOf(hits.map((h) => h.id));
|
|
615
656
|
items = hits.flatMap((h) => {
|
|
616
657
|
const o = outline.get(h.id);
|
|
617
|
-
|
|
658
|
+
if (!o)
|
|
659
|
+
return [];
|
|
660
|
+
return [
|
|
661
|
+
{ ...o, score: h.relevance * titleBoost(h.title, words, q.q ?? '') * recency(now - o.updatedAt) },
|
|
662
|
+
];
|
|
618
663
|
});
|
|
619
664
|
}
|
|
620
665
|
else
|
|
@@ -663,8 +708,17 @@ async function search(rt, s, q, opts) {
|
|
|
663
708
|
const sessions = rows.map((r) => {
|
|
664
709
|
let snippet;
|
|
665
710
|
if (words.length && idx.keepText) {
|
|
666
|
-
const
|
|
667
|
-
|
|
711
|
+
const of = (id) => {
|
|
712
|
+
const t = idx.text(id);
|
|
713
|
+
return snippetOf(t.prompts, words) ?? snippetOf(t.replies, words);
|
|
714
|
+
};
|
|
715
|
+
snippet = of(r.id);
|
|
716
|
+
// Matched by a subagent Session only: show what that one said, so the row says why it is listed.
|
|
717
|
+
if (!snippet) {
|
|
718
|
+
const child = idx.childMatch(r, words);
|
|
719
|
+
if (child !== undefined)
|
|
720
|
+
snippet = of(child);
|
|
721
|
+
}
|
|
668
722
|
}
|
|
669
723
|
const out = toSession(rt, r, labels, names, {
|
|
670
724
|
children: children.get(r.id) ?? 0,
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { ProfileAppDef } from '../desktop.ts';
|
|
2
2
|
/**
|
|
3
3
|
* Grok Bot (spec §3.20 "Grok Bot 窗口", ADR-0019). It signs in with a Cursor account, apart from every grok Account,
|
|
4
|
-
* so its windows are App Profiles.
|
|
5
|
-
* (`<dir>/sand-data`) move there.
|
|
6
|
-
*
|
|
4
|
+
* so its windows are App Profiles. SAND_USER_DATA_DIR is the app's isolated mode: userData and its data root
|
|
5
|
+
* (`<dir>/sand-data`) move there. Up to 0.71.x `--user-data-dir` did the same; from 0.79.3 the app sets userData
|
|
6
|
+
* back to its default and ignores the flag, so the new instance loses the single-instance lock to the main window
|
|
7
|
+
* and quits at once. `open --env` sets the variable for the app; the flag stays for older versions and because
|
|
8
|
+
* `instanceOf` finds the window by it. The caller's own SAND_DATA_ROOT and SAND_USER_DATA_DIR are cleared so only
|
|
9
|
+
* this folder counts. All of this is internal to the app and may change.
|
|
7
10
|
*/
|
|
8
11
|
export declare const grokBot: ProfileAppDef;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Grok Bot (spec §3.20 "Grok Bot 窗口", ADR-0019). It signs in with a Cursor account, apart from every grok Account,
|
|
3
|
-
* so its windows are App Profiles.
|
|
4
|
-
* (`<dir>/sand-data`) move there.
|
|
5
|
-
*
|
|
3
|
+
* so its windows are App Profiles. SAND_USER_DATA_DIR is the app's isolated mode: userData and its data root
|
|
4
|
+
* (`<dir>/sand-data`) move there. Up to 0.71.x `--user-data-dir` did the same; from 0.79.3 the app sets userData
|
|
5
|
+
* back to its default and ignores the flag, so the new instance loses the single-instance lock to the main window
|
|
6
|
+
* and quits at once. `open --env` sets the variable for the app; the flag stays for older versions and because
|
|
7
|
+
* `instanceOf` finds the window by it. The caller's own SAND_DATA_ROOT and SAND_USER_DATA_DIR are cleared so only
|
|
8
|
+
* this folder counts. All of this is internal to the app and may change.
|
|
6
9
|
*/
|
|
7
10
|
export const grokBot = {
|
|
8
11
|
id: 'grok-bot',
|
|
@@ -10,7 +13,15 @@ export const grokBot = {
|
|
|
10
13
|
bundleId: 'com.anysphere.sand',
|
|
11
14
|
bundleNames: ['Grok Bot.app'],
|
|
12
15
|
installUrl: 'https://x.ai/bot/',
|
|
13
|
-
openArgs: (app, appData) => [
|
|
16
|
+
openArgs: (app, appData) => [
|
|
17
|
+
'-n',
|
|
18
|
+
'-a',
|
|
19
|
+
app,
|
|
20
|
+
'--env',
|
|
21
|
+
`SAND_USER_DATA_DIR=${appData}`,
|
|
22
|
+
'--args',
|
|
23
|
+
`--user-data-dir=${appData}`,
|
|
24
|
+
],
|
|
14
25
|
clearVars: ['SAND_DATA_ROOT', 'SAND_USER_DATA_DIR'],
|
|
15
26
|
mainUserData: 'Library/Application Support/Grok Bot',
|
|
16
27
|
statusFile: 'desktop-status.json',
|
package/package.json
CHANGED
package/skills/sideby/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: sideby
|
|
3
3
|
description: Use when the user runs, or wants to run, several AI coding accounts (Claude Code, Codex, Grok Build, pi) side by side. Covers installing sideby and setting up a new account ("install sideby", "set up another Claude account", "add cc008", "配置一个 cc00x", "再加一个 Codex 账号"), explaining what accounts share and what stays separate ("what do my accounts share?", "这些账号共享了什么"), showing which account a session is ("show [cc001] in the status line", "加上账号标识"), finding a past session of any account ("找一下我上周改登录页的那个会话"), telling another running session something, in any account ("告诉 cc002 ……", "给跑构建的那个会话发消息"; Claude Code's own SendMessage reaches only sessions of the same account), seeing accounts, quota and usage, moving on when one hits its 5-hour or weekly limit, moving the current task to another account ("用 cc008 继续", "交回 cc008"), adding a short command (alias) or a pick command that starts whichever account has the most quota ("加个 cc"), adding an API account from a vendor's docs ("加一个 DeepSeek API 账号"), supporting a new tool, and repairing drifted account directories (skills, hooks, rules or settings not shared, wrong symlinks, credential file permissions). Drives the `sideby` CLI with `--json`; the agent does every step except browser sign-in, filling in secrets and starting interactive sessions, which it hands to the user as one command (inside an Auto Handoff session, `sideby handoff ready --to` moves the task itself).
|
|
4
4
|
metadata:
|
|
5
|
-
version: "0.35.
|
|
5
|
+
version: "0.35.8"
|
|
6
6
|
requires:
|
|
7
7
|
bins: [sideby, node]
|
|
8
8
|
cliHelp: sideby --help
|
|
@@ -12,7 +12,7 @@ sideby unattended on --until 08:00 --json # or --for 4h; at most 72 hours
|
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
Tell the user, in one line each:
|
|
15
|
-
- It covers Claude and Codex sessions sideby starts (`sideby run`, short commands, pick commands, `sideby next`, Auto Handoff, AI Tasks). Running `claude` or `codex` directly, Grok, pi and desktop apps are not covered.
|
|
15
|
+
- It covers Claude and Codex sessions sideby starts (`sideby run`, short commands, pick commands, `sideby next`, Auto Handoff, AI Tasks). Running `claude` or `codex` directly, Grok, pi and desktop apps are not covered. A terminal manager that starts the Host itself (Orca, for example) is covered once its Claude command is `sideby resume claude --` (configuration guide, "Resuming from other tools"); in Orca that is Settings → Agents → Claude → the command field.
|
|
16
16
|
- Sessions started before the feature was first used have no hook. If `configured` was `false` before this command, the sessions already running are not covered: suggest restarting long tasks with `sideby run <account> --unattended`.
|
|
17
17
|
- A Codex account runs the hooks only after the user trusts them once: in that account type `/hooks` and trust both `unattended-hook` entries, before a question and at the end of a turn (`coverage.codex` is `needs-trust`).
|
|
18
18
|
- `sideby unattended off --json` turns it off; inside a Slot it pauses until that Slot ends.
|