@microvac/plugin-decisions-classic 0.0.0-stage → 0.1.0-rc.17
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 +22 -0
- package/lib/client.js +44 -0
- package/package.json +40 -4
- package/src/client.ts +18 -0
- package/src/index.js +19 -0
- package/src/microvac-ui.d.ts +7 -0
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Paperclip AI
|
|
4
|
+
Copyright (c) 2026 Microvac contributors
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
package/lib/client.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
window.__ModuleLoader__.load({
|
|
2
|
+
id: "@microvac/plugin-decisions-classic",
|
|
3
|
+
factory: (require) => {
|
|
4
|
+
require("@microvac/ui").requireVersion("^1.0.0", "@microvac/plugin-decisions-classic");
|
|
5
|
+
const module = { exports: {} };
|
|
6
|
+
const exports = module.exports;
|
|
7
|
+
"use strict";
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
11
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __export = (target, all) => {
|
|
13
|
+
for (var name2 in all)
|
|
14
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from))
|
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
+
|
|
26
|
+
// src/client.ts
|
|
27
|
+
var client_exports = {};
|
|
28
|
+
__export(client_exports, {
|
|
29
|
+
apply: () => apply,
|
|
30
|
+
inject: () => inject,
|
|
31
|
+
name: () => name
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(client_exports);
|
|
34
|
+
var import_ui = require("@microvac/ui");
|
|
35
|
+
var name = "@microvac/plugin-decisions-classic";
|
|
36
|
+
var inject = ["pages"];
|
|
37
|
+
function apply(ctx) {
|
|
38
|
+
ctx.pages.provide("decisions", { id: name, component: import_ui.upstream.DecisionsPage });
|
|
39
|
+
ctx.pages.provide("interaction-card", { id: name, component: import_ui.upstream.InteractionCard });
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return module.exports;
|
|
43
|
+
},
|
|
44
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microvac/plugin-decisions-classic",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0-rc.17",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "Microvac plugin: the upstream Decisions page and interaction card, unchanged, as page plugins.",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./src/index.js",
|
|
9
|
+
"./client": "./lib/client.js",
|
|
10
|
+
"./package.json": "./package.json"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"src",
|
|
14
|
+
"lib"
|
|
15
|
+
],
|
|
16
|
+
"microvac": {
|
|
17
|
+
"ui": "^1.0.0"
|
|
18
|
+
},
|
|
19
|
+
"dsh": {
|
|
20
|
+
"client": {
|
|
21
|
+
"platform": "web",
|
|
22
|
+
"inject": [
|
|
23
|
+
"pages"
|
|
24
|
+
],
|
|
25
|
+
"external": [
|
|
26
|
+
"@microvac/ui"
|
|
27
|
+
],
|
|
28
|
+
"immediately": true
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@deepseek-ai/schemastery": "3.20.0-alpha.2"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build:client": "node ../../scripts/microvac/build-client-plugin.mjs .",
|
|
36
|
+
"typecheck": "tsc --noEmit"
|
|
37
|
+
},
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "https://github.com/microvac-ai/microvac"
|
|
41
|
+
}
|
|
42
|
+
}
|
package/src/client.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client face of the `decisions-classic` plugin: the upstream Decisions page
|
|
3
|
+
* and interaction card, wrapped untouched (ADR 0009). Its count is the
|
|
4
|
+
* upstream one, so it gives no count hook.
|
|
5
|
+
*/
|
|
6
|
+
import { upstream } from "@microvac/ui";
|
|
7
|
+
|
|
8
|
+
export const name = "@microvac/plugin-decisions-classic";
|
|
9
|
+
export const inject = ["pages"];
|
|
10
|
+
|
|
11
|
+
interface PagesContext {
|
|
12
|
+
pages: { provide(slot: string, occupant: { id: string; component: unknown }): () => void };
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function apply(ctx: PagesContext) {
|
|
16
|
+
ctx.pages.provide("decisions", { id: name, component: upstream.DecisionsPage });
|
|
17
|
+
ctx.pages.provide("interaction-card", { id: name, component: upstream.InteractionCard });
|
|
18
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
/**
|
|
3
|
+
* Host face of the `decisions-classic` plugin: nothing to configure or start.
|
|
4
|
+
* Its client face (`src/client.ts`, built into `lib/client.js`) provides the
|
|
5
|
+
* upstream Decisions page and interaction card through the page slots, so a
|
|
6
|
+
* page shows exactly what upstream shows. Enable it instead of
|
|
7
|
+
* `decisions-native` to get the upstream experience back.
|
|
8
|
+
*
|
|
9
|
+
* # microvac.yml
|
|
10
|
+
* - id: decisions-classic
|
|
11
|
+
* name: "@microvac/plugin-decisions-classic"
|
|
12
|
+
*/
|
|
13
|
+
import z from "@deepseek-ai/schemastery";
|
|
14
|
+
|
|
15
|
+
export const name = "@microvac/plugin-decisions-classic";
|
|
16
|
+
|
|
17
|
+
export const Config = z.object({});
|
|
18
|
+
|
|
19
|
+
export function apply() {}
|
package/README.md
DELETED