@artifactshare/cli 0.8.2 → 0.8.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/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/skills/artifactshare/SKILL.md +5 -3
- package/skills/artifactshare/artifactshare.mdc +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to `@artifactshare/cli` are documented here.
|
|
4
4
|
For user-facing announcements, see https://artifactshare.com/updates?product=cli.
|
|
5
5
|
|
|
6
|
+
## 0.8.3 - 2026-07-26
|
|
7
|
+
|
|
8
|
+
- HTML append inserts content before the closing body tag when present, while Markdown and HTML fragments without that tag still append at the source end.
|
|
9
|
+
|
|
6
10
|
## 0.8.2 - 2026-07-26
|
|
7
11
|
|
|
8
12
|
- Add `append` for appending UTF-8 content to single-file Markdown and HTML artifacts.
|
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ runs add versions to the same file.
|
|
|
52
52
|
| `open <target>` | First command for agents opening a shared URL; ensures skills, then reads or suggests download |
|
|
53
53
|
| `share <path>` | Share a file or folder as a new shared file (`--project`, `--home`, `--visibility`, `--key`, link expiry options) |
|
|
54
54
|
| `update <target> <path>` | Add a new version to an existing file (ID or share URL) |
|
|
55
|
-
| `append <target> <path>` | Append a non-empty UTF-8 file
|
|
55
|
+
| `append <target> <path>` | Append a non-empty UTF-8 file without a separator: at Markdown source end or before `</body>` in HTML, falling back to source end |
|
|
56
56
|
| `edit <target>` | Change title, sharing, link expiry, explicit viewers, or project placement |
|
|
57
57
|
| `delete <target>` | Permanently delete a file you shared |
|
|
58
58
|
| `resolve <value>` | Find files by URL, ID, title, or project name |
|
package/dist/index.js
CHANGED
|
@@ -772,7 +772,7 @@ function appendOutcomeUnknownError(artifactId, error) {
|
|
|
772
772
|
code: "append_outcome_unknown",
|
|
773
773
|
message: "The append result is unknown.",
|
|
774
774
|
why: error instanceof Error ? `The connection ended before confirmation: ${error.message}` : "The connection ended before Artifact Share confirmed whether the append was saved.",
|
|
775
|
-
hint: `Run ${CLI_INVOCATION} artifacts get ${artifactId} --json
|
|
775
|
+
hint: `Run ${CLI_INVOCATION} artifacts get ${artifactId} --json before retrying append. Inspect the source end for Markdown; for HTML, inspect immediately before the selected closing body tag, or the source end when that tag is absent.`,
|
|
776
776
|
agentRecoverable: true,
|
|
777
777
|
requiresHuman: false,
|
|
778
778
|
recovery: {
|
|
@@ -5565,7 +5565,7 @@ Common failures:
|
|
|
5565
5565
|
});
|
|
5566
5566
|
const appendDefinition = define({
|
|
5567
5567
|
name: "append",
|
|
5568
|
-
description: "Append a local file
|
|
5568
|
+
description: "Append a local UTF-8 file without a separator: at the end of Markdown source, or before an ASCII case-insensitive </body> in HTML and at the end if none exists. Creates a new version at the same URL.",
|
|
5569
5569
|
toKebab: true,
|
|
5570
5570
|
args: {
|
|
5571
5571
|
...commonArgs,
|
|
@@ -5579,7 +5579,7 @@ const appendDefinition = define({
|
|
|
5579
5579
|
description: "Non-empty UTF-8 file to append"
|
|
5580
5580
|
}
|
|
5581
5581
|
},
|
|
5582
|
-
examples: `Append <path>
|
|
5582
|
+
examples: `Append <path> without a separator and create a new version at the existing share URL.\n\nFor Markdown, the file is added at the end of the current source. For HTML, it is inserted immediately before an ASCII case-insensitive </body> closing tag; when the tag is absent, it is added at the end.\n\nStatic sites are not supported. Use update to replace the full source instead.`
|
|
5583
5583
|
});
|
|
5584
5584
|
const editDefinition = define({
|
|
5585
5585
|
name: "edit",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artifactshare/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "Upload and share HTML, Markdown, folders, and static sites from terminals, AI agents, automation, and CI.",
|
|
5
5
|
"homepage": "https://artifactshare.com/connect",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -4,7 +4,7 @@ description: Share, publish, upload, host, update, open, or read back existing f
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- artifactshare-skill
|
|
7
|
-
version:
|
|
7
|
+
version: 31
|
|
8
8
|
managed: true
|
|
9
9
|
-->
|
|
10
10
|
|
|
@@ -81,8 +81,10 @@ contain `$`, spaces, `*`, or `?`; use single quotes such as
|
|
|
81
81
|
## Share
|
|
82
82
|
|
|
83
83
|
Use `share` for new files. Use `update` to replace an existing artifact. Use
|
|
84
|
-
`append` to add a non-empty UTF-8 file exactly as-is to a single-file
|
|
85
|
-
|
|
84
|
+
`append` to add a non-empty UTF-8 file exactly as-is to a single-file artifact;
|
|
85
|
+
Markdown is appended at source end, while HTML is inserted before an ASCII
|
|
86
|
+
case-insensitive `</body>` when present, or at source end otherwise. It adds no
|
|
87
|
+
newline or separator and does not support sites.
|
|
86
88
|
|
|
87
89
|
```bash
|
|
88
90
|
npx --yes @artifactshare/cli share ./report.html --json
|
|
@@ -4,7 +4,7 @@ alwaysApply: false
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- artifactshare-skill
|
|
7
|
-
version:
|
|
7
|
+
version: 31
|
|
8
8
|
managed: true
|
|
9
9
|
-->
|
|
10
10
|
|
|
@@ -32,8 +32,9 @@ Use the CLI for local files and folders. The remote MCP tools accept HTML or
|
|
|
32
32
|
Markdown source strings; they cannot read paths like `/Users/.../report.html`
|
|
33
33
|
from the user's filesystem.
|
|
34
34
|
Use `append <target> <path> --json` to append a non-empty UTF-8 file exactly
|
|
35
|
-
as-is to a single-file Markdown
|
|
36
|
-
|
|
35
|
+
as-is to a single-file artifact. Markdown is appended at source end; HTML is
|
|
36
|
+
inserted before an ASCII case-insensitive `</body>` when present, or at source
|
|
37
|
+
end otherwise. It inserts no separator and does not support static sites.
|
|
37
38
|
|
|
38
39
|
Quote paths and free-form text before passing them through a shell. Paths may
|
|
39
40
|
contain `$`, spaces, `*`, or `?`; use single quotes such as
|