@akanjs/cli 3.2.0-rc.2 → 3.2.0-rc.3

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.
Files changed (50) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-6cpjtj25.js → CodeAgent-e9c712an.js} +3 -3
  3. package/{CodeTui-zyc7zaq6.js → CodeTui-wv9yf7eq.js} +1 -1
  4. package/{agent.command-kf1g3nh4.js → agent.command-9erafkcb.js} +6 -6
  5. package/akanCode.js +3 -3
  6. package/{application.command-vb278qnq.js → application.command-6515t682.js} +3 -3
  7. package/{cloud.command-ca777ee2.js → cloud.command-32esk0v1.js} +7 -7
  8. package/{cloud.script-agpxzq6j.js → cloud.script-arsagnq6.js} +7 -7
  9. package/{code.command-j08txqcd.js → code.command-xk7rwq2x.js} +4 -4
  10. package/{context.command-2fa6egp9.js → context.command-jwenkkf0.js} +11 -11
  11. package/{context.runner-ftv8373t.js → context.runner-mqpp67br.js} +10 -10
  12. package/{devTui-w38ch13a.js → devTui-cd03z4mx.js} +1 -1
  13. package/incrementalBuilder.proc.js +3 -3
  14. package/{index-qgazn58x.js → index-0ba8nj4d.js} +2 -2
  15. package/{index-mvwvxgtd.js → index-2eym1yjb.js} +6 -6
  16. package/{index-2gees180.js → index-2rqyrvcy.js} +3 -3
  17. package/{index-ebwkh7bt.js → index-39jz41jb.js} +23 -5
  18. package/{index-c5ymqb05.js → index-43acpsc7.js} +6 -6
  19. package/{index-xa0289eg.js → index-54s6knqe.js} +5 -0
  20. package/{index-cbcwxp5v.js → index-8gm4yag8.js} +6 -4
  21. package/{index-m5sg5spm.js → index-9p260r4e.js} +114 -24
  22. package/{index-65b6ms4c.js → index-bak9f2br.js} +1 -1
  23. package/{index-1cb9apzn.js → index-cmg5ngqa.js} +1 -1
  24. package/{index-8nbx607g.js → index-ddk49ypz.js} +7 -3
  25. package/{index-dk4g0x0d.js → index-dpgywgeq.js} +1 -1
  26. package/{index-pq5rjkch.js → index-h0p6n4k1.js} +6 -1
  27. package/{index-j7p0jgaq.js → index-j4hkbzj6.js} +3 -3
  28. package/{index-0mqga3h9.js → index-ngpt3zz3.js} +1 -1
  29. package/{index-abfbf01s.js → index-qrk06tfp.js} +1 -1
  30. package/{index-htxck0pn.js → index-s34v3y28.js} +6 -1
  31. package/{index-23860fej.js → index-sc0g6zbm.js} +2 -0
  32. package/index-x3x31df8.js +14 -0
  33. package/{index-xq97me1h.js → index-xrmrvafh.js} +6 -6
  34. package/{index-0fj9ra3q.js → index-ytpmk3pb.js} +4 -4
  35. package/{index-annxfpgz.js → index-zcdmnfrf.js} +2 -2
  36. package/{index-466z5931.js → index-zhkcab5a.js} +1 -1
  37. package/index.js +17 -17
  38. package/{library.command-8d03a0pq.js → library.command-qs8beggh.js} +1 -1
  39. package/{localRegistry.command-vyv5k6t0.js → localRegistry.command-hz4ged9n.js} +6 -6
  40. package/{module.command-vy3kg965.js → module.command-z9js77m2.js} +3 -3
  41. package/{package.command-qjh13rs9.js → package.command-zqenq8c0.js} +3 -3
  42. package/package.json +2 -2
  43. package/{primitive.command-8vm49279.js → primitive.command-v5kypwy4.js} +4 -4
  44. package/{quality.command-v76fev72.js → quality.command-q55j2htd.js} +2 -2
  45. package/{repair.command-fp4m3w03.js → repair.command-7ssbbdq2.js} +4 -4
  46. package/{scalar.command-hxe6try8.js → scalar.command-p5jb7z57.js} +3 -3
  47. package/{subspace.command-q42n1844.js → subspace.command-7wxy6ptj.js} +1 -1
  48. package/{verify.command-rx43bha1.js → verify.command-m0wnndd7.js} +3 -3
  49. package/{workflow.command-yg0d8mmq.js → workflow.command-jx8dqs9n.js} +8 -8
  50. package/{workspace.command-fcfztvn5.js → workspace.command-ca9kfyt3.js} +24 -20
package/.build-stamp CHANGED
@@ -1 +1 @@
1
- af8674437197b6680344c75692e7b26ac0481a829e83666d2b273840922dcfb5
1
+ f8efeb58c14e108890195063e2a246a13cc74eaca8e585d692bf4b0745361288
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  CodeAgent2
4
- } from "./index-0fj9ra3q.js";
5
- import"./index-abfbf01s.js";
6
- import"./index-23860fej.js";
4
+ } from "./index-ytpmk3pb.js";
5
+ import"./index-qrk06tfp.js";
6
+ import"./index-sc0g6zbm.js";
7
7
  import"./index-35j83zkd.js";
8
8
  import"./index-bns3wcpc.js";
9
9
  export {
@@ -4,7 +4,7 @@ import {
4
4
  McpTokenStore,
5
5
  McpSignIn,
6
6
  AkanCodeCompaction2
7
- } from "./index-abfbf01s.js";
7
+ } from "./index-qrk06tfp.js";
8
8
  import"./index-bns3wcpc.js";
9
9
  import"./index-35j83zkd.js";
10
10
  import {
@@ -7,10 +7,10 @@ import"./index-bns3wcpc.js";
7
7
  import"./index-wfmpxke3.js";
8
8
  import"./index-35j83zkd.js";
9
9
  import"./index-j6eeh5d7.js";
10
- import"./index-0mqga3h9.js";
10
+ import"./index-ngpt3zz3.js";
11
11
  import"./index-hj6w4ka1.js";
12
- import"./index-xq97me1h.js";
13
- import"./index-m5sg5spm.js";
12
+ import"./index-xrmrvafh.js";
13
+ import"./index-9p260r4e.js";
14
14
  import"./index-kcpk2d20.js";
15
15
  import"./index-y725zb1a.js";
16
16
  import"./index-djc5nxpy.js";
@@ -18,16 +18,16 @@ import"./index-20wvskt8.js";
18
18
  import"./index-m9jj544v.js";
19
19
  import"./index-84c2pgak.js";
20
20
  import"./index-wr9magsr.js";
21
- import"./index-466z5931.js";
21
+ import"./index-zhkcab5a.js";
22
22
  import"./index-ygrdw6jw.js";
23
23
  import"./index-62md4dwy.js";
24
24
  import"./index-ygdbn9jn.js";
25
25
  import"./index-ny2k80mv.js";
26
26
  import"./index-v50xjbbe.js";
27
- import"./index-dk4g0x0d.js";
27
+ import"./index-dpgywgeq.js";
28
28
  import {
29
29
  AgentScript
30
- } from "./index-2gees180.js";
30
+ } from "./index-2rqyrvcy.js";
31
31
  import"./index-8jpc5fqv.js";
32
32
 
33
33
  // pkgs/@akanjs/cli/agent/agent.command.ts
package/akanCode.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  PreviewChrome2,
4
4
  PreviewView2
5
- } from "./index-23860fej.js";
5
+ } from "./index-sc0g6zbm.js";
6
6
  import"./index-bns3wcpc.js";
7
7
  import {
8
8
  akanCodePaths2
@@ -34,7 +34,7 @@ import {
34
34
  CodeMailbox2,
35
35
  CodeSessionFork2,
36
36
  CodeAgent2
37
- } from "./index-0fj9ra3q.js";
37
+ } from "./index-ytpmk3pb.js";
38
38
  import {
39
39
  akanCodeDefaultModel2,
40
40
  akanCodeModel2,
@@ -45,7 +45,7 @@ import {
45
45
  import {
46
46
  SubagentPool2,
47
47
  AkanCodeCompaction2
48
- } from "./index-abfbf01s.js";
48
+ } from "./index-qrk06tfp.js";
49
49
  import {
50
50
  CodeAgentRpcHost2
51
51
  } from "./index-s4nvxpzm.js";
@@ -16,12 +16,12 @@ import"./index-20wvskt8.js";
16
16
  import"./index-m9jj544v.js";
17
17
  import"./index-84c2pgak.js";
18
18
  import"./index-wr9magsr.js";
19
- import"./index-xa0289eg.js";
19
+ import"./index-54s6knqe.js";
20
20
  import"./index-kcpk2d20.js";
21
- import"./index-23860fej.js";
21
+ import"./index-sc0g6zbm.js";
22
22
  import {
23
23
  ApplicationScript
24
- } from "./index-8nbx607g.js";
24
+ } from "./index-ddk49ypz.js";
25
25
  import {
26
26
  writeOption,
27
27
  nativeTargetOption,
@@ -20,18 +20,18 @@ import {
20
20
  warnIgnoredNpmRegistry
21
21
  } from "./index-ny2k80mv.js";
22
22
  import"./index-y725zb1a.js";
23
- import"./index-xa0289eg.js";
23
+ import"./index-54s6knqe.js";
24
24
  import"./index-kcpk2d20.js";
25
- import"./index-23860fej.js";
26
- import"./index-8nbx607g.js";
25
+ import"./index-sc0g6zbm.js";
26
+ import"./index-ddk49ypz.js";
27
27
  import"./index-qd7xn2bk.js";
28
- import"./index-m5sg5spm.js";
29
- import"./index-1cb9apzn.js";
28
+ import"./index-9p260r4e.js";
29
+ import"./index-cmg5ngqa.js";
30
30
  import"./index-ygrdw6jw.js";
31
- import"./index-65b6ms4c.js";
31
+ import"./index-bak9f2br.js";
32
32
  import {
33
33
  CloudScript2
34
- } from "./index-annxfpgz.js";
34
+ } from "./index-zcdmnfrf.js";
35
35
  import {
36
36
  writeOption,
37
37
  oneNativeTargetOption,
@@ -1,11 +1,11 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudScript2
4
- } from "./index-annxfpgz.js";
4
+ } from "./index-zcdmnfrf.js";
5
5
  import"./index-6h775rv3.js";
6
- import"./index-8nbx607g.js";
7
- import"./index-xa0289eg.js";
8
- import"./index-65b6ms4c.js";
6
+ import"./index-ddk49ypz.js";
7
+ import"./index-54s6knqe.js";
8
+ import"./index-bak9f2br.js";
9
9
  import"./index-e22zedc2.js";
10
10
  import"./index-ny2k80mv.js";
11
11
  import"./index-kcpk2d20.js";
@@ -16,9 +16,9 @@ import"./index-djc5nxpy.js";
16
16
  import"./index-m9jj544v.js";
17
17
  import"./index-386canwe.js";
18
18
  import"./index-9bv479q5.js";
19
- import"./index-23860fej.js";
20
- import"./index-1cb9apzn.js";
21
- import"./index-m5sg5spm.js";
19
+ import"./index-sc0g6zbm.js";
20
+ import"./index-cmg5ngqa.js";
21
+ import"./index-9p260r4e.js";
22
22
  import"./index-wr9magsr.js";
23
23
  import"./index-y725zb1a.js";
24
24
  import"./index-84c2pgak.js";
@@ -77,7 +77,7 @@ class CodeRunner extends runner("code") {
77
77
  async serve(options, listen) {
78
78
  await import("./consoleToStderr-h5bryj94.js");
79
79
  const [{ CodeAgent }, { CodeAgentRpcHost }, { CodeAgentRpcListener }] = await Promise.all([
80
- import("./CodeAgent-6cpjtj25.js"),
80
+ import("./CodeAgent-e9c712an.js"),
81
81
  import("./CodeAgentRpcHost-6dzfkvsc.js"),
82
82
  import("./CodeAgentRpcListener-tcwrdvst.js")
83
83
  ]);
@@ -111,8 +111,8 @@ class CodeRunner extends runner("code") {
111
111
  }
112
112
  async tui(options, seed) {
113
113
  const [{ CodeAgent }, { CodeTui }] = await Promise.all([
114
- import("./CodeAgent-6cpjtj25.js"),
115
- import("./CodeTui-zyc7zaq6.js")
114
+ import("./CodeAgent-e9c712an.js"),
115
+ import("./CodeTui-wv9yf7eq.js")
116
116
  ]);
117
117
  const start = await CodeRunner.#start(options, { hostAttached: false, interactive: true, ask: true });
118
118
  const agentOptions = start.agent;
@@ -148,7 +148,7 @@ class CodeRunner extends runner("code") {
148
148
  }
149
149
  }
150
150
  async run(prompt, options) {
151
- const { CodeAgent } = await import("./CodeAgent-6cpjtj25.js");
151
+ const { CodeAgent } = await import("./CodeAgent-e9c712an.js");
152
152
  const ask = !!process.stdin.isTTY && !!process.stderr.isTTY;
153
153
  const start = await CodeRunner.#start(options, { hostAttached: false, interactive: false, ask });
154
154
  for (const warning of start.warnings)
@@ -5,11 +5,11 @@ import {
5
5
  } from "./index-386canwe.js";
6
6
  import"./index-bns3wcpc.js";
7
7
  import"./index-wfmpxke3.js";
8
- import"./index-0mqga3h9.js";
8
+ import"./index-ngpt3zz3.js";
9
9
  import"./index-hj6w4ka1.js";
10
- import"./index-xq97me1h.js";
11
- import"./index-m5sg5spm.js";
12
- import"./index-mvwvxgtd.js";
10
+ import"./index-xrmrvafh.js";
11
+ import"./index-9p260r4e.js";
12
+ import"./index-2eym1yjb.js";
13
13
  import"./index-djc5nxpy.js";
14
14
  import"./index-20wvskt8.js";
15
15
  import"./index-m9jj544v.js";
@@ -17,17 +17,17 @@ import"./index-84c2pgak.js";
17
17
  import"./index-wr9magsr.js";
18
18
  import"./index-j6eeh5d7.js";
19
19
  import"./index-ygdbn9jn.js";
20
- import"./index-ebwkh7bt.js";
21
- import"./index-cbcwxp5v.js";
20
+ import"./index-39jz41jb.js";
21
+ import"./index-8gm4yag8.js";
22
22
  import"./index-7kmbqp0b.js";
23
- import"./index-htxck0pn.js";
24
- import"./index-qgazn58x.js";
25
- import"./index-pq5rjkch.js";
23
+ import"./index-s34v3y28.js";
24
+ import"./index-0ba8nj4d.js";
25
+ import"./index-h0p6n4k1.js";
26
26
  import"./index-v50xjbbe.js";
27
- import"./index-c5ymqb05.js";
27
+ import"./index-43acpsc7.js";
28
28
  import {
29
29
  ContextScript
30
- } from "./index-j7p0jgaq.js";
30
+ } from "./index-j4hkbzj6.js";
31
31
 
32
32
  // pkgs/@akanjs/cli/context/context.command.ts
33
33
  class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
@@ -1,24 +1,24 @@
1
1
  // @bun
2
2
  import {
3
3
  ContextRunner2
4
- } from "./index-mvwvxgtd.js";
5
- import"./index-c5ymqb05.js";
6
- import"./index-pq5rjkch.js";
7
- import"./index-qgazn58x.js";
8
- import"./index-cbcwxp5v.js";
9
- import"./index-htxck0pn.js";
4
+ } from "./index-2eym1yjb.js";
5
+ import"./index-43acpsc7.js";
6
+ import"./index-h0p6n4k1.js";
7
+ import"./index-0ba8nj4d.js";
8
+ import"./index-8gm4yag8.js";
9
+ import"./index-s34v3y28.js";
10
10
  import"./index-7kmbqp0b.js";
11
11
  import"./index-v50xjbbe.js";
12
- import"./index-0mqga3h9.js";
13
- import"./index-xq97me1h.js";
12
+ import"./index-ngpt3zz3.js";
13
+ import"./index-xrmrvafh.js";
14
14
  import"./index-20wvskt8.js";
15
15
  import"./index-j6eeh5d7.js";
16
16
  import"./index-djc5nxpy.js";
17
17
  import"./index-m9jj544v.js";
18
18
  import"./index-386canwe.js";
19
- import"./index-ebwkh7bt.js";
19
+ import"./index-39jz41jb.js";
20
20
  import"./index-ygdbn9jn.js";
21
- import"./index-m5sg5spm.js";
21
+ import"./index-9p260r4e.js";
22
22
  import"./index-wr9magsr.js";
23
23
  import"./index-84c2pgak.js";
24
24
  import"./index-wfmpxke3.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  stripAnsi
4
- } from "./index-23860fej.js";
4
+ } from "./index-sc0g6zbm.js";
5
5
  import {
6
6
  writeClipboard
7
7
  } from "./index-p6pbz9n5.js";
@@ -23,16 +23,16 @@ import {
23
23
  import {
24
24
  ServerGraphFile
25
25
  } from "./index-84c2pgak.js";
26
- import"./index-m5sg5spm.js";
26
+ import"./index-9p260r4e.js";
27
27
  import {
28
28
  FrameworkGraph
29
- } from "./index-1cb9apzn.js";
29
+ } from "./index-cmg5ngqa.js";
30
30
  import {
31
31
  GitRevision
32
32
  } from "./index-ygdbn9jn.js";
33
33
  import {
34
34
  WorkspaceGraph
35
- } from "./index-ebwkh7bt.js";
35
+ } from "./index-39jz41jb.js";
36
36
  import {
37
37
  prepareDevWatchBatch
38
38
  } from "./index-a5vmm6x4.js";
@@ -45,10 +45,10 @@ import {
45
45
  addFieldUiPolicyForType,
46
46
  KeyRename,
47
47
  MutationScaffold
48
- } from "./index-xq97me1h.js";
48
+ } from "./index-xrmrvafh.js";
49
49
  import {
50
50
  ModuleScript
51
- } from "./index-htxck0pn.js";
51
+ } from "./index-s34v3y28.js";
52
52
 
53
53
  // pkgs/@akanjs/cli/primitive/primitive.script.ts
54
54
  import { capitalize, lowerlize } from "akanjs/common";
@@ -8,7 +8,7 @@ import {
8
8
  upsertCodexMcpServerBlock,
9
9
  renderDoctorText,
10
10
  AkanContextAnalyzer
11
- } from "./index-0mqga3h9.js";
11
+ } from "./index-ngpt3zz3.js";
12
12
  import {
13
13
  AppExecutor
14
14
  } from "./index-wfmpxke3.js";
@@ -18,7 +18,7 @@ import {
18
18
  createWorkflowBaselineSummary,
19
19
  buildAkanModuleContextIndex,
20
20
  toolingRolloutGate
21
- } from "./index-xq97me1h.js";
21
+ } from "./index-xrmrvafh.js";
22
22
  import {
23
23
  runner
24
24
  } from "./index-386canwe.js";
@@ -37,13 +37,13 @@ import {
37
37
  } from "./index-j6eeh5d7.js";
38
38
  import {
39
39
  WorkspaceGraph
40
- } from "./index-ebwkh7bt.js";
40
+ } from "./index-39jz41jb.js";
41
41
  import {
42
42
  RepairRunner
43
- } from "./index-cbcwxp5v.js";
43
+ } from "./index-8gm4yag8.js";
44
44
  import {
45
45
  WorkflowRunner
46
- } from "./index-c5ymqb05.js";
46
+ } from "./index-43acpsc7.js";
47
47
 
48
48
  // pkgs/@akanjs/devkit/akanMcpContract.ts
49
49
  import { lstatSync, realpathSync } from "fs";
@@ -300,7 +300,7 @@ var readonlyMcpTools = [
300
300
  },
301
301
  {
302
302
  name: "get_graph",
303
- description: "Read-only Akan Graph from source, no dev server needed: models with their fields and relations, slices and endpoints with the guards they name (each guard keyed by the app or lib that declares it, with its scope and the comment that says what it checks), the service methods and queries each calls, the store actions that fetch them, and the components and routes that use them. A module's jobs (internal: interval, cron, timeout, initialize, destroy, process) read their schedule and server or operation modes and call service methods like endpoints do; each adaptor a service plugs (an adapt() class, or an akanjs role) is a node, a method that calls it links to it, and an adaptor links to the adaptors it plugs itself. Each page/ file is a route (its URL pattern after the locale) or a layout, layouts wrap what they contain, and a route or layout that runs .guard() reads `guard` and links each function its guard calls; a layout's guard gates every route it wraps. A graph too large to answer unscoped drops first the routes and layouts that neither changed nor use a change; app or module brings them back. Every node and edge carries its source location. Pass app and/or module to scope a large workspace. Pass since (a git revision such as main, or HEAD for uncommitted work) for the Change Map instead: what changed since HEAD forked from it, working tree included, with each node, field and edge marked added, removed or changed, the unchanged neighbours they call or are called by, and the changed files no node covers, each marked the same way.",
303
+ description: "Read-only Akan Graph from source, no dev server needed: models with their fields and relations, slices and endpoints with the guards they name (each guard keyed by the app or lib that declares it, with its scope and the comment that says what it checks), the service methods and queries each calls, the store actions that fetch them, and the components and routes that use them. A module's jobs (internal: interval, cron, timeout, initialize, destroy, process) read their schedule and server or operation modes and call service methods like endpoints do; each adaptor a service plugs (an adapt() class, or an akanjs role) is a node, a method that calls it links to it (an app service holds the fields its module's lib services plug, unless it declares the field itself), an adaptor links to the adaptors it plugs itself, a class from a package outside the workspace is adaptor:<package>:<Name>, and a role an app binds with applyAdaptor(Role, Impl) links to that implementation (binds, labelled with the app; a scope keeps its app's bindings). Each page/ file is a route (its URL pattern after the locale) or a layout, layouts wrap what they contain, and a route or layout that runs .guard() reads `guard` and links each function its guard calls; a layout's guard gates every route it wraps. A graph too large to answer unscoped drops first the routes and layouts that neither changed nor use a change; app or module brings them back. Every node and edge carries its source location. Pass app and/or module to scope a large workspace. Pass since (a git revision such as main, or HEAD for uncommitted work) for the Change Map instead: what changed since HEAD forked from it, working tree included, with each node, field and edge marked added, removed or changed, the unchanged neighbours they call or are called by, and the changed files no node covers, each marked the same way.",
304
304
  inputSchema: { type: "object", properties: { app: stringProperty, module: stringProperty, since: stringProperty } }
305
305
  },
306
306
  {
@@ -25,7 +25,7 @@ import {
25
25
  } from "./index-j6eeh5d7.js";
26
26
  import {
27
27
  AkanContextAnalyzer
28
- } from "./index-0mqga3h9.js";
28
+ } from "./index-ngpt3zz3.js";
29
29
  import {
30
30
  collectRecipeSources2,
31
31
  scanRecipes2
@@ -36,12 +36,12 @@ import {
36
36
  } from "./index-kcpk2d20.js";
37
37
  import {
38
38
  WorkspaceRunner
39
- } from "./index-466z5931.js";
39
+ } from "./index-zhkcab5a.js";
40
40
  import {
41
41
  VerifyComments,
42
42
  VerifyPipeline,
43
43
  VerifyReport
44
- } from "./index-dk4g0x0d.js";
44
+ } from "./index-dpgywgeq.js";
45
45
 
46
46
  // pkgs/@akanjs/cli/agent/agent.script.ts
47
47
  import { Logger as Logger3 } from "akanjs/common";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AkanGraphDiff,
4
4
  AkanIndex
5
- } from "./index-m5sg5spm.js";
5
+ } from "./index-9p260r4e.js";
6
6
  import {
7
7
  GitRevision
8
8
  } from "./index-ygdbn9jn.js";
@@ -86,9 +86,22 @@ ${sha}`;
86
86
  const seeds = new Set(graph.nodes.filter((node) => (!owners || owners.has(node.owner ?? "")) && (!module || node.module === module)).map((node) => node.id));
87
87
  const guards = new Set(graph.nodes.filter((node) => node.kind === "guard").map((node) => node.id));
88
88
  const reaches = (id) => seeds.has(id) && !guards.has(id);
89
- const edges = graph.edges.filter((edge) => reaches(edge.from) || reaches(edge.to));
90
- const ids = new Set([...seeds, ...edges.flatMap((edge) => [edge.from, edge.to])]);
91
- return { version: 1, nodes: graph.nodes.filter((node) => ids.has(node.id)), edges };
89
+ const edges = graph.edges.filter((edge) => edge.kind !== "binds" && (reaches(edge.from) || reaches(edge.to)));
90
+ const kept = new Set([...seeds, ...edges.flatMap((edge) => [edge.from, edge.to])]);
91
+ const isLib = !!app && graph.nodes.some((node) => node.owner === `libs/${app}`) && !graph.nodes.some((node) => node.owner === `apps/${app}`);
92
+ const applicable = WorkspaceGraph.#bindingsOf(graph, app && !isLib ? `apps/${app}` : null);
93
+ const isOwn = (edge) => !module && !!owners?.has(edge.label ?? "");
94
+ const roles = new Set(applicable.filter((edge) => isOwn(edge) || kept.has(edge.from) || reaches(edge.to)).map((edge) => edge.from));
95
+ const bindings = applicable.filter((edge) => roles.has(edge.from));
96
+ const ids = new Set([...kept, ...bindings.flatMap((edge) => [edge.from, edge.to])]);
97
+ return { version: 1, nodes: graph.nodes.filter((node) => ids.has(node.id)), edges: [...edges, ...bindings] };
98
+ }
99
+ static #bindingsOf(graph, appOwner) {
100
+ const binds = graph.edges.filter((edge) => edge.kind === "binds");
101
+ if (!appOwner)
102
+ return binds;
103
+ const own = new Set(binds.filter((edge) => edge.label === appOwner && edge.change !== "removed").map((edge) => edge.from));
104
+ return binds.filter((edge) => edge.label === appOwner || !edge.label?.startsWith("apps/") && !own.has(edge.from));
92
105
  }
93
106
  static #withoutPages(graph) {
94
107
  const changed = new Set(graph.nodes.filter((node) => node.change).map((node) => node.id));
@@ -105,7 +118,12 @@ ${sha}`;
105
118
  const isVisible = ({ owner }) => !owner || owner === appOwner || owner.startsWith("libs/");
106
119
  const nodes = graph.nodes.filter(isVisible);
107
120
  const ids = new Set(nodes.map((node) => node.id));
108
- return { version: 1, nodes, edges: graph.edges.filter((edge) => ids.has(edge.from) && ids.has(edge.to)) };
121
+ const bindings = new Set(WorkspaceGraph.#bindingsOf(graph, appOwner));
122
+ return {
123
+ version: 1,
124
+ nodes,
125
+ edges: graph.edges.filter((edge) => ids.has(edge.from) && ids.has(edge.to) && (edge.kind !== "binds" || bindings.has(edge)))
126
+ };
109
127
  }
110
128
  static changesVisibleTo(changes, app) {
111
129
  const visible = WorkspaceGraph.visibleTo(changes, app);
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-0mqga3h9.js";
4
+ } from "./index-ngpt3zz3.js";
5
5
  import {
6
6
  WorkspaceExecutor
7
7
  } from "./index-wfmpxke3.js";
@@ -30,24 +30,24 @@ import {
30
30
  renderWorkflowApply,
31
31
  renderWorkflowValidation,
32
32
  renderWorkflowRunArtifact
33
- } from "./index-xq97me1h.js";
33
+ } from "./index-xrmrvafh.js";
34
34
  import {
35
35
  CommandContainer,
36
36
  runner
37
37
  } from "./index-386canwe.js";
38
38
  import {
39
39
  ModuleScript
40
- } from "./index-htxck0pn.js";
40
+ } from "./index-s34v3y28.js";
41
41
  import {
42
42
  PrimitiveScript
43
- } from "./index-qgazn58x.js";
43
+ } from "./index-0ba8nj4d.js";
44
44
  import {
45
45
  spawnAkan,
46
46
  isWorkspaceTarget
47
- } from "./index-cbcwxp5v.js";
47
+ } from "./index-8gm4yag8.js";
48
48
  import {
49
49
  ScalarScript
50
- } from "./index-pq5rjkch.js";
50
+ } from "./index-h0p6n4k1.js";
51
51
  import {
52
52
  workflowSpecs
53
53
  } from "./index-v50xjbbe.js";
@@ -9,6 +9,9 @@ import {
9
9
  CommandExecutionError,
10
10
  LibExecutor
11
11
  } from "./index-wfmpxke3.js";
12
+ import {
13
+ assertPlainName
14
+ } from "./index-x3x31df8.js";
12
15
 
13
16
  // pkgs/@akanjs/cli/library/library.script.ts
14
17
  import { Logger } from "akanjs/common";
@@ -148,6 +151,7 @@ class LibraryScript extends script("library", [LibraryRunner]) {
148
151
  return scanInfo;
149
152
  }
150
153
  async createLibrary(libName, workspace) {
154
+ assertPlainName("lib", libName);
151
155
  const spinner = workspace.spinning(`Creating ${libName} library`);
152
156
  const lib = await this.libraryRunner.createLibrary(libName, workspace);
153
157
  spinner.succeed(`${libName} library (libs/${libName}) is created`);
@@ -166,6 +170,7 @@ class LibraryScript extends script("library", [LibraryRunner]) {
166
170
  Logger.rawLog(format === "json" ? JSON.stringify(statuses, null, 2) : formatLibStatuses(statuses));
167
171
  }
168
172
  async installLibrary(workspace, libName) {
173
+ assertPlainName("lib", libName);
169
174
  const installSpinner = workspace.spinning(`Installing ${libName} library`);
170
175
  const lib = await this.libraryRunner.installLibrary(workspace, libName);
171
176
  installSpinner.succeed(`${libName} library (libs/${libName}) is installed`);
@@ -1,19 +1,21 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-0mqga3h9.js";
4
+ } from "./index-ngpt3zz3.js";
5
5
  import {
6
6
  writeWorkflowRunArtifact,
7
7
  generatedFilePathsForTarget,
8
8
  writeGeneratedSyncState,
9
9
  createRepairReport,
10
- isWorkflowSysName,
11
- isWorkflowModuleName,
12
10
  renderRepairReport
13
- } from "./index-xq97me1h.js";
11
+ } from "./index-xrmrvafh.js";
14
12
  import {
15
13
  runner
16
14
  } from "./index-386canwe.js";
15
+ import {
16
+ isWorkflowSysName,
17
+ isWorkflowModuleName
18
+ } from "./index-x3x31df8.js";
17
19
 
18
20
  // pkgs/@akanjs/cli/repair/repair.runner.ts
19
21
  var akanArgPattern = /^(?:--?[a-z][a-zA-Z0-9-]*|[A-Za-z0-9@_][A-Za-z0-9@._/:,=-]*)$/;