@hasna/machines 0.0.9 → 0.0.11

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/LICENSE CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  Apache License
2
3
  Version 2.0, January 2004
3
4
  http://www.apache.org/licenses/
@@ -175,7 +176,7 @@
175
176
 
176
177
  END OF TERMS AND CONDITIONS
177
178
 
178
- Copyright 2026 hasna
179
+ Copyright 2026 Hasna, Inc.
179
180
 
180
181
  Licensed under the Apache License, Version 2.0 (the "License");
181
182
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -8,6 +8,21 @@ Machine fleet management for developers — provision, sync, inspect, and operat
8
8
  - `machines-mcp`: MCP server exposing fleet tools to AI agents
9
9
  - `machines-agent`: lightweight local daemon for heartbeats and runtime reporting
10
10
 
11
+ ## HTTP mode
12
+
13
+ Long-lived Streamable HTTP transport for shared agent connections (stdio remains the default):
14
+
15
+ ```bash
16
+ machines-mcp --http
17
+ # or: MCP_HTTP=1 machines-mcp
18
+ # default port: 8821 (override with --port or MCP_HTTP_PORT)
19
+ ```
20
+
21
+ Endpoints on `127.0.0.1` only:
22
+
23
+ - `GET /health` → `{"status":"ok","name":"machines"}`
24
+ - `POST /mcp` → MCP Streamable HTTP
25
+
11
26
  ## Manifest
12
27
 
13
28
  `machines.json` is the desired fleet declaration.
@@ -5,29 +5,15 @@ var __getProtoOf = Object.getPrototypeOf;
5
5
  var __defProp = Object.defineProperty;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- function __accessProp(key) {
9
- return this[key];
10
- }
11
- var __toESMCache_node;
12
- var __toESMCache_esm;
13
8
  var __toESM = (mod, isNodeMode, target) => {
14
- var canCache = mod != null && typeof mod === "object";
15
- if (canCache) {
16
- var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
17
- var cached = cache.get(mod);
18
- if (cached)
19
- return cached;
20
- }
21
9
  target = mod != null ? __create(__getProtoOf(mod)) : {};
22
10
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
23
11
  for (let key of __getOwnPropNames(mod))
24
12
  if (!__hasOwnProp.call(to, key))
25
13
  __defProp(to, key, {
26
- get: __accessProp.bind(mod, key),
14
+ get: () => mod[key],
27
15
  enumerable: true
28
16
  });
29
- if (canCache)
30
- cache.set(mod, to);
31
17
  return to;
32
18
  };
33
19
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
@@ -2130,15 +2116,15 @@ var __getProtoOf2 = Object.getPrototypeOf;
2130
2116
  var __defProp2 = Object.defineProperty;
2131
2117
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
2132
2118
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
2133
- function __accessProp2(key) {
2119
+ function __accessProp(key) {
2134
2120
  return this[key];
2135
2121
  }
2136
- var __toESMCache_node2;
2137
- var __toESMCache_esm2;
2122
+ var __toESMCache_node;
2123
+ var __toESMCache_esm;
2138
2124
  var __toESM2 = (mod, isNodeMode, target) => {
2139
2125
  var canCache = mod != null && typeof mod === "object";
2140
2126
  if (canCache) {
2141
- var cache = isNodeMode ? __toESMCache_node2 ??= new WeakMap : __toESMCache_esm2 ??= new WeakMap;
2127
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
2142
2128
  var cached = cache.get(mod);
2143
2129
  if (cached)
2144
2130
  return cached;
@@ -2148,7 +2134,7 @@ var __toESM2 = (mod, isNodeMode, target) => {
2148
2134
  for (let key of __getOwnPropNames2(mod))
2149
2135
  if (!__hasOwnProp2.call(to, key))
2150
2136
  __defProp2(to, key, {
2151
- get: __accessProp2.bind(mod, key),
2137
+ get: __accessProp.bind(mod, key),
2152
2138
  enumerable: true
2153
2139
  });
2154
2140
  if (canCache)