@akanjs/cli 3.1.0-rc.8 → 3.1.0
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 +1 -1
- package/{CodeAgent-rkjyxgec.js → CodeAgent-c53dm40p.js} +2 -2
- package/{CodeAgentRpcHost-p7h6n2hp.js → CodeAgentRpcHost-9g27hmer.js} +1 -1
- package/{CodeTui-h7pyj6xa.js → CodeTui-xz9jtrn3.js} +47 -4
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/TunnelShare-59zd4j8n.js +14 -0
- package/{agent.command-3qxf4xcj.js → agent.command-qawf7z4s.js} +5 -5
- package/akanCode.js +7 -5
- package/{application.command-m1kcd7jf.js → application.command-jqrgqk6j.js} +35 -9
- package/{applicationBuildRunner-dj0xkrep.js → applicationBuildRunner-grgrey5c.js} +23 -8
- package/buildBatch.proc.js +9 -9
- package/{cloud.command-3jzym8q7.js → cloud.command-p9067ssj.js} +13 -13
- package/cloud.script-f0r4ce7j.js +24 -0
- package/{code.command-0ad6gw2a.js → code.command-t6j55sbk.js} +25 -12
- package/commandManifest.json +1 -1
- package/{context.command-0qx447mb.js → context.command-eqbzbgth.js} +16 -16
- package/context.runner-1cs88ags.js +25 -0
- package/{guideline.command-cv5bmrx2.js → guideline.command-w905q73w.js} +2 -2
- package/guidelines/agentRule/agentRule.instruction.md +25 -10
- package/guidelines/conventions/conventions.instruction.md +71 -24
- package/guidelines/fieldRule/fieldRule.instruction.md +17 -0
- package/guidelines/mcpRule/mcpRule.instruction.md +93 -48
- package/guidelines/modelDocument/modelDocument.instruction.md +2 -1
- package/guidelines/modelStore/modelStore.instruction.md +7 -0
- package/guidelines/pageRule/pageRule.instruction.md +55 -8
- package/guidelines/queryRule/queryRule.instruction.md +24 -10
- package/guidelines/runtimeRule/runtimeRule.instruction.md +12 -4
- package/guidelines/ssrRule/ssrRule.instruction.md +9 -6
- package/guidelines/transportRule/transportRule.instruction.md +36 -5
- package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +5 -3
- package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +28 -8
- package/incrementalBuilder.proc.js +3 -3
- package/{index-j4mkhz93.js → index-0dd6z4b9.js} +3 -3
- package/{index-h47cf1gg.js → index-1de5f0qq.js} +7 -7
- package/{index-6xn2n442.js → index-1enc9rga.js} +4 -4
- package/index-25ks6x4k.js +643 -0
- package/{index-wa5jbxj1.js → index-2mrn1mrg.js} +1 -0
- package/{index-qwa5k1j8.js → index-3aynkpf8.js} +1 -1
- package/{index-vk0pa0mn.js → index-3hvmytbs.js} +2 -1
- package/{index-w44cy4vs.js → index-45c0mxb6.js} +2 -2
- package/{index-fyq1z6kt.js → index-48n4yhm4.js} +3 -3
- package/{index-192ha4xh.js → index-64pjry21.js} +1 -1
- package/{index-5edzv8fn.js → index-aqwdjn4x.js} +2 -2
- package/{index-d2242ksy.js → index-at7bz0xq.js} +3 -0
- package/{index-9z426msb.js → index-avjqbtkj.js} +7 -6
- package/{index-20bxxyvn.js → index-bs9yr4we.js} +40 -2
- package/{index-d72hfmdm.js → index-cgexcnwd.js} +8 -8
- package/{index-1xj2t7cb.js → index-dkfadmrx.js} +7 -7
- package/{index-35hc95h5.js → index-eabfsarf.js} +1 -1
- package/{index-pydbnfez.js → index-er62k6w3.js} +35 -9
- package/{index-1p98exm2.js → index-f2gfq0yh.js} +2 -2
- package/{index-jw1zm273.js → index-fbw3kmt5.js} +54 -10
- package/{index-4mhy6qme.js → index-fnqj2d2w.js} +4 -4
- package/{index-awbdfcf2.js → index-hqh4mpgt.js} +4 -4
- package/{index-fmzcs8v6.js → index-j4dzazmw.js} +4 -4
- package/{index-va06nr10.js → index-n8dsax1f.js} +64 -19
- package/{index-g1mbppa9.js → index-nr8m4j21.js} +5 -5
- package/{index-86jt2a0e.js → index-qh73jnyb.js} +1 -1
- package/{index-8fp3b47h.js → index-vtj332gj.js} +281 -46
- package/{index-tamvyvj3.js → index-wt7m1hfc.js} +3 -3
- package/{index-cpb3nvma.js → index-yfy3t4kw.js} +2 -2
- package/{index-trpasv9q.js → index-yyxy7aff.js} +1 -1
- package/{index-d47ypebv.js → index-z5cxrbvv.js} +75 -19
- package/index.js +40 -22
- package/{library.command-erp2f56n.js → library.command-z1v7zepj.js} +3 -3
- package/{localRegistry.command-xxpqgxjw.js → localRegistry.command-48n23bjy.js} +12 -12
- package/{module.command-gs2r615e.js → module.command-rv307dk7.js} +5 -5
- package/{package.command-7343f74r.js → package.command-7xkzc8m1.js} +3 -3
- package/package.json +22 -22
- package/{page.command-4h4a8pnh.js → page.command-34hpdt7v.js} +3 -3
- package/{pipeline.command-a2nrk26m.js → pipeline.command-ckvhrpyg.js} +2 -2
- package/{primitive.command-w6t0asqz.js → primitive.command-em0twr5a.js} +6 -6
- package/{projectTypecheck-f534enqj.js → projectTypecheck-fy6hn05y.js} +1 -1
- package/{quality.command-77x7vbbx.js → quality.command-c6p2819k.js} +2 -2
- package/{repair.command-y6sstev7.js → repair.command-j6czdgrv.js} +5 -5
- package/{routeSourceValidator-7ycnfz0e.js → routeSourceValidator-6jd0q6r6.js} +47 -14
- package/{scalar.command-20b8cy0k.js → scalar.command-17e20sj2.js} +4 -4
- package/skills/akan-code/SKILL.md +4 -0
- package/skills/akan-store/SKILL.md +4 -2
- package/{subspace.command-92xkc0s0.js → subspace.command-n3j7vv0w.js} +8 -17
- package/templates/migration/__migrationId__.ts +23 -0
- package/templates/server.ts +8 -1
- package/templates/workspaceRoot/.gitignore.template +1 -1
- package/templates/workspaceRoot/biome.json.template +1 -1
- package/{tunnel.command-2kw8vt9g.js → tunnel.command-cm578f4s.js} +7 -7
- package/{workflow.command-2djwmpqf.js → workflow.command-h9vkr6jb.js} +10 -10
- package/{workspace.command-5se6spqb.js → workspace.command-tp8ysvjs.js} +30 -28
- package/TunnelShare-661cxz5e.js +0 -14
- package/cloud.script-r4nskbc6.js +0 -24
- package/context.runner-1vsjztjg.js +0 -25
- package/index-665zp9rs.js +0 -271
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Sys,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-fbw3kmt5.js";
|
|
6
6
|
import"./index-52w0fvh8.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-n8dsax1f.js";
|
|
8
8
|
import {
|
|
9
9
|
renderPrimitiveReport
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-yyxy7aff.js";
|
|
11
11
|
import {
|
|
12
12
|
ScalarScript
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-f2gfq0yh.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/cli/scalar/scalar.command.ts
|
|
16
16
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -78,6 +78,9 @@ Stored under `.akan/code/sessions` — project history, so a second checkout of
|
|
|
78
78
|
- `/peers` lists other `akan code` sessions running in this workspace; `/msg <peer> <text>` hands one a
|
|
79
79
|
message.
|
|
80
80
|
- `/clear` wipes the screen and keeps the conversation; `/compact [notes]` shortens what the model carries.
|
|
81
|
+
- `/autocompact <percent>` compacts on its own once the window is that full, in steps of 10 (`/autocompact 60`);
|
|
82
|
+
`100` is the default, which waits until 32k remain for the reply. `akan code --compact-at 60` (`-c`) starts
|
|
83
|
+
with it, and a share under the 20k every compaction keeps is refused.
|
|
81
84
|
|
|
82
85
|
## Model, effort, keys
|
|
83
86
|
|
|
@@ -119,6 +122,7 @@ akan code -i "<prompt>" open the session with the prompt already sent
|
|
|
119
122
|
--app <name> narrow the agent to one app
|
|
120
123
|
--profile local|pod|review|web what it may do (default local)
|
|
121
124
|
--model <provider>/<id> --thinking, --json, --rpc, --resume <id>
|
|
125
|
+
--compact-at <percent> compact once the window is this full (10, 20, … 100)
|
|
122
126
|
```
|
|
123
127
|
|
|
124
128
|
`review` reads and never writes, loads no project context files, and keeps no session on disk. `pod` has
|
|
@@ -19,14 +19,16 @@ For a model `comment` (`<Slice>` is a signal slice suffix, e.g. `InPublic`):
|
|
|
19
19
|
`add<Field>OnComment(value)` / `sub<Field>OnComment(idx)` for arrays, `upload<Field>OnComment(fileList)`
|
|
20
20
|
for file fields, `checkCommentSubmitable()`, `submitComment()`, `createCommentInForm()`,
|
|
21
21
|
`updateCommentInForm()`
|
|
22
|
-
- single: `viewComment(model)`, `mergeComment(model, data)`, `setComment(...models)`, `resetComment()
|
|
22
|
+
- single: `viewComment(model)`, `mergeComment(model, data)`, `setComment(...models)`, `resetComment()`,
|
|
23
|
+
`invalidateComment()` (marks every slice stale after a custom mutation, so the next mount refetches)
|
|
23
24
|
- per slice: `initComment<Slice>(...args)`, `refreshComment<Slice>()`, `selectComment<Slice>(model)`,
|
|
24
25
|
`setPageOfComment<Slice>(page)`, `loadMoreOfComment<Slice>()`, `setLimitOfComment<Slice>(limit)`,
|
|
25
26
|
`setQueryArgsOfComment<Slice>(...)`, `setSortOfComment<Slice>(sort)`
|
|
26
27
|
|
|
27
28
|
## Generated state — `st.use.*`
|
|
28
29
|
|
|
29
|
-
`comment`, `commentLoading`, `commentForm`, `commentFormLoading`, `
|
|
30
|
+
`comment`, `commentLoading`, `commentForm`, `commentFormLoading`, `commentFormUploading` (uploads in flight, per
|
|
31
|
+
`File` field — non-empty means do not submit), `commentSubmit`, `commentModal`,
|
|
30
32
|
`commentViewAt`, `commentOperation`; per slice `commentList<Slice>`, `commentListLoading<Slice>`,
|
|
31
33
|
`commentInitList<Slice>`, `commentSelection<Slice>`, `commentInsight<Slice>`, `pageOfComment<Slice>`,
|
|
32
34
|
`lastPageOfComment<Slice>`, `hasMoreOfComment<Slice>`, `limitOfComment<Slice>`, `sortOfComment<Slice>`.
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
runner,
|
|
6
6
|
script,
|
|
7
7
|
command
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-fbw3kmt5.js";
|
|
9
9
|
import {
|
|
10
10
|
FileSys2
|
|
11
11
|
} from "./index-52w0fvh8.js";
|
|
@@ -14,20 +14,20 @@ import {
|
|
|
14
14
|
Executor,
|
|
15
15
|
WorkspaceExecutor,
|
|
16
16
|
AppExecutor
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-n8dsax1f.js";
|
|
18
18
|
import {
|
|
19
19
|
GlobalConfig
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-yfy3t4kw.js";
|
|
21
21
|
import"./index-m9jj544v.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
22
|
+
import"./index-nr8m4j21.js";
|
|
23
|
+
import"./index-25ks6x4k.js";
|
|
24
|
+
import"./index-64pjry21.js";
|
|
24
25
|
import {
|
|
25
26
|
SubspaceConfig
|
|
26
27
|
} from "./index-4pf8g7ff.js";
|
|
27
28
|
import {
|
|
28
29
|
SlicePlanner
|
|
29
|
-
} from "./index-
|
|
30
|
-
import"./index-665zp9rs.js";
|
|
30
|
+
} from "./index-eabfsarf.js";
|
|
31
31
|
|
|
32
32
|
// pkgs/@akanjs/devkit/subspace.ts
|
|
33
33
|
import { mkdir as mkdir2 } from "fs/promises";
|
|
@@ -67,9 +67,6 @@ class SubspaceClone {
|
|
|
67
67
|
this.#clonePath = path.join(workspace.workspaceRoot, ".akan/subspace", declaration.name);
|
|
68
68
|
this.#clone = new Executor(`subspace-${declaration.name}`, this.#clonePath);
|
|
69
69
|
}
|
|
70
|
-
async#cloneGit(args) {
|
|
71
|
-
return await this.#workspace.spawn("git", ["-C", this.#clonePath, ...args]);
|
|
72
|
-
}
|
|
73
70
|
async#ensure(branch) {
|
|
74
71
|
if (!await FileSys2.dirExists(path.join(this.#clonePath, ".git"))) {
|
|
75
72
|
await rm(this.#clonePath, { recursive: true, force: true });
|
|
@@ -171,8 +168,6 @@ class SubspaceClone {
|
|
|
171
168
|
const from = path.join(this.#clonePath, entry);
|
|
172
169
|
if (!await FileSys2.entryExists(from))
|
|
173
170
|
continue;
|
|
174
|
-
if (await this.#isPushedCopy(entry))
|
|
175
|
-
continue;
|
|
176
171
|
await mkdir(holdRoot, { recursive: true });
|
|
177
172
|
await rename(from, path.join(holdRoot, entry));
|
|
178
173
|
held.push(entry);
|
|
@@ -188,10 +183,6 @@ class SubspaceClone {
|
|
|
188
183
|
await rename(path.join(holdRoot, entry), target);
|
|
189
184
|
}
|
|
190
185
|
}
|
|
191
|
-
async#isPushedCopy(entry) {
|
|
192
|
-
const subject = await this.#cloneGit(["log", "-1", "--format=%s", "--", entry]).catch(() => "");
|
|
193
|
-
return subject.trim().startsWith(SubspaceClone.syncSubjectPrefix);
|
|
194
|
-
}
|
|
195
186
|
static async#copyMissing(from, to) {
|
|
196
187
|
await mkdir(to, { recursive: true });
|
|
197
188
|
for (const entry of await readdir(from, { withFileTypes: true })) {
|
|
@@ -825,7 +816,7 @@ class SubspaceRunner extends runner("subspace") {
|
|
|
825
816
|
if (!asked)
|
|
826
817
|
return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
|
|
827
818
|
const { libs } = await subspace.slice();
|
|
828
|
-
const { CloudScript } = await import("./cloud.script-
|
|
819
|
+
const { CloudScript } = await import("./cloud.script-f0r4ce7j.js");
|
|
829
820
|
const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
|
|
830
821
|
host,
|
|
831
822
|
workspaceId,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AppInfo, LibInfo } from "akanjs";
|
|
2
|
+
|
|
3
|
+
interface Dict {
|
|
4
|
+
migrationId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
}
|
|
7
|
+
export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict) {
|
|
8
|
+
return `import { migration } from "akanjs/server";
|
|
9
|
+
|
|
10
|
+
export default migration(${JSON.stringify(dict.title)})
|
|
11
|
+
.plan(async ({ table }) => {
|
|
12
|
+
// TODO: count the rows apply changes, and list each decision a person approves
|
|
13
|
+
return { summary: {}, items: [] };
|
|
14
|
+
})
|
|
15
|
+
.apply(async ({ table }, { items }) => {
|
|
16
|
+
// TODO: write through table(refName), so every change is logged and a rollback can undo it
|
|
17
|
+
})
|
|
18
|
+
.verify(async ({ table }) => {
|
|
19
|
+
// TODO: one line per row apply left wrong; none means the data is as intended
|
|
20
|
+
return [];
|
|
21
|
+
});
|
|
22
|
+
`;
|
|
23
|
+
}
|
package/templates/server.ts
CHANGED
|
@@ -6,7 +6,7 @@ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: { [
|
|
|
6
6
|
const databaseModules = [...scanInfo.database.entries()].filter(([_, files]) => files.has("service"));
|
|
7
7
|
const serviceModules = [...scanInfo.service.entries()].filter(([_, files]) => files.has("service"));
|
|
8
8
|
const scalarModules = [...scanInfo.scalar.entries()];
|
|
9
|
-
return `import { ${scanInfo.type === "app" ? "AkanServer, " : ""}AkanLib } from "akanjs/server";
|
|
9
|
+
return `import { ${scanInfo.type === "app" ? "AkanServer, " : ""}AkanLib${scanInfo.type === "app" ? ", Migrations" : ""} } from "akanjs/server";
|
|
10
10
|
import * as cnst from "./lib/cnst";
|
|
11
11
|
import * as db from "./lib/db";
|
|
12
12
|
import * as sig from "./lib/sig";
|
|
@@ -29,6 +29,13 @@ ${scalarModules.map(([model]) => ` { constant: cnst.${model}, database: db.${
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
${scanInfo.type === "app" ? `export const server = new AkanServer("${scanInfo.name}", env, undefined${libs.length ? `, ${libs.join(", ")}` : ""}, lib);` : ""}
|
|
32
|
+
${
|
|
33
|
+
scanInfo.type === "app"
|
|
34
|
+
? `export const migrations = new Migrations([
|
|
35
|
+
${scanInfo.migrations.map(({ id, checksum }) => ` { id: "${id}", checksum: "${checksum}", load: () => import("./script/migration/${id}") },`).join("\n")}
|
|
36
|
+
]);`
|
|
37
|
+
: ""
|
|
38
|
+
}
|
|
32
39
|
|
|
33
40
|
${scanInfo.type === "lib" ? `export { env } from "./env/env.server.testing";` : ""}
|
|
34
41
|
export * as db from "./lib/db";
|
|
@@ -4,25 +4,25 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-fbw3kmt5.js";
|
|
8
8
|
import"./index-52w0fvh8.js";
|
|
9
9
|
import {
|
|
10
10
|
AppExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-n8dsax1f.js";
|
|
12
12
|
import {
|
|
13
13
|
GlobalConfig,
|
|
14
14
|
CloudApi
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-yfy3t4kw.js";
|
|
16
16
|
import"./index-m9jj544v.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
17
|
+
import"./index-nr8m4j21.js";
|
|
18
|
+
import"./index-25ks6x4k.js";
|
|
19
|
+
import"./index-64pjry21.js";
|
|
19
20
|
import {
|
|
20
21
|
TunnelShare2
|
|
21
|
-
} from "./index-
|
|
22
|
+
} from "./index-3aynkpf8.js";
|
|
22
23
|
import {
|
|
23
24
|
writeClipboard
|
|
24
25
|
} from "./index-p6pbz9n5.js";
|
|
25
|
-
import"./index-665zp9rs.js";
|
|
26
26
|
|
|
27
27
|
// pkgs/@akanjs/cli/tunnel/tunnel.script.ts
|
|
28
28
|
import { select } from "@inquirer/prompts";
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-fbw3kmt5.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-n8dsax1f.js";
|
|
9
9
|
import"./index-hj6w4ka1.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
10
|
+
import"./index-yyxy7aff.js";
|
|
11
|
+
import"./index-aqwdjn4x.js";
|
|
12
|
+
import"./index-qh73jnyb.js";
|
|
13
|
+
import"./index-j4dzazmw.js";
|
|
14
|
+
import"./index-hqh4mpgt.js";
|
|
15
|
+
import"./index-0dd6z4b9.js";
|
|
16
|
+
import"./index-f2gfq0yh.js";
|
|
17
17
|
import {
|
|
18
18
|
WorkflowRunner
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-dkfadmrx.js";
|
|
20
20
|
|
|
21
21
|
// pkgs/@akanjs/cli/workflow/workflow.script.ts
|
|
22
22
|
import { Logger } from "akanjs/common";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
runner,
|
|
6
6
|
script,
|
|
7
7
|
command
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-fbw3kmt5.js";
|
|
9
9
|
import {
|
|
10
10
|
FileSys2
|
|
11
11
|
} from "./index-52w0fvh8.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
AppExecutor,
|
|
20
20
|
LibExecutor,
|
|
21
21
|
PkgExecutor
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-n8dsax1f.js";
|
|
23
23
|
import {
|
|
24
24
|
countBlocking,
|
|
25
25
|
formatStyleContract,
|
|
@@ -29,55 +29,55 @@ import {
|
|
|
29
29
|
collectRecipeSources2,
|
|
30
30
|
scanRecipes2
|
|
31
31
|
} from "./index-hj6w4ka1.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
import"./index-yyxy7aff.js";
|
|
33
|
+
import"./index-aqwdjn4x.js";
|
|
34
34
|
import"./index-zzvvc845.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentScript
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-wt7m1hfc.js";
|
|
38
38
|
import"./index-5nd1wtkv.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-3hvmytbs.js";
|
|
40
40
|
import"./index-m9jj544v.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
41
|
+
import"./index-nr8m4j21.js";
|
|
42
|
+
import"./index-25ks6x4k.js";
|
|
43
|
+
import"./index-64pjry21.js";
|
|
43
44
|
import {
|
|
44
45
|
LibraryScript
|
|
45
|
-
} from "./index-
|
|
46
|
+
} from "./index-er62k6w3.js";
|
|
46
47
|
import {
|
|
47
48
|
ApplicationScript
|
|
48
|
-
} from "./index-
|
|
49
|
+
} from "./index-z5cxrbvv.js";
|
|
49
50
|
import"./index-7md2g9vw.js";
|
|
50
|
-
import"./index-
|
|
51
|
+
import"./index-yfy3t4kw.js";
|
|
51
52
|
import"./index-tvehn2sp.js";
|
|
52
53
|
import {
|
|
53
54
|
PackageScript
|
|
54
|
-
} from "./index-
|
|
55
|
+
} from "./index-1enc9rga.js";
|
|
55
56
|
import {
|
|
56
57
|
getNpmRegistryUrl,
|
|
57
58
|
getLatestPackageVersion
|
|
58
|
-
} from "./index-
|
|
59
|
+
} from "./index-48n4yhm4.js";
|
|
59
60
|
import {
|
|
60
61
|
CloudScript2
|
|
61
|
-
} from "./index-
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-
|
|
64
|
-
import"./index-
|
|
65
|
-
import"./index-
|
|
66
|
-
import"./index-
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-
|
|
62
|
+
} from "./index-1de5f0qq.js";
|
|
63
|
+
import"./index-cgexcnwd.js";
|
|
64
|
+
import"./index-0dd6z4b9.js";
|
|
65
|
+
import"./index-qh73jnyb.js";
|
|
66
|
+
import"./index-j4dzazmw.js";
|
|
67
|
+
import"./index-hqh4mpgt.js";
|
|
68
|
+
import"./index-f2gfq0yh.js";
|
|
69
|
+
import"./index-dkfadmrx.js";
|
|
69
70
|
import {
|
|
70
71
|
ContextScript
|
|
71
|
-
} from "./index-
|
|
72
|
-
import"./index-
|
|
73
|
-
import"./index-665zp9rs.js";
|
|
72
|
+
} from "./index-fnqj2d2w.js";
|
|
73
|
+
import"./index-eabfsarf.js";
|
|
74
74
|
|
|
75
75
|
// pkgs/@akanjs/cli/workspace/workspace.runner.ts
|
|
76
76
|
import { mkdir, writeFile } from "fs/promises";
|
|
77
77
|
import path from "path";
|
|
78
78
|
|
|
79
79
|
// pkgs/@akanjs/devkit/biomeBase.ts
|
|
80
|
-
var biomeVersion = "2.5.
|
|
80
|
+
var biomeVersion = "2.5.14";
|
|
81
81
|
|
|
82
82
|
// pkgs/@akanjs/cli/workspace/workspace.runner.ts
|
|
83
83
|
import { Ed25519Key } from "akanjs/server/ed25519Key";
|
|
@@ -96,6 +96,7 @@ var defaultWorkspacePeerDependencies = new Set([
|
|
|
96
96
|
"tailwindcss",
|
|
97
97
|
"typescript"
|
|
98
98
|
]);
|
|
99
|
+
var defaultWorkspaceTypeDependencies = { "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0" };
|
|
99
100
|
var defaultMaxDiagnostics = 200;
|
|
100
101
|
|
|
101
102
|
class WorkspaceRunner extends runner("workspace") {
|
|
@@ -163,6 +164,7 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
163
164
|
...rootPackageJson.devDependencies,
|
|
164
165
|
"@biomejs/biome": biomeVersion,
|
|
165
166
|
"@types/bun": latestTypesBunVersion,
|
|
167
|
+
...defaultWorkspaceTypeDependencies,
|
|
166
168
|
"@akanjs/devkit": akanVersion,
|
|
167
169
|
...typescript ? { typescript } : {}
|
|
168
170
|
}
|
|
@@ -256,7 +258,7 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
256
258
|
const actual = existing ? extractAgentBlock(existing) : null;
|
|
257
259
|
if (actual === expected.trim())
|
|
258
260
|
return;
|
|
259
|
-
throw new Error(`[agentsIndex] ${scope.type}s/${scope.name}/AGENTS.md
|
|
261
|
+
throw new Error(`[agentsIndex] The recipe index in ${scope.type}s/${scope.name}/AGENTS.md is stale: it differs from the recipe ` + `sources. Run \`akan sync ${scope.name}\` to regenerate it.`);
|
|
260
262
|
}
|
|
261
263
|
async#enforceRecipeGate(exec) {
|
|
262
264
|
const cwdPath = exec.cwdPath;
|
|
@@ -272,8 +274,8 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
272
274
|
const offenders = scanRecipes2(sources).filter((recipe) => !Object.values(recipe.variants).some((values) => values.length >= 2 || values.length === 1 && values[0] === "true"));
|
|
273
275
|
if (offenders.length === 0)
|
|
274
276
|
return;
|
|
275
|
-
throw new Error(`[recipeGate] variant-less recipe(s): ${offenders.map((recipe) => recipe.name).join(", ")}
|
|
276
|
-
` + "
|
|
277
|
+
throw new Error(`[recipeGate] variant-less recipe(s): ${[...new Set(offenders.map((recipe) => recipe.name))].join(", ")}
|
|
278
|
+
` + "A look with nothing to pick is not a recipe: promote one that has its own markup to a component, and keep " + "a skin passed into another component's className as a shared class constant.");
|
|
277
279
|
}
|
|
278
280
|
async#enforceStyleContract(exec) {
|
|
279
281
|
const cwdPath = exec.cwdPath;
|
package/TunnelShare-661cxz5e.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
TunnelShare2
|
|
4
|
-
} from "./index-qwa5k1j8.js";
|
|
5
|
-
import"./index-cpb3nvma.js";
|
|
6
|
-
import"./index-g1mbppa9.js";
|
|
7
|
-
import"./index-m9jj544v.js";
|
|
8
|
-
import"./index-665zp9rs.js";
|
|
9
|
-
import"./index-192ha4xh.js";
|
|
10
|
-
import"./index-va06nr10.js";
|
|
11
|
-
import"./index-52w0fvh8.js";
|
|
12
|
-
export {
|
|
13
|
-
TunnelShare2 as TunnelShare
|
|
14
|
-
};
|
package/cloud.script-r4nskbc6.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
CloudScript2
|
|
4
|
-
} from "./index-h47cf1gg.js";
|
|
5
|
-
import"./index-fyq1z6kt.js";
|
|
6
|
-
import"./index-d47ypebv.js";
|
|
7
|
-
import"./index-35hc95h5.js";
|
|
8
|
-
import"./index-pydbnfez.js";
|
|
9
|
-
import"./index-6xn2n442.js";
|
|
10
|
-
import"./index-vk0pa0mn.js";
|
|
11
|
-
import"./index-cpb3nvma.js";
|
|
12
|
-
import"./index-g1mbppa9.js";
|
|
13
|
-
import"./index-m9jj544v.js";
|
|
14
|
-
import"./index-jw1zm273.js";
|
|
15
|
-
import"./index-7md2g9vw.js";
|
|
16
|
-
import"./index-665zp9rs.js";
|
|
17
|
-
import"./index-5nd1wtkv.js";
|
|
18
|
-
import"./index-192ha4xh.js";
|
|
19
|
-
import"./index-va06nr10.js";
|
|
20
|
-
import"./index-tvehn2sp.js";
|
|
21
|
-
import"./index-52w0fvh8.js";
|
|
22
|
-
export {
|
|
23
|
-
CloudScript2 as CloudScript
|
|
24
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
ContextRunner2
|
|
4
|
-
} from "./index-d72hfmdm.js";
|
|
5
|
-
import"./index-1xj2t7cb.js";
|
|
6
|
-
import"./index-1p98exm2.js";
|
|
7
|
-
import"./index-awbdfcf2.js";
|
|
8
|
-
import"./index-j4mkhz93.js";
|
|
9
|
-
import"./index-fmzcs8v6.js";
|
|
10
|
-
import"./index-86jt2a0e.js";
|
|
11
|
-
import"./index-vk0pa0mn.js";
|
|
12
|
-
import"./index-g1mbppa9.js";
|
|
13
|
-
import"./index-m9jj544v.js";
|
|
14
|
-
import"./index-5edzv8fn.js";
|
|
15
|
-
import"./index-trpasv9q.js";
|
|
16
|
-
import"./index-zzvvc845.js";
|
|
17
|
-
import"./index-jw1zm273.js";
|
|
18
|
-
import"./index-665zp9rs.js";
|
|
19
|
-
import"./index-192ha4xh.js";
|
|
20
|
-
import"./index-va06nr10.js";
|
|
21
|
-
import"./index-hj6w4ka1.js";
|
|
22
|
-
import"./index-52w0fvh8.js";
|
|
23
|
-
export {
|
|
24
|
-
ContextRunner2 as ContextRunner
|
|
25
|
-
};
|