@ykdz/template 0.0.37 → 0.0.38
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/node_modules/@ykdz/template-builtin-presets/dist/src/foundation.js +22 -28
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vike-app/definition.js +0 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/AGENTS.md.template +7 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/devcontainer.json +3 -0
- package/node_modules/@ykdz/template-core/dist/package-contribution.d.ts +0 -1
- package/node_modules/@ykdz/template-core/dist/project-github.d.ts +1 -1
- package/package.json +1 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/devcontainer/docker-client.Dockerfile +0 -3
|
@@ -763,7 +763,27 @@ function contributedDevcontainerComposition(options) {
|
|
|
763
763
|
toolLayers: layerPlan.layers,
|
|
764
764
|
buildArguments: layerPlan.buildArguments,
|
|
765
765
|
mounts: layerPlan.mounts,
|
|
766
|
-
probes:
|
|
766
|
+
probes: [
|
|
767
|
+
...layerPlan.probes,
|
|
768
|
+
{
|
|
769
|
+
identity: "docker-daemon",
|
|
770
|
+
command: "docker",
|
|
771
|
+
args: ["version"],
|
|
772
|
+
failureMessage: "无法连接宿主 Docker;请检查宿主 daemon 是否运行,以及开发容器 Feature 的连接配置与权限。",
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
identity: "docker-buildx",
|
|
776
|
+
command: "docker",
|
|
777
|
+
args: ["buildx", "version"],
|
|
778
|
+
failureMessage: "Buildx 不可用;请重建开发容器以完成官方 Feature 安装。",
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
identity: "docker-compose",
|
|
782
|
+
command: "docker",
|
|
783
|
+
args: ["compose", "version"],
|
|
784
|
+
failureMessage: "Compose 不可用;请重建开发容器以完成官方 Feature 安装。",
|
|
785
|
+
},
|
|
786
|
+
],
|
|
767
787
|
};
|
|
768
788
|
}
|
|
769
789
|
function normalizeDatabasePreparation(contributions) {
|
|
@@ -1644,33 +1664,6 @@ function deploymentCheckDevelopmentContainerToolLayers(deploymentCheck) {
|
|
|
1644
1664
|
},
|
|
1645
1665
|
],
|
|
1646
1666
|
},
|
|
1647
|
-
{
|
|
1648
|
-
identity: "docker-client",
|
|
1649
|
-
dockerfile: deploymentCheck.sources.dockerClientToolLayer,
|
|
1650
|
-
requires: ["node-pnpm"],
|
|
1651
|
-
mounts: [
|
|
1652
|
-
{
|
|
1653
|
-
identity: "docker-socket",
|
|
1654
|
-
type: "bind",
|
|
1655
|
-
source: "/var/run/docker.sock",
|
|
1656
|
-
target: "/var/run/docker.sock",
|
|
1657
|
-
},
|
|
1658
|
-
],
|
|
1659
|
-
probes: [
|
|
1660
|
-
{
|
|
1661
|
-
identity: "docker-cli",
|
|
1662
|
-
command: "docker",
|
|
1663
|
-
args: ["--version"],
|
|
1664
|
-
failureMessage: "Docker CLI is unavailable; rebuild the Development Container to install the Docker Client Tool Layer.",
|
|
1665
|
-
},
|
|
1666
|
-
{
|
|
1667
|
-
identity: "docker-daemon",
|
|
1668
|
-
command: "docker",
|
|
1669
|
-
args: ["version"],
|
|
1670
|
-
failureMessage: "Docker daemon is inaccessible through /var/run/docker.sock; verify the host daemon is running and the standard socket is accessible.",
|
|
1671
|
-
},
|
|
1672
|
-
],
|
|
1673
|
-
},
|
|
1674
1667
|
];
|
|
1675
1668
|
}
|
|
1676
1669
|
function normalizeRustToolchain(contributions) {
|
|
@@ -1698,6 +1691,7 @@ function normalizeRustToolchain(contributions) {
|
|
|
1698
1691
|
function composeDependencyMaintenancePolicy(contributions, deploymentCheck) {
|
|
1699
1692
|
const ecosystems = [
|
|
1700
1693
|
...new Set([
|
|
1694
|
+
"devcontainers",
|
|
1701
1695
|
...contributions.flatMap((contribution) => contribution.foundation.dependencyMaintenance.ecosystems),
|
|
1702
1696
|
...(deploymentCheck === undefined ? [] : ["docker"]),
|
|
1703
1697
|
]),
|
|
@@ -290,10 +290,6 @@ function webContribution(context, packageDefinitions = definitions(context)) {
|
|
|
290
290
|
source: templateSources.vikeApp,
|
|
291
291
|
from: "devcontainer/shellcheck.Dockerfile",
|
|
292
292
|
},
|
|
293
|
-
dockerClientToolLayer: {
|
|
294
|
-
source: templateSources.vikeApp,
|
|
295
|
-
from: "devcontainer/docker-client.Dockerfile",
|
|
296
|
-
},
|
|
297
293
|
},
|
|
298
294
|
},
|
|
299
295
|
developmentContainerToolLayers: [
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
### 本地代理上下文
|
|
2
|
+
|
|
3
|
+
`AGENTS.md`、`.agents/`、`docs/`、`.scratch/`、`.codex/`、`GLOSSARY*.md` 及其他代理本地规划或上下文文件均为本地工作区输入,不得纳入 Git 跟踪,也不得在 `.gitignore` 中为它们添加例外。
|
|
4
|
+
|
|
5
|
+
### 工作约定
|
|
6
|
+
|
|
7
|
+
若这些限制与 Spec、Ticket、ADR 等权威本地文档冲突,应该以权威本地文档为准。
|
|
2
8
|
|
|
3
9
|
- 开发自动化:非临时维护脚本必须使用 `scripts/**/*.ts` 中可擦除的 TypeScript,而不是 `.mjs` 等 JavaScript 脚本(Node 24 支持原生直接执行);归所属非构建 TypeScript 项目并受 format、lint、typecheck 覆盖,防止腐化;产品 build 不产出这些脚本。普通 Node 自动化使用原生 TypeScript 执行链。
|
|
4
10
|
- 临时脚本:编写临时脚本时,应该将其放到有临时目录语义的位置
|
|
@@ -32,7 +32,6 @@ export type FoundationContribution = {
|
|
|
32
32
|
readonly dockerfile: FoundationTemplateAssetSource;
|
|
33
33
|
readonly dockerIgnore: FoundationTemplateAssetSource;
|
|
34
34
|
readonly shellCheckDockerfile: FoundationTemplateAssetSource;
|
|
35
|
-
readonly dockerClientToolLayer: FoundationTemplateAssetSource;
|
|
36
35
|
};
|
|
37
36
|
};
|
|
38
37
|
/** Closed publication capability consumed only by coordinated root policy. */
|
|
@@ -47,7 +47,7 @@ export type ProjectCheckWorkflowPlan = {
|
|
|
47
47
|
readonly packagePaths: readonly string[];
|
|
48
48
|
readonly diagnosticArtifacts: readonly CiDiagnosticArtifactDeclaration[];
|
|
49
49
|
};
|
|
50
|
-
export type DependencyEcosystem = "npm" | "cargo" | "github-actions" | "docker" | "rust-toolchain";
|
|
50
|
+
export type DependencyEcosystem = "npm" | "cargo" | "github-actions" | "docker" | "devcontainers" | "rust-toolchain";
|
|
51
51
|
export type DependabotDirectory = `/${string}`;
|
|
52
52
|
export type DependencyMaintenancePolicy = {
|
|
53
53
|
readonly ecosystems: DependencyEcosystem[];
|
package/package.json
CHANGED