@graphmap/cli 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.
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -0
- package/package.json +39 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const VERSION = "0.1.0";
|
|
3
|
+
const HELP = `
|
|
4
|
+
graphmap - GraphMap AI CLI
|
|
5
|
+
|
|
6
|
+
Usage:
|
|
7
|
+
graphmap <command> [options]
|
|
8
|
+
|
|
9
|
+
Commands:
|
|
10
|
+
init Initialize a new Knowledge Map project
|
|
11
|
+
validate Validate a .map.yaml file
|
|
12
|
+
build Compile map + bindings into a deployable bundle
|
|
13
|
+
deploy Deploy a map bundle to a keeper
|
|
14
|
+
status Check keeper status and binding health
|
|
15
|
+
pull Pull latest snapshot data from a keeper
|
|
16
|
+
version Print CLI version
|
|
17
|
+
|
|
18
|
+
Options:
|
|
19
|
+
--help, -h Show this help message
|
|
20
|
+
--version Print version
|
|
21
|
+
|
|
22
|
+
Run 'graphmap <command> --help' for more information on a specific command.
|
|
23
|
+
`;
|
|
24
|
+
function main() {
|
|
25
|
+
const args = process.argv.slice(2);
|
|
26
|
+
const command = args[0];
|
|
27
|
+
if (!command || command === "--help" || command === "-h") {
|
|
28
|
+
console.log(HELP.trim());
|
|
29
|
+
process.exit(0);
|
|
30
|
+
}
|
|
31
|
+
if (command === "version" || command === "--version") {
|
|
32
|
+
console.log(`graphmap v${VERSION}`);
|
|
33
|
+
process.exit(0);
|
|
34
|
+
}
|
|
35
|
+
const commands = ["init", "validate", "build", "deploy", "status", "pull"];
|
|
36
|
+
if (commands.includes(command)) {
|
|
37
|
+
console.log(`graphmap: '${command}' is not yet implemented. Coming soon.`);
|
|
38
|
+
process.exit(0);
|
|
39
|
+
}
|
|
40
|
+
console.error(`graphmap: unknown command '${command}'. Run 'graphmap --help' for usage.`);
|
|
41
|
+
process.exit(1);
|
|
42
|
+
}
|
|
43
|
+
main();
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,MAAM,OAAO,GAAG,OAAO,CAAC;AAExB,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;CAoBZ,CAAC;AAEF,SAAS,IAAI;IACX,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACnC,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IAExB,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACzD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACzB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,WAAW,EAAE,CAAC;QACrD,OAAO,CAAC,GAAG,CAAC,aAAa,OAAO,EAAE,CAAC,CAAC;QACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,MAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAE3E,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QAC/B,OAAO,CAAC,GAAG,CAAC,cAAc,OAAO,wCAAwC,CAAC,CAAC;QAC3E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,OAAO,CAAC,KAAK,CAAC,8BAA8B,OAAO,qCAAqC,CAAC,CAAC;IAC1F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,IAAI,EAAE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@graphmap/cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "GraphMap AI command-line interface for authoring, validating, and deploying Knowledge Maps",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "GraphMap AI",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"bin": {
|
|
9
|
+
"graphmap": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc",
|
|
16
|
+
"dev": "tsc --watch"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/node": "^25.5.0",
|
|
20
|
+
"typescript": "^5.7.0"
|
|
21
|
+
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"graphmap",
|
|
27
|
+
"knowledge-map",
|
|
28
|
+
"knowledge-graph",
|
|
29
|
+
"ai",
|
|
30
|
+
"semantic",
|
|
31
|
+
"yaml",
|
|
32
|
+
"cli"
|
|
33
|
+
],
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/nickokafor/graphmap.git",
|
|
37
|
+
"directory": "packages/cli"
|
|
38
|
+
}
|
|
39
|
+
}
|