@xenosystem/agent-conversation 0.1.197 → 0.1.199
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/components/agent/AgentView.d.ts.map +1 -1
- package/dist/components/agent/AgentView.js +7 -3
- package/dist/components/agent/AgentView.js.map +1 -1
- package/dist/components/agent/composer/Composer.d.ts +33 -1
- package/dist/components/agent/composer/Composer.d.ts.map +1 -1
- package/dist/components/agent/composer/Composer.js +177 -0
- package/dist/components/agent/composer/Composer.js.map +1 -1
- package/dist/composerPlace.d.ts +65 -0
- package/dist/composerPlace.d.ts.map +1 -0
- package/dist/composerPlace.js +42 -0
- package/dist/composerPlace.js.map +1 -0
- package/dist/composerRepo.d.ts +56 -0
- package/dist/composerRepo.d.ts.map +1 -0
- package/dist/composerRepo.js +64 -0
- package/dist/composerRepo.js.map +1 -0
- package/dist/remoteHostName.d.ts +11 -0
- package/dist/remoteHostName.d.ts.map +1 -1
- package/dist/remoteHostName.js +30 -2
- package/dist/remoteHostName.js.map +1 -1
- package/package.json +7 -6
- package/src/composer.css +67 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export interface RepoChoice {
|
|
2
|
+
/** owner/name. */
|
|
3
|
+
fullName: string;
|
|
4
|
+
private?: boolean;
|
|
5
|
+
/** Already on the machine: it opens at once, nothing is cloned. */
|
|
6
|
+
onMachine?: boolean;
|
|
7
|
+
/** The account it comes from (a GitHub user or organization). */
|
|
8
|
+
account?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Where a repository was opened on the machine: its folder becomes the session's folder. */
|
|
11
|
+
export interface RepoOpened {
|
|
12
|
+
path: string;
|
|
13
|
+
fullName: string;
|
|
14
|
+
}
|
|
15
|
+
export interface RepoPicker {
|
|
16
|
+
/** The repository last opened from this chip, when the session's own folder does not say (see `repoOfFolder`). */
|
|
17
|
+
current: string | null;
|
|
18
|
+
/** The list is being read, or a repository is being opened. */
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
/** What is happening now, in a few words ("Cloning me/app…"); shown in the list and on the chip's tip. */
|
|
21
|
+
status?: string;
|
|
22
|
+
/** A refusal to show, in the person's words ("That repository is private…"). */
|
|
23
|
+
error?: string;
|
|
24
|
+
choices: RepoChoice[];
|
|
25
|
+
/** GitHub: whether XENO can reach it here, and whether this person connected it. */
|
|
26
|
+
github: {
|
|
27
|
+
configured: boolean;
|
|
28
|
+
connected: boolean;
|
|
29
|
+
accounts: string[];
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Open a repository from the list, or one typed or pasted (owner/name, an https or git address): clone it on the
|
|
33
|
+
* machine once, and say where it is. Null when it could not be opened (the picker's `error` then says why).
|
|
34
|
+
*/
|
|
35
|
+
onPick: (repository: string) => Promise<RepoOpened | null>;
|
|
36
|
+
/** Install the XENO app on GitHub, or change which repositories it may see. */
|
|
37
|
+
onConnect: () => void;
|
|
38
|
+
/** Read the list again (after connecting, for example). */
|
|
39
|
+
onRefresh?: () => void;
|
|
40
|
+
}
|
|
41
|
+
/** Say which repositories a session can open, or null to show no chip. */
|
|
42
|
+
export declare function setComposerRepo(picker: RepoPicker | null): void;
|
|
43
|
+
export declare function useComposerRepo(): RepoPicker | null;
|
|
44
|
+
/**
|
|
45
|
+
* Whether what was typed is the address of a repository the list can open directly: owner/name, or an https or
|
|
46
|
+
* ssh address. The machine checks it again; this only decides whether the list offers "Open <it>".
|
|
47
|
+
*/
|
|
48
|
+
export declare function looksLikeRepository(text: string): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The repository a session's folder is, when it is one the machine keeps: `~/repos/<host>/<owner>/<name>` (xeno-compute
|
|
51
|
+
* machine/agenthost/repo.mjs). owner/name for github.com, host/owner/name elsewhere; null for any other folder.
|
|
52
|
+
*/
|
|
53
|
+
export declare function repoOfFolder(folder: string | null | undefined): string | null;
|
|
54
|
+
/** The list as shown: what is on the machine first, then the rest, filtered by what was typed. One row per repository. */
|
|
55
|
+
export declare function repoRows(picker: Pick<RepoPicker, 'choices'>, query: string): RepoChoice[];
|
|
56
|
+
//# sourceMappingURL=composerRepo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composerRepo.d.ts","sourceRoot":"","sources":["../src/composerRepo.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,UAAU;IACzB,kBAAkB;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mEAAmE;IACnE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,6FAA6F;AAC7F,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,kHAAkH;IAClH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,0GAA0G;IAC1G,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,oFAAoF;IACpF,MAAM,EAAE;QAAE,UAAU,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;IACvE;;;OAGG;IACH,MAAM,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAAA;IAC1D,+EAA+E;IAC/E,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAKD,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,GAAG,IAAI,CAG/D;AAED,wBAAgB,eAAe,IAAI,UAAU,GAAG,IAAI,CAMnD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAMzD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAO7E;AAED,0HAA0H;AAC1H,wBAAgB,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,EAAE,CAWzF"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which repository a session works in, chosen at the message box beside where it runs (owner, 2026-11-14: "then let's
|
|
3
|
+
* have this done as well, right?" about the Repo chip of Claude Code's cloud sessions; GitHub App approved 2026-11-19).
|
|
4
|
+
* A surface that can open repositories says what they are here: the website lists, for the person's cloud machine, the
|
|
5
|
+
* repositories they allowed XENO to see on GitHub and the ones already on the machine. Picking one is the surface's
|
|
6
|
+
* job (it clones it on the machine and makes it the session's folder).
|
|
7
|
+
*
|
|
8
|
+
* Absent (null), the message box shows no Repo chip.
|
|
9
|
+
*/
|
|
10
|
+
import { useSyncExternalStore } from 'react';
|
|
11
|
+
let current = null;
|
|
12
|
+
const listeners = new Set();
|
|
13
|
+
/** Say which repositories a session can open, or null to show no chip. */
|
|
14
|
+
export function setComposerRepo(picker) {
|
|
15
|
+
current = picker;
|
|
16
|
+
for (const listener of [...listeners])
|
|
17
|
+
listener();
|
|
18
|
+
}
|
|
19
|
+
export function useComposerRepo() {
|
|
20
|
+
return useSyncExternalStore((listener) => { listeners.add(listener); return () => { listeners.delete(listener); }; }, () => current, () => current);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Whether what was typed is the address of a repository the list can open directly: owner/name, or an https or
|
|
24
|
+
* ssh address. The machine checks it again; this only decides whether the list offers "Open <it>".
|
|
25
|
+
*/
|
|
26
|
+
export function looksLikeRepository(text) {
|
|
27
|
+
const t = text.trim();
|
|
28
|
+
if (!t || t.length > 400 || /\s/.test(t))
|
|
29
|
+
return false;
|
|
30
|
+
if (/^(?:ssh:\/\/)?git@[^:/\s]+[:/][^\s]+\/[^\s]+$/.test(t))
|
|
31
|
+
return true;
|
|
32
|
+
if (/^https:\/\/[^/\s]+\/[^/\s]+\/[^/\s]+/.test(t))
|
|
33
|
+
return true;
|
|
34
|
+
return /^[A-Za-z0-9_.-]{1,100}\/[A-Za-z0-9_.-]{1,100}$/.test(t);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The repository a session's folder is, when it is one the machine keeps: `~/repos/<host>/<owner>/<name>` (xeno-compute
|
|
38
|
+
* machine/agenthost/repo.mjs). owner/name for github.com, host/owner/name elsewhere; null for any other folder.
|
|
39
|
+
*/
|
|
40
|
+
export function repoOfFolder(folder) {
|
|
41
|
+
if (!folder)
|
|
42
|
+
return null;
|
|
43
|
+
const m = /[\\/]repos[\\/]([^\\/]+)[\\/](.+?)[\\/]*$/.exec(folder);
|
|
44
|
+
if (!m)
|
|
45
|
+
return null;
|
|
46
|
+
const parts = m[2].split(/[\\/]/).filter(Boolean);
|
|
47
|
+
if (parts.length < 2)
|
|
48
|
+
return null;
|
|
49
|
+
return m[1] === 'github.com' ? parts.join('/') : `${m[1]}/${parts.join('/')}`;
|
|
50
|
+
}
|
|
51
|
+
/** The list as shown: what is on the machine first, then the rest, filtered by what was typed. One row per repository. */
|
|
52
|
+
export function repoRows(picker, query) {
|
|
53
|
+
const needle = query.trim().toLowerCase();
|
|
54
|
+
const seen = new Map();
|
|
55
|
+
for (const choice of picker.choices) {
|
|
56
|
+
const key = choice.fullName.toLowerCase();
|
|
57
|
+
const had = seen.get(key);
|
|
58
|
+
// the first spelling wins (the surface lists GitHub's own first), the facts are joined
|
|
59
|
+
seen.set(key, had ? { ...choice, ...had, onMachine: had.onMachine || choice.onMachine, private: had.private ?? choice.private, account: had.account ?? choice.account } : choice);
|
|
60
|
+
}
|
|
61
|
+
const rows = [...seen.values()].filter((choice) => !needle || choice.fullName.toLowerCase().includes(needle));
|
|
62
|
+
return [...rows.filter((r) => r.onMachine), ...rows.filter((r) => !r.onMachine)];
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=composerRepo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composerRepo.js","sourceRoot":"","sources":["../src/composerRepo.ts"],"names":[],"mappings":"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"}
|
package/dist/remoteHostName.d.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Say which PC this surface controls. A desktop window on another PC carries the name in its address; a surface with
|
|
3
3
|
* addresses of its own (the remote page in a browser) names it here, and takes it back with null when it leaves that PC.
|
|
4
|
+
*
|
|
5
|
+
* `what` is a few words on what kind of place it is, or what it is doing ("Starts when you send"). It may be said
|
|
6
|
+
* again as that changes: whoever shows it is told (`onRemoteHostChange`).
|
|
4
7
|
*/
|
|
5
8
|
export declare function setRemoteHostName(name: string | null, what?: string): void;
|
|
9
|
+
/**
|
|
10
|
+
* Give the place where the work runs a way to be changed (the remote page: Cloud, or one of the person's PCs). The
|
|
11
|
+
* interface shows it on the row that names the place. Null takes it back.
|
|
12
|
+
*/
|
|
13
|
+
export declare function setRemoteHostSwitch(action: (() => void) | null): void;
|
|
14
|
+
export declare const remoteHostSwitch: () => (() => void) | null;
|
|
15
|
+
/** Be told when the name, what it is doing, or the way to change it changes. Returns the way to stop being told. */
|
|
16
|
+
export declare function onRemoteHostChange(watcher: () => void): () => void;
|
|
6
17
|
/** What kind of place that is, in a few words, when the surface said ("Your cloud machine"). */
|
|
7
18
|
export declare const remoteHostKind: () => string | null;
|
|
8
19
|
/** The PC this window controls, when it controls one. An approval must say where a command runs, and that is not always here. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remoteHostName.d.ts","sourceRoot":"","sources":["../src/remoteHostName.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remoteHostName.d.ts","sourceRoot":"","sources":["../src/remoteHostName.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAO1E;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,CAIrE;AAED,eAAO,MAAM,gBAAgB,QAAO,CAAC,MAAM,IAAI,CAAC,GAAG,IAAgB,CAAA;AAEnE,oHAAoH;AACpH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAGlE;AAED,gGAAgG;AAChG,eAAO,MAAM,cAAc,QAAO,MAAM,GAAG,IAAe,CAAA;AAE1D,iIAAiI;AACjI,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG7D;AAED,eAAO,MAAM,WAAW,GAAI,SAAS,MAAM,KAAG,MAAkD,CAAA;AAEhG,eAAO,MAAM,SAAS,GAAI,SAAS,MAAM,KAAG,MAG3C,CAAA"}
|
package/dist/remoteHostName.js
CHANGED
|
@@ -1,12 +1,40 @@
|
|
|
1
1
|
let named = null;
|
|
2
2
|
let namedAs = null;
|
|
3
|
+
let switchTo = null;
|
|
4
|
+
const watchers = new Set();
|
|
3
5
|
/**
|
|
4
6
|
* Say which PC this surface controls. A desktop window on another PC carries the name in its address; a surface with
|
|
5
7
|
* addresses of its own (the remote page in a browser) names it here, and takes it back with null when it leaves that PC.
|
|
8
|
+
*
|
|
9
|
+
* `what` is a few words on what kind of place it is, or what it is doing ("Starts when you send"). It may be said
|
|
10
|
+
* again as that changes: whoever shows it is told (`onRemoteHostChange`).
|
|
6
11
|
*/
|
|
7
12
|
export function setRemoteHostName(name, what) {
|
|
8
|
-
|
|
9
|
-
|
|
13
|
+
const nextName = name && name.trim() ? name.trim() : null;
|
|
14
|
+
const nextAs = nextName && what && what.trim() ? what.trim() : null;
|
|
15
|
+
if (nextName === named && nextAs === namedAs)
|
|
16
|
+
return;
|
|
17
|
+
named = nextName;
|
|
18
|
+
namedAs = nextAs;
|
|
19
|
+
for (const watcher of [...watchers])
|
|
20
|
+
watcher();
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Give the place where the work runs a way to be changed (the remote page: Cloud, or one of the person's PCs). The
|
|
24
|
+
* interface shows it on the row that names the place. Null takes it back.
|
|
25
|
+
*/
|
|
26
|
+
export function setRemoteHostSwitch(action) {
|
|
27
|
+
if (switchTo === action)
|
|
28
|
+
return;
|
|
29
|
+
switchTo = action;
|
|
30
|
+
for (const watcher of [...watchers])
|
|
31
|
+
watcher();
|
|
32
|
+
}
|
|
33
|
+
export const remoteHostSwitch = () => switchTo;
|
|
34
|
+
/** Be told when the name, what it is doing, or the way to change it changes. Returns the way to stop being told. */
|
|
35
|
+
export function onRemoteHostChange(watcher) {
|
|
36
|
+
watchers.add(watcher);
|
|
37
|
+
return () => { watchers.delete(watcher); };
|
|
10
38
|
}
|
|
11
39
|
/** What kind of place that is, in a few words, when the surface said ("Your cloud machine"). */
|
|
12
40
|
export const remoteHostKind = () => namedAs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remoteHostName.js","sourceRoot":"","sources":["../src/remoteHostName.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAkB,IAAI,CAAA;AAC/B,IAAI,OAAO,GAAkB,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"remoteHostName.js","sourceRoot":"","sources":["../src/remoteHostName.ts"],"names":[],"mappings":"AAAA,IAAI,KAAK,GAAkB,IAAI,CAAA;AAC/B,IAAI,OAAO,GAAkB,IAAI,CAAA;AACjC,IAAI,QAAQ,GAAwB,IAAI,CAAA;AACxC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAc,CAAA;AAEtC;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAmB,EAAE,IAAa;IAClE,MAAM,QAAQ,GAAG,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;IACzD,MAAM,MAAM,GAAG,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;IACnE,IAAI,QAAQ,KAAK,KAAK,IAAI,MAAM,KAAK,OAAO;QAAE,OAAM;IACpD,KAAK,GAAG,QAAQ,CAAA;IAChB,OAAO,GAAG,MAAM,CAAA;IAChB,KAAK,MAAM,OAAO,IAAI,CAAC,GAAG,QAAQ,CAAC;QAAE,OAAO,EAAE,CAAA;AAChD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAA2B;IAC7D,IAAI,QAAQ,KAAK,MAAM;QAAE,OAAM;IAC/B,QAAQ,GAAG,MAAM,CAAA;IACjB,KAAK,MAAM,OAAO,IAAI,CAAC,GAAG,QAAQ,CAAC;QAAE,OAAO,EAAE,CAAA;AAChD,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAwB,EAAE,CAAC,QAAQ,CAAA;AAEnE,oHAAoH;AACpH,MAAM,UAAU,kBAAkB,CAAC,OAAmB;IACpD,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IACrB,OAAO,GAAG,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA,CAAC,CAAC,CAAA;AAC3C,CAAC;AAED,gGAAgG;AAChG,MAAM,CAAC,MAAM,cAAc,GAAG,GAAkB,EAAE,CAAC,OAAO,CAAA;AAE1D,iIAAiI;AACjI,MAAM,UAAU,cAAc,CAAC,MAAe;IAC5C,IAAI,MAAM,KAAK,SAAS,IAAI,KAAK;QAAE,OAAO,KAAK,CAAA;IAC/C,OAAO,IAAI,eAAe,CAAC,MAAM,IAAI,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;AAC3H,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAe,EAAU,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,cAAc,CAAA;AAEhG,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,MAAe,EAAU,EAAE;IACnD,MAAM,IAAI,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;IACnC,OAAO,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAA;AAChD,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xenosystem/agent-conversation",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.199",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "The XENO Agent conversation surface: the transcript, the composer, and the logic behind them.",
|
|
6
6
|
"type": "module",
|
|
@@ -42,14 +42,15 @@
|
|
|
42
42
|
"react-markdown": "^10.1.0",
|
|
43
43
|
"remark-gfm": "^4.0.1",
|
|
44
44
|
"zustand": "^5.0.2",
|
|
45
|
-
"@xenosystem/agent-interface-
|
|
46
|
-
"@xenosystem/agent-interface-client": "0.1.
|
|
47
|
-
"@xenosystem/agent-interface-
|
|
48
|
-
"@xenosystem/agent-interface-
|
|
45
|
+
"@xenosystem/agent-interface-contract": "0.1.199",
|
|
46
|
+
"@xenosystem/agent-interface-client": "0.1.199",
|
|
47
|
+
"@xenosystem/agent-interface-hub-adapter": "0.1.199",
|
|
48
|
+
"@xenosystem/agent-interface-core": "0.1.199"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": "^19.0.0",
|
|
52
52
|
"react-dom": "^19.0.0"
|
|
53
53
|
},
|
|
54
|
-
"scripts": {}
|
|
54
|
+
"scripts": {},
|
|
55
|
+
"gitHead": "e0283848f7cdeb0dd4d27dfa9502c90672ccd990"
|
|
55
56
|
}
|
package/src/composer.css
CHANGED
|
@@ -109,6 +109,67 @@
|
|
|
109
109
|
}
|
|
110
110
|
@keyframes xa-stin { from { opacity: 0; transform: translate(6px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
|
|
111
111
|
.xa-dock .xa-controls .xa-grow { flex: 1; }
|
|
112
|
+
/* where this session runs (composerPlace.ts), fourth design 2026-11-18: the earlier one-line list, made ours. The place
|
|
113
|
+
in use is a brighter row tagged "In use" (no check mark); every place says its real state at the row's end as a
|
|
114
|
+
6 px square and a word. Squares, never circles (DESIGN_SYSTEM). The chip: icon, name, state square, caret. */
|
|
115
|
+
.xa-dock .xa-place { display: inline-flex; align-items: center; gap: 6px; height: 24px; max-width: 200px; padding: 0 7px 0 8px; border: 1px solid var(--xa-line-soft); border-radius: 5px; background: var(--xa-wash-hover); font-size: 11.5px; line-height: 1; font-weight: 500; color: var(--xa-t2); white-space: nowrap; }
|
|
116
|
+
.xa-dock .xa-place .xa-lname { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
117
|
+
.xa-dock .xa-place .xa-caret { display: inline-flex; color: var(--xa-t5); }
|
|
118
|
+
.xa-dock .xa-place:hover, .xa-dock .xa-place.xa-open { background: rgba(var(--xa-ink), 0.09); border-color: var(--xa-line); color: var(--xa-t1); }
|
|
119
|
+
.xa-dock .xa-place:hover .xa-caret, .xa-dock .xa-place.xa-open .xa-caret { color: var(--xa-t3); }
|
|
120
|
+
.xa-dock .xa-place:disabled { opacity: 0.5; }
|
|
121
|
+
.xa-dock .xa-pdot { flex: none; display: inline-block; width: 6px; height: 6px; border-radius: 1px; }
|
|
122
|
+
.xa-dock .xa-pdot.xa-on { background: var(--xa-t1); }
|
|
123
|
+
.xa-dock .xa-pdot.xa-idle { background: var(--xa-t5); }
|
|
124
|
+
.xa-dock .xa-pdot.xa-off { box-shadow: inset 0 0 0 1px var(--xa-t5); }
|
|
125
|
+
/* the side inset sits on the SCROLLING box (.xa-mrows), not the menu: the search runs edge to edge with -4px
|
|
126
|
+
margins, and overhanging a scroller's content box made a horizontal scrollbar (overflow-y: auto makes x auto
|
|
127
|
+
too). Overhang into the scroller's own padding is not overflow. Measured: scrollWidth 314 > clientWidth 310. */
|
|
128
|
+
.xa-dock .xa-menu.xa-placemenu { padding: 0 0 4px; border-radius: 9px; }
|
|
129
|
+
.xa-dock .xa-menu.xa-placemenu .xa-mrows { padding: 0 4px; }
|
|
130
|
+
.xa-dock .xa-placemenu .xa-psearch { display: flex; align-items: center; gap: 8px; height: 36px; margin: 0 -4px 4px; padding: 0 13px; border-bottom: 1px solid var(--xa-line-soft); color: var(--xa-t5); cursor: text; }
|
|
131
|
+
.xa-dock .xa-placemenu .xa-psearch input { flex: 1; min-width: 0; height: 100%; padding: 0; background: none; border: 0; outline: none; box-shadow: none; font: inherit; font-size: 12px; color: var(--xa-t1); }
|
|
132
|
+
.xa-dock .xa-placemenu .xa-psearch input::placeholder { color: var(--xa-t5); }
|
|
133
|
+
.xa-dock .xa-placemenu .xa-pgroup + .xa-pgroup { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--xa-line-soft); }
|
|
134
|
+
.xa-dock .xa-placemenu .xa-ptitle { padding: 6px 10px 4px; font-size: 11px; font-weight: 500; color: var(--xa-t5); }
|
|
135
|
+
.xa-dock .xa-placemenu .xa-prow { display: flex; align-items: center; gap: 9px; width: 100%; height: 30px; padding: 0 10px; border-radius: 5px; text-align: left; font-size: 12px; color: var(--xa-t2); }
|
|
136
|
+
.xa-dock .xa-placemenu .xa-prow + .xa-prow { margin-top: 2px; }
|
|
137
|
+
.xa-dock .xa-placemenu .xa-prow.xa-act { background: var(--xa-wash-hover); color: var(--xa-t1); }
|
|
138
|
+
.xa-dock .xa-placemenu .xa-prow.xa-on { background: rgba(var(--xa-ink), 0.08); color: var(--xa-t1); font-weight: 500; }
|
|
139
|
+
.xa-dock .xa-placemenu .xa-prow:disabled { color: var(--xa-t6); }
|
|
140
|
+
.xa-dock .xa-placemenu .xa-pic { flex: none; display: inline-flex; width: 13px; color: var(--xa-t5); }
|
|
141
|
+
.xa-dock .xa-placemenu .xa-prow.xa-on .xa-pic, .xa-dock .xa-placemenu .xa-prow.xa-act .xa-pic { color: var(--xa-t2); }
|
|
142
|
+
.xa-dock .xa-placemenu .xa-plabel { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
143
|
+
.xa-dock .xa-placemenu .xa-pmeta { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; font-weight: 400; color: var(--xa-t5); }
|
|
144
|
+
.xa-dock .xa-placemenu .xa-prow.xa-on .xa-pmeta { color: var(--xa-t4); }
|
|
145
|
+
.xa-dock .xa-placemenu .xa-pinuse { flex: none; padding: 3px 6px; border-radius: 4px; background: rgba(var(--xa-ink), 0.10); font-size: 10.5px; line-height: 1; font-weight: 500; color: var(--xa-t1); }
|
|
146
|
+
.xa-dock .xa-placemenu .xa-paction { flex: none; padding: 3px 6px; border: 1px solid var(--xa-line); border-radius: 4px; font-size: 10.5px; line-height: 1; font-weight: 500; color: var(--xa-t3); }
|
|
147
|
+
.xa-dock .xa-placemenu .xa-prow.xa-act .xa-paction { border-color: rgba(var(--xa-ink), 0.18); color: var(--xa-t1); }
|
|
148
|
+
.xa-dock .xa-placemenu .xa-padd { color: var(--xa-t3); }
|
|
149
|
+
.xa-dock .xa-placemenu .xa-pkeys { flex: none; font-size: 10px; font-weight: 400; color: var(--xa-t6); }
|
|
150
|
+
/* the new-session card (PlaceCard): where a new session will run, centred in the empty conversation, in the list's
|
|
151
|
+
own one-line style; changing it opens the chip's list */
|
|
152
|
+
.xa-app .xa-placecard-wrap { display: flex; justify-content: center; padding: 18vh 16px 0; }
|
|
153
|
+
.xa-app .xa-placecard { display: flex; flex-direction: column; gap: 2px; width: 280px; max-width: 100%; padding: 4px; border: 1px solid var(--xa-line-menu); border-radius: 9px; background: var(--xa-menu); }
|
|
154
|
+
.xa-app .xa-placecard .xa-pcrow { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 5px; background: rgba(var(--xa-ink), 0.06); font-size: 12px; font-weight: 500; color: var(--xa-t1); }
|
|
155
|
+
.xa-app .xa-placecard .xa-pcic { flex: none; display: inline-flex; color: var(--xa-t3); }
|
|
156
|
+
.xa-app .xa-placecard .xa-pcname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
157
|
+
.xa-app .xa-placecard .xa-pcstate { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 400; color: var(--xa-t4); white-space: nowrap; }
|
|
158
|
+
.xa-app .xa-placecard .xa-pdot { flex: none; display: inline-block; width: 6px; height: 6px; border-radius: 1px; }
|
|
159
|
+
.xa-app .xa-placecard .xa-pdot.xa-on { background: var(--xa-t1); }
|
|
160
|
+
.xa-app .xa-placecard .xa-pdot.xa-idle { background: var(--xa-t5); }
|
|
161
|
+
.xa-app .xa-placecard .xa-pdot.xa-off { box-shadow: inset 0 0 0 1px var(--xa-t5); }
|
|
162
|
+
.xa-app .xa-placecard .xa-pcchoose { display: flex; align-items: center; justify-content: flex-start; gap: 6px; width: 100%; height: 30px; padding: 0 10px; border-radius: 5px; font-size: 12px; color: var(--xa-t3); text-align: left; }
|
|
163
|
+
.xa-app .xa-placecard .xa-pcchoose:hover { background: var(--xa-wash-hover); color: var(--xa-t1); }
|
|
164
|
+
/* moving a chat in progress: asked in place of the list */
|
|
165
|
+
.xa-dock .xa-placemenu .xa-pask { display: flex; flex-direction: column; gap: 12px; padding: 12px 8px 4px; }
|
|
166
|
+
.xa-dock .xa-placemenu .xa-pasktext { margin: 0; font-size: 12px; line-height: 1.5; color: var(--xa-t3); }
|
|
167
|
+
.xa-dock .xa-placemenu .xa-pasktext b { font-weight: 500; color: var(--xa-t1); }
|
|
168
|
+
.xa-dock .xa-placemenu .xa-paskbar { display: flex; justify-content: flex-end; gap: 6px; }
|
|
169
|
+
.xa-dock .xa-placemenu .xa-pbtn { height: 26px; max-width: 180px; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 4px; background: rgba(var(--xa-ink), 0.06); font-size: 11.5px; font-weight: 500; color: var(--xa-t2); }
|
|
170
|
+
.xa-dock .xa-placemenu .xa-pbtn:hover { background: rgba(var(--xa-ink), 0.10); color: var(--xa-t1); }
|
|
171
|
+
.xa-dock .xa-placemenu .xa-pbtn.xa-primary { background: var(--xa-send); color: #141312; }
|
|
172
|
+
.xa-dock .xa-placemenu .xa-pbtn.xa-primary:hover { background: var(--xa-send-hover); }
|
|
112
173
|
.xa-dock .xa-ic { width: 24px; height: 24px; border-radius: 4px; color: var(--xa-t4); }
|
|
113
174
|
.xa-dock .xa-ic:hover, .xa-dock .xa-ic.xa-open { background: var(--xa-wash-hover); color: var(--xa-t2); }
|
|
114
175
|
.xa-dock .xa-segc { display: flex; align-items: center; gap: 2px; padding: 2px; background: var(--xa-wash); border: 1px solid var(--xa-line-soft); border-radius: 4px; }
|
|
@@ -225,7 +286,9 @@
|
|
|
225
286
|
.xa-dock .xa-chip { display: inline-flex; align-items: center; gap: 4px; vertical-align: -2px; padding: 1px 5px 1px 4px; background: rgba(var(--xa-ink),0.07); border: 1px solid var(--xa-line-soft); border-radius: 3px; font-size: 12px; line-height: 1.3; color: var(--xa-t1); white-space: nowrap; }
|
|
226
287
|
.xa-dock .xa-chip svg { flex: none; color: var(--xa-t4); }
|
|
227
288
|
.xa-dock .xa-mrow { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border-radius: 4px; text-align: left; font-size: 12px; color: var(--xa-t3); }
|
|
228
|
-
|
|
289
|
+
/* margin, padding and display are pinned: the transcript's turn rail shares the class name (transcript.css `.xa-rail`), and its
|
|
290
|
+
gutter made this 2 px mark a 16 px block in a tall row */
|
|
291
|
+
.xa-dock .xa-mrow .xa-rail { display: block; width: 2px; height: 13px; margin: 0; padding: 0; background: transparent; flex: none; }
|
|
229
292
|
.xa-dock .xa-mrow.xa-tall { align-items: stretch; padding: 8px 9px; } .xa-mrow.xa-tall .xa-rail { height: auto; }
|
|
230
293
|
.xa-dock .xa-mrow .xa-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
|
231
294
|
.xa-dock .xa-mrow .xa-sub { font-size: 11px; line-height: 1.35; color: var(--xa-t5); }
|
|
@@ -317,6 +380,9 @@
|
|
|
317
380
|
.xa-dock .xa-menu .xa-search { display: block; width: 100%; height: 26px; margin: 2px 0 4px; padding: 0 9px; background: var(--xa-well); border: 1px solid var(--xa-line-soft); border-radius: 4px; font: inherit; font-size: 11px; color: var(--xa-t1); outline: none; box-shadow: none; }
|
|
318
381
|
.xa-dock .xa-menu .xa-search::placeholder { color: var(--xa-t6); }
|
|
319
382
|
.xa-dock .xa-menu .xa-none { padding: 7px 9px; font-size: 11px; color: var(--xa-t5); }
|
|
383
|
+
/* the Repo chip (composerRepo.ts): the place chip's construction; unset, its name reads as a prompt, not a value */
|
|
384
|
+
.xa-dock .xa-place.xa-repo.xa-unset .xa-lname { color: var(--xa-t4); }
|
|
385
|
+
.xa-dock .xa-menu .xa-perror { margin: 2px 4px 4px; padding: 7px 9px; font-size: 11px; line-height: 1.45; color: var(--xa-t2); background: var(--xa-wash-hover); border: 1px solid var(--xa-line); border-radius: 4px; }
|
|
320
386
|
|
|
321
387
|
/* 🔴 ONE correction to the prototype, because the prototype contradicts ITSELF here. Its comment on
|
|
322
388
|
the typed popover says "the row it lands on moves its content right to make room, the others sit
|