mason4agents 0.1.0

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.
@@ -0,0 +1,18 @@
1
+ export default function(pi) {
2
+ console.error("WORKING TEST: factory called");
3
+ console.error("WORKING TEST: typeof pi.registerCommand:", typeof pi.registerCommand);
4
+
5
+ pi.registerCommand("mason", {
6
+ description: "Mason test",
7
+ handler: async (args, ctx) => {
8
+ console.error("WORKING TEST: HANDLER INVOKED! args:", args);
9
+ try {
10
+ pi.sendUserMessage("WORKING_TEST_MESSAGE_FROM_HANDLER");
11
+ console.error("WORKING TEST: sendUserMessage done");
12
+ } catch(e) {
13
+ console.error("WORKING TEST: error:", e.message);
14
+ }
15
+ }
16
+ });
17
+ console.error("WORKING TEST: registered mason command");
18
+ }
Binary file
Binary file
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "mason4agents",
3
+ "version": "0.1.0",
4
+ "description": "Mason Registry powered tool installer for coding agents.",
5
+ "type": "module",
6
+ "license": "Apache-2.0",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/mason4agents/mason4agents.git"
10
+ },
11
+ "bin": {
12
+ "mason4agents": "dist/bin/mason4agents.js"
13
+ },
14
+ "keywords": [
15
+ "pi-package",
16
+ "mason",
17
+ "lsp",
18
+ "formatter",
19
+ "linter"
20
+ ],
21
+ "pi": {
22
+ "extensions": [
23
+ "dist/pi/extension.js"
24
+ ]
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "native",
29
+ "package.json"
30
+ ],
31
+ "scripts": {
32
+ "typecheck": "tsc --noEmit",
33
+ "verify": "bun run typecheck && cargo test && bun test",
34
+ "build": "bun build src/bin/mason4agents.ts --outdir dist/bin --target bun && bun build src/pi/extension.ts --outdir dist/pi --target bun && cargo build --release && mkdir -p native && exe=$(node -e 'console.log(process.platform === \"win32\" ? \".exe\" : \"\")') && src=$(echo target/release/mason4agents$exe) && dst=$(echo native/mason4agents-$(node -e 'console.log(process.platform + \"-\" + process.arch)')$exe) && cp \"$src\" \"$dst\"",
35
+ "test": "bun test",
36
+ "pack:local": "node scripts/publish.mjs --pack",
37
+ "publish:local": "node scripts/publish.mjs --dry-run",
38
+ "publish:npm": "node scripts/publish.mjs"
39
+ },
40
+ "devDependencies": {
41
+ "@types/bun": "latest",
42
+ "typescript": "latest"
43
+ },
44
+ "dependencies": {
45
+ "@sinclair/typebox": "^0.34.49"
46
+ }
47
+ }