@catladder/cli 0.0.0-next-ace3dbf2 → 0.0.0-next-148db771
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/bundles/catenv/index.js +1 -0
- package/dist/bundles/cli/index.js +11 -0
- package/dist/cli/src/apps/cli/commands/project/setup/index.js +10 -0
- package/dist/cli/src/apps/cli/commands/project/setup/index.js.map +1 -1
- package/dist/pipeline/src/index.d.ts +1 -0
- package/dist/pipeline/src/index.js +1 -0
- package/dist/pipeline/src/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/apps/cli/commands/project/setup/index.ts +15 -1
|
@@ -9314,6 +9314,7 @@ __exportStar(__nccwpck_require__(47666), exports);
|
|
|
9314
9314
|
__exportStar(__nccwpck_require__(60250), exports);
|
|
9315
9315
|
__exportStar(__nccwpck_require__(38016), exports);
|
|
9316
9316
|
__exportStar(__nccwpck_require__(35233), exports);
|
|
9317
|
+
__exportStar(__nccwpck_require__(8853), exports);
|
|
9317
9318
|
//# sourceMappingURL=index.js.map
|
|
9318
9319
|
|
|
9319
9320
|
/***/ }),
|
|
@@ -970,6 +970,7 @@ exports.ensureGcloudProjectNumbers = ensureGcloudProjectNumbers;
|
|
|
970
970
|
|
|
971
971
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
972
972
|
exports.setupProject = void 0;
|
|
973
|
+
const pipeline_1 = __nccwpck_require__(60241);
|
|
973
974
|
const getProjectConfig_1 = __nccwpck_require__(50001);
|
|
974
975
|
const setupAccessTokens_1 = __nccwpck_require__(64775);
|
|
975
976
|
const setupContext_1 = __nccwpck_require__(63516);
|
|
@@ -978,6 +979,15 @@ const setupAgents_1 = __nccwpck_require__(73861);
|
|
|
978
979
|
const logSection_1 = __nccwpck_require__(87105);
|
|
979
980
|
const ensureGcloudProjectNumbers_1 = __nccwpck_require__(22661);
|
|
980
981
|
const setupProject = async (instance, onlyComponents) => {
|
|
982
|
+
// refresh the agent skills first — store-independent, so it survives a
|
|
983
|
+
// later failure (e.g. missing gcloud auth in ensureGcloudProjectNumbers).
|
|
984
|
+
// This makes `catladder project setup` the one command that also lands
|
|
985
|
+
// the skills, so agents helping a migrating project get them even when
|
|
986
|
+
// catenv itself can't run yet (e.g. before the store is populated).
|
|
987
|
+
const config = await (0, getProjectConfig_1.getProjectConfig)();
|
|
988
|
+
if (config) {
|
|
989
|
+
await (0, pipeline_1.generateAgentSkills)((0, pipeline_1.createCatenvContext)(config));
|
|
990
|
+
}
|
|
981
991
|
// must come first: creating contexts already requires the store
|
|
982
992
|
await (0, ensureGcloudProjectNumbers_1.ensureGcloudProjectNumbers)(instance);
|
|
983
993
|
const allContext = await (0, getProjectConfig_1.getAllPipelineContexts)(onlyComponents);
|
|
@@ -15297,6 +15307,7 @@ __exportStar(__nccwpck_require__(47666), exports);
|
|
|
15297
15307
|
__exportStar(__nccwpck_require__(60250), exports);
|
|
15298
15308
|
__exportStar(__nccwpck_require__(38016), exports);
|
|
15299
15309
|
__exportStar(__nccwpck_require__(35233), exports);
|
|
15310
|
+
__exportStar(__nccwpck_require__(8853), exports);
|
|
15300
15311
|
//# sourceMappingURL=index.js.map
|
|
15301
15312
|
|
|
15302
15313
|
/***/ }),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.setupProject = void 0;
|
|
4
|
+
const pipeline_1 = require("../../../../../../../pipeline/src/index.js");
|
|
4
5
|
const getProjectConfig_1 = require("../../../../../config/getProjectConfig");
|
|
5
6
|
const setupAccessTokens_1 = require("./setupAccessTokens");
|
|
6
7
|
const setupContext_1 = require("./setupContext");
|
|
@@ -9,6 +10,15 @@ const setupAgents_1 = require("./setupAgents");
|
|
|
9
10
|
const logSection_1 = require("./logSection");
|
|
10
11
|
const ensureGcloudProjectNumbers_1 = require("./ensureGcloudProjectNumbers");
|
|
11
12
|
const setupProject = async (instance, onlyComponents) => {
|
|
13
|
+
// refresh the agent skills first — store-independent, so it survives a
|
|
14
|
+
// later failure (e.g. missing gcloud auth in ensureGcloudProjectNumbers).
|
|
15
|
+
// This makes `catladder project setup` the one command that also lands
|
|
16
|
+
// the skills, so agents helping a migrating project get them even when
|
|
17
|
+
// catenv itself can't run yet (e.g. before the store is populated).
|
|
18
|
+
const config = await (0, getProjectConfig_1.getProjectConfig)();
|
|
19
|
+
if (config) {
|
|
20
|
+
await (0, pipeline_1.generateAgentSkills)((0, pipeline_1.createCatenvContext)(config));
|
|
21
|
+
}
|
|
12
22
|
// must come first: creating contexts already requires the store
|
|
13
23
|
await (0, ensureGcloudProjectNumbers_1.ensureGcloudProjectNumbers)(instance);
|
|
14
24
|
const allContext = await (0, getProjectConfig_1.getAllPipelineContexts)(onlyComponents);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/apps/cli/commands/project/setup/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/apps/cli/commands/project/setup/index.ts"],"names":[],"mappings":";;;AAAA,kDAA+E;AAE/E,6EAGgD;AAChD,2DAAwD;AACxD,iDAA8C;AAC9C,6CAA0C;AAC1C,+CAA4C;AAC5C,6CAA0C;AAC1C,6EAA0E;AAEnE,MAAM,YAAY,GAAG,KAAK,EAC/B,QAAY,EACZ,cAAkC,EAClC,EAAE;IACF,uEAAuE;IACvE,0EAA0E;IAC1E,uEAAuE;IACvE,uEAAuE;IACvE,oEAAoE;IACpE,MAAM,MAAM,GAAG,MAAM,IAAA,mCAAgB,GAAE,CAAC;IACxC,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,IAAA,8BAAmB,EAAC,IAAA,8BAAmB,EAAC,MAAM,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,gEAAgE;IAChE,MAAM,IAAA,uDAA0B,EAAC,QAAQ,CAAC,C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,4 +31,5 @@ __exportStar(require("./utils/measureTime"), exports);
|
|
|
31
31
|
__exportStar(require("./variables/VariableValue"), exports);
|
|
32
32
|
__exportStar(require("./bash"), exports);
|
|
33
33
|
__exportStar(require("./catenv"), exports);
|
|
34
|
+
__exportStar(require("./agentSkills"), exports);
|
|
34
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../pipeline/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,4CAA0B;AAC1B,qDAAmC;AACnC,sDAAoC;AACpC,4DAA0C;AAC1C,yCAAuB;AACvB,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../pipeline/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,4CAA0B;AAC1B,qDAAmC;AACnC,sDAAoC;AACpC,4DAA0C;AAC1C,yCAAuB;AACvB,2CAAyB;AACzB,gDAA8B"}
|