@blotout/qinto-cli 0.1.11 → 0.1.13

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "main": {
3
3
  "version": "0.1.0",
4
- "gitSha": "83bcac7072f2feb866505c4a7b99f7281b08d972",
5
- "builtAt": "2026-08-29T21:13:15.188Z",
4
+ "gitSha": "d2c28f81511d0b1e69a222d04905c6cbea53bb89",
5
+ "builtAt": "2026-09-01T16:47:48.958Z",
6
6
  "compatibilityDate": "2026-06-23",
7
7
  "compatibilityFlags": [
8
8
  "nodejs_compat"
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "wfp": {
25
25
  "version": "0.1.0",
26
- "gitSha": "c71e3d19431cd96a0c9f43eccabaa36d021401f7",
27
- "builtAt": "2026-08-24T10:38:20.398Z",
26
+ "gitSha": "6064f0fb074965ec6add05255c92ece93bb31321",
27
+ "builtAt": "2026-08-31T12:30:46.702Z",
28
28
  "compatibilityDate": "2026-06-23",
29
29
  "compatibilityFlags": [
30
30
  "nodejs_compat"
@@ -2158,10 +2158,9 @@ var EDGETAG_PREFIXES = [
2158
2158
 
2159
2159
  // src/allowed-paths.ts
2160
2160
  var QINTO_PREFIXES = ["/open", "/q.js", "/health", "/v1/", "/openapi.json", "/apps/", "/app/"];
2161
- var QINTO_EXACT = /* @__PURE__ */ new Set(["/__qinto/control"]);
2162
2161
  var ALLOWED_PREFIXES = [...QINTO_PREFIXES, ...EDGETAG_PREFIXES];
2163
2162
  var allowedPaths = /* @__PURE__ */ __name((path) => {
2164
- return path === "/" || QINTO_EXACT.has(path) || ALLOWED_PREFIXES.some((prefix) => path.startsWith(prefix));
2163
+ return path === "/" || ALLOWED_PREFIXES.some((prefix) => path.startsWith(prefix));
2165
2164
  }, "allowedPaths");
2166
2165
 
2167
2166
  // ../../libs/wfp-control-token/src/control-token.ts
@@ -2244,6 +2243,21 @@ var requireControlToken = /* @__PURE__ */ __name(async (c, next) => {
2244
2243
  return next();
2245
2244
  }, "requireControlToken");
2246
2245
 
2246
+ // src/control/app.ts
2247
+ var forwardAppControl = /* @__PURE__ */ __name(async (c) => {
2248
+ const workerName = c.req.query("workerName");
2249
+ if (workerName === void 0 || workerName === "") {
2250
+ return c.text("workerName required", 400);
2251
+ }
2252
+ const url = new URL(c.req.url);
2253
+ url.pathname = "/__qinto/control";
2254
+ url.search = "";
2255
+ const headers = new Headers(c.req.raw.headers);
2256
+ headers.delete("authorization");
2257
+ const body = await c.req.raw.text();
2258
+ return c.env.DISPATCHER.get(workerName).fetch(new Request(url, { method: "POST", headers, body }));
2259
+ }, "forwardAppControl");
2260
+
2247
2261
  // src/control/id-graph.ts
2248
2262
  var INSPECT_AUTHORIZATION_HEADER = "x-qinto-inspect-authorization";
2249
2263
  var ACTIONS = /* @__PURE__ */ new Set(["resolve", "inspect", "rows"]);
@@ -2683,6 +2697,7 @@ var Tail = class extends DurableObject {
2683
2697
  // src/index.ts
2684
2698
  var app = new Hono2();
2685
2699
  app.get("/tail", requireControlToken, openTailSocket);
2700
+ app.post("/control/app", requireControlToken, forwardAppControl);
2686
2701
  app.post("/control/id-graph/:action", requireControlToken, forwardIdGraph);
2687
2702
  app.all("*", (c) => {
2688
2703
  if (!allowedPaths(c.req.path)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotout/qinto-cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "type": "module",
5
5
  "description": "Qinto CLI: authenticate against the Qinto platform and operate it from the terminal or from an agent.",
6
6
  "repository": {
@@ -40,9 +40,9 @@
40
40
  "typescript": "6.0.3",
41
41
  "vite": "^8.0.0",
42
42
  "vitest": "4.1.10",
43
- "@qinto/app-build": "0.0.0",
44
43
  "@qinto/app-dev": "0.0.0",
45
44
  "@qinto/app-manifest": "0.0.0",
45
+ "@qinto/app-build": "0.0.0",
46
46
  "@qinto/oauth-grammar": "0.0.0"
47
47
  },
48
48
  "scripts": {