@akanjs/cli 3.0.0-alpha.6 → 3.0.0-alpha.60
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/README.ko.md +1 -1
- package/README.md +1 -1
- package/{abstractCompactor-e5yq60qz.js → abstractCompactor-20e0cwbs.js} +2 -2
- package/{agent.command-b0fcx3r2.js → agent.command-tsx1nsdj.js} +9 -7
- package/{application.command-cezdnvtq.js → application.command-n8ex8g9h.js} +8 -6
- package/{applicationBuildRunner-ha3y8ew8.js → applicationBuildRunner-x8h12rp0.js} +7 -7
- package/{applicationReleasePackager-gg8ccbeh.js → applicationReleasePackager-93nzdfsy.js} +1 -1
- package/buildBatch.proc.js +7 -5
- package/{capacitorApp-jaksw4cy.js → capacitorApp-8mv9e537.js} +29 -27
- package/{cloud.command-6xvsd487.js → cloud.command-f0rhw014.js} +12 -10
- package/{context.command-ajn1b683.js → context.command-s7a41qjs.js} +17 -15
- package/{dependencyScanner-f6grrep3.js → dependencyScanner-rbs2407b.js} +1 -1
- package/getDirname-ka11hm7e.js +8 -0
- package/{guideline.command-9ew6aqhm.js → guideline.command-qrw84ttb.js} +8 -6
- package/guidelines/agentRule/agentRule.generate.json +31 -0
- package/guidelines/agentRule/agentRule.instruction.md +525 -0
- package/guidelines/conventions/conventions.generate.json +25 -0
- package/guidelines/conventions/conventions.instruction.md +811 -0
- package/guidelines/cssRule/cssRule.instruction.md +7 -0
- package/guidelines/framework/framework.instruction.md +1 -0
- package/guidelines/mcpRule/mcpRule.generate.json +25 -0
- package/guidelines/mcpRule/mcpRule.instruction.md +176 -0
- package/guidelines/workspaceOnboarding/workspaceOnboarding.generate.json +24 -0
- package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +638 -0
- package/incrementalBuilder.proc.js +8 -6
- package/{index-zr2wvx69.js → index-0g9ajdz8.js} +6 -6
- package/index-1577bej2.js +7 -0
- package/{index-wrrb8rxk.js → index-4mtyaqj2.js} +4 -4
- package/{index-bjpxzr6s.js → index-5vy2jzar.js} +1 -1
- package/{index-47qxw1tz.js → index-681sx6nt.js} +176 -66
- package/{index-zbx0jheb.js → index-8md8zszv.js} +14 -13
- package/{index-pfrt7qwh.js → index-cc1mgv1f.js} +4 -4
- package/{index-hk9rbcsz.js → index-ce9755av.js} +1 -1
- package/{index-jkynkyfk.js → index-ckpwq052.js} +5 -3
- package/{index-c94nq3c1.js → index-dvg362vq.js} +3 -3
- package/{index-vkqxw0ek.js → index-ek4mkwxp.js} +13 -13
- package/{index-exhpp31y.js → index-f0t3wjyr.js} +15 -7
- package/index-f39512t6.js +255 -0
- package/{index-m4kpmmtj.js → index-g44fykfw.js} +1 -1
- package/{index-nfxq39kj.js → index-h0mnt0b0.js} +37 -6
- package/{index-qp089jp0.js → index-j37qq1f2.js} +1 -1
- package/{index-hrwzz2wf.js → index-kkya2ped.js} +1 -1
- package/{index-j9cxndc0.js → index-qnv0aqmm.js} +9 -6
- package/{index-r7nqv8qj.js → index-r8z20vnj.js} +14 -14
- package/{index-6npsfpxr.js → index-ryns915y.js} +3 -3
- package/{index-0cj2zxbm.js → index-sh01r3pm.js} +1 -1
- package/{index-60a3jfcz.js → index-tn46rr6w.js} +8 -8
- package/{index-jn9vfpwz.js → index-wc19q8mb.js} +54 -15
- package/{index-meh7mmz9.js → index-x1dbhd80.js} +8 -4
- package/{index-qb61h0k7.js → index-xj5b8c0w.js} +193 -565
- package/index.js +21 -19
- package/{library.command-aa1g8nsa.js → library.command-p3jgf5h2.js} +6 -4
- package/{localRegistry.command-jha3sn50.js → localRegistry.command-bms0qn6t.js} +11 -9
- package/{module.command-b1zzgqde.js → module.command-hb3xm07r.js} +10 -8
- package/{package.command-9qv6vr9s.js → package.command-fbpa6r4w.js} +6 -4
- package/package.json +3 -4
- package/{page.command-k16pw244.js → page.command-92vrmw96.js} +6 -4
- package/{primitive.command-s60dn1ae.js → primitive.command-k6b9jfxr.js} +11 -9
- package/{quality.command-p3vaze52.js → quality.command-89vwmjvf.js} +194 -112
- package/{recipeScanner-tghkzrrt.js → recipeScanner-zrzev25x.js} +3 -3
- package/{repair.command-mfv749ha.js → repair.command-nh9jn8rh.js} +8 -6
- package/{routeSourceValidator-cncd92fv.js → routeSourceValidator-7fycdqyv.js} +3 -39
- package/{scalar.command-hs3nwzv1.js → scalar.command-zcsjgvax.js} +9 -7
- package/templates/app/env/env.server.debug.ts.template +1 -5
- package/templates/app/env/env.server.develop.ts.template +1 -5
- package/templates/app/env/env.server.local.ts.template +1 -5
- package/templates/app/env/env.server.main.ts.template +1 -5
- package/templates/app/page/styles.css.template +3 -3
- package/templates/appSample/srvkit/AuthGuard.ts +9 -5
- package/templates/appSample/srvkit/SessionInternalArg.ts +4 -3
- package/templates/crudPages/[__model__Id]/edit/page.tsx +1 -1
- package/templates/crudPages/new/page.tsx +1 -1
- package/templates/crudSinglePage/page.tsx +1 -1
- package/templates/env/_env.server.type.ts +7 -5
- package/templates/lib/db.ts +1 -1
- package/templates/lib/dict.ts +1 -1
- package/templates/lib/sig.ts +1 -1
- package/templates/lib/srv.ts +6 -2
- package/templates/module/__Model__.Util.tsx +1 -1
- package/templates/module/__Model__.Zone.tsx +3 -5
- package/templates/workspaceRoot/AGENTS.md.template +0 -971
- package/templates/workspaceRoot/CLAUDE.md.template +19 -0
- package/templates/workspaceRoot/biome.json.template +4 -239
- package/templates/workspaceRoot/docs/AI-DEVELOPMENT.md.template +10 -14
- package/templates/workspaceRoot/docs/GENERATED.md.template +12 -10
- package/{typeChecker-kravn7ns.js → typeChecker-g6bh0xfv.js} +1 -1
- package/typecheck.proc.js +1 -1
- package/{workflow.command-z0e0fk0z.js → workflow.command-jj0cphfm.js} +16 -14
- package/{workspace.command-3ydyy991.js → workspace.command-ma3g994j.js} +71 -52
- package/templates/workspaceRoot/.cursor/rules/akan-page-routing.mdc.template +0 -43
- package/templates/workspaceRoot/.cursor/rules/akan-sync-conventions.mdc.template +0 -34
- package/templates/workspaceRoot/.cursor/rules/application-test-commands.mdc.template +0 -16
- package/templates/workspaceRoot/.cursor/rules/change-scope.mdc.template +0 -12
- package/templates/workspaceRoot/.cursor/rules/client-server-boundaries.mdc.template +0 -18
- package/templates/workspaceRoot/.cursor/rules/coding-comments.mdc.template +0 -25
- package/templates/workspaceRoot/.cursor/rules/coding-style.mdc.template +0 -44
- package/templates/workspaceRoot/.cursor/rules/domain-module-conventions.mdc.template +0 -17
- package/templates/workspaceRoot/.cursor/rules/format-lint.mdc.template +0 -12
- package/templates/workspaceRoot/.cursor/rules/lint-enforced-rules.mdc.template +0 -18
- package/templates/workspaceRoot/.cursor/rules/module-file-playbook.mdc.template +0 -61
- package/templates/workspaceRoot/.cursor/rules/naming-conventions.mdc.template +0 -15
- package/templates/workspaceRoot/.cursor/rules/react-component-style.mdc.template +0 -21
- package/templates/workspaceRoot/.cursor/rules/repo-overview.mdc.template +0 -17
- package/templates/workspaceRoot/.cursor/rules/scalar-modeling.mdc.template +0 -58
- package/templates/workspaceRoot/.cursor/rules/secrets-and-env.mdc.template +0 -13
- package/templates/workspaceRoot/.cursor/rules/service-signal-conventions.mdc.template +0 -83
- package/templates/workspaceRoot/.cursor/rules/srvkit-adapters-and-guards.mdc.template +0 -50
- package/templates/workspaceRoot/.cursor/rules/ssr-first.mdc.template +0 -59
- package/templates/workspaceRoot/.cursor/rules/typescript-imports.mdc.template +0 -16
- /package/{index-r24hmh0q.js → index-yb2wsc7f.js} +0 -0
package/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e8e9e8a86daef5bad8df77bd9043d3141520c12a7df48126081356d7c91cbf64
|
package/README.ko.md
CHANGED
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AiSession
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-sh01r3pm.js";
|
|
5
5
|
import {
|
|
6
6
|
AbstractDoc
|
|
7
7
|
} from "./index-0wae5ebk.js";
|
|
8
8
|
import"./index-mxvakhsm.js";
|
|
9
9
|
import"./index-67546d0j.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-yb2wsc7f.js";
|
|
11
11
|
|
|
12
12
|
// pkgs/@akanjs/devkit/abstractCompactor.ts
|
|
13
13
|
import { Logger } from "akanjs/common";
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AgentScript
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
4
|
+
} from "./index-h0mnt0b0.js";
|
|
5
|
+
import"./index-wc19q8mb.js";
|
|
6
|
+
import"./index-g44fykfw.js";
|
|
7
|
+
import"./index-j37qq1f2.js";
|
|
8
8
|
import {
|
|
9
9
|
Workspace,
|
|
10
10
|
command
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-ckpwq052.js";
|
|
12
|
+
import"./index-681sx6nt.js";
|
|
13
|
+
import"./index-f39512t6.js";
|
|
13
14
|
import"./index-mxvakhsm.js";
|
|
14
15
|
import"./index-xys926f2.js";
|
|
16
|
+
import"./index-1577bej2.js";
|
|
15
17
|
import"./index-67546d0j.js";
|
|
16
|
-
import"./index-
|
|
18
|
+
import"./index-yb2wsc7f.js";
|
|
17
19
|
|
|
18
20
|
// pkgs/@akanjs/cli/agent/agent.command.ts
|
|
19
21
|
class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
|
|
@@ -4,24 +4,26 @@ import {
|
|
|
4
4
|
} from "./index-0wae5ebk.js";
|
|
5
5
|
import {
|
|
6
6
|
ApplicationScript
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-r8z20vnj.js";
|
|
8
|
+
import"./index-f0t3wjyr.js";
|
|
8
9
|
import {
|
|
9
10
|
getMobileTargetChoices
|
|
10
11
|
} from "./index-76rn3g2c.js";
|
|
11
|
-
import"./index-exhpp31y.js";
|
|
12
12
|
import {
|
|
13
13
|
App,
|
|
14
14
|
Exec,
|
|
15
15
|
Sys,
|
|
16
16
|
Workspace,
|
|
17
17
|
command
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-ckpwq052.js";
|
|
19
19
|
import"./index-fgc8r6dj.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
20
|
+
import"./index-5vy2jzar.js";
|
|
21
|
+
import"./index-681sx6nt.js";
|
|
22
|
+
import"./index-f39512t6.js";
|
|
22
23
|
import"./index-mxvakhsm.js";
|
|
24
|
+
import"./index-1577bej2.js";
|
|
23
25
|
import"./index-67546d0j.js";
|
|
24
|
-
import"./index-
|
|
26
|
+
import"./index-yb2wsc7f.js";
|
|
25
27
|
|
|
26
28
|
// pkgs/@akanjs/cli/application/application.command.ts
|
|
27
29
|
import { select } from "@inquirer/prompts";
|
|
@@ -4,14 +4,15 @@ import {
|
|
|
4
4
|
CsrArtifactBuilder,
|
|
5
5
|
SsrBaseArtifactBuilder,
|
|
6
6
|
precompressArtifacts
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-xj5b8c0w.js";
|
|
8
8
|
import"./index-xjd3rqzj.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
import"./index-qnv0aqmm.js";
|
|
10
|
+
import"./index-5vy2jzar.js";
|
|
11
|
+
import"./index-f39512t6.js";
|
|
11
12
|
import {
|
|
12
13
|
Spinner
|
|
13
14
|
} from "./index-mxvakhsm.js";
|
|
14
|
-
import"./index-
|
|
15
|
+
import"./index-yb2wsc7f.js";
|
|
15
16
|
|
|
16
17
|
// pkgs/@akanjs/devkit/applicationBuildRunner.ts
|
|
17
18
|
import { mkdir, rm } from "fs/promises";
|
|
@@ -39,7 +40,6 @@ var SSR_RENDER_EXTERNALS = [
|
|
|
39
40
|
var AKAN_OPTIONAL_BACKEND_EXTERNALS = [
|
|
40
41
|
"@libsql/client",
|
|
41
42
|
"bullmq",
|
|
42
|
-
"croner",
|
|
43
43
|
"ioredis",
|
|
44
44
|
"postgres",
|
|
45
45
|
"protobufjs"
|
|
@@ -287,6 +287,6 @@ void run().catch((error) => {
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
export {
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
AKAN_OPTIONAL_BACKEND_EXTERNALS,
|
|
291
|
+
ApplicationBuildRunner
|
|
292
292
|
};
|
package/buildBatch.proc.js
CHANGED
|
@@ -5,17 +5,19 @@ import {
|
|
|
5
5
|
FontOptimizer,
|
|
6
6
|
PagesBundleBuilder,
|
|
7
7
|
SsrBaseArtifactBuilder
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-xj5b8c0w.js";
|
|
9
9
|
import"./index-xjd3rqzj.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
import"./index-qnv0aqmm.js";
|
|
11
|
+
import"./index-5vy2jzar.js";
|
|
12
12
|
import {
|
|
13
13
|
AppExecutor,
|
|
14
14
|
WorkspaceExecutor
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-681sx6nt.js";
|
|
16
|
+
import"./index-f39512t6.js";
|
|
16
17
|
import"./index-mxvakhsm.js";
|
|
18
|
+
import"./index-1577bej2.js";
|
|
17
19
|
import"./index-67546d0j.js";
|
|
18
|
-
import"./index-
|
|
20
|
+
import"./index-yb2wsc7f.js";
|
|
19
21
|
|
|
20
22
|
// pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
|
|
21
23
|
import path from "path";
|
|
@@ -25,36 +25,38 @@ import {
|
|
|
25
25
|
selectLocalDevHost,
|
|
26
26
|
sortIosRunTargets,
|
|
27
27
|
writeRootCapacitorConfig
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-ce9755av.js";
|
|
29
29
|
import"./index-76rn3g2c.js";
|
|
30
|
-
import"./index-
|
|
30
|
+
import"./index-681sx6nt.js";
|
|
31
|
+
import"./index-f39512t6.js";
|
|
31
32
|
import"./index-mxvakhsm.js";
|
|
33
|
+
import"./index-1577bej2.js";
|
|
32
34
|
import"./index-67546d0j.js";
|
|
33
|
-
import"./index-
|
|
35
|
+
import"./index-yb2wsc7f.js";
|
|
34
36
|
export {
|
|
35
|
-
|
|
36
|
-
sortIosRunTargets,
|
|
37
|
-
selectLocalDevHost,
|
|
38
|
-
sanitizeIosNativeRunEnv,
|
|
39
|
-
rootCapacitorConfigPaths,
|
|
40
|
-
rootCapacitorConfigFilenames,
|
|
41
|
-
raiseGradleMinSdkVersion,
|
|
42
|
-
parseSimctlDevices,
|
|
43
|
-
parseIosRuntimeMajor,
|
|
44
|
-
parseDevicectlDevices,
|
|
45
|
-
materializeCapacitorConfig,
|
|
46
|
-
isPlaceholderAppId,
|
|
47
|
-
getMissingAndroidReleaseSigningKeys,
|
|
48
|
-
getAndroidLocalServerHost,
|
|
49
|
-
getAdbDeviceStateIssues,
|
|
50
|
-
formatIosRunFailureMessage,
|
|
51
|
-
formatAndroidReleaseSigningError,
|
|
52
|
-
clearRootCapacitorConfigs,
|
|
53
|
-
classifyIosRunFailure,
|
|
54
|
-
buildIosNativeRunCommand,
|
|
55
|
-
assertJsonSerializable,
|
|
56
|
-
SWIFTUICORE_MIN_IOS_MAJOR,
|
|
57
|
-
PLACEHOLDER_APP_IDS,
|
|
37
|
+
ANDROID_MIN_SDK_VERSION,
|
|
58
38
|
CapacitorApp,
|
|
59
|
-
|
|
39
|
+
PLACEHOLDER_APP_IDS,
|
|
40
|
+
SWIFTUICORE_MIN_IOS_MAJOR,
|
|
41
|
+
assertJsonSerializable,
|
|
42
|
+
buildIosNativeRunCommand,
|
|
43
|
+
classifyIosRunFailure,
|
|
44
|
+
clearRootCapacitorConfigs,
|
|
45
|
+
formatAndroidReleaseSigningError,
|
|
46
|
+
formatIosRunFailureMessage,
|
|
47
|
+
getAdbDeviceStateIssues,
|
|
48
|
+
getAndroidLocalServerHost,
|
|
49
|
+
getMissingAndroidReleaseSigningKeys,
|
|
50
|
+
isPlaceholderAppId,
|
|
51
|
+
materializeCapacitorConfig,
|
|
52
|
+
parseDevicectlDevices,
|
|
53
|
+
parseIosRuntimeMajor,
|
|
54
|
+
parseSimctlDevices,
|
|
55
|
+
raiseGradleMinSdkVersion,
|
|
56
|
+
rootCapacitorConfigFilenames,
|
|
57
|
+
rootCapacitorConfigPaths,
|
|
58
|
+
sanitizeIosNativeRunEnv,
|
|
59
|
+
selectLocalDevHost,
|
|
60
|
+
sortIosRunTargets,
|
|
61
|
+
writeRootCapacitorConfig
|
|
60
62
|
};
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
CloudScript
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-0g9ajdz8.js";
|
|
5
|
+
import"./index-8md8zszv.js";
|
|
6
|
+
import"./index-x1dbhd80.js";
|
|
7
7
|
import {
|
|
8
8
|
GlobalConfig
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-sh01r3pm.js";
|
|
10
|
+
import"./index-r8z20vnj.js";
|
|
11
|
+
import"./index-f0t3wjyr.js";
|
|
11
12
|
import"./index-76rn3g2c.js";
|
|
12
|
-
import"./index-exhpp31y.js";
|
|
13
13
|
import {
|
|
14
14
|
Workspace,
|
|
15
15
|
command
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-ckpwq052.js";
|
|
17
17
|
import"./index-fgc8r6dj.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
18
|
+
import"./index-5vy2jzar.js";
|
|
19
|
+
import"./index-681sx6nt.js";
|
|
20
|
+
import"./index-f39512t6.js";
|
|
20
21
|
import"./index-mxvakhsm.js";
|
|
22
|
+
import"./index-1577bej2.js";
|
|
21
23
|
import"./index-46tjzh6s.js";
|
|
22
24
|
import"./index-67546d0j.js";
|
|
23
|
-
import"./index-
|
|
25
|
+
import"./index-yb2wsc7f.js";
|
|
24
26
|
|
|
25
27
|
// pkgs/@akanjs/cli/cloud/cloud.command.ts
|
|
26
28
|
var localRegistryUrl = () => process.env.AKAN_NPM_REGISTRY ?? "http://127.0.0.1:4873";
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ContextScript
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-wrrb8rxk.js";
|
|
4
|
+
} from "./index-ek4mkwxp.js";
|
|
5
|
+
import"./index-ryns915y.js";
|
|
6
|
+
import"./index-dvg362vq.js";
|
|
7
|
+
import"./index-4mtyaqj2.js";
|
|
8
|
+
import"./index-cc1mgv1f.js";
|
|
9
|
+
import"./index-tn46rr6w.js";
|
|
11
10
|
import"./index-ss469dec.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
11
|
+
import"./index-kkya2ped.js";
|
|
12
|
+
import"./index-ce9755av.js";
|
|
13
|
+
import"./index-sh01r3pm.js";
|
|
14
|
+
import"./index-wc19q8mb.js";
|
|
15
|
+
import"./index-g44fykfw.js";
|
|
16
|
+
import"./index-j37qq1f2.js";
|
|
17
17
|
import"./index-76rn3g2c.js";
|
|
18
18
|
import {
|
|
19
19
|
Workspace,
|
|
20
20
|
command
|
|
21
|
-
} from "./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
} from "./index-ckpwq052.js";
|
|
22
|
+
import"./index-681sx6nt.js";
|
|
23
|
+
import"./index-f39512t6.js";
|
|
23
24
|
import"./index-mxvakhsm.js";
|
|
24
25
|
import"./index-xys926f2.js";
|
|
26
|
+
import"./index-1577bej2.js";
|
|
25
27
|
import"./index-67546d0j.js";
|
|
26
|
-
import"./index-
|
|
28
|
+
import"./index-yb2wsc7f.js";
|
|
27
29
|
|
|
28
30
|
// pkgs/@akanjs/cli/context/context.command.ts
|
|
29
31
|
class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AiSession
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-sh01r3pm.js";
|
|
5
5
|
import {
|
|
6
6
|
Prompter
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-j37qq1f2.js";
|
|
8
8
|
import {
|
|
9
9
|
Workspace,
|
|
10
10
|
command,
|
|
11
11
|
runner,
|
|
12
12
|
script
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-ckpwq052.js";
|
|
14
|
+
import"./index-681sx6nt.js";
|
|
15
|
+
import"./index-f39512t6.js";
|
|
16
|
+
import"./index-mxvakhsm.js";
|
|
14
17
|
import {
|
|
15
18
|
getDirname
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-mxvakhsm.js";
|
|
19
|
+
} from "./index-1577bej2.js";
|
|
18
20
|
import {
|
|
19
21
|
FileSys
|
|
20
22
|
} from "./index-67546d0j.js";
|
|
21
|
-
import"./index-
|
|
23
|
+
import"./index-yb2wsc7f.js";
|
|
22
24
|
|
|
23
25
|
// pkgs/@akanjs/cli/guideline/guideline.script.ts
|
|
24
26
|
import { Logger } from "akanjs/common";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "In-Page Agent Rule",
|
|
3
|
+
"description": "How an akan screen exposes itself to an in-page agent — st.tool, subscribed keys, built-ins, and the chat",
|
|
4
|
+
"group": "core",
|
|
5
|
+
"codegenPriority": 4,
|
|
6
|
+
"deprecated": false,
|
|
7
|
+
"scans": [
|
|
8
|
+
{
|
|
9
|
+
"type": "example",
|
|
10
|
+
"description": "Components publishing an agent tool beside the control that already performs the action",
|
|
11
|
+
"path": "{apps,libs}/*/**/*.tsx",
|
|
12
|
+
"sample": 4
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"update": {
|
|
16
|
+
"filePath": "./agentRule.instruction.md",
|
|
17
|
+
"contents": [
|
|
18
|
+
"what a declaration publishes",
|
|
19
|
+
"mounting the chat",
|
|
20
|
+
"publishing a tool",
|
|
21
|
+
"forms and reading state",
|
|
22
|
+
"built-in tools"
|
|
23
|
+
],
|
|
24
|
+
"rules": [
|
|
25
|
+
"Use current Akan APIs only",
|
|
26
|
+
"State the rule before the reason, and keep the reason to one clause",
|
|
27
|
+
"Never describe a store class as an exposure surface — only st.tool and subscribed keys publish",
|
|
28
|
+
"Keep it workspace-neutral — no app or repo names"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|