@rudderhq/cli 0.2.0-canary.25 → 0.2.0-canary.27
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/index.js +35 -3
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -656,7 +656,9 @@ var init_chat = __esm({
|
|
|
656
656
|
goalId: z5.string().uuid().optional().nullable(),
|
|
657
657
|
parentId: z5.string().uuid().optional().nullable(),
|
|
658
658
|
assigneeAgentId: z5.string().uuid().optional().nullable(),
|
|
659
|
-
assigneeUserId: z5.string().trim().optional().nullable()
|
|
659
|
+
assigneeUserId: z5.string().trim().optional().nullable(),
|
|
660
|
+
reviewerAgentId: z5.string().uuid().optional().nullable(),
|
|
661
|
+
reviewerUserId: z5.string().trim().optional().nullable()
|
|
660
662
|
});
|
|
661
663
|
convertChatToIssueSchema = z5.object({
|
|
662
664
|
messageId: z5.string().uuid().optional().nullable(),
|
|
@@ -842,7 +844,7 @@ var init_organization_skill = __esm({
|
|
|
842
844
|
|
|
843
845
|
// ../packages/shared/src/validators/adapter-skills.ts
|
|
844
846
|
import { z as z7 } from "zod";
|
|
845
|
-
var agentSkillStateSchema, agentSkillOriginSchema, agentSkillSourceClassSchema, agentSkillSyncModeSchema, agentSkillEntrySchema, agentSkillSnapshotSchema, agentSkillSyncSchema;
|
|
847
|
+
var agentSkillStateSchema, agentSkillOriginSchema, agentSkillSourceClassSchema, agentSkillSyncModeSchema, agentSkillEntrySchema, agentSkillSnapshotSchema, agentSkillSyncSchema, agentSkillEnableSchema;
|
|
846
848
|
var init_adapter_skills = __esm({
|
|
847
849
|
"../packages/shared/src/validators/adapter-skills.ts"() {
|
|
848
850
|
"use strict";
|
|
@@ -905,6 +907,9 @@ var init_adapter_skills = __esm({
|
|
|
905
907
|
agentSkillSyncSchema = z7.object({
|
|
906
908
|
desiredSkills: z7.array(z7.string().min(1))
|
|
907
909
|
});
|
|
910
|
+
agentSkillEnableSchema = z7.object({
|
|
911
|
+
skills: z7.array(z7.string().min(1)).min(1)
|
|
912
|
+
});
|
|
908
913
|
}
|
|
909
914
|
});
|
|
910
915
|
|
|
@@ -9187,6 +9192,18 @@ var AGENT_CLI_CAPABILITIES = [
|
|
|
9187
9192
|
requiresRunId: false,
|
|
9188
9193
|
attachesRunIdWhenAvailable: false
|
|
9189
9194
|
},
|
|
9195
|
+
{
|
|
9196
|
+
id: "agent.skills.enable",
|
|
9197
|
+
command: "rudder agent skills enable <agent-id> <selection-ref...>",
|
|
9198
|
+
category: "agent",
|
|
9199
|
+
description: "Add skill selections to an agent without replacing existing enabled skills.",
|
|
9200
|
+
mutating: true,
|
|
9201
|
+
contract: "agent-v1",
|
|
9202
|
+
requiresOrgId: false,
|
|
9203
|
+
requiresAgentId: false,
|
|
9204
|
+
requiresRunId: false,
|
|
9205
|
+
attachesRunIdWhenAvailable: true
|
|
9206
|
+
},
|
|
9190
9207
|
{
|
|
9191
9208
|
id: "agent.skills.sync",
|
|
9192
9209
|
command: "rudder agent skills sync <agent-id>",
|
|
@@ -9467,7 +9484,7 @@ var AGENT_CLI_CAPABILITIES = [
|
|
|
9467
9484
|
id: "issue.create",
|
|
9468
9485
|
command: "rudder issue create --org-id <id> ...",
|
|
9469
9486
|
category: "issue",
|
|
9470
|
-
description: "Create a new issue or subtask with the generic issue surface.",
|
|
9487
|
+
description: "Create a new issue or subtask with the generic issue surface; agent-created issues default to the creating agent when no assignee is supplied.",
|
|
9471
9488
|
mutating: true,
|
|
9472
9489
|
contract: "compat",
|
|
9473
9490
|
requiresOrgId: true,
|
|
@@ -10129,6 +10146,8 @@ var RUDDER_AGENT_OPERATING_CONTRACT = [
|
|
|
10129
10146
|
"- Shared organization plans live under `$RUDDER_ORG_PLANS_DIR`.",
|
|
10130
10147
|
"- Durable shared work output should prefer these managed workspace paths instead of ad-hoc top-level `projects/` folders.",
|
|
10131
10148
|
"",
|
|
10149
|
+
"When you create or copy a skill under `$AGENT_HOME/skills/<slug>/`, check the agent's Skills snapshot before claiming it will load in future runs. If it is installed but not enabled, say exactly that future runs will not load it until enabled, and offer to enable it with `rudder agent skills enable <agent-id> <selection-ref>` when you have permission.",
|
|
10150
|
+
"",
|
|
10132
10151
|
"When you write issue comments or chat replies, match the language of the user's or board's most recent substantive message unless they explicitly ask for a different language.",
|
|
10133
10152
|
"",
|
|
10134
10153
|
"## Memory and Planning",
|
|
@@ -10450,6 +10469,19 @@ function registerAgentCommands(program) {
|
|
|
10450
10469
|
})
|
|
10451
10470
|
);
|
|
10452
10471
|
const skills = agent.command("skills").description("Agent skill selection operations");
|
|
10472
|
+
addCommonClientOptions(
|
|
10473
|
+
skills.command("enable").description(getAgentCliCapabilityById("agent.skills.enable").description).argument("<agentId>", "Agent ID").argument("<selectionRefs...>", "Skill selection refs to enable").action(async (agentId, selectionRefs, opts) => {
|
|
10474
|
+
try {
|
|
10475
|
+
const ctx = resolveCommandContext(opts);
|
|
10476
|
+
const snapshot = await ctx.api.post(`/api/agents/${agentId}/skills/enable`, {
|
|
10477
|
+
skills: selectionRefs
|
|
10478
|
+
});
|
|
10479
|
+
printOutput(snapshot, { json: ctx.json });
|
|
10480
|
+
} catch (err) {
|
|
10481
|
+
handleCommandError(err);
|
|
10482
|
+
}
|
|
10483
|
+
})
|
|
10484
|
+
);
|
|
10453
10485
|
addCommonClientOptions(
|
|
10454
10486
|
skills.command("sync").description(getAgentCliCapabilityById("agent.skills.sync").description).argument("<agentId>", "Agent ID").requiredOption(
|
|
10455
10487
|
"--desired-skills <csv>",
|