teamclaws 2.0.16 → 2.0.17

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/constants.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export const PACKAGE_NAME = "teamclaws";
2
- export const PACKAGE_VERSION = "2.0.16";
2
+ export const PACKAGE_VERSION = "2.0.17";
3
3
  export const CLIENT_NAME = "teamclaws-cli";
4
4
  export const CONTRACT_VERSION = 1;
5
5
  export const OUTPUT_SCHEMA_VERSION = 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teamclaws",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "description": "Official TeamClaws command-line client and agent skills",
5
5
  "license": "PolyForm-Shield-1.0.0",
6
6
  "homepage": "https://teamclaws.com",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: teamclaws-project
3
- description: Put authorized files, jobs, agents, or projects on a paired TeamClaws server and run them, including services with the user's public or private access choice.
3
+ description: Find and retrieve authorized files from a paired TeamClaws workspace, or put files, jobs, agents, and projects there and run them.
4
4
  ---
5
5
 
6
6
  # Put work on a TeamClaws server
@@ -59,11 +59,44 @@ teamclaws shell <server-id> --command <one-quoted-command-argument> --json
59
59
  ```
60
60
 
61
61
  This sends the exact command over the authenticated workspace HTTPS shell API.
62
- Each command starts in the remote account's home; use explicit working directories.
62
+ Check `pwd`, `printf '%s\n' "$HOME"`, and `id` rather than assuming the starting
63
+ directory is the user's home. Use explicit working directories in commands.
63
64
  The result has `stdout`, `stderr`, and `exit_code`. Require exit 0 and independent
64
65
  destination verification. There is no dedicated CLI file-transfer command and no
65
66
  implicit SSH connection. Do not invent one or handle the saved credential yourself.
66
67
 
68
+ ### Find a file the user left on the server
69
+
70
+ When the user names a file without a path, explain where they probably put it
71
+ when working through the CLI, then inspect those locations before asking them
72
+ for a full path:
73
+
74
+ - The directory reported by `pwd`, and the project's directory if known.
75
+ - `/tmp/`, especially an existing `/tmp/teamclaws-shared/` handoff directory,
76
+ and `/var/tmp/`. These are temporary locations, not durable storage.
77
+ - The shared workspace, commonly `/home/teamclaws_user/`, including documented
78
+ project, artifact, or handoff directories in `LOCAL_AGENT.md` or project instructions.
79
+ - The paired user's `$HOME` and its `workspace/` directory. This private home
80
+ can differ from the shared workspace and from another agent's home.
81
+
82
+ These are likely locations, not a guarantee that every directory exists or is
83
+ shared with every identity. Inspect the actual paths and permissions. A
84
+ provider's private temporary namespace may differ from the paired shell's `/tmp`.
85
+ Do not change permissions or switch identities to search inaccessible locations.
86
+
87
+ Search the named directory and its children for the exact filename first;
88
+ use a case-insensitive or partial-name search if needed. Prefer `rg --files
89
+ --hidden --no-ignore -g '<filename>' <directory>` when available; otherwise use
90
+ `find <directory> -iname '<filename>' -print`. Do not suppress permission errors
91
+ or turn an incomplete search into a claim that the file does not exist. Check
92
+ directory symlinks explicitly without following them outside the authorized scope.
93
+
94
+ If the file is still unfound, report the actual searched locations and access
95
+ failures before asking for its full path or originating chat/project. To retrieve
96
+ a found non-secret file, return its bytes through the paired shell (base64 is
97
+ suitable), save them locally, and compare the remote and saved SHA-256 hashes.
98
+ Preserve the remote original and do not print encoded file contents unnecessarily.
99
+
67
100
  For ordinary files, use the shell to create a new staging directory, decode
68
101
  base64-encoded file bytes there, and compare SHA-256 hashes against the local
69
102
  files. Construct the argument with a subprocess argument list (no local shell