@agimon-ai/po-ui 0.0.0-alpha.1 → 0.0.0-stage
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/README.md +2 -36
- package/package.json +3 -193
- package/LICENSE +0 -21
- package/dist/apiContracts.cjs +0 -17
- package/dist/apiContracts.cjs.map +0 -1
- package/dist/apiContracts.d.mts +0 -53
- package/dist/apiContracts.d.mts.map +0 -1
- package/dist/apiContracts.mjs +0 -13
- package/dist/apiContracts.mjs.map +0 -1
- package/dist/config.cjs +0 -62
- package/dist/config.d.mts +0 -2
- package/dist/config.mjs +0 -2
- package/dist/extensionName.cjs +0 -59
- package/dist/extensionName.cjs.map +0 -1
- package/dist/extensionName.d.mts +0 -14
- package/dist/extensionName.d.mts.map +0 -1
- package/dist/extensionName.mjs +0 -54
- package/dist/extensionName.mjs.map +0 -1
- package/dist/extensions/mcp-ui.mjs +0 -46
- package/dist/extensions/mcp-ui.mjs.map +0 -1
- package/dist/extensions/mcp.cjs +0 -79
- package/dist/extensions/mcp.cjs.map +0 -1
- package/dist/extensions/mcp.d.mts +0 -5
- package/dist/extensions/mcp.d.mts.map +0 -1
- package/dist/extensions/mcp.mjs +0 -74
- package/dist/extensions/mcp.mjs.map +0 -1
- package/dist/extensions/server.cjs +0 -137
- package/dist/extensions/server.cjs.map +0 -1
- package/dist/extensions/server.d.mts +0 -5
- package/dist/extensions/server.d.mts.map +0 -1
- package/dist/extensions/server.mjs +0 -132
- package/dist/extensions/server.mjs.map +0 -1
- package/dist/extensions/web.mjs +0 -332
- package/dist/extensions/web.mjs.map +0 -1
- package/dist/footer.cjs +0 -26
- package/dist/footer.d.mts +0 -2
- package/dist/footer.mjs +0 -2
- package/dist/harnessMetadata-CzsdGAxL.d.mts +0 -21
- package/dist/harnessMetadata-CzsdGAxL.d.mts.map +0 -1
- package/dist/harnessMetadata-DkMSJutN.mjs +0 -25
- package/dist/harnessMetadata-DkMSJutN.mjs.map +0 -1
- package/dist/harnessMetadata-Dw9Rb1nW.cjs +0 -30
- package/dist/harnessMetadata-Dw9Rb1nW.cjs.map +0 -1
- package/dist/harnessMetadata.cjs +0 -3
- package/dist/harnessMetadata.d.mts +0 -2
- package/dist/harnessMetadata.mjs +0 -2
- package/dist/index-Bx49wmE7.d.mts +0 -30
- package/dist/index-Bx49wmE7.d.mts.map +0 -1
- package/dist/index-Dpzvl-vg.d.mts +0 -103
- package/dist/index-Dpzvl-vg.d.mts.map +0 -1
- package/dist/index.cjs +0 -12
- package/dist/index.d.mts +0 -8
- package/dist/index.mjs +0 -5
- package/dist/leader.cjs +0 -0
- package/dist/leader.d.mts +0 -2
- package/dist/leader.mjs +0 -1
- package/dist/leaderRegistry.cjs +0 -515
- package/dist/leaderRegistry.cjs.map +0 -1
- package/dist/leaderRegistry.d.mts +0 -59
- package/dist/leaderRegistry.d.mts.map +0 -1
- package/dist/leaderRegistry.mjs +0 -514
- package/dist/leaderRegistry.mjs.map +0 -1
- package/dist/logSinkTelemetry.cjs +0 -4
- package/dist/logSinkTelemetry.d.mts +0 -2
- package/dist/logSinkTelemetry.mjs +0 -2
- package/dist/rolldown-runtime-VH7oDXx4.cjs +0 -28
- package/dist/skills.cjs +0 -38
- package/dist/skills.d.mts +0 -2
- package/dist/skills.mjs +0 -2
- package/dist/telemetry--EgKB9ei.mjs +0 -36
- package/dist/telemetry--EgKB9ei.mjs.map +0 -1
- package/dist/telemetry-DMR6cIT1.cjs +0 -47
- package/dist/telemetry-DMR6cIT1.cjs.map +0 -1
- package/dist/theme-2wveit5V.cjs +0 -166
- package/dist/theme-2wveit5V.cjs.map +0 -1
- package/dist/theme-Byj_dBlT.mjs +0 -134
- package/dist/theme-Byj_dBlT.mjs.map +0 -1
- package/dist/theme.cjs +0 -7
- package/dist/theme.d.mts +0 -2
- package/dist/theme.mjs +0 -2
- package/dist/toolInventory.cjs +0 -20
- package/dist/toolInventory.d.mts +0 -2
- package/dist/toolInventory.mjs +0 -2
- package/dist/uiState-Binu4nUb.d.mts +0 -40
- package/dist/uiState-Binu4nUb.d.mts.map +0 -1
- package/dist/uiState-G_Pso-5i.mjs +0 -57
- package/dist/uiState-G_Pso-5i.mjs.map +0 -1
- package/dist/uiState-rUwgKslb.cjs +0 -68
- package/dist/uiState-rUwgKslb.cjs.map +0 -1
- package/dist/uiState.cjs +0 -4
- package/dist/uiState.d.mts +0 -2
- package/dist/uiState.mjs +0 -2
- package/themes/po-dark.json +0 -88
package/README.md
CHANGED
|
@@ -1,37 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Temporary Holding Version
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
The [Po distribution](https://www.npmjs.com/package/@agimon-ai/po) loads this package as
|
|
6
|
-
core. Extension authors can depend on its public contracts without adopting the full distribution.
|
|
7
|
-
|
|
8
|
-
> **Alpha:** UI and contribution contracts may change between releases.
|
|
9
|
-
|
|
10
|
-
## Requirements
|
|
11
|
-
|
|
12
|
-
- Node.js 24 or newer
|
|
13
|
-
|
|
14
|
-
## Install
|
|
15
|
-
|
|
16
|
-
Po users should not add it to a layer; the distribution loads it before layer contributions.
|
|
17
|
-
|
|
18
|
-
## Public API
|
|
19
|
-
|
|
20
|
-
```ts
|
|
21
|
-
import { DEFAULT_THEME_NAME } from '@agimon-ai/po-ui/theme';
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Development
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
pnpm build
|
|
28
|
-
pnpm typecheck
|
|
29
|
-
pnpm test
|
|
30
|
-
pnpm lint
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Maintained by [Agimon](https://agimon.ai/about).
|
|
34
|
-
|
|
35
|
-
## License
|
|
36
|
-
|
|
37
|
-
MIT
|
|
3
|
+
This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
|
package/package.json
CHANGED
|
@@ -1,196 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/po-ui",
|
|
3
|
-
"version": "0.0.0-
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"ai",
|
|
7
|
-
"coding-agent",
|
|
8
|
-
"developer-tools",
|
|
9
|
-
"leader-key",
|
|
10
|
-
"pi-extension",
|
|
11
|
-
"pi-package",
|
|
12
|
-
"pi-tui",
|
|
13
|
-
"po",
|
|
14
|
-
"terminal-ui",
|
|
15
|
-
"tui"
|
|
16
|
-
],
|
|
17
|
-
"homepage": "https://agimon.ai",
|
|
18
|
-
"bugs": {
|
|
19
|
-
"url": "https://github.com/AgiFlow/po/issues"
|
|
20
|
-
},
|
|
21
|
-
"license": "MIT",
|
|
22
|
-
"author": "Vuong Ngo",
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/AgiFlow/po.git",
|
|
26
|
-
"directory": "packages/foundations/po-ui"
|
|
27
|
-
},
|
|
28
|
-
"files": [
|
|
29
|
-
"dist",
|
|
30
|
-
"themes"
|
|
31
|
-
],
|
|
32
|
-
"type": "module",
|
|
33
|
-
"main": "./dist/index.cjs",
|
|
34
|
-
"module": "./dist/index.mjs",
|
|
35
|
-
"types": "./dist/index.d.mts",
|
|
36
|
-
"jsnext:main": "./dist/index.mjs",
|
|
37
|
-
"exports": {
|
|
38
|
-
".": {
|
|
39
|
-
"types": "./dist/index.d.mts",
|
|
40
|
-
"import": "./dist/index.mjs",
|
|
41
|
-
"require": "./dist/index.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./config": {
|
|
44
|
-
"types": "./dist/config.d.mts",
|
|
45
|
-
"import": "./dist/config.mjs",
|
|
46
|
-
"require": "./dist/config.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./extensionName": {
|
|
49
|
-
"types": "./dist/extensionName.d.mts",
|
|
50
|
-
"import": "./dist/extensionName.mjs",
|
|
51
|
-
"require": "./dist/extensionName.cjs"
|
|
52
|
-
},
|
|
53
|
-
"./extensions/server": {
|
|
54
|
-
"types": "./dist/extensions/server.d.mts",
|
|
55
|
-
"import": "./dist/extensions/server.mjs",
|
|
56
|
-
"require": "./dist/extensions/server.cjs"
|
|
57
|
-
},
|
|
58
|
-
"./extensions/web": {
|
|
59
|
-
"import": "./dist/extensions/web.mjs"
|
|
60
|
-
},
|
|
61
|
-
"./footer": {
|
|
62
|
-
"types": "./dist/footer.d.mts",
|
|
63
|
-
"import": "./dist/footer.mjs",
|
|
64
|
-
"require": "./dist/footer.cjs"
|
|
65
|
-
},
|
|
66
|
-
"./harnessMetadata": {
|
|
67
|
-
"types": "./dist/harnessMetadata.d.mts",
|
|
68
|
-
"import": "./dist/harnessMetadata.mjs",
|
|
69
|
-
"require": "./dist/harnessMetadata.cjs"
|
|
70
|
-
},
|
|
71
|
-
"./leader": {
|
|
72
|
-
"types": "./dist/leader.d.mts",
|
|
73
|
-
"import": "./dist/leader.mjs",
|
|
74
|
-
"require": "./dist/leader.cjs"
|
|
75
|
-
},
|
|
76
|
-
"./leaderRegistry": {
|
|
77
|
-
"types": "./dist/leaderRegistry.d.mts",
|
|
78
|
-
"import": "./dist/leaderRegistry.mjs",
|
|
79
|
-
"require": "./dist/leaderRegistry.cjs"
|
|
80
|
-
},
|
|
81
|
-
"./logSinkTelemetry": {
|
|
82
|
-
"types": "./dist/logSinkTelemetry.d.mts",
|
|
83
|
-
"import": "./dist/logSinkTelemetry.mjs",
|
|
84
|
-
"require": "./dist/logSinkTelemetry.cjs"
|
|
85
|
-
},
|
|
86
|
-
"./skills": {
|
|
87
|
-
"types": "./dist/skills.d.mts",
|
|
88
|
-
"import": "./dist/skills.mjs",
|
|
89
|
-
"require": "./dist/skills.cjs"
|
|
90
|
-
},
|
|
91
|
-
"./theme": {
|
|
92
|
-
"types": "./dist/theme.d.mts",
|
|
93
|
-
"import": "./dist/theme.mjs",
|
|
94
|
-
"require": "./dist/theme.cjs"
|
|
95
|
-
},
|
|
96
|
-
"./themes/po-dark.json": "./themes/po-dark.json",
|
|
97
|
-
"./toolInventory": {
|
|
98
|
-
"types": "./dist/toolInventory.d.mts",
|
|
99
|
-
"import": "./dist/toolInventory.mjs",
|
|
100
|
-
"require": "./dist/toolInventory.cjs"
|
|
101
|
-
},
|
|
102
|
-
"./uiState": {
|
|
103
|
-
"types": "./dist/uiState.d.mts",
|
|
104
|
-
"import": "./dist/uiState.mjs",
|
|
105
|
-
"require": "./dist/uiState.cjs"
|
|
106
|
-
},
|
|
107
|
-
"./package.json": "./package.json"
|
|
108
|
-
},
|
|
109
|
-
"publishConfig": {
|
|
110
|
-
"access": "public"
|
|
111
|
-
},
|
|
112
|
-
"dependencies": {
|
|
113
|
-
"@agimon-ai/po-core": "0.0.0-alpha.1",
|
|
114
|
-
"@agimon-ai/po-hashline": "0.0.0-alpha.1",
|
|
115
|
-
"@agimon-ai/po-minor-mode": "0.0.0-alpha.1",
|
|
116
|
-
"@agimon-ai/po-telemetry": "0.0.0-alpha.1",
|
|
117
|
-
"@agimon-ai/po-web-components": "0.0.0-alpha.1",
|
|
118
|
-
"@deepseek-ai/cordis": "4.0.4",
|
|
119
|
-
"yaml": "2.9.1"
|
|
120
|
-
},
|
|
121
|
-
"devDependencies": {
|
|
122
|
-
"@agimon-ai/po-build": "0.0.0-alpha.1",
|
|
123
|
-
"@agimon-ai/po-core": "0.0.0-alpha.1",
|
|
124
|
-
"@agimon-ai/po-web-components": "0.0.0-alpha.1",
|
|
125
|
-
"@earendil-works/pi-coding-agent": "1.0.2",
|
|
126
|
-
"@tanstack/react-store": "0.11.2",
|
|
127
|
-
"@tanstack/store": "0.11.2",
|
|
128
|
-
"@types/node": "26.6.4",
|
|
129
|
-
"@types/react": "19.3.0",
|
|
130
|
-
"@vitest/coverage-v8": "5.0.3",
|
|
131
|
-
"react": "19.3.0",
|
|
132
|
-
"react-dom": "19.3.0",
|
|
133
|
-
"tsdown": "0.23.0",
|
|
134
|
-
"typescript": "7.0.2",
|
|
135
|
-
"vitest": "5.0.3"
|
|
136
|
-
},
|
|
137
|
-
"peerDependencies": {
|
|
138
|
-
"@agimon-ai/po-core": "0.0.0-alpha.1",
|
|
139
|
-
"@agimon-ai/po-web-components": "0.0.0-alpha.1",
|
|
140
|
-
"@earendil-works/pi-coding-agent": "1.0.2"
|
|
141
|
-
},
|
|
142
|
-
"peerDependenciesMeta": {
|
|
143
|
-
"@agimon-ai/po-web-components": {
|
|
144
|
-
"optional": true
|
|
145
|
-
},
|
|
146
|
-
"@agimon-ai/po-core": {
|
|
147
|
-
"optional": true
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
"engines": {
|
|
151
|
-
"node": ">=24"
|
|
152
|
-
},
|
|
153
|
-
"poMcp": {
|
|
154
|
-
"entry": "./generated/mcp.ts",
|
|
155
|
-
"dist": "./dist/extensions/mcp.mjs",
|
|
156
|
-
"scopes": [
|
|
157
|
-
"session"
|
|
158
|
-
],
|
|
159
|
-
"ui": {
|
|
160
|
-
"entry": "./generated/mcp-ui.ts",
|
|
161
|
-
"dist": "./dist/extensions/mcp-ui.mjs",
|
|
162
|
-
"widgets": [
|
|
163
|
-
"@agimon-ai/po-ui/find",
|
|
164
|
-
"@agimon-ai/po-ui/ls",
|
|
165
|
-
"@agimon-ai/po-ui/write"
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
"poServer": {
|
|
170
|
-
"entry": "./generated/server.ts",
|
|
171
|
-
"dist": "./dist/extensions/server.mjs",
|
|
172
|
-
"scopes": [
|
|
173
|
-
"session"
|
|
174
|
-
],
|
|
175
|
-
"contracts": {
|
|
176
|
-
"entry": "./src/exports/apiContracts.ts",
|
|
177
|
-
"dist": "./dist/apiContracts.mjs"
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
"poWeb": {
|
|
181
|
-
"pluginId": "builtin-tools",
|
|
182
|
-
"channels": [],
|
|
183
|
-
"client": "./dist/extensions/web.mjs",
|
|
184
|
-
"scopes": [
|
|
185
|
-
"session"
|
|
186
|
-
]
|
|
187
|
-
},
|
|
188
|
-
"scripts": {
|
|
189
|
-
"build": "tsdown && tsdown --config tsdown.mcp.config.ts",
|
|
190
|
-
"build:mcp": "tsdown --config tsdown.mcp.config.ts",
|
|
191
|
-
"test": "vitest --run",
|
|
192
|
-
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.web.json && tsc --noEmit -p tsconfig.mcp.json",
|
|
193
|
-
"lint": "oxlint . && oxfmt . --check",
|
|
194
|
-
"fixcode": "oxlint . --fix && oxfmt ."
|
|
195
|
-
}
|
|
3
|
+
"version": "0.0.0-stage",
|
|
4
|
+
"stub": true,
|
|
5
|
+
"description": "Temporary package placeholder for staged publishing"
|
|
196
6
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Vuong Ngo
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/dist/apiContracts.cjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperties(exports, {
|
|
2
|
-
__esModule: { value: true },
|
|
3
|
-
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
-
});
|
|
5
|
-
//#region src/schemas/apiContracts.ts
|
|
6
|
-
/** This facet contributes agent tools, commands or lifecycle only, with no separate HTTP or socket surface. */
|
|
7
|
-
const apiContracts = (0, require("@agimon-ai/po-core/apiContracts").defineApiContract)({
|
|
8
|
-
version: 1,
|
|
9
|
-
http: [],
|
|
10
|
-
sockets: [],
|
|
11
|
-
dynamic: []
|
|
12
|
-
});
|
|
13
|
-
//#endregion
|
|
14
|
-
exports.apiContracts = apiContracts;
|
|
15
|
-
exports.default = apiContracts;
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=apiContracts.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apiContracts.cjs","names":["defineApiContract"],"sources":["../src/schemas/apiContracts.ts"],"sourcesContent":["import { defineApiContract } from '@agimon-ai/po-core/apiContracts';\n\n/** This facet contributes agent tools, commands or lifecycle only, with no separate HTTP or socket surface. */\nexport const apiContracts = defineApiContract({ version: 1, http: [], sockets: [], dynamic: [] });\nexport default apiContracts;\n"],"mappings":";;;;;;AAGA,MAAa,gBAAA,4CAAeA,CAAAA,CAAAA,kBAAAA,CAAkB;CAAE,SAAS;CAAG,MAAM,CAAC;CAAG,SAAS,CAAC;CAAG,SAAS,CAAC;AAAE,CAAC"}
|
package/dist/apiContracts.d.mts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
//#region src/schemas/apiContracts.d.ts
|
|
2
|
-
/** This facet contributes agent tools, commands or lifecycle only, with no separate HTTP or socket surface. */
|
|
3
|
-
export declare const apiContracts: {
|
|
4
|
-
version: 1;
|
|
5
|
-
protocols?: Record<string, string> | undefined;
|
|
6
|
-
schemas?: Record<string, boolean | object> | undefined;
|
|
7
|
-
http: {
|
|
8
|
-
id: string;
|
|
9
|
-
scope: "global" | "session" | "workspace";
|
|
10
|
-
basePath?: string | undefined;
|
|
11
|
-
path: string;
|
|
12
|
-
method: "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT";
|
|
13
|
-
description: string;
|
|
14
|
-
availability?: string | undefined;
|
|
15
|
-
authentication: "device" | "none" | "owner";
|
|
16
|
-
parameters?: {
|
|
17
|
-
name: string;
|
|
18
|
-
in: "header" | "path" | "query";
|
|
19
|
-
required: boolean;
|
|
20
|
-
schema: boolean | object;
|
|
21
|
-
}[] | undefined;
|
|
22
|
-
body?: {
|
|
23
|
-
contentType: string;
|
|
24
|
-
contentTypes?: string[] | undefined;
|
|
25
|
-
required: boolean;
|
|
26
|
-
schema: boolean | object;
|
|
27
|
-
} | undefined;
|
|
28
|
-
responses: Record<string, {
|
|
29
|
-
description: string;
|
|
30
|
-
contentType?: string | undefined;
|
|
31
|
-
schema?: boolean | object | undefined;
|
|
32
|
-
events?: Record<string, boolean | object> | undefined;
|
|
33
|
-
}>;
|
|
34
|
-
}[];
|
|
35
|
-
sockets: {
|
|
36
|
-
id: string;
|
|
37
|
-
scope: "global" | "session" | "workspace";
|
|
38
|
-
description: string;
|
|
39
|
-
availability?: string | undefined;
|
|
40
|
-
service: string;
|
|
41
|
-
member: string;
|
|
42
|
-
direction: "client-to-server" | "server-to-client";
|
|
43
|
-
kind: "channel" | "method" | "state";
|
|
44
|
-
input: boolean | object;
|
|
45
|
-
output?: boolean | object | undefined;
|
|
46
|
-
errors?: boolean | object | undefined;
|
|
47
|
-
}[];
|
|
48
|
-
dynamic: string[];
|
|
49
|
-
gaps?: string[] | undefined;
|
|
50
|
-
};
|
|
51
|
-
//#endregion
|
|
52
|
-
export { apiContracts as default };
|
|
53
|
-
//# sourceMappingURL=apiContracts.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apiContracts.d.mts","names":[],"sources":["../src/schemas/apiContracts.ts"],"mappings":";;qBAGa"}
|
package/dist/apiContracts.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { defineApiContract } from "@agimon-ai/po-core/apiContracts";
|
|
2
|
-
//#region src/schemas/apiContracts.ts
|
|
3
|
-
/** This facet contributes agent tools, commands or lifecycle only, with no separate HTTP or socket surface. */
|
|
4
|
-
const apiContracts = defineApiContract({
|
|
5
|
-
version: 1,
|
|
6
|
-
http: [],
|
|
7
|
-
sockets: [],
|
|
8
|
-
dynamic: []
|
|
9
|
-
});
|
|
10
|
-
//#endregion
|
|
11
|
-
export { apiContracts, apiContracts as default };
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=apiContracts.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apiContracts.mjs","names":[],"sources":["../src/schemas/apiContracts.ts"],"sourcesContent":["import { defineApiContract } from '@agimon-ai/po-core/apiContracts';\n\n/** This facet contributes agent tools, commands or lifecycle only, with no separate HTTP or socket surface. */\nexport const apiContracts = defineApiContract({ version: 1, http: [], sockets: [], dynamic: [] });\nexport default apiContracts;\n"],"mappings":";;;AAGA,MAAa,eAAe,kBAAkB;CAAE,SAAS;CAAG,MAAM,CAAC;CAAG,SAAS,CAAC;CAAG,SAAS,CAAC;AAAE,CAAC"}
|
package/dist/config.cjs
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
let _agimon_ai_po_core_config = require("@agimon-ai/po-core/config");
|
|
3
|
-
Object.defineProperty(exports, "CONFIG_ACTION", {
|
|
4
|
-
enumerable: true,
|
|
5
|
-
get: function() {
|
|
6
|
-
return _agimon_ai_po_core_config.CONFIG_ACTION;
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
Object.defineProperty(exports, "ConfigActionSchema", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function() {
|
|
12
|
-
return _agimon_ai_po_core_config.ConfigActionSchema;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "ConfigChoiceSchema", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function() {
|
|
18
|
-
return _agimon_ai_po_core_config.ConfigChoiceSchema;
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
Object.defineProperty(exports, "ConfigFieldKindSchema", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function() {
|
|
24
|
-
return _agimon_ai_po_core_config.ConfigFieldKindSchema;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(exports, "ConfigFieldSchema", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function() {
|
|
30
|
-
return _agimon_ai_po_core_config.ConfigFieldSchema;
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
Object.defineProperty(exports, "ConfigProgressSchema", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function() {
|
|
36
|
-
return _agimon_ai_po_core_config.ConfigProgressSchema;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "ConfigSectionSchema", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function() {
|
|
42
|
-
return _agimon_ai_po_core_config.ConfigSectionSchema;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(exports, "ConfigSourceSchema", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function() {
|
|
48
|
-
return _agimon_ai_po_core_config.ConfigSourceSchema;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
Object.defineProperty(exports, "ConfigStatusSchema", {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function() {
|
|
54
|
-
return _agimon_ai_po_core_config.ConfigStatusSchema;
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
Object.defineProperty(exports, "ConfigStepSchema", {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function() {
|
|
60
|
-
return _agimon_ai_po_core_config.ConfigStepSchema;
|
|
61
|
-
}
|
|
62
|
-
});
|
package/dist/config.d.mts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { CONFIG_ACTION, ConfigAction, ConfigActionSchema, ConfigChoice, ConfigChoiceSchema, ConfigField, ConfigFieldKind, ConfigFieldKindSchema, ConfigFieldSchema, ConfigProgress, ConfigProgressSchema, ConfigSection, ConfigSectionSchema, ConfigSnapshot, ConfigSourceRef, ConfigSourceSchema, ConfigStatus, ConfigStatusSchema, ConfigStep, ConfigStepSchema, DoomConfigActionInput, DoomConfigContributionHandle, DoomConfigContributionOptions, DoomConfigInvocation, DoomConfigSectionView, DoomExtensionContext } from "@agimon-ai/po-core/config";
|
|
2
|
-
export { CONFIG_ACTION, type ConfigAction, ConfigActionSchema, type ConfigChoice, ConfigChoiceSchema, type ConfigField, type ConfigFieldKind, ConfigFieldKindSchema, ConfigFieldSchema, type ConfigProgress, ConfigProgressSchema, type ConfigSection, ConfigSectionSchema, type ConfigSnapshot, type ConfigSourceRef, ConfigSourceSchema, type ConfigStatus, ConfigStatusSchema, type ConfigStep, ConfigStepSchema, type DoomConfigActionInput, type DoomConfigContributionHandle, type DoomConfigContributionOptions, type DoomConfigInvocation, type DoomConfigSectionView, type DoomExtensionContext };
|
package/dist/config.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { CONFIG_ACTION, ConfigActionSchema, ConfigChoiceSchema, ConfigFieldKindSchema, ConfigFieldSchema, ConfigProgressSchema, ConfigSectionSchema, ConfigSourceSchema, ConfigStatusSchema, ConfigStepSchema } from "@agimon-ai/po-core/config";
|
|
2
|
-
export { CONFIG_ACTION, ConfigActionSchema, ConfigChoiceSchema, ConfigFieldKindSchema, ConfigFieldSchema, ConfigProgressSchema, ConfigSectionSchema, ConfigSourceSchema, ConfigStatusSchema, ConfigStepSchema };
|
package/dist/extensionName.cjs
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
|
|
3
|
-
let node_fs = require("node:fs");
|
|
4
|
-
node_fs = require_rolldown_runtime.__toESM(node_fs, 1);
|
|
5
|
-
let node_path = require("node:path");
|
|
6
|
-
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
7
|
-
//#region src/services/extensionSource/index.ts
|
|
8
|
-
/**
|
|
9
|
-
* Display name for an extension that Pi could not attribute to a package.
|
|
10
|
-
*
|
|
11
|
-
* Pi stamps every `--extension <path>` argument with the literal source `cli`,
|
|
12
|
-
* and po launches all of its extensions that way, so the only surviving
|
|
13
|
-
* identity is the entry path. The nearest `package.json` above it names the
|
|
14
|
-
* package that registered the tools.
|
|
15
|
-
*/
|
|
16
|
-
/** Results are stable for the life of a session, and every source hits the same few dirs. */
|
|
17
|
-
const cache = /* @__PURE__ */ new Map();
|
|
18
|
-
const packageCache = /* @__PURE__ */ new Map();
|
|
19
|
-
function packageName(directory) {
|
|
20
|
-
let current = directory;
|
|
21
|
-
for (;;) {
|
|
22
|
-
try {
|
|
23
|
-
const manifest = JSON.parse(node_fs.default.readFileSync(node_path.default.join(current, "package.json"), "utf8"));
|
|
24
|
-
if (typeof manifest.name === "string" && manifest.name.length > 0) return manifest.name;
|
|
25
|
-
} catch {}
|
|
26
|
-
const parent = node_path.default.dirname(current);
|
|
27
|
-
if (parent === current) return void 0;
|
|
28
|
-
current = parent;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function extensionName(entryPath) {
|
|
32
|
-
const cached = cache.get(entryPath);
|
|
33
|
-
if (cached !== void 0) return cached;
|
|
34
|
-
const name = packageName(node_path.default.dirname(entryPath));
|
|
35
|
-
const resolved = name ? name.split("/").pop() ?? name : node_path.default.basename(entryPath, node_path.default.extname(entryPath));
|
|
36
|
-
cache.set(entryPath, resolved);
|
|
37
|
-
return resolved;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* The package name exactly as a manifest spells it, scope and all.
|
|
41
|
-
*
|
|
42
|
-
* `extensionName` drops the scope because a tree reads better without it, but
|
|
43
|
-
* that makes it useless as a key: `.po/modes.yaml` names packages as
|
|
44
|
-
* `@agimon-ai/po-team`, so joining a registered tool back to the layer that
|
|
45
|
-
* admitted it needs the unshortened name. Attribution and display are different
|
|
46
|
-
* jobs, so they get different functions rather than one lossy one.
|
|
47
|
-
*/
|
|
48
|
-
function extensionPackageName(entryPath) {
|
|
49
|
-
const cached = packageCache.get(entryPath);
|
|
50
|
-
if (cached !== void 0) return cached.name;
|
|
51
|
-
const name = packageName(node_path.default.dirname(entryPath));
|
|
52
|
-
packageCache.set(entryPath, { name });
|
|
53
|
-
return name;
|
|
54
|
-
}
|
|
55
|
-
//#endregion
|
|
56
|
-
exports.extensionName = extensionName;
|
|
57
|
-
exports.extensionPackageName = extensionPackageName;
|
|
58
|
-
|
|
59
|
-
//# sourceMappingURL=extensionName.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionName.cjs","names":["fs","path"],"sources":["../src/services/extensionSource/index.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\n\n/**\n * Display name for an extension that Pi could not attribute to a package.\n *\n * Pi stamps every `--extension <path>` argument with the literal source `cli`,\n * and po launches all of its extensions that way, so the only surviving\n * identity is the entry path. The nearest `package.json` above it names the\n * package that registered the tools.\n */\n\n/** Results are stable for the life of a session, and every source hits the same few dirs. */\nconst cache = new Map<string, string>();\n// Wrapped, because \"no package above this path\" is a real answer worth caching\n// and a bare undefined cannot be told apart from a miss.\nconst packageCache = new Map<string, { readonly name: string | undefined }>();\nfunction packageName(directory: string): string | undefined {\n let current = directory;\n for (;;) {\n try {\n const manifest = JSON.parse(fs.readFileSync(path.join(current, 'package.json'), 'utf8')) as { name?: unknown };\n if (typeof manifest.name === 'string' && manifest.name.length > 0) return manifest.name;\n } catch {\n // No manifest here, or an unreadable one; keep walking up.\n }\n const parent = path.dirname(current);\n if (parent === current) return undefined;\n current = parent;\n }\n}\n\nexport function extensionName(entryPath: string): string {\n const cached = cache.get(entryPath);\n if (cached !== undefined) return cached;\n const name = packageName(path.dirname(entryPath));\n // `@agimon-ai/po-task` reads as `doom-task`; the scope is noise in a tree.\n const resolved = name ? (name.split('/').pop() ?? name) : path.basename(entryPath, path.extname(entryPath));\n cache.set(entryPath, resolved);\n return resolved;\n}\n\n/**\n * The package name exactly as a manifest spells it, scope and all.\n *\n * `extensionName` drops the scope because a tree reads better without it, but\n * that makes it useless as a key: `.po/modes.yaml` names packages as\n * `@agimon-ai/po-team`, so joining a registered tool back to the layer that\n * admitted it needs the unshortened name. Attribution and display are different\n * jobs, so they get different functions rather than one lossy one.\n */\nexport function extensionPackageName(entryPath: string): string | undefined {\n const cached = packageCache.get(entryPath);\n if (cached !== undefined) return cached.name;\n const name = packageName(path.dirname(entryPath));\n packageCache.set(entryPath, { name });\n return name;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAaA,MAAM,wBAAQ,IAAI,IAAoB;AAGtC,MAAM,+BAAe,IAAI,IAAmD;AAC5E,SAAS,YAAY,WAAuC;CAC1D,IAAI,UAAU;CACd,SAAS;EACP,IAAI;GACF,MAAM,WAAW,KAAK,MAAMA,QAAAA,QAAG,aAAaC,UAAAA,QAAK,KAAK,SAAS,cAAc,GAAG,MAAM,CAAC;GACvF,IAAI,OAAO,SAAS,SAAS,YAAY,SAAS,KAAK,SAAS,GAAG,OAAO,SAAS;EACrF,QAAQ,CAER;EACA,MAAM,SAASA,UAAAA,QAAK,QAAQ,OAAO;EACnC,IAAI,WAAW,SAAS,OAAO,KAAA;EAC/B,UAAU;CACZ;AACF;AAEA,SAAgB,cAAc,WAA2B;CACvD,MAAM,SAAS,MAAM,IAAI,SAAS;CAClC,IAAI,WAAW,KAAA,GAAW,OAAO;CACjC,MAAM,OAAO,YAAYA,UAAAA,QAAK,QAAQ,SAAS,CAAC;CAEhD,MAAM,WAAW,OAAQ,KAAK,MAAM,GAAG,CAAC,CAAC,IAAI,KAAK,OAAQA,UAAAA,QAAK,SAAS,WAAWA,UAAAA,QAAK,QAAQ,SAAS,CAAC;CAC1G,MAAM,IAAI,WAAW,QAAQ;CAC7B,OAAO;AACT;;;;;;;;;;AAWA,SAAgB,qBAAqB,WAAuC;CAC1E,MAAM,SAAS,aAAa,IAAI,SAAS;CACzC,IAAI,WAAW,KAAA,GAAW,OAAO,OAAO;CACxC,MAAM,OAAO,YAAYA,UAAAA,QAAK,QAAQ,SAAS,CAAC;CAChD,aAAa,IAAI,WAAW,EAAE,KAAK,CAAC;CACpC,OAAO;AACT"}
|
package/dist/extensionName.d.mts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region src/services/extensionSource/index.d.ts
|
|
2
|
-
export declare function extensionName(entryPath: string): string;
|
|
3
|
-
/**
|
|
4
|
-
* The package name exactly as a manifest spells it, scope and all.
|
|
5
|
-
*
|
|
6
|
-
* `extensionName` drops the scope because a tree reads better without it, but
|
|
7
|
-
* that makes it useless as a key: `.po/modes.yaml` names packages as
|
|
8
|
-
* `@agimon-ai/po-team`, so joining a registered tool back to the layer that
|
|
9
|
-
* admitted it needs the unshortened name. Attribution and display are different
|
|
10
|
-
* jobs, so they get different functions rather than one lossy one.
|
|
11
|
-
*/
|
|
12
|
-
export declare function extensionPackageName(entryPath: string): string | undefined;
|
|
13
|
-
//#endregion
|
|
14
|
-
//# sourceMappingURL=extensionName.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionName.d.mts","names":[],"sources":["../src/services/extensionSource/index.ts"],"mappings":";wBAgCgB,cAAc;;;;;;;;;;wBAmBd,qBAAqB"}
|
package/dist/extensionName.mjs
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import fs from "node:fs";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
//#region src/services/extensionSource/index.ts
|
|
4
|
-
/**
|
|
5
|
-
* Display name for an extension that Pi could not attribute to a package.
|
|
6
|
-
*
|
|
7
|
-
* Pi stamps every `--extension <path>` argument with the literal source `cli`,
|
|
8
|
-
* and po launches all of its extensions that way, so the only surviving
|
|
9
|
-
* identity is the entry path. The nearest `package.json` above it names the
|
|
10
|
-
* package that registered the tools.
|
|
11
|
-
*/
|
|
12
|
-
/** Results are stable for the life of a session, and every source hits the same few dirs. */
|
|
13
|
-
const cache = /* @__PURE__ */ new Map();
|
|
14
|
-
const packageCache = /* @__PURE__ */ new Map();
|
|
15
|
-
function packageName(directory) {
|
|
16
|
-
let current = directory;
|
|
17
|
-
for (;;) {
|
|
18
|
-
try {
|
|
19
|
-
const manifest = JSON.parse(fs.readFileSync(path.join(current, "package.json"), "utf8"));
|
|
20
|
-
if (typeof manifest.name === "string" && manifest.name.length > 0) return manifest.name;
|
|
21
|
-
} catch {}
|
|
22
|
-
const parent = path.dirname(current);
|
|
23
|
-
if (parent === current) return void 0;
|
|
24
|
-
current = parent;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function extensionName(entryPath) {
|
|
28
|
-
const cached = cache.get(entryPath);
|
|
29
|
-
if (cached !== void 0) return cached;
|
|
30
|
-
const name = packageName(path.dirname(entryPath));
|
|
31
|
-
const resolved = name ? name.split("/").pop() ?? name : path.basename(entryPath, path.extname(entryPath));
|
|
32
|
-
cache.set(entryPath, resolved);
|
|
33
|
-
return resolved;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* The package name exactly as a manifest spells it, scope and all.
|
|
37
|
-
*
|
|
38
|
-
* `extensionName` drops the scope because a tree reads better without it, but
|
|
39
|
-
* that makes it useless as a key: `.po/modes.yaml` names packages as
|
|
40
|
-
* `@agimon-ai/po-team`, so joining a registered tool back to the layer that
|
|
41
|
-
* admitted it needs the unshortened name. Attribution and display are different
|
|
42
|
-
* jobs, so they get different functions rather than one lossy one.
|
|
43
|
-
*/
|
|
44
|
-
function extensionPackageName(entryPath) {
|
|
45
|
-
const cached = packageCache.get(entryPath);
|
|
46
|
-
if (cached !== void 0) return cached.name;
|
|
47
|
-
const name = packageName(path.dirname(entryPath));
|
|
48
|
-
packageCache.set(entryPath, { name });
|
|
49
|
-
return name;
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
52
|
-
export { extensionName, extensionPackageName };
|
|
53
|
-
|
|
54
|
-
//# sourceMappingURL=extensionName.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionName.mjs","names":[],"sources":["../src/services/extensionSource/index.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\n\n/**\n * Display name for an extension that Pi could not attribute to a package.\n *\n * Pi stamps every `--extension <path>` argument with the literal source `cli`,\n * and po launches all of its extensions that way, so the only surviving\n * identity is the entry path. The nearest `package.json` above it names the\n * package that registered the tools.\n */\n\n/** Results are stable for the life of a session, and every source hits the same few dirs. */\nconst cache = new Map<string, string>();\n// Wrapped, because \"no package above this path\" is a real answer worth caching\n// and a bare undefined cannot be told apart from a miss.\nconst packageCache = new Map<string, { readonly name: string | undefined }>();\nfunction packageName(directory: string): string | undefined {\n let current = directory;\n for (;;) {\n try {\n const manifest = JSON.parse(fs.readFileSync(path.join(current, 'package.json'), 'utf8')) as { name?: unknown };\n if (typeof manifest.name === 'string' && manifest.name.length > 0) return manifest.name;\n } catch {\n // No manifest here, or an unreadable one; keep walking up.\n }\n const parent = path.dirname(current);\n if (parent === current) return undefined;\n current = parent;\n }\n}\n\nexport function extensionName(entryPath: string): string {\n const cached = cache.get(entryPath);\n if (cached !== undefined) return cached;\n const name = packageName(path.dirname(entryPath));\n // `@agimon-ai/po-task` reads as `doom-task`; the scope is noise in a tree.\n const resolved = name ? (name.split('/').pop() ?? name) : path.basename(entryPath, path.extname(entryPath));\n cache.set(entryPath, resolved);\n return resolved;\n}\n\n/**\n * The package name exactly as a manifest spells it, scope and all.\n *\n * `extensionName` drops the scope because a tree reads better without it, but\n * that makes it useless as a key: `.po/modes.yaml` names packages as\n * `@agimon-ai/po-team`, so joining a registered tool back to the layer that\n * admitted it needs the unshortened name. Attribution and display are different\n * jobs, so they get different functions rather than one lossy one.\n */\nexport function extensionPackageName(entryPath: string): string | undefined {\n const cached = packageCache.get(entryPath);\n if (cached !== undefined) return cached.name;\n const name = packageName(path.dirname(entryPath));\n packageCache.set(entryPath, { name });\n return name;\n}\n"],"mappings":";;;;;;;;;;;;AAaA,MAAM,wBAAQ,IAAI,IAAoB;AAGtC,MAAM,+BAAe,IAAI,IAAmD;AAC5E,SAAS,YAAY,WAAuC;CAC1D,IAAI,UAAU;CACd,SAAS;EACP,IAAI;GACF,MAAM,WAAW,KAAK,MAAM,GAAG,aAAa,KAAK,KAAK,SAAS,cAAc,GAAG,MAAM,CAAC;GACvF,IAAI,OAAO,SAAS,SAAS,YAAY,SAAS,KAAK,SAAS,GAAG,OAAO,SAAS;EACrF,QAAQ,CAER;EACA,MAAM,SAAS,KAAK,QAAQ,OAAO;EACnC,IAAI,WAAW,SAAS,OAAO,KAAA;EAC/B,UAAU;CACZ;AACF;AAEA,SAAgB,cAAc,WAA2B;CACvD,MAAM,SAAS,MAAM,IAAI,SAAS;CAClC,IAAI,WAAW,KAAA,GAAW,OAAO;CACjC,MAAM,OAAO,YAAY,KAAK,QAAQ,SAAS,CAAC;CAEhD,MAAM,WAAW,OAAQ,KAAK,MAAM,GAAG,CAAC,CAAC,IAAI,KAAK,OAAQ,KAAK,SAAS,WAAW,KAAK,QAAQ,SAAS,CAAC;CAC1G,MAAM,IAAI,WAAW,QAAQ;CAC7B,OAAO;AACT;;;;;;;;;;AAWA,SAAgB,qBAAqB,WAAuC;CAC1E,MAAM,SAAS,aAAa,IAAI,SAAS;CACzC,IAAI,WAAW,KAAA,GAAW,OAAO,OAAO;CACxC,MAAM,OAAO,YAAY,KAAK,QAAQ,SAAS,CAAC;CAChD,aAAa,IAAI,WAAW,EAAE,KAAK,CAAC;CACpC,OAAO;AACT"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineMcpWidget } from "@agimon-ai/po-core/web";
|
|
2
|
-
import { McpToolFields, McpToolFrame, McpToolOutput } from "@agimon-ai/po-web-components";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
//#region src/extensions/workspaces/sessions/(frontend)/tool/find.mcp.tsx
|
|
5
|
-
function FindMcpWidget(props) {
|
|
6
|
-
return /* @__PURE__ */ jsxs(McpToolFrame, {
|
|
7
|
-
...props,
|
|
8
|
-
title: "Find files",
|
|
9
|
-
children: [/* @__PURE__ */ jsx(McpToolFields, { fields: [
|
|
10
|
-
["Pattern", props.args.pattern],
|
|
11
|
-
["Path", props.args.path],
|
|
12
|
-
["Limit", props.args.limit]
|
|
13
|
-
] }), /* @__PURE__ */ jsx(McpToolOutput, { result: props.result })]
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
var find_mcp_default = defineMcpWidget(FindMcpWidget);
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/extensions/workspaces/sessions/(frontend)/tool/ls.mcp.tsx
|
|
19
|
-
function LsMcpWidget(props) {
|
|
20
|
-
return /* @__PURE__ */ jsxs(McpToolFrame, {
|
|
21
|
-
...props,
|
|
22
|
-
title: "List directory",
|
|
23
|
-
children: [/* @__PURE__ */ jsx(McpToolFields, { fields: [["Path", props.args.path], ["Limit", props.args.limit]] }), /* @__PURE__ */ jsx(McpToolOutput, { result: props.result })]
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
var ls_mcp_default = defineMcpWidget(LsMcpWidget);
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/extensions/workspaces/sessions/(frontend)/tool/write.mcp.tsx
|
|
29
|
-
function WriteMcpWidget(props) {
|
|
30
|
-
return /* @__PURE__ */ jsxs(McpToolFrame, {
|
|
31
|
-
...props,
|
|
32
|
-
title: "Write file",
|
|
33
|
-
children: [/* @__PURE__ */ jsx(McpToolFields, { fields: [["Path", props.args.path], ["Characters", typeof props.args.content === "string" ? props.args.content.length : void 0]] }), /* @__PURE__ */ jsx(McpToolOutput, { result: props.result })]
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region generated/mcp-ui.ts
|
|
38
|
-
const widgets = {
|
|
39
|
-
"@agimon-ai/po-ui/find": find_mcp_default,
|
|
40
|
-
"@agimon-ai/po-ui/ls": ls_mcp_default,
|
|
41
|
-
"@agimon-ai/po-ui/write": defineMcpWidget(WriteMcpWidget)
|
|
42
|
-
};
|
|
43
|
-
//#endregion
|
|
44
|
-
export { widgets };
|
|
45
|
-
|
|
46
|
-
//# sourceMappingURL=mcp-ui.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-ui.mjs","names":["Widget0","Widget1","Widget2"],"sources":["../../src/extensions/workspaces/sessions/(frontend)/tool/find.mcp.tsx","../../src/extensions/workspaces/sessions/(frontend)/tool/ls.mcp.tsx","../../src/extensions/workspaces/sessions/(frontend)/tool/write.mcp.tsx","../../generated/mcp-ui.ts"],"sourcesContent":["import { defineMcpWidget, type DoomMcpWidgetProps } from '@agimon-ai/po-core/web';\nimport { McpToolFrame, McpToolFields, McpToolOutput } from '@agimon-ai/po-web-components';\n\nfunction FindMcpWidget(props: DoomMcpWidgetProps) {\n return (\n <McpToolFrame {...props} title=\"Find files\">\n <McpToolFields\n fields={[\n ['Pattern', props.args.pattern],\n ['Path', props.args.path],\n ['Limit', props.args.limit],\n ]}\n />\n <McpToolOutput result={props.result} />\n </McpToolFrame>\n );\n}\n\nexport default defineMcpWidget(FindMcpWidget);\n","import { defineMcpWidget, type DoomMcpWidgetProps } from '@agimon-ai/po-core/web';\nimport { McpToolFrame, McpToolFields, McpToolOutput } from '@agimon-ai/po-web-components';\n\nfunction LsMcpWidget(props: DoomMcpWidgetProps) {\n return (\n <McpToolFrame {...props} title=\"List directory\">\n <McpToolFields\n fields={[\n ['Path', props.args.path],\n ['Limit', props.args.limit],\n ]}\n />\n <McpToolOutput result={props.result} />\n </McpToolFrame>\n );\n}\n\nexport default defineMcpWidget(LsMcpWidget);\n","import { defineMcpWidget, type DoomMcpWidgetProps } from '@agimon-ai/po-core/web';\nimport { McpToolFrame, McpToolFields, McpToolOutput } from '@agimon-ai/po-web-components';\n\nfunction WriteMcpWidget(props: DoomMcpWidgetProps) {\n return (\n <McpToolFrame {...props} title=\"Write file\">\n <McpToolFields\n fields={[\n ['Path', props.args.path],\n ['Characters', typeof props.args.content === 'string' ? props.args.content.length : undefined],\n ]}\n />\n <McpToolOutput result={props.result} />\n </McpToolFrame>\n );\n}\n\nexport default defineMcpWidget(WriteMcpWidget);\n","// Generated by @agimon-ai/po-build. Do not edit by hand.\nimport type { ComponentType } from 'react';\nimport type { DoomMcpWidgetProps } from '@agimon-ai/po-core/mcpWidget';\nimport Widget0 from \"../src/extensions/workspaces/sessions/(frontend)/tool/find.mcp\";\nimport Widget1 from \"../src/extensions/workspaces/sessions/(frontend)/tool/ls.mcp\";\nimport Widget2 from \"../src/extensions/workspaces/sessions/(frontend)/tool/write.mcp\";\n\nexport const widgets: Readonly<Record<string, ComponentType<DoomMcpWidgetProps>>> = {\n \"@agimon-ai/po-ui/find\": Widget0,\n \"@agimon-ai/po-ui/ls\": Widget1,\n \"@agimon-ai/po-ui/write\": Widget2,\n};\n"],"mappings":";;;;AAGA,SAAS,cAAc,OAA2B;CAChD,OACE,qBAAC,cAAD;EAAc,GAAI;EAAO,OAAM;EAA/B,UAAA,CACE,oBAAC,eAAD,EACE,QAAQ;GACN,CAAC,WAAW,MAAM,KAAK,OAAO;GAC9B,CAAC,QAAQ,MAAM,KAAK,IAAI;GACxB,CAAC,SAAS,MAAM,KAAK,KAAK;EAC5B,EACD,CAAA,GACD,oBAAC,eAAD,EAAe,QAAQ,MAAM,OAAS,CAAA,CAC1B;;AAElB;AAEA,IAAA,mBAAe,gBAAgB,aAAa;;;ACf5C,SAAS,YAAY,OAA2B;CAC9C,OACE,qBAAC,cAAD;EAAc,GAAI;EAAO,OAAM;EAA/B,UAAA,CACE,oBAAC,eAAD,EACE,QAAQ,CACN,CAAC,QAAQ,MAAM,KAAK,IAAI,GACxB,CAAC,SAAS,MAAM,KAAK,KAAK,CAC5B,EACD,CAAA,GACD,oBAAC,eAAD,EAAe,QAAQ,MAAM,OAAS,CAAA,CAC1B;;AAElB;AAEA,IAAA,iBAAe,gBAAgB,WAAW;;;ACd1C,SAAS,eAAe,OAA2B;CACjD,OACE,qBAAC,cAAD;EAAc,GAAI;EAAO,OAAM;EAA/B,UAAA,CACE,oBAAC,eAAD,EACE,QAAQ,CACN,CAAC,QAAQ,MAAM,KAAK,IAAI,GACxB,CAAC,cAAc,OAAO,MAAM,KAAK,YAAY,WAAW,MAAM,KAAK,QAAQ,SAAS,KAAA,CAAS,CAC/F,EACD,CAAA,GACD,oBAAC,eAAD,EAAe,QAAQ,MAAM,OAAS,CAAA,CAC1B;;AAElB;;;ACRA,MAAa,UAAuE;CAClF,yBAAyBA;CACzB,uBAAuBC;CACvB,0BDOa,gBAAgB,cCPHC;AAC5B"}
|