@catladder/pipeline 0.0.0-next-1c65899f → 0.0.0-next-ace3dbf2
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/dist/agentSkills/types.d.ts +13 -3
- package/dist/agentSkills/types.js +42 -5
- package/dist/runner-images/semantic-release/Dockerfile +15 -12
- package/dist/runner-images/semantic-release/scripts/semanticRelease +10 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/config.d.ts +5 -2
- package/examples/__snapshots__/automatic-releases.test.ts.snap +28 -28
- package/examples/__snapshots__/cloud-run-execute-script-on-deploy.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-existing-image.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-http2.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-llama.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-n8n.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-session-affinity.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-verify.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +27 -27
- package/examples/__snapshots__/cloud-run-worker-pool.test.ts.snap +27 -27
- package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +27 -27
- package/examples/__snapshots__/custom-build-job.test.ts.snap +27 -27
- package/examples/__snapshots__/custom-deploy.test.ts.snap +27 -27
- package/examples/__snapshots__/custom-docker-file.test.ts.snap +27 -27
- package/examples/__snapshots__/custom-envs.test.ts.snap +23 -23
- package/examples/__snapshots__/custom-verify-job.test.ts.snap +27 -27
- package/examples/__snapshots__/git-submodule.test.ts.snap +27 -27
- package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +27 -27
- package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +27 -27
- package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +27 -27
- package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +27 -27
- package/examples/__snapshots__/local-dot-env.test.ts.snap +27 -27
- package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +27 -27
- package/examples/__snapshots__/modify-generated-files.test.ts.snap +23 -23
- package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +23 -23
- package/examples/__snapshots__/multiline-var.test.ts.snap +27 -27
- package/examples/__snapshots__/native-app.test.ts.snap +27 -27
- package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +27 -27
- package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +27 -27
- package/examples/__snapshots__/override-secrets.test.ts.snap +27 -27
- package/examples/__snapshots__/pipelines-config.test.ts.snap +27 -27
- package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +6 -6
- package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +27 -27
- package/examples/__snapshots__/referencing-other-vars.test.ts.snap +27 -27
- package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +23 -23
- package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +27 -27
- package/examples/__snapshots__/workspace-api-www.test.ts.snap +27 -27
- package/package.json +1 -1
- package/src/agentSkills/__tests__/generateAgentSkills.test.ts +25 -6
- package/src/agentSkills/types.ts +18 -8
- package/src/types/config.ts +5 -2
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* where agent skills get materialized, per agent ecosystem:
|
|
3
|
-
* - claude-code: the Claude Code project skills directory
|
|
3
|
+
* - claude-code: the Claude Code project skills directory (the default)
|
|
4
4
|
* - agents: the cross-agent universal skills directory
|
|
5
|
-
* (https://agents.md convention
|
|
5
|
+
* (https://agents.md convention). Opt-in — as of now no widely-used
|
|
6
|
+
* agent reads `.agents/skills/`; a repo that wants cross-agent
|
|
7
|
+
* discovery can also just symlink `.agents/skills` → `.claude/skills`
|
|
8
|
+
* once itself instead of enabling this target.
|
|
6
9
|
*/
|
|
7
10
|
export declare const AGENT_SKILL_TARGET_DIRS: {
|
|
8
11
|
readonly "claude-code": ".claude/skills";
|
|
9
12
|
readonly agents: ".agents/skills";
|
|
10
13
|
};
|
|
11
14
|
export type AgentSkillTargetName = keyof typeof AGENT_SKILL_TARGET_DIRS;
|
|
15
|
+
/**
|
|
16
|
+
* the target(s) written when `agentSkills` does not name any explicitly.
|
|
17
|
+
* Claude Code is the only agent that consumes these skills today, so we
|
|
18
|
+
* default to it alone rather than duplicating every skill into
|
|
19
|
+
* `.agents/skills/` (extra committed files + diff noise on every run).
|
|
20
|
+
*/
|
|
21
|
+
export declare const DEFAULT_AGENT_SKILL_TARGETS: AgentSkillTargetName[];
|
|
12
22
|
/**
|
|
13
23
|
* agent skills materialization, see {@link Config.agentSkills}
|
|
14
24
|
*/
|
|
15
25
|
export type AgentSkillsConfig = boolean | {
|
|
16
26
|
/**
|
|
17
27
|
* which agent skill directories to write to.
|
|
18
|
-
* Defaults to
|
|
28
|
+
* Defaults to {@link DEFAULT_AGENT_SKILL_TARGETS} (`claude-code`).
|
|
19
29
|
*/
|
|
20
30
|
targets?: AgentSkillTargetName[];
|
|
21
31
|
};
|
|
@@ -1,23 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
3
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
|
+
if (!m) return o;
|
|
5
|
+
var i = m.call(o), r, ar = [], e;
|
|
6
|
+
try {
|
|
7
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8
|
+
}
|
|
9
|
+
catch (error) { e = { error: error }; }
|
|
10
|
+
finally {
|
|
11
|
+
try {
|
|
12
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13
|
+
}
|
|
14
|
+
finally { if (e) throw e.error; }
|
|
15
|
+
}
|
|
16
|
+
return ar;
|
|
17
|
+
};
|
|
18
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
19
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
20
|
+
if (ar || !(i in from)) {
|
|
21
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
22
|
+
ar[i] = from[i];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
26
|
+
};
|
|
2
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAgentSkillTargets = exports.AGENT_SKILL_TARGET_DIRS = void 0;
|
|
28
|
+
exports.getAgentSkillTargets = exports.DEFAULT_AGENT_SKILL_TARGETS = exports.AGENT_SKILL_TARGET_DIRS = void 0;
|
|
4
29
|
/**
|
|
5
30
|
* where agent skills get materialized, per agent ecosystem:
|
|
6
|
-
* - claude-code: the Claude Code project skills directory
|
|
31
|
+
* - claude-code: the Claude Code project skills directory (the default)
|
|
7
32
|
* - agents: the cross-agent universal skills directory
|
|
8
|
-
* (https://agents.md convention
|
|
33
|
+
* (https://agents.md convention). Opt-in — as of now no widely-used
|
|
34
|
+
* agent reads `.agents/skills/`; a repo that wants cross-agent
|
|
35
|
+
* discovery can also just symlink `.agents/skills` → `.claude/skills`
|
|
36
|
+
* once itself instead of enabling this target.
|
|
9
37
|
*/
|
|
10
38
|
exports.AGENT_SKILL_TARGET_DIRS = {
|
|
11
39
|
"claude-code": ".claude/skills",
|
|
12
40
|
agents: ".agents/skills",
|
|
13
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* the target(s) written when `agentSkills` does not name any explicitly.
|
|
44
|
+
* Claude Code is the only agent that consumes these skills today, so we
|
|
45
|
+
* default to it alone rather than duplicating every skill into
|
|
46
|
+
* `.agents/skills/` (extra committed files + diff noise on every run).
|
|
47
|
+
*/
|
|
48
|
+
exports.DEFAULT_AGENT_SKILL_TARGETS = [
|
|
49
|
+
"claude-code",
|
|
50
|
+
];
|
|
14
51
|
var getAgentSkillTargets = function (agentSkills) {
|
|
15
52
|
var _a;
|
|
16
53
|
if (agentSkills === false)
|
|
17
54
|
return [];
|
|
18
55
|
if (agentSkills === true || agentSkills === undefined) {
|
|
19
|
-
return
|
|
56
|
+
return __spreadArray([], __read(exports.DEFAULT_AGENT_SKILL_TARGETS), false);
|
|
20
57
|
}
|
|
21
|
-
return (
|
|
58
|
+
return (_a = agentSkills.targets) !== null && _a !== void 0 ? _a : __spreadArray([], __read(exports.DEFAULT_AGENT_SKILL_TARGETS), false);
|
|
22
59
|
};
|
|
23
60
|
exports.getAgentSkillTargets = getAgentSkillTargets;
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
# job images are addressed by a content hash of this directory — the
|
|
2
2
|
# build must be reproducible, so every dependency is pinned exactly.
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
FROM node:
|
|
3
|
+
# node:24 satisfies the newer plugins' engine requirements
|
|
4
|
+
# (@semantic-release/git and @semantic-release/changelog need node >=24.15).
|
|
5
|
+
FROM node:24-alpine
|
|
6
6
|
|
|
7
7
|
RUN apk add --no-cache bash git git-lfs
|
|
8
8
|
|
|
9
9
|
# add semantic release
|
|
10
|
-
# NOTE:
|
|
11
|
-
#
|
|
12
|
-
#
|
|
13
|
-
#
|
|
10
|
+
# NOTE: pin every dependency exactly. These are the semantic-release@25 line
|
|
11
|
+
# (all ESM — v25 loads plugins via dynamic import, so changelog@7/git@11 are
|
|
12
|
+
# fine). Every plugin declares `semantic-release` as a peer dependency, so a
|
|
13
|
+
# plugin major that outpaces the semantic-release major fails the release job
|
|
14
|
+
# with "plugins configuration is invalid" — bump them together. Upstream
|
|
15
|
+
# @semantic-release/git replaces the old panter fork; see
|
|
16
|
+
# scripts/semanticRelease for why the commit message is hardcoded.
|
|
14
17
|
RUN yarn global add \
|
|
15
|
-
semantic-release@
|
|
18
|
+
semantic-release@25.0.8 \
|
|
16
19
|
@semantic-release/commit-analyzer@13.0.1 \
|
|
17
20
|
@semantic-release/release-notes-generator@14.1.1 \
|
|
18
|
-
|
|
19
|
-
@semantic-release/changelog@
|
|
20
|
-
@semantic-release/gitlab@
|
|
21
|
-
@semantic-release/exec@
|
|
21
|
+
@semantic-release/git@11.0.0 \
|
|
22
|
+
@semantic-release/changelog@7.0.0 \
|
|
23
|
+
@semantic-release/gitlab@13.3.3 \
|
|
24
|
+
@semantic-release/exec@7.1.0
|
|
22
25
|
|
|
23
26
|
RUN mkdir -p /scripts
|
|
24
27
|
COPY ./scripts/* /scripts/
|
|
@@ -77,8 +77,17 @@ if [ ! -e .releaserc ]; then
|
|
|
77
77
|
],
|
|
78
78
|
"@semantic-release/release-notes-generator",
|
|
79
79
|
"@semantic-release/changelog",
|
|
80
|
+
# message prefix hardcoded to "release" on purpose. Ideally this would be
|
|
81
|
+
# "chore(\${branch.type})", but upstream @semantic-release/git passes the
|
|
82
|
+
# branch *name* (not the object) into the template, so \${branch.type} is
|
|
83
|
+
# never available (see https://github.com/semantic-release/git/pull/213,
|
|
84
|
+
# open/ignored since 2020 — the README documents branch.type but the code
|
|
85
|
+
# never wired it up; the old panter fork existed only to patch this). On the
|
|
86
|
+
# default branch branch.type is always "release", and the pipeline
|
|
87
|
+
# loop-prevention rule keys on the literal "chore(release)" prefix, so keep
|
|
88
|
+
# this literal. Don't "fix" it back to \${branch.type}.
|
|
80
89
|
["@semantic-release/git", {
|
|
81
|
-
"message": "chore(
|
|
90
|
+
"message": "chore(release): \${nextRelease.version}\n\n\${nextRelease.notes}"
|
|
82
91
|
}]${PUBLISH_PLUGIN}
|
|
83
92
|
],
|
|
84
93
|
"branches": [
|