UNPKG

@catladder/pipeline

Version:

Panter workflow for cloud CI/CD and DevOps

16 lines (15 loc) 655 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAgentUserId = exports.getAgentUserName = void 0; var getAgentUserName = function (context) { var _a, _b; return (_b = (_a = context.agentConfig.agentUser) === null || _a === void 0 ? void 0 : _a.username) !== null && _b !== void 0 ? _b : "agent.claude"; }; exports.getAgentUserName = getAgentUserName; var getAgentUserId = function (context) { var _a, _b; return (_b = (_a = context.agentConfig.agentUser) === null || _a === void 0 ? void 0 : _a.userId) !== null && _b !== void 0 ? _b : "$DEFAULT_AGENT_USER_ID"; }; exports.getAgentUserId = getAgentUserId;