@heyamiko/amiko-cli 0.9.6-beta.1 → 0.9.6-beta.3

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 CHANGED
@@ -21916,7 +21916,7 @@ function registerConversationCommand(program2) {
21916
21916
  process.exit(1);
21917
21917
  }
21918
21918
  });
21919
- program2.command("send").description("Send a message into a conversation").requiredOption("--id <conversationId>", "Target conversation id").requiredOption("--message <text>", "Message body").option("--reply-to <messageId>", "Reply to a specific message").option("--json", "Output as JSON").action(async (opts) => {
21919
+ program2.command("send").description("Send a message into a conversation").requiredOption("--id <conversationId>", "Target conversation id").requiredOption("--message <text>", "Message body").option("--reply-to <messageId>", "Reply to a specific message").option("--as-agent", "Send as the twin agent (sender_type=agent, is_auto_reply=true). Twin must be a participant.").option("--json", "Output as JSON").action(async (opts) => {
21920
21920
  const auth = requireAuth();
21921
21921
  const spinner = opts.json ? null : ora("Sending message...").start();
21922
21922
  try {
@@ -21925,7 +21925,8 @@ function registerConversationCommand(program2) {
21925
21925
  body: {
21926
21926
  content: opts.message,
21927
21927
  message_type: "text",
21928
- ...opts.replyTo ? { reply_to_id: opts.replyTo } : {}
21928
+ ...opts.replyTo ? { reply_to_id: opts.replyTo } : {},
21929
+ ...opts.asAgent ? { as_agent: true } : {}
21929
21930
  }
21930
21931
  });
21931
21932
  spinner?.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyamiko/amiko-cli",
3
- "version": "0.9.6-beta.1",
3
+ "version": "0.9.6-beta.3",
4
4
  "description": "Amiko CLI — swap tokens, manage credits, bridge cross-chain, and call marketplace agents",
5
5
  "type": "module",
6
6
  "bin": {
package/skills/SKILL.md CHANGED
@@ -272,6 +272,7 @@ amiko conversation read --id <conversationId> # read recent messages (
272
272
  amiko conversation read --id <id> --before-cursor <next_cursor> # page older messages
273
273
  amiko conversation send --id <conversationId> --message "hi" # send a text message
274
274
  amiko conversation send --id <id> --message "ok" --reply-to <messageId>
275
+ amiko conversation send --id <id> --message "agent reply" --as-agent # send as twin (sender_type=agent)
275
276
  ```
276
277
 
277
278
  - `list` and `find` query amiko-web's `/api/conversations` (Prisma-backed). `find` filters client-side for a 2-user direct conversation containing both you and `--user-id`.