@miadi/webweave 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -6
  3. package/package.json +6 -7
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Miadi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,10 +1,15 @@
1
1
  # `@miadi/webweave`
2
2
 
3
- TypeScript facade over **Miadi Webweave** — the terminal↔Simplenote bridge.
3
+ Find the active Webweave session for a folder, from TypeScript.
4
4
 
5
- Miadi Webweave puts Simplenote notes under terminal control. Simplenote has no public API, so the Python package drives a real Chrome over CDP/Playwright and reads and writes notes as if there were one. A note becomes an *address that follows you to every device* — the cheapest shared surface between a human at a terminal, a human on a phone, and an agent.
5
+ Miadi Webweave puts Simplenote notes under terminal control. Simplenote has no public API, so
6
+ the Python package drives a real Chrome over CDP and Playwright and reads and writes notes as
7
+ if there were one. A note becomes an address that follows you to every device: the cheapest
8
+ shared surface between a person at a terminal, a person on a phone, and an agent.
6
9
 
7
- This package is the typed boundary. The implementation is [`miadi-webweave`](https://pypi.org/project/miadi-webweave/) on PyPI.
10
+ In the Miadi stack, that shared note is one of the places a working session leaves a trace a
11
+ person can read from anywhere. This package is the typed boundary to it. The implementation is
12
+ [`miadi-webweave`](https://pypi.org/project/miadi-webweave/) on PyPI.
8
13
 
9
14
  ## What it wraps
10
15
 
@@ -47,9 +52,7 @@ console.log(info.ok, info.session?.session_id)
47
52
 
48
53
  Our records store a note address as a bare 32-hex id (e.g. `weave_id: a2c4150ced044cffaa0cd1ab58c516b2`) or as `simplenote://note/<id>`. The Python side accepts neither: every call site either hardcodes `https://app.simplenote.com/` or expects the `/p/<token>` *publish* form. Passing a bare id to `read` reaches Chrome and then fails with `Cannot navigate to invalid URL`, and `https://app.simplenote.com/note/<id>` returns **404** — so the resolution is a lookup nobody has written.
49
54
 
50
- The identifier we store is not an identifier the tool consumes. That belongs in `miadi_webweave`, not here: fixing it in a facade would repair it for one consumer and leave the CLI, the 35 MCP tools, and every future caller broken. Tracked in `jgwill/Miadi#562`.
51
-
52
- A facade with one working verb is a package. A facade with five unproven ones is a promise.
55
+ The identifier we store is not an identifier the tool consumes. The fix belongs in `miadi_webweave`, not here: fixing it in a facade would repair it for one consumer and leave the CLI, the MCP tools, and every future caller broken.
53
56
 
54
57
  ## Requirements
55
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miadi/webweave",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "TypeScript facade over Miadi Webweave. Resolves the active webweave session for a directory — the primitive every platform surface needs before it can read or write a note.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -19,11 +19,6 @@
19
19
  "dist",
20
20
  "README.md"
21
21
  ],
22
- "scripts": {
23
- "build": "../../node_modules/.bin/tsc -p tsconfig.build.json",
24
- "test": "npm run build && node --test test/*.test.mjs",
25
- "prepublishOnly": "npm run build"
26
- },
27
22
  "keywords": [
28
23
  "miadi",
29
24
  "webweave",
@@ -43,5 +38,9 @@
43
38
  "miadi-webweave": {
44
39
  "optional": true
45
40
  }
41
+ },
42
+ "scripts": {
43
+ "build": "../../node_modules/.bin/tsc -p tsconfig.build.json",
44
+ "test": "npm run build && node --test test/*.test.mjs"
46
45
  }
47
- }
46
+ }