ticlawk 0.1.16-dev.8 → 0.1.16-dev.9
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/bin/ticlawk.mjs
CHANGED
|
@@ -30,7 +30,6 @@ import { getInstallDaemonHelp, runInstallDaemon } from '../src/core/daemon-insta
|
|
|
30
30
|
import { runSetupReadiness } from '../src/core/setup-readiness.mjs';
|
|
31
31
|
import {
|
|
32
32
|
AGENT_COMMAND_HELP,
|
|
33
|
-
runAttachmentUploadCommand,
|
|
34
33
|
runAttachmentViewCommand,
|
|
35
34
|
runGroupCreateCommand,
|
|
36
35
|
runGroupMembersAddCommand,
|
|
@@ -416,10 +415,6 @@ async function main() {
|
|
|
416
415
|
console.log(AGENT_COMMAND_HELP.attachment);
|
|
417
416
|
return;
|
|
418
417
|
}
|
|
419
|
-
if (sub === 'upload') {
|
|
420
|
-
process.exitCode = await runAttachmentUploadCommand(args);
|
|
421
|
-
return;
|
|
422
|
-
}
|
|
423
418
|
if (sub === 'view') {
|
|
424
419
|
process.exitCode = await runAttachmentViewCommand(args);
|
|
425
420
|
return;
|
package/package.json
CHANGED
|
@@ -662,18 +662,6 @@ function inferContentType(filePath) {
|
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
664
|
|
|
665
|
-
export async function runAttachmentUploadCommand(args) {
|
|
666
|
-
const env = requireAgentEnv();
|
|
667
|
-
const file = args._?.[2];
|
|
668
|
-
if (!file) {
|
|
669
|
-
console.error('usage: ticlawk attachment upload <file>');
|
|
670
|
-
return 2;
|
|
671
|
-
}
|
|
672
|
-
const upload = await uploadFileViaDaemon(env, file);
|
|
673
|
-
printJson(upload);
|
|
674
|
-
return upload.ok ? 0 : 1;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
665
|
export async function runAttachmentViewCommand(args) {
|
|
678
666
|
const env = requireAgentEnv();
|
|
679
667
|
const assetId = args._?.[2];
|
|
@@ -848,12 +836,9 @@ export const AGENT_COMMAND_HELP = {
|
|
|
848
836
|
ticlawk profile show [@handle | --id <agent-id>]
|
|
849
837
|
ticlawk profile update [--display-name X] [--description Y] [--avatar-file path]
|
|
850
838
|
`,
|
|
851
|
-
attachment: `ticlawk attachment <
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
\`ticlawk message send --attach <file>\` instead, which uploads AND
|
|
855
|
-
surfaces the file to the user inside a chat message.
|
|
856
|
-
ticlawk attachment view <asset-id> [--out <path>]
|
|
839
|
+
attachment: `ticlawk attachment view <asset-id> [--out <path>]
|
|
840
|
+
Fetch metadata + signed URL for an existing asset. To send a file
|
|
841
|
+
to a user, use \`ticlawk message send --attach <file>\` instead.
|
|
857
842
|
`,
|
|
858
843
|
reminder: `ticlawk reminder <schedule|list|snooze|update|cancel|log>
|
|
859
844
|
ticlawk reminder schedule --title <t> (--fire-at <iso> | --in-seconds N | --in-minutes N) (--target "<target>" | --anchor-conversation-id <id>) [--anchor-message-id <id>]
|
|
@@ -79,10 +79,13 @@ EOF
|
|
|
79
79
|
- \`--attach <path>\` may be repeated; up to 10 files per message.
|
|
80
80
|
- Each file uploads to the secure file layer and surfaces to the user
|
|
81
81
|
inside the chat UI alongside your text.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
|
|
83
|
+
**The number of attachments must match what your text says.** If your
|
|
84
|
+
message body says "two charts attached", the command must contain
|
|
85
|
+
exactly two \`--attach\` flags. If your files are not ready yet (still
|
|
86
|
+
downloading, still generating), **wait** before sending; do not send a
|
|
87
|
+
"here it is" message claiming files you have not actually attached.
|
|
88
|
+
The user only sees what you attached, not what you promised.
|
|
86
89
|
|
|
87
90
|
### Threads
|
|
88
91
|
|