annotask 0.0.0 → 0.0.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.
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Annotask</title>
7
- <script type="module" crossorigin src="/__annotask/assets/index-BD3nZNWX.js"></script>
7
+ <script type="module" crossorigin src="/__annotask/assets/index-BcsdXOsJ.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/__annotask/assets/index-DwbhEo-C.css">
9
9
  </head>
10
10
  <body>
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  startStandaloneServer
3
- } from "./chunk-LKRKKLOT.js";
4
- import "./chunk-XR26XVHT.js";
5
- import "./chunk-T6TKVAAA.js";
3
+ } from "./chunk-JPNMDGZN.js";
4
+ import "./chunk-XLNGAH3S.js";
5
+ import "./chunk-JLOSPIJ4.js";
6
6
  export {
7
7
  startStandaloneServer
8
8
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  transformFile
3
- } from "./chunk-6UQW2W7S.js";
3
+ } from "./chunk-VU7Z7EZA.js";
4
4
 
5
5
  // src/webpack/loader.ts
6
6
  function annotaskLoader(source) {
package/dist/webpack.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  bridgeClientScript,
3
3
  toggleButtonScript
4
- } from "./chunk-2TUWBFQG.js";
4
+ } from "./chunk-VI4NPM6C.js";
5
5
  import {
6
6
  startStandaloneServer
7
- } from "./chunk-LKRKKLOT.js";
8
- import "./chunk-XR26XVHT.js";
9
- import "./chunk-T6TKVAAA.js";
7
+ } from "./chunk-JPNMDGZN.js";
8
+ import "./chunk-XLNGAH3S.js";
9
+ import "./chunk-JLOSPIJ4.js";
10
10
 
11
11
  // src/webpack/plugin.ts
12
12
  import path from "path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "annotask",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "type": "module",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -37,6 +37,7 @@
37
37
  "dev:html-vite": "pnpm --filter @annotask/playground-html-vite dev",
38
38
  "dev:astro": "pnpm --filter @annotask/playground-astro dev",
39
39
  "dev:htmx-vite": "pnpm --filter @annotask/playground-htmx-vite dev",
40
+ "dev:mfe-vite": "pnpm --filter @annotask/playground-mfe-vite dev",
40
41
  "test": "vitest run",
41
42
  "test:watch": "vitest",
42
43
  "test:e2e": "playwright test"
@@ -26,6 +26,8 @@ cat .annotask/server.json
26
26
 
27
27
  This returns `{ "url": "http://localhost:PORT", "port": PORT }`. Use the `url` value as `BASE_URL` for all API calls below.
28
28
 
29
+ If the file contains a `"mfe"` field (e.g. `"mfe": "@antenna/factory"`), this project is a **micro-frontend** and the server is running on a remote root shell. Save the `mfe` value as `MFE_FILTER` — you will use it to filter tasks in step 1.
30
+
29
31
  If the file does not exist, probe for a running server:
30
32
 
31
33
  ```bash
@@ -37,8 +39,14 @@ Use whichever responds with `{"status":"ok"}`. **IMPORTANT: Do NOT read server.j
37
39
 
38
40
  ### 1. Fetch pending tasks
39
41
 
42
+ If `MFE_FILTER` is set (from step 0), append it as a query parameter to filter tasks for this project:
43
+
40
44
  ```bash
45
+ # Without MFE filter (standard single-project setup):
41
46
  curl -s $BASE_URL/__annotask/api/tasks
47
+
48
+ # With MFE filter (micro-frontend setup):
49
+ curl -s $BASE_URL/__annotask/api/tasks?mfe=$MFE_FILTER
42
50
  ```
43
51
 
44
52
  Response:
@@ -20,7 +20,7 @@ Connect to the Annotask WebSocket and stream changes as the user makes them visu
20
20
  ```bash
21
21
  cat .annotask/server.json
22
22
  ```
23
- Use the `port` and `url` values. If not found, probe `curl -s http://localhost:24678/__annotask/api/status` then `curl -s http://localhost:5173/__annotask/api/status`. **Do NOT read server.json from parent or sibling directories.**
23
+ Use the `url` value as the server URL. If the file contains a `"mfe"` field, this is a micro-frontend setup — the server is running on a remote root shell. Save the `mfe` value for filtering. If not found, probe `curl -s http://localhost:24678/__annotask/api/status` then `curl -s http://localhost:5173/__annotask/api/status`. **Do NOT read server.json from parent or sibling directories.**
24
24
 
25
25
  1. **Start watching** by running in the background:
26
26
  ```bash