shadok-ai 0.19.76 → 0.19.78
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/README.md +4 -4
- package/dist/kinship.d.ts +1 -3
- package/dist/kinship.js +0 -6
- package/dist/kinship.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<h3>Many Claude Codes. One cockpit. And it wrote itself.</h3>
|
|
6
6
|
|
|
7
|
-
<p>Run <b>real</b> Claude Code sessions side by side,
|
|
7
|
+
<p>Run <b>real</b> Claude Code sessions side by side,
|
|
8
8
|
on the Claude subscription you already pay for. When one of them has a question,
|
|
9
9
|
you answer it with a click — in the browser, or from Telegram when you are not
|
|
10
10
|
at the desk.</p>
|
|
@@ -22,7 +22,7 @@ at the desk.</p>
|
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
24
|
**It does not stop at one.** An agent can start other agents — each with its own
|
|
25
|
-
|
|
25
|
+
branch and role — and it is told when one of its own finishes, blocks on
|
|
26
26
|
a question, or dies. Nothing else wakes it.
|
|
27
27
|
|
|
28
28
|
**It keeps working when you are not there.** Mirror an agent to a Telegram topic
|
|
@@ -37,7 +37,7 @@ windows, and can hold an agent back when it is burning faster than the window
|
|
|
37
37
|
elapses.
|
|
38
38
|
|
|
39
39
|
**It wrote itself.** shadok-ai is largely built by agents running inside shadok-ai,
|
|
40
|
-
in
|
|
40
|
+
in isolation, landed as reviewed pull requests. The section below is what
|
|
41
41
|
that produced.
|
|
42
42
|
|
|
43
43
|
## Quick start
|
|
@@ -1606,7 +1606,7 @@ client, or immediately on an explicit `stop` (which ends it for everyone).
|
|
|
1606
1606
|
| `{type:"key", key}` | raw keystroke (`enter`, `escape`, `up`, `down`, `tab`, `ctrl-c`, or a single character) |
|
|
1607
1607
|
| `{type:"settle"}` | after a manual intervention: waits for the turn to finish |
|
|
1608
1608
|
| `{type:"restart"}` | respawns the agent in place (picks up new secrets/profile) |
|
|
1609
|
-
| `{type:"set-parent", parent}` | attach this channel under another (`null` detaches). Refused **explicitly** on a self-link, a cycle, an unknown parent, or a chain
|
|
1609
|
+
| `{type:"set-parent", parent}` | attach this channel under another (`null` detaches). Refused **explicitly** on a self-link, a cycle, an unknown parent, or a chain past its depth cap |
|
|
1610
1610
|
| `{type:"term-attach"}` · `{type:"term-detach"}` | **experimental, tmux only** — open/close the pane's raw byte pipe |
|
|
1611
1611
|
| `{type:"term-input", data}` · `{type:"term-resize", cols, rows}` | raw input (base64) / match the pane to the viewport |
|
|
1612
1612
|
| `{type:"stop", sessionId?}` | ends the session for all clients; `sessionId` targets another channel (zombie cleanup) |
|
package/dist/kinship.d.ts
CHANGED
|
@@ -12,9 +12,7 @@ import type { Channel } from "./channels.js";
|
|
|
12
12
|
* blocks one prompt at a time, never a chain.
|
|
13
13
|
*/
|
|
14
14
|
export declare const MAX_LINK_DEPTH = 4;
|
|
15
|
-
|
|
16
|
-
export declare const MAX_FANOUT = 12;
|
|
17
|
-
export type LinkRefusal = "self" | "cycle" | "unknown-parent" | "too-deep" | "too-many-children";
|
|
15
|
+
export type LinkRefusal = "self" | "cycle" | "unknown-parent" | "too-deep";
|
|
18
16
|
/**
|
|
19
17
|
* How many ancestors `sessionId` has (0 for a root, or for an unknown id).
|
|
20
18
|
* `seen` is not paranoia: a hand-edited store can contain a loop, and this must
|
package/dist/kinship.js
CHANGED
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
* blocks one prompt at a time, never a chain.
|
|
12
12
|
*/
|
|
13
13
|
export const MAX_LINK_DEPTH = 4;
|
|
14
|
-
/** How many children one parent may hold, for the same reason. */
|
|
15
|
-
export const MAX_FANOUT = 12;
|
|
16
14
|
/**
|
|
17
15
|
* How many ancestors `sessionId` has (0 for a root, or for an unknown id).
|
|
18
16
|
* `seen` is not paranoia: a hand-edited store can contain a loop, and this must
|
|
@@ -81,10 +79,6 @@ mayReachParent) {
|
|
|
81
79
|
return "cycle";
|
|
82
80
|
if (chainDepth(channels, parent) + 1 >= MAX_LINK_DEPTH)
|
|
83
81
|
return "too-deep";
|
|
84
|
-
// Re-asserting an existing child must not count it twice and refuse a no-op.
|
|
85
|
-
const siblings = childrenOf(channels, parent).filter((c) => c.sessionId !== child);
|
|
86
|
-
if (siblings.length >= MAX_FANOUT)
|
|
87
|
-
return "too-many-children";
|
|
88
82
|
return null;
|
|
89
83
|
}
|
|
90
84
|
/**
|
package/dist/kinship.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kinship.js","sourceRoot":"","sources":["../src/kinship.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"kinship.js","sourceRoot":"","sources":["../src/kinship.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC;AAchC;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,QAA4B,EAAE,SAAiB;IACxE,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5D,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,GAAG,GAAkB,SAAS,CAAC;IACnC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QAC7B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACd,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,IAAI,IAAI,CAAC;QACpC,IAAI,GAAG;YAAE,KAAK,EAAE,CAAC;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