@akanjs/cli 3.2.0-rc.3 → 3.2.0-rc.30
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/.build-stamp +2 -1
- package/CodeAgent-c17abdbf.js +11 -0
- package/{CodeTui-wv9yf7eq.js → CodeTui-jed1nj82.js} +822 -666
- package/README.ko.md +26 -1
- package/README.md +26 -1
- package/TunnelShare-mbfcaqg0.js +18 -0
- package/agent.command-9whnc6vb.js +56 -0
- package/akanCode.js +12 -12
- package/appExecutor-020cyesq.js +11 -0
- package/{application.command-6515t682.js → application.command-4eqvyxkw.js} +77 -36
- package/{applicationBuildRunner-bqbyeg84.js → applicationBuildRunner-frtcrqfd.js} +18 -13
- package/buildBatch.proc.js +26 -11
- package/{cloud.command-32esk0v1.js → cloud.command-hbvmeezn.js} +31 -28
- package/cloud.script-9kmbr3d6.js +35 -0
- package/{code.command-xk7rwq2x.js → code.command-0ayrenk4.js} +14 -9
- package/{context.command-jwenkkf0.js → context.command-php852kf.js} +28 -23
- package/context.runner-nngmn7c0.js +34 -0
- package/{dependencyScanner-78sq8m4q.js → dependencyScanner-ge10gb52.js} +2 -2
- package/{devTui-cd03z4mx.js → devTui-rf374y2w.js} +1 -1
- package/{fileSys-zpvt5gtf.js → fileSys-q22646yc.js} +1 -1
- package/{guideline.command-w6yqpdec.js → guideline.command-w1grfwh7.js} +9 -4
- package/guidelines/agentRule/agentRule.instruction.md +29 -12
- package/guidelines/akanApi/akanApi.instruction.md +5 -3
- package/guidelines/conventions/core.md +23 -5
- package/guidelines/conventions/rules/app.md +4 -1
- package/guidelines/conventions/rules/page.md +5 -0
- package/guidelines/conventions/rules/ts.md +3 -3
- package/guidelines/errorCodes/errorCodes.instruction.md +158 -0
- package/guidelines/fieldRule/fieldRule.instruction.md +2 -1
- package/guidelines/mcpRule/mcpRule.instruction.md +96 -2
- package/guidelines/pageRule/pageRule.instruction.md +15 -1
- package/guidelines/runtimeRule/runtimeRule.instruction.md +12 -6
- package/guidelines/transportRule/transportRule.instruction.md +8 -1
- package/incrementalBuilder.proc.js +574 -410
- package/{index-w15mg3km.js → index-0dm25wvf.js} +1 -1
- package/{index-xrmrvafh.js → index-0gaj78wn.js} +808 -694
- package/{index-j1hjb477.js → index-11d7nh8a.js} +1 -1
- package/{index-hj6w4ka1.js → index-1p81ecbz.js} +1 -1
- package/{index-ygrdw6jw.js → index-1pjwsh2g.js} +65 -8
- package/{index-43acpsc7.js → index-28nk8w3j.js} +12 -12
- package/{index-qd7xn2bk.js → index-2ny1e95c.js} +2 -2
- package/{index-8gm4yag8.js → index-42jhx2ya.js} +6 -6
- package/{index-2rqyrvcy.js → index-4st0hq72.js} +62 -33
- package/{index-bak9f2br.js → index-5d57kx0s.js} +15 -11
- package/{index-bdmgqzb5.js → index-6469101k.js} +58 -29
- package/{index-7kmbqp0b.js → index-6pxmcaq8.js} +1 -1
- package/{index-54s6knqe.js → index-6zb17wcm.js} +12 -10
- package/{index-0ba8nj4d.js → index-7bs463x7.js} +50 -38
- package/{index-y725zb1a.js → index-7v7tvgt7.js} +196 -168
- package/{index-r0a604h4.js → index-99kjwyma.js} +1 -1
- package/{index-2mrn1mrg.js → index-9f3reh2y.js} +1 -1
- package/{index-386canwe.js → index-9rv2zt48.js} +186 -121
- package/{index-20wvskt8.js → index-9wab2ngg.js} +1 -1
- package/{index-2eym1yjb.js → index-9wjrwjgz.js} +288 -209
- package/{index-kcpk2d20.js → index-at6haq2x.js} +1474 -1139
- package/{index-6h775rv3.js → index-ba2xd32s.js} +53 -12
- package/{index-yf9wc28h.js → index-bejy9zyc.js} +1 -1
- package/{index-ngpt3zz3.js → index-bj8s07s7.js} +525 -440
- package/{index-bns3wcpc.js → index-by2tvsq6.js} +1 -1
- package/{index-vbhx60x5.js → index-cb91b6d8.js} +2140 -2165
- package/index-dss3ds74.js +127 -0
- package/{index-e22zedc2.js → index-f16kr6vj.js} +3 -3
- package/{index-ny2k80mv.js → index-ffa52fwf.js} +1 -1
- package/{index-djc5nxpy.js → index-fp5xf6ef.js} +6 -6
- package/{index-qrk06tfp.js → index-g45y5f3e.js} +2 -2
- package/{index-8jpc5fqv.js → index-g7jgd4xs.js} +2 -2
- package/index-j4yvgfhr.js +70 -0
- package/{index-ytpmk3pb.js → index-jgj31xvw.js} +18 -11
- package/{index-j6eeh5d7.js → index-knpm8sdm.js} +5 -5
- package/{index-s34v3y28.js → index-m3t28rt3.js} +11 -11
- package/{index-dpgywgeq.js → index-m5gg0wzv.js} +27 -16
- package/index-na8r4a27.js +30 -0
- package/{index-h0p6n4k1.js → index-nm7nt9vm.js} +3 -3
- package/{index-j4hkbzj6.js → index-p06kfhdf.js} +6 -6
- package/{index-35j83zkd.js → index-p5zh7pmc.js} +2 -2
- package/{index-cmg5ngqa.js → index-p7beqww9.js} +2 -2
- package/{index-zhkcab5a.js → index-prgvqqxe.js} +580 -364
- package/{index-wfmpxke3.js → index-qssq2d41.js} +2775 -3677
- package/{index-sc0g6zbm.js → index-rwgqba9p.js} +24 -11
- package/{index-zcdmnfrf.js → index-s3m89wt2.js} +9 -9
- package/{index-v50xjbbe.js → index-t4d0ckde.js} +1 -1
- package/{index-9p260r4e.js → index-trffs83s.js} +538 -250
- package/{index-ddk49ypz.js → index-v929w7j7.js} +133 -49
- package/index-va90m8nd.js +25 -0
- package/index-vjbne22r.js +80 -0
- package/{index-h7hehkw6.js → index-xczjdng6.js} +3 -1
- package/{index-39jz41jb.js → index-xs9a3ddt.js} +3 -3
- package/{index-84c2pgak.js → index-yvzm8mby.js} +94 -82
- package/{index-wr9magsr.js → index-yxkjsyx8.js} +3 -3
- package/index-ze48c0vd.js +788 -0
- package/{index-ygdbn9jn.js → index-zyb0ebm4.js} +1 -1
- package/index.js +29 -24
- package/libExecutor-tq994592.js +10 -0
- package/{library.command-qs8beggh.js → library.command-x219mhcx.js} +9 -4
- package/{localRegistry.command-hz4ged9n.js → localRegistry.command-zvdcejhn.js} +30 -24
- package/{module.command-z9js77m2.js → module.command-k6cwcm7g.js} +17 -8
- package/{package.command-zqenq8c0.js → package.command-vw7x09f8.js} +13 -8
- package/package.json +2 -2
- package/{page.command-t0nx1jat.js → page.command-gf06paq2.js} +9 -4
- package/{pipeline.command-2yjeas7m.js → pipeline.command-y07dgj9b.js} +14 -8
- package/pkgExecutor-stde3yc3.js +10 -0
- package/{primitive.command-v5kypwy4.js → primitive.command-edydvh07.js} +13 -8
- package/{projectTypecheck-s9hhe5sa.js → projectTypecheck-mk8wefvd.js} +2 -1
- package/{prompter-qrwx1p17.js → prompter-qyggfhqd.js} +2 -2
- package/{quality.command-q55j2htd.js → quality.command-mdb45vyr.js} +23 -16
- package/{recipeScanner-4b69ybe0.js → recipeScanner-rrx69awy.js} +1 -1
- package/{repair.command-7ssbbdq2.js → repair.command-kvtaeecy.js} +13 -8
- package/{routeSourceValidator-4h947v7c.js → routeSourceValidator-8n6j1vn7.js} +4 -2
- package/{scalar.command-p5jb7z57.js → scalar.command-sjt9p5e1.js} +11 -6
- package/skills/akan-debug/SKILL.md +10 -3
- package/skills/akan-err/SKILL.md +7 -0
- package/skills/akan-mcp/SKILL.md +14 -2
- package/skills/akan-scaffold/SKILL.md +2 -2
- package/skills/akan-transport/SKILL.md +2 -0
- package/skills/akan-validate/SKILL.md +1 -0
- package/{subspace.command-7wxy6ptj.js → subspace.command-mkkqync4.js} +29 -23
- package/templates/app/page/_layout.tsx +13 -0
- package/templates/app/page/styles.css.template +40 -0
- package/templates/appSample/page/_index.tsx +9 -9
- package/templates/appSample/page/_layout.tsx +1 -0
- package/templates/appSample/page/styles.css.template +40 -5
- package/templates/appSample/ui/Recipe/jellyButton.ts +1 -1
- package/templates/biomeForm.ts +1 -1
- package/templates/env/_env.server.type.ts +1 -1
- package/templates/facetIndex/index.ts +2 -37
- package/templates/lib/sig.ts +0 -4
- package/templates/lib/useClient.ts +1 -1
- package/templates/workspaceRoot/AGENTS.md.template +2 -1
- package/{tunnel.command-22g11n0x.js → tunnel.command-tr5b3030.js} +17 -12
- package/{typeChecker-s640r6c0.js → typeChecker-bfrd1n9n.js} +1 -1
- package/typecheck.proc.js +6 -3
- package/{verify.command-m0wnndd7.js → verify.command-0p9h8tpp.js} +26 -20
- package/{workflow.command-jx8dqs9n.js → workflow.command-9mfcwqzj.js} +37 -19
- package/{workspace.command-ca9kfyt3.js → workspace.command-5hjtmcfs.js} +61 -54
- package/CodeAgent-e9c712an.js +0 -11
- package/TunnelShare-zkfkrw8w.js +0 -14
- package/agent.command-9erafkcb.js +0 -51
- package/cloud.script-arsagnq6.js +0 -30
- package/context.runner-mqpp67br.js +0 -29
- package/index-x3x31df8.js +0 -14
- /package/templates/{appSample → app}/public/fonts/Pretendard-Bold.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-Medium.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-Regular.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-SemiBold.woff2 +0 -0
package/skills/akan-mcp/SKILL.md
CHANGED
|
@@ -13,7 +13,7 @@ an endpoint with a real guard is published, one with none is refused, and so is
|
|
|
13
13
|
|
|
14
14
|
- `mcp: false` on an endpoint, or a `slice()` `mcp` map mirroring `guards`, keeps a perfectly guarded step (a UI
|
|
15
15
|
state-machine step a model would only call by mistake) off the shelf. It is an opt-out; everything else still
|
|
16
|
-
publishes.
|
|
16
|
+
publishes. `mcp: "agent"` keeps an entry off `/mcp` but listed to `AgentToolsRole` and `agentService.loop`.
|
|
17
17
|
- `guards: [Every, Person]` reserves an act for a person; `.with(AgentCall)` narrows what an agent's call may do.
|
|
18
18
|
- A guard's `static scope` decides whether a listing can hide the entry: `"account"` guards are evaluated per
|
|
19
19
|
caller, `"resource"` guards stay visible and stop the call.
|
|
@@ -23,7 +23,8 @@ an endpoint with a real guard is published, one with none is refused, and so is
|
|
|
23
23
|
- `option.setMcp({ … })` in the app's `lib/option.ts`, never `main.ts`; `AKAN_MCP=false` takes the surface off.
|
|
24
24
|
- `JWT_SECRET` is required outside `local`.
|
|
25
25
|
- Every published entry needs a `.desc()`; model-facing text is English.
|
|
26
|
-
- Never make a refusal message more helpful.
|
|
26
|
+
- Never make a refusal message more helpful. A client branches on the code a failure carries
|
|
27
|
+
(`_meta["akanjs/failure"]`, or a JSON-RPC error's `data.code`), never on its text.
|
|
27
28
|
|
|
28
29
|
## Pages for the host
|
|
29
30
|
|
|
@@ -31,6 +32,17 @@ an endpoint with a real guard is published, one with none is refused, and so is
|
|
|
31
32
|
- `page().app(name, description, load)` publishes one component a host draws in the chat, as a read-only tool
|
|
32
33
|
whose `load` may only query.
|
|
33
34
|
|
|
35
|
+
## Calling it from the server
|
|
36
|
+
|
|
37
|
+
- `plug(AgentToolsRole)` gives a service `listAs(account, { allow })` / `callAs(account, call)`: the same catalogue
|
|
38
|
+
and refusals in-process plus the `mcp: "agent"` entries, batch servers included. Pass only an account the server resolved, never client input.
|
|
39
|
+
- `this.agentService.loop({ account | principal, allow, messages, approve, untrusted, onMessage, meta, budget })`
|
|
40
|
+
runs a model over those tools until it answers; `option.setAgentAccountResolver` resolves a stored `principal`
|
|
41
|
+
before every round. Each round is metered as its own turn with `turn.loop` and `turn.meta`. `toolkits` holds named
|
|
42
|
+
groups of `allow` back until the model calls `openToolkit`; `clientTools` (from `AgentClientTools` on an open page)
|
|
43
|
+
parks a call as `awaiting { client: true }` for the page to run; `ask: true` lists `askUser`, which parks as
|
|
44
|
+
`awaiting { question: true }` until you append the member's answer.
|
|
45
|
+
|
|
34
46
|
## Verify
|
|
35
47
|
|
|
36
48
|
- One exposure test per app in `srvkit/mcpExposure.signal.test.ts`: list the tools with a user token, pin the names
|
|
@@ -16,7 +16,7 @@ Everything else is pages, sections, and props.
|
|
|
16
16
|
- A page or section whose content you can write as static JSX or props is not an entity. "A self-intro page
|
|
17
17
|
with two detail pages" is pages only — no `profile` module.
|
|
18
18
|
- Never invent a supporting entity (profile, category, tag, author, like) to round out a design. If one looks
|
|
19
|
-
genuinely necessary, say
|
|
19
|
+
genuinely necessary, build the request without it and say in your reply why it may be needed; the user decides.
|
|
20
20
|
- "… plus a comment zone that saves to a database" is exactly one new module: `comment`.
|
|
21
21
|
- Check what exists first (`list_modules`) and extend it when it already fits — `add-field` / `add-slice` /
|
|
22
22
|
`create-ui` beat a whole new module.
|
|
@@ -44,7 +44,7 @@ an apply that failed, names none: do what the diagnostic says, then plan again.
|
|
|
44
44
|
Returns `planPath` and `next.tool=apply_workflow`. (`list_workflows` / `explain_workflow` give the names
|
|
45
45
|
and each workflow's inputs.)
|
|
46
46
|
2. `apply_workflow({ planPath })` — writes the scaffold and syncs the generated barrels. Returns
|
|
47
|
-
`validationTarget`.
|
|
47
|
+
`validationTarget`. With `dryRun: true` it writes nothing and names this apply next.
|
|
48
48
|
3. `run_validation({ runIdOrPlan: <validationTarget> })`, or run `akan verify` (`akan_verify` in akan code);
|
|
49
49
|
both are the whole chain in one process.
|
|
50
50
|
4. **Read each scaffolded file before editing it.** They are a few lines each and they extend base classes
|
|
@@ -27,6 +27,8 @@ description: "Guard and tune endpoints on the wire: writing a Can<Verb><Model> g
|
|
|
27
27
|
- `{ rateLimit: { calls, windowMs?, by? } }` per endpoint, `option.setRateLimit` per app, `plug(RateLimit)` for a
|
|
28
28
|
business key.
|
|
29
29
|
- A mutation repeated under one `Idempotency-Key` header runs once and replays its first answer.
|
|
30
|
+
- A browser send that changes nothing read back (typing status, a cursor move) passes `{ keepsReads: true }`, so it
|
|
31
|
+
neither ends in-flight query sharing nor drops prefetched pages.
|
|
30
32
|
- `{ method: "PATCH" | "PUT" | "DELETE" }` moves a mutation off `POST` — only when a foreign protocol forces it.
|
|
31
33
|
- `errors: { 409: ["ticket.error.locked"] }` names the errors an endpoint throws on purpose.
|
|
32
34
|
|
|
@@ -20,6 +20,7 @@ three times the output. Narrow the one command instead:
|
|
|
20
20
|
- `akan verify --no-build` — leave the app build out.
|
|
21
21
|
- `akan verify --max 0` — every line, when the report ends in `+N more`.
|
|
22
22
|
- `fixed N files` in the header means lint rewrote them on disk: re-read before editing them again.
|
|
23
|
+
- It exits 3 when it found problems, 2 for a target the workspace does not have, 1 when the run itself broke.
|
|
23
24
|
|
|
24
25
|
Raw `tsc` misses the generated barrels and reports false errors. Do not reach for it.
|
|
25
26
|
|
|
@@ -5,36 +5,42 @@ import {
|
|
|
5
5
|
runner,
|
|
6
6
|
script,
|
|
7
7
|
command
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-9rv2zt48.js";
|
|
9
|
+
import"./index-j4yvgfhr.js";
|
|
10
|
+
import {
|
|
11
|
+
Executor,
|
|
12
|
+
LibSource,
|
|
13
|
+
WorkspaceExecutor
|
|
14
|
+
} from "./index-qssq2d41.js";
|
|
9
15
|
import {
|
|
10
16
|
FileSys2
|
|
11
|
-
} from "./index-
|
|
17
|
+
} from "./index-by2tvsq6.js";
|
|
12
18
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./index-wfmpxke3.js";
|
|
19
|
+
AppExecutor2
|
|
20
|
+
} from "./index-ze48c0vd.js";
|
|
21
|
+
import"./index-na8r4a27.js";
|
|
22
|
+
import"./index-dss3ds74.js";
|
|
18
23
|
import {
|
|
19
24
|
GlobalConfig
|
|
20
|
-
} from "./index-
|
|
25
|
+
} from "./index-f16kr6vj.js";
|
|
21
26
|
import"./index-m9jj544v.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
27
|
+
import"./index-fp5xf6ef.js";
|
|
28
|
+
import"./index-yvzm8mby.js";
|
|
29
|
+
import"./index-yxkjsyx8.js";
|
|
25
30
|
import {
|
|
26
31
|
SubspaceConfig
|
|
27
|
-
} from "./index-
|
|
32
|
+
} from "./index-xczjdng6.js";
|
|
28
33
|
import {
|
|
29
34
|
SlicePlanner
|
|
30
|
-
} from "./index-
|
|
35
|
+
} from "./index-g7jgd4xs.js";
|
|
36
|
+
import"./index-vjbne22r.js";
|
|
31
37
|
|
|
32
|
-
// pkgs/@akanjs/devkit/subspace.ts
|
|
38
|
+
// pkgs/@akanjs/devkit/subspace/subspace.ts
|
|
33
39
|
import { mkdir as mkdir2 } from "fs/promises";
|
|
34
40
|
import path2 from "path";
|
|
35
41
|
import { toError as toError2 } from "akanjs/common";
|
|
36
42
|
|
|
37
|
-
// pkgs/@akanjs/devkit/subspaceClone.ts
|
|
43
|
+
// pkgs/@akanjs/devkit/subspace/subspaceClone.ts
|
|
38
44
|
import { mkdir, readdir, rename, rm } from "fs/promises";
|
|
39
45
|
import path from "path";
|
|
40
46
|
import { toError } from "akanjs/common";
|
|
@@ -73,9 +79,9 @@ class SubspaceClone {
|
|
|
73
79
|
if (!await FileSys2.dirExists(path.join(this.#clonePath, ".git"))) {
|
|
74
80
|
await rm(this.#clonePath, { recursive: true, force: true });
|
|
75
81
|
await mkdir(path.dirname(this.#clonePath), { recursive: true });
|
|
76
|
-
await this.#workspace.spawn("git", ["clone", "--quiet", this.#declaration.repo, this.#clonePath]);
|
|
82
|
+
await this.#workspace.spawn("git", ["clone", "--quiet", "--", this.#declaration.repo, this.#clonePath]);
|
|
77
83
|
}
|
|
78
|
-
await this.#clone.spawn("git", ["fetch", "--quiet", "origin", branch]);
|
|
84
|
+
await this.#clone.spawn("git", ["fetch", "--quiet", "--", "origin", branch]);
|
|
79
85
|
await this.#clone.spawn("git", ["checkout", "--quiet", "-f", "-B", branch, `origin/${branch}`]);
|
|
80
86
|
await this.#clone.spawn("git", ["clean", "-qfd"]);
|
|
81
87
|
}
|
|
@@ -124,7 +130,7 @@ class SubspaceClone {
|
|
|
124
130
|
await this.#clone.spawn("git", ["add", "-A"]);
|
|
125
131
|
const message = `${SubspaceClone.syncSubjectPrefix}${this.#workspace.repoName}@${sha}`;
|
|
126
132
|
await this.#clone.spawn("git", ["commit", "--quiet", "-m", message]);
|
|
127
|
-
await this.#clone.spawn("git", ["push", "--quiet", "origin", branch]);
|
|
133
|
+
await this.#clone.spawn("git", ["push", "--quiet", "--", "origin", branch]);
|
|
128
134
|
return (await this.#clone.spawn("git", ["rev-parse", "--short", "HEAD"])).trim();
|
|
129
135
|
}
|
|
130
136
|
async#writeAnchorFile(branch, sha) {
|
|
@@ -329,7 +335,7 @@ class SubspaceClone {
|
|
|
329
335
|
}
|
|
330
336
|
}
|
|
331
337
|
|
|
332
|
-
// pkgs/@akanjs/devkit/subspace.ts
|
|
338
|
+
// pkgs/@akanjs/devkit/subspace/subspace.ts
|
|
333
339
|
class Subspace {
|
|
334
340
|
static retiredConfigFile = "akan.subspace.ts";
|
|
335
341
|
static #retiredConfigRefusal = `${Subspace.retiredConfigFile} is no longer read: move it under \`subspace\` in akan.config.ts and delete it`;
|
|
@@ -371,7 +377,7 @@ class Subspace {
|
|
|
371
377
|
else
|
|
372
378
|
await this.#git(["remote", "add", this.#remote, this.#declaration.repo]);
|
|
373
379
|
try {
|
|
374
|
-
await this.#git(["fetch", "--quiet", this.#remote, branch]);
|
|
380
|
+
await this.#git(["fetch", "--quiet", "--", this.#remote, branch]);
|
|
375
381
|
return true;
|
|
376
382
|
} catch {
|
|
377
383
|
return false;
|
|
@@ -391,7 +397,7 @@ class Subspace {
|
|
|
391
397
|
return { commit, incoming };
|
|
392
398
|
}
|
|
393
399
|
async slice() {
|
|
394
|
-
const plans = await Promise.all(this.#declaration.apps.map(async (appName) => await new SlicePlanner(
|
|
400
|
+
const plans = await Promise.all(this.#declaration.apps.map(async (appName) => await new SlicePlanner(AppExecutor2.from(this.#workspace, appName)).plan()));
|
|
395
401
|
const libs = [...new Set(plans.flatMap((plan) => plan.libs))].sort();
|
|
396
402
|
const paths = [...this.#declaration.apps.map((app) => `apps/${app}`), ...libs.map((lib) => `libs/${lib}`)];
|
|
397
403
|
return { plans, libs, paths };
|
|
@@ -584,7 +590,7 @@ class Subspace {
|
|
|
584
590
|
}
|
|
585
591
|
}
|
|
586
592
|
|
|
587
|
-
// pkgs/@akanjs/devkit/subspaceReport.ts
|
|
593
|
+
// pkgs/@akanjs/devkit/subspace/subspaceReport.ts
|
|
588
594
|
class SubspaceReport {
|
|
589
595
|
static statuses(statuses) {
|
|
590
596
|
const sections = [
|
|
@@ -818,7 +824,7 @@ class SubspaceRunner extends runner("subspace") {
|
|
|
818
824
|
if (!asked)
|
|
819
825
|
return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
|
|
820
826
|
const { libs } = await subspace.slice();
|
|
821
|
-
const { CloudScript } = await import("./cloud.script-
|
|
827
|
+
const { CloudScript } = await import("./cloud.script-9kmbr3d6.js");
|
|
822
828
|
const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
|
|
823
829
|
host,
|
|
824
830
|
workspaceId,
|
|
@@ -20,6 +20,19 @@ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dic
|
|
|
20
20
|
${isUsingShared ? 'import { Auth } from "@libs/shared/ui";\n' : ""}import { rootLayout } from "akanjs/client";
|
|
21
21
|
|
|
22
22
|
export default rootLayout()
|
|
23
|
+
.fonts([
|
|
24
|
+
{
|
|
25
|
+
name: "pretendard",
|
|
26
|
+
default: true,
|
|
27
|
+
subsets: ["latin", "ks-x-1001"],
|
|
28
|
+
paths: [
|
|
29
|
+
{ src: "/fonts/Pretendard-Regular.woff2", weight: 400 },
|
|
30
|
+
{ src: "/fonts/Pretendard-Medium.woff2", weight: 500 },
|
|
31
|
+
{ src: "/fonts/Pretendard-SemiBold.woff2", weight: 600 },
|
|
32
|
+
{ src: "/fonts/Pretendard-Bold.woff2", weight: 700 },
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
])
|
|
23
36
|
.theme("light")
|
|
24
37
|
.head(<title>${dict.appName}</title>)
|
|
25
38
|
.render(({ children }) => {
|
|
@@ -65,3 +65,43 @@
|
|
|
65
65
|
--input: #e5e5e5;
|
|
66
66
|
--ring: #0a0a0a;
|
|
67
67
|
}
|
|
68
|
+
|
|
69
|
+
/* Typography: Pretendard, the layout's default font, at -3% tracking. Font sizes are even and at least 12px —
|
|
70
|
+
Tailwind's steps from text-xs (12px) to text-9xl (128px) all are, so an arbitrary text-[…] keeps the same rule.
|
|
71
|
+
Text that may wrap takes 150% leading, every size's default; a single line takes the font's own (leading-auto). */
|
|
72
|
+
@theme {
|
|
73
|
+
--leading-auto: normal;
|
|
74
|
+
--text-xs--line-height: 1.5;
|
|
75
|
+
--text-xs--letter-spacing: -0.03em;
|
|
76
|
+
--text-sm--line-height: 1.5;
|
|
77
|
+
--text-sm--letter-spacing: -0.03em;
|
|
78
|
+
--text-base--line-height: 1.5;
|
|
79
|
+
--text-base--letter-spacing: -0.03em;
|
|
80
|
+
--text-lg--line-height: 1.5;
|
|
81
|
+
--text-lg--letter-spacing: -0.03em;
|
|
82
|
+
--text-xl--line-height: 1.5;
|
|
83
|
+
--text-xl--letter-spacing: -0.03em;
|
|
84
|
+
--text-2xl--line-height: 1.5;
|
|
85
|
+
--text-2xl--letter-spacing: -0.03em;
|
|
86
|
+
--text-3xl--line-height: 1.5;
|
|
87
|
+
--text-3xl--letter-spacing: -0.03em;
|
|
88
|
+
--text-4xl--line-height: 1.5;
|
|
89
|
+
--text-4xl--letter-spacing: -0.03em;
|
|
90
|
+
--text-5xl--line-height: 1.5;
|
|
91
|
+
--text-5xl--letter-spacing: -0.03em;
|
|
92
|
+
--text-6xl--line-height: 1.5;
|
|
93
|
+
--text-6xl--letter-spacing: -0.03em;
|
|
94
|
+
--text-7xl--line-height: 1.5;
|
|
95
|
+
--text-7xl--letter-spacing: -0.03em;
|
|
96
|
+
--text-8xl--line-height: 1.5;
|
|
97
|
+
--text-8xl--letter-spacing: -0.03em;
|
|
98
|
+
--text-9xl--line-height: 1.5;
|
|
99
|
+
--text-9xl--letter-spacing: -0.03em;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* letter-spacing inherits as a length, not a ratio: text sized without a text-* class keeps -3% of the root's 16px. */
|
|
103
|
+
@layer base {
|
|
104
|
+
html {
|
|
105
|
+
letter-spacing: -0.03em;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -127,9 +127,9 @@ export default page().render(() => {
|
|
|
127
127
|
src="/logo.png"
|
|
128
128
|
width={80}
|
|
129
129
|
/>
|
|
130
|
-
<div
|
|
131
|
-
<p className="font-black text-lg
|
|
132
|
-
<p className="text-foreground/50 text-xs">
|
|
130
|
+
<div>
|
|
131
|
+
<p className="font-black text-lg leading-auto">{appName}</p>
|
|
132
|
+
<p className="text-foreground/50 text-xs leading-auto">
|
|
133
133
|
{l.trans({ en: "Built with Akan.js", ko: "Akan.js로 만든 앱" })}
|
|
134
134
|
</p>
|
|
135
135
|
</div>
|
|
@@ -164,14 +164,14 @@ export default page().render(() => {
|
|
|
164
164
|
</div>
|
|
165
165
|
|
|
166
166
|
<div className="flex flex-col items-center text-center lg:items-start lg:text-left">
|
|
167
|
-
<p className="intro-rise jelly-glass inline-flex items-center gap-2 rounded-full px-4 py-1.5 font-bold text-foreground/75 text-sm [--intro-delay:40ms]">
|
|
167
|
+
<p className="intro-rise jelly-glass inline-flex items-center gap-2 rounded-full px-4 py-1.5 font-bold text-foreground/75 text-sm leading-auto [--intro-delay:40ms]">
|
|
168
168
|
<span className="size-2 rounded-full bg-success ring-4 ring-success/20" />
|
|
169
169
|
{l.trans({ en: "Your app is running", ko: "앱이 실행 중입니다" })}
|
|
170
170
|
</p>
|
|
171
|
-
<h1 className="intro-rise wrap-anywhere mt-6 max-w-full font-black text-
|
|
171
|
+
<h1 className="intro-rise wrap-anywhere mt-6 max-w-full font-black text-6xl leading-auto [--intro-delay:80ms] sm:text-7xl md:text-8xl xl:text-9xl">
|
|
172
172
|
{appName}
|
|
173
173
|
</h1>
|
|
174
|
-
<p className="intro-rise mt-6 max-w-xl font-bold text-foreground/60 text-lg
|
|
174
|
+
<p className="intro-rise mt-6 max-w-xl font-bold text-foreground/60 text-lg [--intro-delay:160ms]">
|
|
175
175
|
{l.trans({
|
|
176
176
|
en: "Built on Akan.js — the TypeScript framework, agents included.",
|
|
177
177
|
ko: "에이전트까지 들어 있는 TypeScript 프레임워크, Akan.js로 만들었습니다.",
|
|
@@ -192,7 +192,7 @@ export default page().render(() => {
|
|
|
192
192
|
/>
|
|
193
193
|
</span>
|
|
194
194
|
</span>
|
|
195
|
-
<span className="whitespace-nowrap rounded-full bg-foreground/6 px-2.5 py-0.5 font-bold text-
|
|
195
|
+
<span className="whitespace-nowrap rounded-full bg-foreground/6 px-2.5 py-0.5 font-bold text-foreground/60 text-xs leading-auto">
|
|
196
196
|
{friend.role}
|
|
197
197
|
</span>
|
|
198
198
|
</li>
|
|
@@ -230,7 +230,7 @@ export default page().render(() => {
|
|
|
230
230
|
{chapter.numeral}
|
|
231
231
|
</span>
|
|
232
232
|
<h3 className="mt-5 font-bold text-lg">{chapter.title}</h3>
|
|
233
|
-
<p className="mt-2 text-foreground/60 text-sm
|
|
233
|
+
<p className="mt-2 text-foreground/60 text-sm">{chapter.body}</p>
|
|
234
234
|
</article>
|
|
235
235
|
))}
|
|
236
236
|
</div>
|
|
@@ -249,7 +249,7 @@ export default page().render(() => {
|
|
|
249
249
|
</span>
|
|
250
250
|
<div className="min-w-0 flex-1">
|
|
251
251
|
<h3 className="font-bold">{step.title}</h3>
|
|
252
|
-
<p className="mt-1 text-foreground/60 text-sm
|
|
252
|
+
<p className="mt-1 text-foreground/60 text-sm">{step.body}</p>
|
|
253
253
|
<code className="mt-2 inline-block rounded-full bg-foreground/6 px-3 py-1 font-mono text-foreground/75 text-xs">
|
|
254
254
|
{step.code}
|
|
255
255
|
</code>
|
|
@@ -96,6 +96,46 @@
|
|
|
96
96
|
--radius-field: 0.875rem;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
/* Typography: Pretendard, the layout's default font, at -3% tracking. Font sizes are even and at least 12px —
|
|
100
|
+
Tailwind's steps from text-xs (12px) to text-9xl (128px) all are, so an arbitrary text-[…] keeps the same rule.
|
|
101
|
+
Text that may wrap takes 150% leading, every size's default; a single line takes the font's own (leading-auto). */
|
|
102
|
+
@theme {
|
|
103
|
+
--leading-auto: normal;
|
|
104
|
+
--text-xs--line-height: 1.5;
|
|
105
|
+
--text-xs--letter-spacing: -0.03em;
|
|
106
|
+
--text-sm--line-height: 1.5;
|
|
107
|
+
--text-sm--letter-spacing: -0.03em;
|
|
108
|
+
--text-base--line-height: 1.5;
|
|
109
|
+
--text-base--letter-spacing: -0.03em;
|
|
110
|
+
--text-lg--line-height: 1.5;
|
|
111
|
+
--text-lg--letter-spacing: -0.03em;
|
|
112
|
+
--text-xl--line-height: 1.5;
|
|
113
|
+
--text-xl--letter-spacing: -0.03em;
|
|
114
|
+
--text-2xl--line-height: 1.5;
|
|
115
|
+
--text-2xl--letter-spacing: -0.03em;
|
|
116
|
+
--text-3xl--line-height: 1.5;
|
|
117
|
+
--text-3xl--letter-spacing: -0.03em;
|
|
118
|
+
--text-4xl--line-height: 1.5;
|
|
119
|
+
--text-4xl--letter-spacing: -0.03em;
|
|
120
|
+
--text-5xl--line-height: 1.5;
|
|
121
|
+
--text-5xl--letter-spacing: -0.03em;
|
|
122
|
+
--text-6xl--line-height: 1.5;
|
|
123
|
+
--text-6xl--letter-spacing: -0.03em;
|
|
124
|
+
--text-7xl--line-height: 1.5;
|
|
125
|
+
--text-7xl--letter-spacing: -0.03em;
|
|
126
|
+
--text-8xl--line-height: 1.5;
|
|
127
|
+
--text-8xl--letter-spacing: -0.03em;
|
|
128
|
+
--text-9xl--line-height: 1.5;
|
|
129
|
+
--text-9xl--letter-spacing: -0.03em;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* letter-spacing inherits as a length, not a ratio: text sized without a text-* class keeps -3% of the root's 16px. */
|
|
133
|
+
@layer base {
|
|
134
|
+
html {
|
|
135
|
+
letter-spacing: -0.03em;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
99
139
|
/* A sampled damped spring: overshoots the target by 18%, wobbles twice and settles. */
|
|
100
140
|
@theme {
|
|
101
141
|
--ease-jelly: linear(0, 0.42 6%, 0.86 13%, 1.12 21%, 1.18 26%, 1.13 32%, 1 41%, 0.95 48%, 0.97 56%, 1.01 66%, 1.005 78%, 1);
|
|
@@ -128,11 +168,6 @@
|
|
|
128
168
|
mix-blend-mode: overlay;
|
|
129
169
|
}
|
|
130
170
|
|
|
131
|
-
h1,
|
|
132
|
-
h2 {
|
|
133
|
-
letter-spacing: -0.035em;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
171
|
::selection {
|
|
137
172
|
background-color: color-mix(in oklab, var(--jelly) 24%, transparent);
|
|
138
173
|
}
|
|
@@ -8,7 +8,7 @@ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: { a
|
|
|
8
8
|
/** Sugared gummy button with the same variants as akanjs's \`buttonRecipe\`; \`page/_overrides.tsx\` binds it to every akanjs/ui Button. ghost/outline/link stay surfaceless. */
|
|
9
9
|
export const jellyButtonRecipe = recipe(
|
|
10
10
|
tv({
|
|
11
|
-
base: "squish inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-full font-bold focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
11
|
+
base: "squish inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-full font-bold leading-auto focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
12
12
|
variants: {
|
|
13
13
|
variant: {
|
|
14
14
|
default: "text-foreground",
|
package/templates/biomeForm.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AppInfo, LibInfo } from "akanjs";
|
|
2
|
-
import { compareExportNames } from "
|
|
2
|
+
import { compareExportNames } from "akanjs/common";
|
|
3
3
|
|
|
4
4
|
export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: { [key: string]: string } = {}) {
|
|
5
5
|
if (!scanInfo) return null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { SysExecutor } from "@akanjs/devkit/executors";
|
|
2
2
|
import type { AppInfo, LibInfo } from "akanjs";
|
|
3
|
+
import { facetBarrelOf } from "akanjs/common";
|
|
3
4
|
|
|
4
5
|
interface Dict {
|
|
5
6
|
[key: string]: string;
|
|
@@ -10,47 +11,11 @@ interface Options {
|
|
|
10
11
|
facet?: string;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
const sourceFilePattern = /\.(ts|tsx)$/;
|
|
14
|
-
const excludedFilePattern = /(^index\.tsx?$|\.d\.ts$|\.(test|spec)\.(ts|tsx)$|\.css$|\.scss$|\.sass$)/;
|
|
15
|
-
// `ui` exports PascalCase names only; `common`/`srvkit`/`webkit` export camelCase names only. Names with
|
|
16
|
-
// dots, underscores, or hyphens (e.g. `foo.helper`, `Globe_Dynamic`, `kebab-case`) match neither and are skipped.
|
|
17
|
-
const pascalCasePattern = /^[A-Z][A-Za-z0-9]*$/;
|
|
18
|
-
const camelCasePattern = /^[a-z][A-Za-z0-9]*$/;
|
|
19
|
-
const nameCasePatternForFacet = (facet: string) => (facet === "ui" ? pascalCasePattern : camelCasePattern);
|
|
20
|
-
//? Biome's organizeImports order, or `akan lint` reorders the barrel: A < a < B < b, a digit before a letter, and a
|
|
21
|
-
//? run of digits compared by its length first. DevGeneratedIndexSync sorts the same way; the env template imports it.
|
|
22
|
-
const letterRankOf = (char: string) => char.toLowerCase().charCodeAt(0) * 2 + (char === char.toLowerCase() ? 1 : 0);
|
|
23
|
-
const digitRunAt = (name: string, idx: number) => /^\d+/.exec(name.slice(idx))?.[0] ?? "";
|
|
24
|
-
export const compareExportNames = (a: string, b: string) => {
|
|
25
|
-
for (let idx = 0; idx < a.length && idx < b.length; ) {
|
|
26
|
-
const [runA, runB] = [digitRunAt(a, idx), digitRunAt(b, idx)];
|
|
27
|
-
if (runA && runB && runA !== runB) return runA.length - runB.length || (runA < runB ? -1 : 1);
|
|
28
|
-
if (runA && runB) idx += runA.length;
|
|
29
|
-
else if (runA || runB) return runA ? -1 : 1;
|
|
30
|
-
else if (a.charAt(idx) !== b.charAt(idx)) return letterRankOf(a.charAt(idx)) - letterRankOf(b.charAt(idx));
|
|
31
|
-
else idx++;
|
|
32
|
-
}
|
|
33
|
-
return a.length - b.length;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
14
|
export default async function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict = {}, options: Options = {}) {
|
|
37
15
|
const { exec, facet } = options;
|
|
38
16
|
if (!exec || !facet || !(await exec.exists(facet))) return null;
|
|
39
17
|
|
|
40
|
-
const nameCasePattern = nameCasePatternForFacet(facet);
|
|
41
18
|
const { files, dirs } = await exec.getFilesAndDirs(facet);
|
|
42
|
-
const
|
|
43
|
-
...files
|
|
44
|
-
.filter((filename) => sourceFilePattern.test(filename) && !excludedFilePattern.test(filename))
|
|
45
|
-
.map((filename) => filename.replace(sourceFilePattern, "")),
|
|
46
|
-
...dirs.filter((dirname) => !dirname.startsWith(".")),
|
|
47
|
-
]
|
|
48
|
-
.filter((name) => nameCasePattern.test(name))
|
|
49
|
-
.sort(compareExportNames);
|
|
50
|
-
|
|
51
|
-
//? Not null: a null result writes nothing, so a barrel still exporting a deleted file would outlive the file.
|
|
52
|
-
const content = exportNames.length
|
|
53
|
-
? `${exportNames.map((name) => `export * from "./${name}";`).join("\n")}\n`
|
|
54
|
-
: "export {};\n";
|
|
19
|
+
const content = facetBarrelOf(facet, files, dirs);
|
|
55
20
|
return { filename: "index.ts", content };
|
|
56
21
|
}
|
package/templates/lib/sig.ts
CHANGED
|
@@ -19,7 +19,6 @@ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: { [
|
|
|
19
19
|
return `
|
|
20
20
|
import { FetchClient, type FetchClientType } from "akanjs/fetch";
|
|
21
21
|
import { SignalRegistry, serverSignal${libs.length === 0 ? ", fetch as base" : ""} } from "akanjs/signal";
|
|
22
|
-
import { Err } from "./dict";
|
|
23
22
|
${libs.map((lib) => `import { fetch as ${lib} } from "@libs/${lib}/lib/sig";`).join("\n")}
|
|
24
23
|
|
|
25
24
|
${databaseModules.map((module) => `import * as ${module}Sig from "./${module}/${module}.signal";`).join("\n")}
|
|
@@ -37,9 +36,6 @@ ${serviceModules.map((module) => `export const ${module} = SignalRegistry.regist
|
|
|
37
36
|
export const fetchSignals = [${signalNames.join(", ")}] as const;
|
|
38
37
|
export type Fetch = FetchClientType<typeof fetchSignals>;
|
|
39
38
|
export const fetch = FetchClient.from(...fetchSignals) as unknown as Fetch;
|
|
40
|
-
// A failure restored from another process is this scope's own Err, so a server hop that rethrows one keeps its
|
|
41
|
-
// dictionary key and data instead of answering the original caller with Internal Server Error.
|
|
42
|
-
fetch.setErrorConstructor(Err);
|
|
43
39
|
|
|
44
40
|
export const getSerializedSignal = () => fetch.ownSerializedSignal
|
|
45
41
|
`;
|
|
@@ -18,7 +18,7 @@ ${
|
|
|
18
18
|
const dictionary = {};`
|
|
19
19
|
}
|
|
20
20
|
const pageProto = makePageProto<typeof dict>(dictionary);
|
|
21
|
-
const fetchProto = FetchClient.build<typeof signal>(cnst, getSerializedSignal()
|
|
21
|
+
const fetchProto = FetchClient.build<typeof signal>(cnst, getSerializedSignal());
|
|
22
22
|
export const runtime = registerClientRuntime({ ...pageProto, ...fetchProto }, { scope: ${JSON.stringify(scanInfo?.type ?? "lib")} });
|
|
23
23
|
|
|
24
24
|
export const { msg, Err, usePage, sig, fetch } = runtime;
|
|
@@ -7,7 +7,8 @@ the framework generate the repeated surfaces.
|
|
|
7
7
|
|
|
8
8
|
If you hit an Akan.js bug, or a fix that one framework change would solve more easily than app-level workarounds,
|
|
9
9
|
draft a GitHub issue for <https://github.com/akan-team/akanjs/issues> (version, repro, expected vs actual) and ask
|
|
10
|
-
the user before filing it.
|
|
10
|
+
the user before filing it, since an issue is public. Meanwhile finish the task with a small interim workaround marked
|
|
11
|
+
`// TODO: <issue url>`.
|
|
11
12
|
|
|
12
13
|
## Generated Context
|
|
13
14
|
|
|
@@ -4,25 +4,30 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-9rv2zt48.js";
|
|
8
|
+
import"./index-j4yvgfhr.js";
|
|
9
|
+
import"./index-qssq2d41.js";
|
|
10
|
+
import"./index-by2tvsq6.js";
|
|
9
11
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./index-
|
|
12
|
+
AppExecutor2
|
|
13
|
+
} from "./index-ze48c0vd.js";
|
|
14
|
+
import"./index-na8r4a27.js";
|
|
15
|
+
import"./index-dss3ds74.js";
|
|
12
16
|
import {
|
|
13
17
|
GlobalConfig,
|
|
14
18
|
CloudApi
|
|
15
|
-
} from "./index-
|
|
19
|
+
} from "./index-f16kr6vj.js";
|
|
16
20
|
import"./index-m9jj544v.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
21
|
+
import"./index-fp5xf6ef.js";
|
|
22
|
+
import"./index-yvzm8mby.js";
|
|
23
|
+
import"./index-yxkjsyx8.js";
|
|
20
24
|
import {
|
|
21
25
|
TunnelShare2
|
|
22
|
-
} from "./index-
|
|
26
|
+
} from "./index-11d7nh8a.js";
|
|
23
27
|
import {
|
|
24
28
|
writeClipboard
|
|
25
29
|
} from "./index-p6pbz9n5.js";
|
|
30
|
+
import"./index-vjbne22r.js";
|
|
26
31
|
|
|
27
32
|
// pkgs/@akanjs/cli/tunnel/tunnel.script.ts
|
|
28
33
|
import { select } from "@inquirer/prompts";
|
|
@@ -95,11 +100,11 @@ class TunnelScript extends script("tunnel", [TunnelRunner]) {
|
|
|
95
100
|
if (name && !appNames.includes(name))
|
|
96
101
|
throw new Error(`Unknown app: ${name}. Available: ${appNames.join(", ")}`);
|
|
97
102
|
if (name)
|
|
98
|
-
return
|
|
103
|
+
return AppExecutor2.from(workspace, name);
|
|
99
104
|
const only = appNames.length === 1 ? appNames[0] : null;
|
|
100
105
|
if (only)
|
|
101
|
-
return
|
|
102
|
-
return
|
|
106
|
+
return AppExecutor2.from(workspace, only);
|
|
107
|
+
return AppExecutor2.from(workspace, await select({ message: "Select the app to share", choices: appNames }));
|
|
103
108
|
}
|
|
104
109
|
async share(name, { workspace, host, port, ttl, devRoutes }) {
|
|
105
110
|
const app = await TunnelScript.resolveApp(workspace, name);
|
package/typecheck.proc.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
TypeChecker2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-99kjwyma.js";
|
|
5
|
+
import {
|
|
6
|
+
TypecheckFailure
|
|
7
|
+
} from "./index-j4yvgfhr.js";
|
|
5
8
|
|
|
6
9
|
// pkgs/@akanjs/devkit/typecheck/typecheck.proc.ts
|
|
7
10
|
import { Logger } from "akanjs/common";
|
|
@@ -29,11 +32,11 @@ try {
|
|
|
29
32
|
if (process.env.AKAN_TYPECHECK_FORMAT === "json") {
|
|
30
33
|
const root = process.env.AKAN_TYPECHECK_ROOT ?? process.cwd();
|
|
31
34
|
process.stdout.write(JSON.stringify(TypeChecker2.toRecords(result.errors, root)));
|
|
32
|
-
process.exit(result.errors.length > 0 ?
|
|
35
|
+
process.exit(result.errors.length > 0 ? TypecheckFailure.workerExitCode : 0);
|
|
33
36
|
}
|
|
34
37
|
if (result.errors.length > 0) {
|
|
35
38
|
console.error(result.message);
|
|
36
|
-
process.exit(
|
|
39
|
+
process.exit(TypecheckFailure.workerExitCode);
|
|
37
40
|
}
|
|
38
41
|
} catch (error) {
|
|
39
42
|
console.error(error instanceof Error ? error.message : String(error));
|