@akanjs/cli 3.0.0-beta.22 → 3.0.0-beta.23
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/{application.command-mm5v2gzp.js → application.command-b6rck8d6.js} +1 -1
- package/{applicationBuildRunner-38exmejd.js → applicationBuildRunner-vh74vrhg.js} +1 -1
- package/buildBatch.proc.js +1 -1
- package/{cloud.command-f1pnvp2a.js → cloud.command-gwdypy7k.js} +2 -2
- package/{cloud.script-d61mcf0q.js → cloud.script-at2beffs.js} +2 -2
- package/guidelines/queryRule/queryRule.instruction.md +4 -0
- package/{index-aadpbnt2.js → index-776sswhv.js} +4 -1
- package/{index-m79y8b2h.js → index-jg5e15db.js} +1 -1
- package/{index-sz0myv9k.js → index-jn07hxrr.js} +1 -1
- package/index.js +5 -5
- package/{localRegistry.command-pgbr7vjj.js → localRegistry.command-cxvgn7fr.js} +1 -1
- package/package.json +2 -2
- package/{subspace.command-g2tq9nrn.js → subspace.command-0cep72ce.js} +1 -1
- package/{workspace.command-s82wd61q.js → workspace.command-axwscbnn.js} +2 -2
package/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6c23abacd61473a71e06be68f20bc1c445facb2e3b329397668341f7273c928c
|
package/buildBatch.proc.js
CHANGED
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
} from "./index-yjkte9aj.js";
|
|
14
14
|
import"./index-khpfpcsd.js";
|
|
15
15
|
import"./index-1db2cw0y.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-jg5e15db.js";
|
|
17
17
|
import"./index-ys6f0bvh.js";
|
|
18
18
|
import"./index-7md2g9vw.js";
|
|
19
19
|
import"./index-3t7g9e4r.js";
|
|
20
20
|
import"./index-mgfx3mfs.js";
|
|
21
21
|
import {
|
|
22
22
|
CloudScript2
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-jn07hxrr.js";
|
|
24
24
|
import"./index-q44jbw48.js";
|
|
25
25
|
|
|
26
26
|
// pkgs/@akanjs/cli/cloud/cloud.command.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
CloudScript2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-jn07hxrr.js";
|
|
5
5
|
import"./index-yjkte9aj.js";
|
|
6
6
|
import"./index-mgfx3mfs.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-jg5e15db.js";
|
|
8
8
|
import"./index-q44jbw48.js";
|
|
9
9
|
import"./index-1db2cw0y.js";
|
|
10
10
|
import"./index-ys6f0bvh.js";
|
|
@@ -31,6 +31,10 @@ with it. `conventions` carries the invariants — this is the full contract behi
|
|
|
31
31
|
A model with none renders ids and says so in the picker.
|
|
32
32
|
- A slice's `exec` returns a `QueryOf` (an opaque query descriptor, `pkgs/akanjs/constant/types.ts`); you **cannot** chain `.sort()`/`.limit()` on it.
|
|
33
33
|
- Apply ordering/paging via the store `init` fetch option instead: `initX(..., { sort, page, limit })` (`pkgs/akanjs/fetch/fetchType/sliceFetch.type.ts`).
|
|
34
|
+
- **Every sort ends with `id`, in the direction of its last key, and a missing value sorts below every other** —
|
|
35
|
+
first ascending, last descending, in every database mode and in the client placing a live row. Rows the declared
|
|
36
|
+
keys tie on (a midpoint priority dragged into one gap until the float runs out, two rows saved in one millisecond)
|
|
37
|
+
therefore keep one order across `loadMoreOf<Model>()` pages and live insertions.
|
|
34
38
|
- **A slice list is either one window or an accumulated one, and the store says which.** `setPageOf<Model>` swaps
|
|
35
39
|
the window and `pageOf<Model>` names it; `loadMoreOf<Model>()` appends the rows *after* the ones already loaded
|
|
36
40
|
and takes no page number, because in an accumulated list no page number names anything. It skips by
|
|
@@ -1976,6 +1976,9 @@ class SsrBaseArtifactBuilder {
|
|
|
1976
1976
|
this.#artifactDir = `${command === "build" ? app.dist.cwdPath : app.cwdPath}/.akan/artifact`;
|
|
1977
1977
|
this.#absArtifactDir = path12.resolve(this.#artifactDir);
|
|
1978
1978
|
}
|
|
1979
|
+
static servedWeb(command, web) {
|
|
1980
|
+
return command === "start" ? { ssr: true, csr: true } : web;
|
|
1981
|
+
}
|
|
1979
1982
|
async build() {
|
|
1980
1983
|
const akanConfig = await this.#app.getConfig();
|
|
1981
1984
|
const { rscClientUrl, rscRuntimeClientManifest, rscRuntimeSsrManifest, vendorMap } = await this.#buildRuntimeClientEntries();
|
|
@@ -2004,7 +2007,7 @@ class SsrBaseArtifactBuilder {
|
|
|
2004
2007
|
branches: [...akanConfig.branches],
|
|
2005
2008
|
i18n: akanConfig.i18n,
|
|
2006
2009
|
imageConfig: akanConfig.images,
|
|
2007
|
-
web: akanConfig.web,
|
|
2010
|
+
web: SsrBaseArtifactBuilder.servedWeb(this.#command, akanConfig.web),
|
|
2008
2011
|
deepLinkAssociations: Object.values(akanConfig.mobile.targets).filter((target) => (target.deepLinks?.domains?.length ?? 0) > 0).map((target) => ({
|
|
2009
2012
|
targetName: target.name,
|
|
2010
2013
|
appId: target.appId,
|
|
@@ -1696,7 +1696,7 @@ ${uniqueCandidates.map((candidate) => ` - ${candidate}`).join(`
|
|
|
1696
1696
|
|
|
1697
1697
|
// pkgs/@akanjs/cli/application/application.runner.ts
|
|
1698
1698
|
import { Logger as Logger3 } from "akanjs/common";
|
|
1699
|
-
var loadBuildRunner = async () => (await import("./applicationBuildRunner-
|
|
1699
|
+
var loadBuildRunner = async () => (await import("./applicationBuildRunner-vh74vrhg.js")).ApplicationBuildRunner;
|
|
1700
1700
|
var loadPrompts = async () => await import("@inquirer/prompts");
|
|
1701
1701
|
|
|
1702
1702
|
class ApplicationRunner extends runner("application") {
|
package/index.js
CHANGED
|
@@ -13,18 +13,18 @@ import path from "path";
|
|
|
13
13
|
|
|
14
14
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
15
15
|
var commandModules = {
|
|
16
|
-
workspace: async () => (await import("./workspace.command-
|
|
16
|
+
workspace: async () => (await import("./workspace.command-axwscbnn.js")).WorkspaceCommand,
|
|
17
17
|
agent: async () => (await import("./agent.command-ttn09rx3.js")).AgentCommand,
|
|
18
18
|
code: async () => (await import("./code.command-1jgk14tc.js")).CodeCommand,
|
|
19
|
-
application: async () => (await import("./application.command-
|
|
19
|
+
application: async () => (await import("./application.command-b6rck8d6.js")).ApplicationCommand,
|
|
20
20
|
library: async () => (await import("./library.command-ccb1cp92.js")).LibraryCommand,
|
|
21
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
21
|
+
localRegistry: async () => (await import("./localRegistry.command-cxvgn7fr.js")).LocalRegistryCommand,
|
|
22
22
|
package: async () => (await import("./package.command-e6ntvpez.js")).PackageCommand,
|
|
23
23
|
module: async () => (await import("./module.command-5k6h407d.js")).ModuleCommand,
|
|
24
24
|
page: async () => (await import("./page.command-v4f90wb8.js")).PageCommand,
|
|
25
25
|
context: async () => (await import("./context.command-4vpjmg22.js")).ContextCommand,
|
|
26
|
-
cloud: async () => (await import("./cloud.command-
|
|
27
|
-
subspace: async () => (await import("./subspace.command-
|
|
26
|
+
cloud: async () => (await import("./cloud.command-gwdypy7k.js")).CloudCommand,
|
|
27
|
+
subspace: async () => (await import("./subspace.command-0cep72ce.js")).SubspaceCommand,
|
|
28
28
|
guideline: async () => (await import("./guideline.command-7jk47fgq.js")).GuidelineCommand,
|
|
29
29
|
scalar: async () => (await import("./scalar.command-7ezrac2b.js")).ScalarCommand,
|
|
30
30
|
primitive: async () => (await import("./primitive.command-g6km57q5.js")).PrimitiveCommand,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.23",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@earendil-works/pi-tui": "0.86.1",
|
|
40
40
|
"@inquirer/prompts": "^8.4.3",
|
|
41
41
|
"@tailwindcss/node": "^4.3.0",
|
|
42
|
-
"akanjs": "3.0.0-beta.
|
|
42
|
+
"akanjs": "3.0.0-beta.23",
|
|
43
43
|
"chalk": "^5.6.2",
|
|
44
44
|
"commander": "^14.0.3",
|
|
45
45
|
"dayjs": "^1.11.20",
|
|
@@ -716,7 +716,7 @@ class SubspaceRunner extends runner("subspace") {
|
|
|
716
716
|
if (!asked)
|
|
717
717
|
return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
|
|
718
718
|
const { libs } = await subspace.slice();
|
|
719
|
-
const { CloudScript } = await import("./cloud.script-
|
|
719
|
+
const { CloudScript } = await import("./cloud.script-at2beffs.js");
|
|
720
720
|
const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
|
|
721
721
|
host,
|
|
722
722
|
workspaceId,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "./index-1db2cw0y.js";
|
|
45
45
|
import {
|
|
46
46
|
ApplicationScript
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-jg5e15db.js";
|
|
48
48
|
import"./index-ys6f0bvh.js";
|
|
49
49
|
import"./index-7md2g9vw.js";
|
|
50
50
|
import"./index-3t7g9e4r.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
} from "./index-yjkte9aj.js";
|
|
58
58
|
import {
|
|
59
59
|
CloudScript2
|
|
60
|
-
} from "./index-
|
|
60
|
+
} from "./index-jn07hxrr.js";
|
|
61
61
|
import"./index-vj1cwwy5.js";
|
|
62
62
|
import"./index-ya5qbmyg.js";
|
|
63
63
|
import"./index-rnt66vym.js";
|