@true-and-useful/janee 0.11.3 → 0.12.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.
Files changed (42) hide show
  1. package/dist/cli/commands/add.d.ts +1 -0
  2. package/dist/cli/commands/add.d.ts.map +1 -1
  3. package/dist/cli/commands/add.js +23 -5
  4. package/dist/cli/commands/add.js.map +1 -1
  5. package/dist/cli/commands/serve-mcp.d.ts.map +1 -1
  6. package/dist/cli/commands/serve-mcp.js +46 -97
  7. package/dist/cli/commands/serve-mcp.js.map +1 -1
  8. package/dist/cli/commands/test.d.ts +6 -0
  9. package/dist/cli/commands/test.d.ts.map +1 -0
  10. package/dist/cli/commands/test.js +101 -0
  11. package/dist/cli/commands/test.js.map +1 -0
  12. package/dist/cli/config-yaml.d.ts +3 -1
  13. package/dist/cli/config-yaml.d.ts.map +1 -1
  14. package/dist/cli/config-yaml.js +4 -4
  15. package/dist/cli/config-yaml.js.map +1 -1
  16. package/dist/cli/index.js +16 -8
  17. package/dist/cli/index.js.map +1 -1
  18. package/dist/core/auth.d.ts +25 -0
  19. package/dist/core/auth.d.ts.map +1 -0
  20. package/dist/core/auth.js +136 -0
  21. package/dist/core/auth.js.map +1 -0
  22. package/dist/core/authority.d.ts +2 -0
  23. package/dist/core/authority.d.ts.map +1 -1
  24. package/dist/core/authority.js +23 -1
  25. package/dist/core/authority.js.map +1 -1
  26. package/dist/core/directory.d.ts +2 -0
  27. package/dist/core/directory.d.ts.map +1 -1
  28. package/dist/core/directory.js +23 -0
  29. package/dist/core/directory.js.map +1 -1
  30. package/dist/core/health.d.ts +39 -1
  31. package/dist/core/health.d.ts.map +1 -1
  32. package/dist/core/health.js +123 -1
  33. package/dist/core/health.js.map +1 -1
  34. package/dist/core/mcp-server.d.ts +9 -5
  35. package/dist/core/mcp-server.d.ts.map +1 -1
  36. package/dist/core/mcp-server.js +73 -15
  37. package/dist/core/mcp-server.js.map +1 -1
  38. package/dist/index.d.ts +12 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +28 -0
  41. package/dist/index.js.map +1 -0
  42. package/package.json +8 -1
package/dist/index.js ADDED
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ /**
3
+ * Janee library exports for programmatic config management.
4
+ *
5
+ * Use these to read/write ~/.janee/config.yaml from an orchestrator
6
+ * or integration that manages Janee as a child process. After mutations,
7
+ * send SIGHUP to the running Janee process to reload config in-memory.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.revokeAccess = exports.grantAccess = exports.cliCreatedOwnership = exports.canAgentAccess = exports.agentCreatedOwnership = exports.saveYAMLConfig = exports.persistServiceOwnership = exports.loadYAMLConfig = exports.initYAMLConfig = exports.hasYAMLConfig = exports.getConfigDir = exports.createServiceWithOwnership = exports.addServiceYAML = exports.addCapabilityYAML = void 0;
11
+ // Config read/write
12
+ var config_yaml_1 = require("./cli/config-yaml");
13
+ Object.defineProperty(exports, "addCapabilityYAML", { enumerable: true, get: function () { return config_yaml_1.addCapabilityYAML; } });
14
+ Object.defineProperty(exports, "addServiceYAML", { enumerable: true, get: function () { return config_yaml_1.addServiceYAML; } });
15
+ Object.defineProperty(exports, "createServiceWithOwnership", { enumerable: true, get: function () { return config_yaml_1.createServiceWithOwnership; } });
16
+ Object.defineProperty(exports, "getConfigDir", { enumerable: true, get: function () { return config_yaml_1.getConfigDir; } });
17
+ Object.defineProperty(exports, "hasYAMLConfig", { enumerable: true, get: function () { return config_yaml_1.hasYAMLConfig; } });
18
+ Object.defineProperty(exports, "initYAMLConfig", { enumerable: true, get: function () { return config_yaml_1.initYAMLConfig; } });
19
+ Object.defineProperty(exports, "loadYAMLConfig", { enumerable: true, get: function () { return config_yaml_1.loadYAMLConfig; } });
20
+ Object.defineProperty(exports, "persistServiceOwnership", { enumerable: true, get: function () { return config_yaml_1.persistServiceOwnership; } });
21
+ Object.defineProperty(exports, "saveYAMLConfig", { enumerable: true, get: function () { return config_yaml_1.saveYAMLConfig; } });
22
+ var agent_scope_1 = require("./core/agent-scope");
23
+ Object.defineProperty(exports, "agentCreatedOwnership", { enumerable: true, get: function () { return agent_scope_1.agentCreatedOwnership; } });
24
+ Object.defineProperty(exports, "canAgentAccess", { enumerable: true, get: function () { return agent_scope_1.canAgentAccess; } });
25
+ Object.defineProperty(exports, "cliCreatedOwnership", { enumerable: true, get: function () { return agent_scope_1.cliCreatedOwnership; } });
26
+ Object.defineProperty(exports, "grantAccess", { enumerable: true, get: function () { return agent_scope_1.grantAccess; } });
27
+ Object.defineProperty(exports, "revokeAccess", { enumerable: true, get: function () { return agent_scope_1.revokeAccess; } });
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAYH,oBAAoB;AACpB,iDAU2B;AATzB,gHAAA,iBAAiB,OAAA;AACjB,6GAAA,cAAc,OAAA;AACd,yHAAA,0BAA0B,OAAA;AAC1B,2GAAA,YAAY,OAAA;AACZ,4GAAA,aAAa,OAAA;AACb,6GAAA,cAAc,OAAA;AACd,6GAAA,cAAc,OAAA;AACd,sHAAA,uBAAuB,OAAA;AACvB,6GAAA,cAAc,OAAA;AAShB,kDAM4B;AAL1B,oHAAA,qBAAqB,OAAA;AACrB,6GAAA,cAAc,OAAA;AACd,kHAAA,mBAAmB,OAAA;AACnB,0GAAA,WAAW,OAAA;AACX,2GAAA,YAAY,OAAA"}
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "@true-and-useful/janee",
3
3
  "mcpName": "io.github.rsdouglas/janee",
4
- "version": "0.11.3",
4
+ "version": "0.12.0",
5
5
  "description": "Secrets management for AI agents via MCP",
6
6
  "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ }
13
+ },
7
14
  "bin": {
8
15
  "janee": "dist/cli/index.js"
9
16
  },