@relayfile/adapter-confluence 0.2.1 → 0.2.2

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.
@@ -18,11 +18,11 @@ Resources:
18
18
 
19
19
  | To... | Do... |
20
20
  |---|---|
21
- | Read | `cat <id>.json` |
22
- | Edit | Write a partial JSON object to `<id>.json`. Only included mutable fields PATCH; fields marked `readOnly` in `.schema.json` are rejected. |
23
- | Create | Write JSON to any non-canonical filename such as `create request.json`. The adapter creates the record at `<real-id>.json` and rewrites the draft as `{ "created": "<real-id>", "path": "<resource>/<real-id>.json", "url": "<provider-url>" }`. |
21
+ | Read | `cat <canonical-resource-path>` after listing the resource directory or following an alias when one is available. Use the resource table and ID patterns below to determine whether a resource uses a bare id, an adapter-specific slug/id filename, or an exact sidecar path such as `content.md`. |
22
+ | Edit | Write the resource update payload to the canonical resource path. For JSON resources, included mutable fields PATCH; fields marked `readOnly` in `.schema.json` are rejected. |
23
+ | Create | Write JSON to any non-canonical filename such as `create request.json`. The adapter creates the record at its canonical resource path and rewrites the draft as `{ "created": "<real-id>", "path": "<canonical-resource-path>", "url": "<provider-url>" }`. |
24
24
  | Ignore | Editor scratch files named `partial.json`, `.tmp.json`, `.partial.json`, `*.tmp.json`, or `*.partial.json` are ignored and never treated as create drafts. |
25
- | Delete | `rm <id>.json` for canonical ids. |
25
+ | Delete | `rm <canonical-resource-path>` for canonical records. |
26
26
 
27
27
  ## ID Patterns
28
28
  - `/confluence/pages/<id>.json`: `^(?:[A-Za-z0-9_.~-]+(?:--|__))?\d+$`. Filenames that do not match this pattern are treated as create drafts.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relayfile/adapter-confluence",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Confluence adapter package for Relayfile",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -80,7 +80,7 @@
80
80
  "directory": "packages/confluence"
81
81
  },
82
82
  "dependencies": {
83
- "@relayfile/adapter-core": "^0.3.2"
83
+ "@relayfile/adapter-core": "^0.3.4"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "@relayfile/sdk": ">=0.6.0 <1"