@axiom-lattice/microsandbox-service 3.0.3 → 3.0.4

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 (2) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,95 @@
1
1
  # @axiom-lattice/microsandbox-service
2
2
 
3
+ ## 3.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 9bbf5ce: ## Collection batch tools and Open MCP consolidation
8
+
9
+ BREAKING (core): the collection agent tool `add_entry` is replaced by
10
+ `add_entries` without a compatibility alias, so agent prompts, skills, and
11
+ saved tool allowlists that name `add_entry` must update. `add_entries` accepts
12
+ 1-50 entries, performs one all-or-nothing vector-store call, and generates each
13
+ entry's `_id` and `_created_at`. Collection middleware, plugin metadata,
14
+ capability mapping, built-in guidance, and the React tool catalog are kept in
15
+ sync.
16
+
17
+ The collection delete agent tool `delete_entry` is also replaced by
18
+ `delete_entries` without a compatibility alias: it accepts 1-50 ids and performs
19
+ one idempotent `in` vector-store delete on pgvector/memory, with an exact-ID
20
+ fallback for unknown backends so an unsupported filter cannot wipe a collection.
21
+ `SimpleMemoryVectorStore` now supports `in`/`notIn` metadata filters. Deleting a
22
+ collection now also drops its vector store, and single-entry create/update keep
23
+ server-owned identity and attempt to restore the old entry if a rewrite fails.
24
+
25
+ Open MCP now exposes all ten collection tools under the sole `collection` domain
26
+ (`collection_<action>`) with readOnly/destructive annotations. The built-in
27
+ `kbProvider` / `kb_search` tool and `kb` domain are removed; browser/preview and
28
+ sandbox tokens now carry the read-only `collection.search_collection` grant
29
+ instead. Open credentials still need a collection grant to call the tools, and key
30
+ creation/update rejects empty-item collection grants so a destructive domain
31
+ cannot be granted wholesale by accident.
32
+
33
+ Additive surfaces: REST gains `POST /api/collections/:name/entries/batch` and
34
+ `DELETE /api/collections/:name/entries/batch`, and the client SDK gains
35
+ `client.collections.entries(name).createMany()` / `deleteMany()`, sharing the
36
+ same limit and all-or-nothing semantics. Existing single-entry endpoints,
37
+ `create()`, and `delete(id)` are unchanged.
38
+
39
+ ## OIDC public clients
40
+
41
+ Make the OIDC client secret optional so public clients can use Authorization
42
+ Code + PKCE with `token_endpoint_auth_method=none`, matching the protocol
43
+ default. `OIDC_CLIENT_SECRET` may be omitted for the env provider, Platform
44
+ Admin's provider form no longer requires a secret on create, and the gateway,
45
+ client SDK, and Platform Ops provider tools accept a secret-less configuration.
46
+ Confidential clients continue to use the existing encrypted client-secret flow.
47
+
48
+ ## Security dependency updates
49
+
50
+ Follow up the Wiz remediation with `pnpm audit`: bump the pinned transitive
51
+ dependencies to the advisories published after the scan (shell-quote 1.11 —
52
+ critical command injection — fastify 5.12.6, @fastify/busboy 3.2.2,
53
+ @hono/node-server 2.1.3, brace-expansion 1.1.21/2.1.7/5.0.12,
54
+ body-parser 1.20.9/2.4.0, decode-uri-component 0.5.1, fast-uri 3.1.9/4.2.3,
55
+ glob 10.5/11.1/14.0.4, langsmith 0.12, picomatch 2.3.2/4.0.4,
56
+ protobufjs 7.6.5/8.8.1, source-map-js 1.2.2, undici 7.30.1, sanitize-html
57
+ 2.18.1, tar 7.5.22, tmp 0.2.7, vite 6.4.5, yaml 2.9.1, ajv 6.14/8.18,
58
+ mysql2 3.23.1, uuid 11.1, and others). Overrides are scoped per major line
59
+ where different majors are both required, and none pins below a declaring
60
+ package's range. Further zero-out pass: echarts 5.5 → 6.1 in react-sdk,
61
+ katex 0.19.1 (the patched range starts at 0.18.2), glob 14.0.4 for every
62
+ affected major line (10/11/13/14; glob 7 is outside the advisory range),
63
+ minimatch 11.0.8 for every vulnerable line, rimraf 4/5 → 6.1.4 (drops the
64
+ glob 9 dependency), ibm-cloud-sdk-core 5.9.4 (pulls file-type 21.3.4), and
65
+ fast-xml-parser 5.12.0. The client-sdk build moves from tsup 6.7 to 8.5,
66
+ clearing the last GHSA-3mv9-4h5g-vhg3 finding. Drop the unused `xlsx`
67
+ dependency from `apps/web`, which has no patched npm release.
68
+
69
+ Overrides only apply to this monorepo, so also raise the published packages'
70
+ own dependency ranges to patched versions, otherwise downstream consumers
71
+ (fina_demo) resolve the old lower bounds when they reinstall: fastify
72
+ ^5.12.6 (gateway, microsandbox-service, opensandbox-gateway), react-router
73
+ ^7.18.2, vite ^6.4.5, mysql2 ^3.23.1 (core), and uuid ^11.1.1 (core, gateway,
74
+ pg-stores, react-sdk, and the cli-a2a peer range).
75
+
76
+ ## Reverse-proxy mount-prefix support
77
+
78
+ Support deploying the gateway behind a reverse-proxy path prefix (`/harness`
79
+ or any other mount point) without hardcoding it.
80
+
81
+ Gateway-rendered pages no longer emit root-absolute asset URLs: the embed chat
82
+ shell and MCP App share shell reference their bundles relative to the page, and
83
+ shared HTML gets a relative `<base href>` (plus a page-relative password-unlock
84
+ request). Client-side URL derivation now keeps the externally visible prefix
85
+ instead of reducing URLs to `location.origin`: the embed loader strips its known
86
+ `/embed/agent-chat-loader.js` suffix, the embed page recovers its base from
87
+ `<mount>/api/web-apps/:id/chat`, the MCP App share page keeps `<mount>/s/:token`,
88
+ and MCP App link resolution/sandbox loading use the gateway base derived from the
89
+ client `baseURL`. Root-path deployments resolve to the same absolute URLs as
90
+ before. Adds a deterministic `/harness` embed e2e (prefix-stripping proxy) and
91
+ random-prefix unit coverage.
92
+
3
93
  ## 3.0.3
4
94
 
5
95
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiom-lattice/microsandbox-service",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",