@skrr-ai/cli 0.1.207 → 0.1.209

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.
Files changed (168) hide show
  1. package/dist/commands/agent/message/no-reply.js +1 -1
  2. package/dist/commands/agent/message/react.d.ts +23 -0
  3. package/dist/commands/agent/message/react.js +125 -0
  4. package/dist/commands/agent/message/resolve.d.ts +31 -0
  5. package/dist/commands/agent/message/resolve.js +111 -0
  6. package/dist/commands/agent/message/retract.js +1 -1
  7. package/dist/commands/agent/message/send.d.ts +25 -6
  8. package/dist/commands/agent/message/send.js +135 -30
  9. package/dist/commands/agent/request/list.d.ts +15 -0
  10. package/dist/commands/agent/request/list.js +82 -0
  11. package/dist/commands/agent/request/send.d.ts +18 -0
  12. package/dist/commands/agent/request/send.js +56 -0
  13. package/dist/commands/agents/access/approve.d.ts +17 -0
  14. package/dist/commands/agents/access/approve.js +94 -0
  15. package/dist/commands/agents/access/deny.d.ts +10 -0
  16. package/dist/commands/agents/access/deny.js +36 -0
  17. package/dist/commands/agents/access/list.d.ts +10 -0
  18. package/dist/commands/agents/access/list.js +55 -0
  19. package/dist/commands/agents/access/reach.d.ts +13 -0
  20. package/dist/commands/agents/access/reach.js +53 -0
  21. package/dist/commands/agents/access/revoke.d.ts +13 -0
  22. package/dist/commands/agents/access/revoke.js +50 -0
  23. package/dist/commands/agents/always-on/recovery-review.d.ts +5 -0
  24. package/dist/commands/agents/always-on/recovery-review.js +16 -0
  25. package/dist/commands/agents/chat.d.ts +8 -0
  26. package/dist/commands/agents/chat.js +369 -90
  27. package/dist/commands/agents/import.d.ts +15 -1
  28. package/dist/commands/agents/import.js +212 -24
  29. package/dist/commands/agents/intuitions/accept.d.ts +0 -1
  30. package/dist/commands/agents/intuitions/accept.js +22 -7
  31. package/dist/commands/agents/intuitions/generate.d.ts +0 -1
  32. package/dist/commands/agents/intuitions/generate.js +4 -16
  33. package/dist/commands/agents/intuitions/list.js +9 -3
  34. package/dist/commands/agents/intuitions/resume.d.ts +11 -0
  35. package/dist/commands/agents/intuitions/resume.js +37 -0
  36. package/dist/commands/agents/manager/status.js +7 -6
  37. package/dist/commands/agents/not-for-task.d.ts +24 -0
  38. package/dist/commands/agents/not-for-task.js +60 -0
  39. package/dist/commands/agents/schedule-overview.d.ts +20 -0
  40. package/dist/commands/agents/schedule-overview.js +35 -2
  41. package/dist/commands/agents/shared-memory.d.ts +24 -0
  42. package/dist/commands/agents/shared-memory.js +67 -0
  43. package/dist/commands/agents/stop.d.ts +23 -0
  44. package/dist/commands/agents/stop.js +61 -0
  45. package/dist/commands/agents/update.d.ts +7 -0
  46. package/dist/commands/agents/update.js +45 -2
  47. package/dist/commands/agents/visibility.d.ts +1 -0
  48. package/dist/commands/agents/visibility.js +14 -0
  49. package/dist/commands/code/migrate.js +3 -1
  50. package/dist/commands/convos/messages.js +5 -0
  51. package/dist/commands/convos/transcript.js +2 -2
  52. package/dist/commands/daemon/logs.d.ts +3 -1
  53. package/dist/commands/daemon/logs.js +6 -2
  54. package/dist/commands/duties/advance-next.js +16 -7
  55. package/dist/commands/duties/preflight.js +17 -13
  56. package/dist/commands/followups/show.js +9 -0
  57. package/dist/commands/followups/watch-pr.d.ts +27 -0
  58. package/dist/commands/followups/watch-pr.js +124 -0
  59. package/dist/commands/harnesses/evaluations/evidence.js +2 -2
  60. package/dist/commands/harnesses/evaluations/grant.js +1 -1
  61. package/dist/commands/harnesses/evaluations/revoke.js +1 -1
  62. package/dist/commands/harnesses/evaluations/show.js +1 -1
  63. package/dist/commands/harnesses/rollouts/grant.js +1 -1
  64. package/dist/commands/harnesses/rollouts/revoke.js +1 -1
  65. package/dist/commands/machines/hosted/identity-evaluations/revoke.js +1 -1
  66. package/dist/commands/machines/hosted/identity-evaluations/show.js +1 -1
  67. package/dist/commands/memory/consolidation/index.d.ts +20 -0
  68. package/dist/commands/memory/consolidation/index.js +78 -0
  69. package/dist/commands/memory/consolidation/resume.d.ts +14 -0
  70. package/dist/commands/memory/consolidation/resume.js +46 -0
  71. package/dist/commands/memory/consolidation/undo.d.ts +18 -0
  72. package/dist/commands/memory/consolidation/undo.js +61 -0
  73. package/dist/commands/messages/list.js +9 -1
  74. package/dist/commands/slack/mutes.d.ts +10 -0
  75. package/dist/commands/slack/mutes.js +62 -0
  76. package/dist/commands/slack/unmute.d.ts +12 -0
  77. package/dist/commands/slack/unmute.js +44 -0
  78. package/dist/commands/tasks/actionability.js +10 -0
  79. package/dist/commands/tasks/ask.d.ts +50 -0
  80. package/dist/commands/tasks/ask.js +190 -0
  81. package/dist/commands/tasks/bulk-update.js +12 -0
  82. package/dist/commands/tasks/handover.js +14 -0
  83. package/dist/commands/tasks/input/answer.js +8 -2
  84. package/dist/commands/tasks/input/show.d.ts +26 -0
  85. package/dist/commands/tasks/input/show.js +185 -17
  86. package/dist/commands/tasks/list.d.ts +8 -0
  87. package/dist/commands/tasks/list.js +50 -9
  88. package/dist/commands/tasks/move.d.ts +3 -0
  89. package/dist/commands/tasks/move.js +71 -1
  90. package/dist/commands/tasks/result/show.js +19 -7
  91. package/dist/commands/tasks/result/submit.js +3 -0
  92. package/dist/commands/tasks/runs.d.ts +4 -1
  93. package/dist/commands/tasks/runs.js +22 -3
  94. package/dist/commands/tasks/show.d.ts +4 -3
  95. package/dist/commands/tasks/show.js +40 -7
  96. package/dist/commands/tasks/start.js +35 -16
  97. package/dist/commands/tasks/update.d.ts +1 -0
  98. package/dist/commands/tasks/update.js +55 -1
  99. package/dist/commands/tasks/updates/add.js +3 -0
  100. package/dist/commands/tasks/wait.d.ts +20 -0
  101. package/dist/commands/tasks/wait.js +103 -2
  102. package/dist/generated/agent-guides.json +892 -183
  103. package/dist/generated/managed-instruction-guides.json +1 -1
  104. package/dist/lib/agent-access-command.d.ts +19 -0
  105. package/dist/lib/agent-access-command.js +44 -0
  106. package/dist/lib/agent-access.d.ts +18 -0
  107. package/dist/lib/agent-access.js +48 -0
  108. package/dist/lib/agent-import/apply.d.ts +50 -0
  109. package/dist/lib/agent-import/apply.js +85 -0
  110. package/dist/lib/agent-import/plan.d.ts +132 -0
  111. package/dist/lib/agent-import/plan.js +504 -0
  112. package/dist/lib/agent-import/reader.d.ts +94 -0
  113. package/dist/lib/agent-import/reader.js +326 -0
  114. package/dist/lib/agent-import/schedule.d.ts +46 -0
  115. package/dist/lib/agent-import/schedule.js +220 -0
  116. package/dist/lib/agent-import/sources.d.ts +124 -0
  117. package/dist/lib/agent-import/sources.js +797 -0
  118. package/dist/lib/chat-stop.d.ts +17 -0
  119. package/dist/lib/chat-stop.js +70 -0
  120. package/dist/lib/cloud-reply.d.ts +21 -0
  121. package/dist/lib/cloud-reply.js +52 -0
  122. package/dist/lib/duties.js +24 -4
  123. package/dist/lib/duty-ledgers.js +19 -2
  124. package/dist/lib/file-mime.js +8 -0
  125. package/dist/lib/followups.d.ts +61 -0
  126. package/dist/lib/followups.js +39 -0
  127. package/dist/lib/handover-interview.d.ts +18 -0
  128. package/dist/lib/handover-interview.js +53 -0
  129. package/dist/lib/inbound-messages.d.ts +156 -0
  130. package/dist/lib/inbound-messages.js +375 -0
  131. package/dist/lib/input-queue.js +2 -1
  132. package/dist/lib/intuition-look.d.ts +10 -0
  133. package/dist/lib/intuition-look.js +64 -0
  134. package/dist/lib/message-intent.d.ts +18 -2
  135. package/dist/lib/message-intent.js +23 -1
  136. package/dist/lib/preflight-copy.d.ts +16 -1
  137. package/dist/lib/preflight-copy.js +33 -1
  138. package/dist/lib/record-output.d.ts +1 -1
  139. package/dist/lib/record-output.js +2 -0
  140. package/dist/lib/skill-import.d.ts +19 -0
  141. package/dist/lib/skill-import.js +34 -0
  142. package/dist/lib/slack-thread-mutes.d.ts +25 -0
  143. package/dist/lib/slack-thread-mutes.js +12 -0
  144. package/dist/lib/task-carriers.d.ts +18 -0
  145. package/dist/lib/task-carriers.js +43 -0
  146. package/dist/lib/task-extras.d.ts +5 -0
  147. package/dist/lib/task-extras.js +5 -0
  148. package/dist/lib/task-operations.d.ts +2 -0
  149. package/dist/lib/task-operations.js +28 -4
  150. package/dist/lib/task-preflight.js +1 -0
  151. package/dist/lib/task-recurrence-summary.d.ts +15 -0
  152. package/dist/lib/task-recurrence-summary.js +22 -0
  153. package/dist/lib/task-review-notice.d.ts +21 -0
  154. package/dist/lib/task-review-notice.js +46 -0
  155. package/dist/lib/task-version.d.ts +53 -0
  156. package/dist/lib/task-version.js +89 -0
  157. package/dist/lib/task-write-attribution.d.ts +7 -0
  158. package/dist/lib/task-write-attribution.js +14 -0
  159. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialEnvelopeBridge.js +6 -1
  160. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/turnPacing.d.ts +75 -0
  161. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/turnPacing.js +124 -0
  162. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/credentialEnvelopeBridge.js +45 -15
  163. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/turnPacing.d.ts +75 -0
  164. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/turnPacing.js +141 -0
  165. package/dist/node_modules/@skrr-ai/auth-core/package.json +11 -1
  166. package/dist/node_modules/@skrr-ai/data-provider/index.js +13492 -12505
  167. package/oclif.manifest.json +2090 -132
  168. package/package.json +9 -2
@@ -0,0 +1,124 @@
1
+ /**
2
+ * What an OpenClaw, Hermes or Orca bot folder holds, read into one shape.
3
+ *
4
+ * Each app keeps a bot on disk its own way. These readers know the layouts (taken from each app's
5
+ * documented layout as Orca's importer reads them, `skill-guides/orca-cli/references/bot-import.md`)
6
+ * and nothing else: they decide what each file IS — the bot's persona, a note it kept, a skill, a
7
+ * schedule — and what stays behind and why. Whether any of it is already on the Skrr agent, and
8
+ * what to write, is `plan.ts`'s job. Every byte is read through `SourceReader`.
9
+ *
10
+ * Deliberately NOT read, whatever the app: settings files (`openclaw.json`, Hermes `config.yaml`,
11
+ * Orca's app store), which hold channel tokens, model keys and MCP credentials; chat history; and
12
+ * anything an app ships itself. They are named in the plan as staying behind, never opened.
13
+ */
14
+ import { type ClaudeCodeImportDrop } from '@skrr-ai/data-provider';
15
+ import type { ImportedSkill } from '../skill-import';
16
+ import { SourceReader } from './reader';
17
+ import { type ScheduleReading } from './schedule';
18
+ export declare const AGENT_IMPORT_APPS: readonly ["openclaw", "hermes", "orca"];
19
+ export type AgentImportApp = (typeof AGENT_IMPORT_APPS)[number];
20
+ export declare const AGENT_IMPORT_APP_LABELS: Readonly<Record<AgentImportApp, string>>;
21
+ /** The persona files an imported bot's own files can become. */
22
+ export type ImportPersonaFileType = 'soul' | 'identity' | 'user' | 'tools';
23
+ export declare const IMPORT_PERSONA_FILE_NAMES: Readonly<Record<ImportPersonaFileType, string>>;
24
+ export type PersonaCandidate = {
25
+ fileType: ImportPersonaFileType;
26
+ from: string;
27
+ content: string;
28
+ };
29
+ /** One note that becomes ONE Memory proposal. */
30
+ export type MemoryCandidate = {
31
+ from: string;
32
+ line?: number;
33
+ /** Memory path, before the server slugs it. */
34
+ path: string;
35
+ title: string;
36
+ claim: string;
37
+ memoryKind: 'profile' | 'preference' | 'observation' | 'procedure' | 'event' | 'custom';
38
+ };
39
+ /** A file beside a SKILL.md that travels inside the skill. */
40
+ export type SkillFileCarried = {
41
+ /** Its path inside the skill folder: `scripts/fetch.sh`. */
42
+ path: string;
43
+ /** Its path as the plan names it. */
44
+ from: string;
45
+ /** The lines left out because they looked like a secret (also in the reader's record). */
46
+ leftOutLines: number[];
47
+ };
48
+ export type SkillCandidate = {
49
+ from: string;
50
+ /** The skill as it is created: its content carries the files beside SKILL.md (`files`). */
51
+ skill: ImportedSkill;
52
+ dropped: ClaudeCodeImportDrop[];
53
+ /**
54
+ * The files beside SKILL.md that travel, in the order they are carried. A file that does not
55
+ * (refused by the reader, or past a limit here) is in the reader's record with its reason.
56
+ */
57
+ files: SkillFileCarried[];
58
+ };
59
+ export type ScheduleCandidate = {
60
+ from: string;
61
+ /** The job's identity in its app, which makes a re-import find the Duty it made. */
62
+ sourceId: string;
63
+ name: string;
64
+ instruction: string;
65
+ schedule: ScheduleReading;
66
+ /** Off in the old app. It arrives as a draft either way. */
67
+ wasOff: boolean;
68
+ /** Where its results went in the old app, by channel name. */
69
+ deliveredTo?: string;
70
+ origin: 'cron' | 'heartbeat';
71
+ };
72
+ export type StaysItem = {
73
+ what: string;
74
+ why: string;
75
+ from?: string;
76
+ };
77
+ export type ImportSource = {
78
+ app: AgentImportApp;
79
+ /** The folder the import was opened on, as `~/...`. */
80
+ folder: string;
81
+ /** The bot's id in its app: an OpenClaw agent id, a Hermes profile, an Orca bot folder. */
82
+ sourceAgent: string;
83
+ /** The bot's name, from its own files when they say. */
84
+ name: string;
85
+ persona: PersonaCandidate[];
86
+ memories: MemoryCandidate[];
87
+ skills: SkillCandidate[];
88
+ schedules: ScheduleCandidate[];
89
+ stays: StaysItem[];
90
+ reader: SourceReader;
91
+ };
92
+ export declare class AgentImportSourceError extends Error {
93
+ readonly code: 'IMPORT_SOURCE_UNKNOWN' | 'IMPORT_SOURCE_AGENT_NOT_FOUND' | 'IMPORT_SOURCE_AGENT_REQUIRED';
94
+ constructor(code: 'IMPORT_SOURCE_UNKNOWN' | 'IMPORT_SOURCE_AGENT_NOT_FOUND' | 'IMPORT_SOURCE_AGENT_REQUIRED', message: string);
95
+ }
96
+ /** How many daily notes become proposals; older ones stay behind, said in the plan. */
97
+ export declare const DAILY_NOTES_LIMIT = 30;
98
+ /** "research-desk" -> "Research desk". */
99
+ export declare function nameFromId(id: string): string;
100
+ /**
101
+ * A Markdown notes file split into entries: each bullet (with its continuation lines) and each
102
+ * paragraph is one, titled by the heading it sits under. Rules, tables and comments are not notes.
103
+ */
104
+ export declare function markdownEntries(lines: Array<{
105
+ line: number;
106
+ text: string;
107
+ }>): Array<{
108
+ line: number;
109
+ heading: string;
110
+ text: string;
111
+ }>;
112
+ /** How deep in a skill folder its files are carried from: `references/api/v2/auth.md` is depth 3. */
113
+ export declare const SKILL_FILE_DEPTH_MAX = 4;
114
+ /** How many files beside SKILL.md one imported skill carries. */
115
+ export declare const SKILL_FILES_MAX = 64;
116
+ /** Which app a folder belongs to, by its layout alone (nothing is read), or null. */
117
+ export declare function detectImportApp(reader: SourceReader): Promise<AgentImportApp | null>;
118
+ /** Whether a folder looks like any app this importer reads (for routing `skrr agents import <dir>`). */
119
+ export declare function looksLikeBotFolder(folder: string): Promise<boolean>;
120
+ /** Read a bot folder. `app` forces the app; otherwise it is told by the folder's layout. */
121
+ export declare function readImportSource(folder: string, { app, sourceAgent }?: {
122
+ app?: AgentImportApp;
123
+ sourceAgent?: string;
124
+ }): Promise<ImportSource>;