@rudderhq/cli 0.3.6-canary.2 → 0.3.6-canary.4
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 +21 -11
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -784,7 +784,7 @@ var init_adapter_skills = __esm({
|
|
|
784
784
|
|
|
785
785
|
// ../packages/shared/dist/validators/chat.js
|
|
786
786
|
import { z as z4 } from "zod";
|
|
787
|
-
var chatConversationStatusSchema, chatIssueCreationModeSchema, chatMessageRoleSchema, chatMessageKindSchema, chatMessageStatusSchema, chatContextEntityTypeSchema, createChatContextLinkSchema, createChatConversationSchema, setChatProjectContextSchema, updateChatConversationSchema, addChatMessageSchema, chatRichReferenceDisplaySchema, chatIssueIdentifierSchema, chatAskUserIdentifierSchema, chatAskUserOptionSchema, chatAskUserQuestionSchema, chatAskUserRequestSchema, chatIssueRichReferenceSchema, chatIssueCommentRichReferenceSchema, chatRichReferenceSchema, chatRichReferencesSchema, chatAutomationCreateSchema, createChatAttachmentMetadataSchema, chatIssueProposalSchema, convertChatToIssueSchema, chatOperationProposalSchema, resolveChatOperationProposalSchema, updateChatConversationUserStateSchema, updateMessengerThreadUserStateSchema, createMessengerCustomGroupSchema, updateMessengerCustomGroupSchema, reorderMessengerCustomGroupsSchema, assignMessengerCustomGroupEntrySchema, reorderMessengerCustomGroupEntriesSchema;
|
|
787
|
+
var chatConversationStatusSchema, chatIssueCreationModeSchema, chatMessageRoleSchema, chatMessageKindSchema, chatMessageStatusSchema, chatContextEntityTypeSchema, createChatContextLinkSchema, createChatConversationSchema, setChatProjectContextSchema, updateChatConversationSchema, addChatMessageSchema, chatRichReferenceDisplaySchema, chatIssueIdentifierSchema, chatAskUserIdentifierSchema, chatAskUserOptionSchema, chatAskUserQuestionSchema, chatAskUserRequestSchema, chatIssueRichReferenceSchema, chatIssueCommentRichReferenceSchema, chatRichReferenceSchema, chatRichReferencesSchema, chatAutomationCreateSchema, createChatAttachmentMetadataSchema, chatIssueProposalSchema, convertChatToIssueSchema, chatOperationProposalSchema, resolveChatOperationProposalSchema, updateChatConversationUserStateSchema, updateMessengerThreadUserStateSchema, createMessengerCustomGroupSchema, createMessengerCustomGroupWithEntriesSchema, updateMessengerCustomGroupSchema, reorderMessengerCustomGroupsSchema, assignMessengerCustomGroupEntrySchema, reorderMessengerCustomGroupEntriesSchema;
|
|
788
788
|
var init_chat = __esm({
|
|
789
789
|
"../packages/shared/dist/validators/chat.js"() {
|
|
790
790
|
"use strict";
|
|
@@ -971,6 +971,9 @@ var init_chat = __esm({
|
|
|
971
971
|
name: z4.string().trim().min(1).max(80),
|
|
972
972
|
icon: z4.string().trim().min(1).max(24).optional().nullable()
|
|
973
973
|
});
|
|
974
|
+
createMessengerCustomGroupWithEntriesSchema = createMessengerCustomGroupSchema.extend({
|
|
975
|
+
threadKeys: z4.array(z4.string().trim().min(1).max(240)).min(1).max(50)
|
|
976
|
+
});
|
|
974
977
|
updateMessengerCustomGroupSchema = z4.object({
|
|
975
978
|
name: z4.string().trim().min(1).max(80).optional(),
|
|
976
979
|
icon: z4.string().trim().min(1).max(24).optional().nullable(),
|
|
@@ -7283,6 +7286,7 @@ var RUDDER_AGENT_OPERATING_CONTRACT = [
|
|
|
7283
7286
|
"",
|
|
7284
7287
|
"- Issues: use `[](issue://<issue-id>)`; include `?c=<comment-id>` when linking to a specific comment.",
|
|
7285
7288
|
"- Agents: use `[](agent://<agent-id>)` for reference-only links. In issue comments, use `[](agent://<agent-id>?intent=wake)` only when you intentionally want to wake that agent for attention or collaboration.",
|
|
7289
|
+
"- Automations: use `[](automation://<automation-id>)` when citing a Rudder automation.",
|
|
7286
7290
|
"- Projects: use `[](project://<project-id>)` when citing a Rudder project.",
|
|
7287
7291
|
"- Chat threads: use `[](chat://<conversation-id>)` when citing a Rudder chat conversation.",
|
|
7288
7292
|
"- Skills: use `[](skill://<skill-ref>)` when citing a Rudder skill reference. The skill ref may be an org skill, agent skill, bundled Rudder skill, or local-machine skill ref; the UI resolves the display label when metadata is available.",
|
|
@@ -7298,7 +7302,7 @@ var RUDDER_AGENT_OPERATING_CONTRACT = [
|
|
|
7298
7302
|
"",
|
|
7299
7303
|
"You MUST use the `para-memory-files` skill for all memory operations: storing facts, writing daily notes, creating entities, running weekly synthesis, recalling past context, and managing shared work notes. The skill defines your three-layer memory system (knowledge graph, daily notes, tacit knowledge), the PARA folder structure, atomic fact schemas, memory decay rules, and recall conventions.",
|
|
7300
7304
|
"",
|
|
7301
|
-
"Keep stable preferences and operating lessons in `$AGENT_HOME/instructions/MEMORY.md`. Use `$AGENT_HOME/memory/YYYY-MM-DD.md` for daily notes and `$AGENT_HOME/life/` for structured long-term memory;
|
|
7305
|
+
"Keep stable preferences and operating lessons in `$AGENT_HOME/instructions/MEMORY.md`. Use `$AGENT_HOME/memory/YYYY-MM-DD.md` for daily notes and `$AGENT_HOME/life/` for structured long-term memory. Rudder injects bounded today/yesterday daily-memory excerpts in the startup context bundle; open the files directly when you need full detail.",
|
|
7302
7306
|
"",
|
|
7303
7307
|
"Invoke it whenever you need to remember, retrieve, or organize anything.",
|
|
7304
7308
|
"",
|
|
@@ -7315,19 +7319,25 @@ var RUDDER_AGENT_OPERATING_CONTRACT = [
|
|
|
7315
7319
|
var RUDDER_AGENT_HEARTBEAT_INSTRUCTION = [
|
|
7316
7320
|
"# Rudder Heartbeat Instruction",
|
|
7317
7321
|
"",
|
|
7318
|
-
"This section is injected by Rudder for heartbeat scene runs. It is the platform-owned timed-wakeup pipeline
|
|
7322
|
+
"This section is injected by Rudder for heartbeat scene runs. It is the platform-owned timed-wakeup pipeline.",
|
|
7319
7323
|
"",
|
|
7320
7324
|
"## Heartbeat Pipeline",
|
|
7321
7325
|
"",
|
|
7322
7326
|
"1. Identify yourself and inspect wake context, including `RUDDER_TASK_ID`, `RUDDER_WAKE_REASON`, `RUDDER_WAKE_COMMENT_ID`, and `RUDDER_APPROVAL_ID` when present.",
|
|
7323
|
-
"2.
|
|
7324
|
-
"
|
|
7325
|
-
"
|
|
7326
|
-
"
|
|
7327
|
-
"
|
|
7328
|
-
"
|
|
7329
|
-
"
|
|
7330
|
-
"
|
|
7327
|
+
"2. Local Planning Check:",
|
|
7328
|
+
" ",
|
|
7329
|
+
" 1. Read today's plan from `$AGENT_HOME/memory/YYYY-MM-DD.md` under \"## Today's Plan\". You need to clearly know your work plan for today, and work according to the plan.",
|
|
7330
|
+
" 2. Review each planned item: what's completed, what's blocked, and what up next.",
|
|
7331
|
+
" 3. Record progress updates in the daily notes.",
|
|
7332
|
+
" ",
|
|
7333
|
+
"3.Then handle approval follow-up: read the approval and linked issues, then close resolved work or comment on what remains.",
|
|
7334
|
+
"4. Inspect your Rudder inbox. Prioritize reviewer rows in `in_review` or `blocked`, then assignee `in_progress`, then assignee `todo`. Do not look for unassigned work.",
|
|
7335
|
+
"5. For mention wakes, read the wake comment before acting. Mentions request attention; they do not transfer ownership unless the comment explicitly says so. If the issue is not assigned to you, including user-owned or unassigned issues, and the comment does not explicitly ask you to implement, modify files, close the issue, or take ownership, respond to the comment itself instead of executing the whole issue.",
|
|
7336
|
+
"6. Checkout before doing assignee task work. A `409` means another agent owns the task; do not retry it.",
|
|
7337
|
+
"7. Load compact issue context, do one bounded useful chunk, and preserve evidence.",
|
|
7338
|
+
"8. Before exiting active work, leave exactly one durable signal: progress, done, blocked, explicit handoff, or structured review decision.",
|
|
7339
|
+
"9. Treat passive follow-up as close-out governance, not a fresh assignment.",
|
|
7340
|
+
"10. Treat review close-out follow-up as review governance; free-form accept/reject text is not a durable decision.",
|
|
7331
7341
|
"",
|
|
7332
7342
|
"Use the Rudder control-plane interface available in this runtime. CLI-capable runtimes should use the bundled `rudder` skill for command details, Library handoff rules, organization-skill workflow, and control-plane best practices. HTTP compatibility runtimes should follow the explicit HTTP workflow in their wake text; that workflow overrides CLI command guidance."
|
|
7333
7343
|
].join("\n");
|