@ory/argus 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/README.md +134 -0
- package/assets/commands/local-down.md +19 -0
- package/assets/commands/local-up.md +27 -0
- package/assets/skills/auth-setup/SKILL.md +279 -0
- package/assets/skills/local-dev/SKILL.md +206 -0
- package/assets/skills/login-flow/SKILL.md +383 -0
- package/assets/skills/social-login/SKILL.md +312 -0
- package/dist/agent-auth.d.ts +204 -0
- package/dist/agent-auth.js +553 -0
- package/dist/auth-gate.d.ts +71 -0
- package/dist/auth-gate.js +308 -0
- package/dist/auth-store.d.ts +75 -0
- package/dist/auth-store.js +261 -0
- package/dist/auth.d.ts +93 -0
- package/dist/auth.js +323 -0
- package/dist/cli.d.ts +73 -0
- package/dist/cli.js +484 -0
- package/dist/client.d.ts +158 -0
- package/dist/client.js +679 -0
- package/dist/config.d.ts +135 -0
- package/dist/config.js +344 -0
- package/dist/denial.d.ts +79 -0
- package/dist/denial.js +103 -0
- package/dist/dev.d.ts +95 -0
- package/dist/dev.js +514 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +137 -0
- package/dist/local/cli.d.ts +12 -0
- package/dist/local/cli.js +95 -0
- package/dist/local/configs.d.ts +89 -0
- package/dist/local/configs.js +634 -0
- package/dist/local/health.d.ts +32 -0
- package/dist/local/health.js +65 -0
- package/dist/local/index.d.ts +6 -0
- package/dist/local/index.js +38 -0
- package/dist/local/jaeger-main.d.ts +13 -0
- package/dist/local/jaeger-main.js +85 -0
- package/dist/local/jaeger.d.ts +50 -0
- package/dist/local/jaeger.js +162 -0
- package/dist/local/main.d.ts +7 -0
- package/dist/local/main.js +14 -0
- package/dist/local/manager.d.ts +45 -0
- package/dist/local/manager.js +676 -0
- package/dist/local/seed.d.ts +71 -0
- package/dist/local/seed.js +237 -0
- package/dist/logger.d.ts +29 -0
- package/dist/logger.js +139 -0
- package/dist/mcp.d.ts +76 -0
- package/dist/mcp.js +122 -0
- package/dist/otel/exporter.d.ts +17 -0
- package/dist/otel/exporter.js +12 -0
- package/dist/otel/index.d.ts +2 -0
- package/dist/otel/index.js +8 -0
- package/dist/otel/otlp-http.d.ts +116 -0
- package/dist/otel/otlp-http.js +322 -0
- package/dist/registry/cli.d.ts +12 -0
- package/dist/registry/cli.js +76 -0
- package/dist/registry/config.d.ts +23 -0
- package/dist/registry/config.js +80 -0
- package/dist/registry/index.d.ts +3 -0
- package/dist/registry/index.js +21 -0
- package/dist/registry/main.d.ts +7 -0
- package/dist/registry/main.js +14 -0
- package/dist/registry/manager.d.ts +38 -0
- package/dist/registry/manager.js +674 -0
- package/dist/setup.d.ts +118 -0
- package/dist/setup.js +398 -0
- package/dist/skills.d.ts +78 -0
- package/dist/skills.js +264 -0
- package/dist/subject.d.ts +43 -0
- package/dist/subject.js +55 -0
- package/dist/tool-metadata.d.ts +41 -0
- package/dist/tool-metadata.js +127 -0
- package/dist/tracer.d.ts +172 -0
- package/dist/tracer.js +452 -0
- package/dist/types.d.ts +57 -0
- package/dist/types.js +3 -0
- package/dist/watch-sandbox.d.ts +9 -0
- package/dist/watch-sandbox.js +81 -0
- package/package.json +79 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.printOryConfig = exports.runAgentCommand = exports.runConfigureCommand = exports.AGENT_TOKEN_EXPIRY_SKEW_SEC = exports.clearSubAgentDynamicCredentials = exports.saveSubAgentDynamicCredentials = exports.loadSubAgentDynamicCredentials = exports.clearAgentDynamicCredentials = exports.saveAgentDynamicCredentials = exports.loadAgentDynamicCredentials = exports.registerAgentClient = exports.fetchClientCredentialsToken = exports.ensureSubAgentIdentity = exports.ensureAgentIdentity = exports.resolveAgentCredentials = exports.ensureAuthenticated = exports.ensureUserAuthenticated = exports.TOKEN_EXPIRY_SKEW_SEC = exports.waitForPeerTokensSync = exports.waitForPeerTokens = exports.clearPkceFlightLock = exports.tryAcquirePkceFlightLock = exports.refreshAndSave = exports.isExpired = exports.clearTokens = exports.saveTokens = exports.loadTokens = exports.DEFAULT_LOGIN_TIMEOUT_MS = exports.LOOPBACK_PORTS = exports.buildAuthorizeUrl = exports.sha256Base64Url = exports.generateCodeVerifier = exports.detectHeadless = exports.refreshAccessToken = exports.pkceLogin = exports.getHarnessDataDir = exports.getDataDir = exports.getConfigPath = exports.mutateConfig = exports.resolveConfig = exports.saveConfig = exports.loadConfig = exports.watchTraceFile = exports.formatSpan = exports.deriveTraceId = exports.ActiveSpan = exports.Tracer = exports.redactLogData = exports.DebugLogger = exports.OryAgentClient = void 0;
|
|
4
|
+
exports.checkMcpPermission = exports.parseMcpToolGeneric = exports.parseGeminiMcpTool = exports.parseClaudeCodeMcpTool = exports.runRegistryCommand = exports.DEV_JAEGER_CONTAINER = exports.stopDevJaeger = exports.ensureDevJaeger = exports.runLocalCommand = exports.ORY_COMMAND_SLUGS = exports.ORY_COMMAND_SKILL_NAMES = exports.ORY_SKILL_NAMES = exports.removeSkillDirs = exports.writeSkillTree = exports.toSkillMarkdown = exports.commandToPlainMarkdown = exports.commandToFrontmatterMarkdown = exports.commandToToml = exports.commandToSkill = exports.renderOryCommands = exports.renderOrySkills = exports.runDevLauncher = exports.unregisterPlugin = exports.registerPlugin = exports.removeMcpServer = exports.mergeMcpServer = exports.mcpServerEntry = exports.resolveMcpServerCommand = exports.printNextSteps = exports.printSetupHelp = exports.removeFlatHooks = exports.mergeFlatHooks = exports.flatHookEntry = exports.removeMatcherHooks = exports.mergeMatcherHooks = exports.matcherHookEntry = exports.resolveHookCommand = exports.isOryHookCommand = exports.writeJsonFile = exports.readJsonFile = exports.parseSetupArgs = exports.interactiveConfigPrompt = exports.promptForProjectUrl = exports.promptOnTty = exports.isTtyAvailable = exports.runWatchCommand = exports.printTraceTail = exports.printEnvHelp = exports.printLogTail = exports.printEnvironment = void 0;
|
|
5
|
+
exports.parseKeyValueList = exports.otlpExporterFromEnv = exports.OtlpHttpExporter = exports.summarizeToolOutput = exports.summarizeToolInput = exports.OryDenialError = exports.alertAttributes = exports.formatAlertSummary = exports.formatAlertMessage = exports.formatDenialSummary = exports.formatDenialMessage = exports.subjectLabel = exports.resolveUserSubject = void 0;
|
|
6
|
+
var client_js_1 = require("./client.js");
|
|
7
|
+
Object.defineProperty(exports, "OryAgentClient", { enumerable: true, get: function () { return client_js_1.OryAgentClient; } });
|
|
8
|
+
var logger_js_1 = require("./logger.js");
|
|
9
|
+
Object.defineProperty(exports, "DebugLogger", { enumerable: true, get: function () { return logger_js_1.DebugLogger; } });
|
|
10
|
+
Object.defineProperty(exports, "redactLogData", { enumerable: true, get: function () { return logger_js_1.redactLogData; } });
|
|
11
|
+
var tracer_js_1 = require("./tracer.js");
|
|
12
|
+
Object.defineProperty(exports, "Tracer", { enumerable: true, get: function () { return tracer_js_1.Tracer; } });
|
|
13
|
+
Object.defineProperty(exports, "ActiveSpan", { enumerable: true, get: function () { return tracer_js_1.ActiveSpan; } });
|
|
14
|
+
Object.defineProperty(exports, "deriveTraceId", { enumerable: true, get: function () { return tracer_js_1.deriveTraceId; } });
|
|
15
|
+
Object.defineProperty(exports, "formatSpan", { enumerable: true, get: function () { return tracer_js_1.formatSpan; } });
|
|
16
|
+
Object.defineProperty(exports, "watchTraceFile", { enumerable: true, get: function () { return tracer_js_1.watchTraceFile; } });
|
|
17
|
+
var config_js_1 = require("./config.js");
|
|
18
|
+
Object.defineProperty(exports, "loadConfig", { enumerable: true, get: function () { return config_js_1.loadConfig; } });
|
|
19
|
+
Object.defineProperty(exports, "saveConfig", { enumerable: true, get: function () { return config_js_1.saveConfig; } });
|
|
20
|
+
Object.defineProperty(exports, "resolveConfig", { enumerable: true, get: function () { return config_js_1.resolveConfig; } });
|
|
21
|
+
Object.defineProperty(exports, "mutateConfig", { enumerable: true, get: function () { return config_js_1.mutateConfig; } });
|
|
22
|
+
Object.defineProperty(exports, "getConfigPath", { enumerable: true, get: function () { return config_js_1.getConfigPath; } });
|
|
23
|
+
Object.defineProperty(exports, "getDataDir", { enumerable: true, get: function () { return config_js_1.getDataDir; } });
|
|
24
|
+
Object.defineProperty(exports, "getHarnessDataDir", { enumerable: true, get: function () { return config_js_1.getHarnessDataDir; } });
|
|
25
|
+
var auth_js_1 = require("./auth.js");
|
|
26
|
+
Object.defineProperty(exports, "pkceLogin", { enumerable: true, get: function () { return auth_js_1.pkceLogin; } });
|
|
27
|
+
Object.defineProperty(exports, "refreshAccessToken", { enumerable: true, get: function () { return auth_js_1.refreshAccessToken; } });
|
|
28
|
+
Object.defineProperty(exports, "detectHeadless", { enumerable: true, get: function () { return auth_js_1.detectHeadless; } });
|
|
29
|
+
Object.defineProperty(exports, "generateCodeVerifier", { enumerable: true, get: function () { return auth_js_1.generateCodeVerifier; } });
|
|
30
|
+
Object.defineProperty(exports, "sha256Base64Url", { enumerable: true, get: function () { return auth_js_1.sha256Base64Url; } });
|
|
31
|
+
Object.defineProperty(exports, "buildAuthorizeUrl", { enumerable: true, get: function () { return auth_js_1.buildAuthorizeUrl; } });
|
|
32
|
+
Object.defineProperty(exports, "LOOPBACK_PORTS", { enumerable: true, get: function () { return auth_js_1.LOOPBACK_PORTS; } });
|
|
33
|
+
Object.defineProperty(exports, "DEFAULT_LOGIN_TIMEOUT_MS", { enumerable: true, get: function () { return auth_js_1.DEFAULT_LOGIN_TIMEOUT_MS; } });
|
|
34
|
+
var auth_store_js_1 = require("./auth-store.js");
|
|
35
|
+
Object.defineProperty(exports, "loadTokens", { enumerable: true, get: function () { return auth_store_js_1.loadTokens; } });
|
|
36
|
+
Object.defineProperty(exports, "saveTokens", { enumerable: true, get: function () { return auth_store_js_1.saveTokens; } });
|
|
37
|
+
Object.defineProperty(exports, "clearTokens", { enumerable: true, get: function () { return auth_store_js_1.clearTokens; } });
|
|
38
|
+
Object.defineProperty(exports, "isExpired", { enumerable: true, get: function () { return auth_store_js_1.isExpired; } });
|
|
39
|
+
Object.defineProperty(exports, "refreshAndSave", { enumerable: true, get: function () { return auth_store_js_1.refreshAndSave; } });
|
|
40
|
+
Object.defineProperty(exports, "tryAcquirePkceFlightLock", { enumerable: true, get: function () { return auth_store_js_1.tryAcquirePkceFlightLock; } });
|
|
41
|
+
Object.defineProperty(exports, "clearPkceFlightLock", { enumerable: true, get: function () { return auth_store_js_1.clearPkceFlightLock; } });
|
|
42
|
+
Object.defineProperty(exports, "waitForPeerTokens", { enumerable: true, get: function () { return auth_store_js_1.waitForPeerTokens; } });
|
|
43
|
+
Object.defineProperty(exports, "waitForPeerTokensSync", { enumerable: true, get: function () { return auth_store_js_1.waitForPeerTokensSync; } });
|
|
44
|
+
Object.defineProperty(exports, "TOKEN_EXPIRY_SKEW_SEC", { enumerable: true, get: function () { return auth_store_js_1.TOKEN_EXPIRY_SKEW_SEC; } });
|
|
45
|
+
var auth_gate_js_1 = require("./auth-gate.js");
|
|
46
|
+
Object.defineProperty(exports, "ensureUserAuthenticated", { enumerable: true, get: function () { return auth_gate_js_1.ensureUserAuthenticated; } });
|
|
47
|
+
Object.defineProperty(exports, "ensureAuthenticated", { enumerable: true, get: function () { return auth_gate_js_1.ensureAuthenticated; } });
|
|
48
|
+
var agent_auth_js_1 = require("./agent-auth.js");
|
|
49
|
+
Object.defineProperty(exports, "resolveAgentCredentials", { enumerable: true, get: function () { return agent_auth_js_1.resolveAgentCredentials; } });
|
|
50
|
+
Object.defineProperty(exports, "ensureAgentIdentity", { enumerable: true, get: function () { return agent_auth_js_1.ensureAgentIdentity; } });
|
|
51
|
+
Object.defineProperty(exports, "ensureSubAgentIdentity", { enumerable: true, get: function () { return agent_auth_js_1.ensureSubAgentIdentity; } });
|
|
52
|
+
Object.defineProperty(exports, "fetchClientCredentialsToken", { enumerable: true, get: function () { return agent_auth_js_1.fetchClientCredentialsToken; } });
|
|
53
|
+
Object.defineProperty(exports, "registerAgentClient", { enumerable: true, get: function () { return agent_auth_js_1.registerAgentClient; } });
|
|
54
|
+
Object.defineProperty(exports, "loadAgentDynamicCredentials", { enumerable: true, get: function () { return agent_auth_js_1.loadAgentDynamicCredentials; } });
|
|
55
|
+
Object.defineProperty(exports, "saveAgentDynamicCredentials", { enumerable: true, get: function () { return agent_auth_js_1.saveAgentDynamicCredentials; } });
|
|
56
|
+
Object.defineProperty(exports, "clearAgentDynamicCredentials", { enumerable: true, get: function () { return agent_auth_js_1.clearAgentDynamicCredentials; } });
|
|
57
|
+
Object.defineProperty(exports, "loadSubAgentDynamicCredentials", { enumerable: true, get: function () { return agent_auth_js_1.loadSubAgentDynamicCredentials; } });
|
|
58
|
+
Object.defineProperty(exports, "saveSubAgentDynamicCredentials", { enumerable: true, get: function () { return agent_auth_js_1.saveSubAgentDynamicCredentials; } });
|
|
59
|
+
Object.defineProperty(exports, "clearSubAgentDynamicCredentials", { enumerable: true, get: function () { return agent_auth_js_1.clearSubAgentDynamicCredentials; } });
|
|
60
|
+
Object.defineProperty(exports, "AGENT_TOKEN_EXPIRY_SKEW_SEC", { enumerable: true, get: function () { return agent_auth_js_1.AGENT_TOKEN_EXPIRY_SKEW_SEC; } });
|
|
61
|
+
var cli_js_1 = require("./cli.js");
|
|
62
|
+
Object.defineProperty(exports, "runConfigureCommand", { enumerable: true, get: function () { return cli_js_1.runConfigureCommand; } });
|
|
63
|
+
Object.defineProperty(exports, "runAgentCommand", { enumerable: true, get: function () { return cli_js_1.runAgentCommand; } });
|
|
64
|
+
Object.defineProperty(exports, "printOryConfig", { enumerable: true, get: function () { return cli_js_1.printOryConfig; } });
|
|
65
|
+
Object.defineProperty(exports, "printEnvironment", { enumerable: true, get: function () { return cli_js_1.printEnvironment; } });
|
|
66
|
+
Object.defineProperty(exports, "printLogTail", { enumerable: true, get: function () { return cli_js_1.printLogTail; } });
|
|
67
|
+
Object.defineProperty(exports, "printEnvHelp", { enumerable: true, get: function () { return cli_js_1.printEnvHelp; } });
|
|
68
|
+
Object.defineProperty(exports, "printTraceTail", { enumerable: true, get: function () { return cli_js_1.printTraceTail; } });
|
|
69
|
+
Object.defineProperty(exports, "runWatchCommand", { enumerable: true, get: function () { return cli_js_1.runWatchCommand; } });
|
|
70
|
+
Object.defineProperty(exports, "isTtyAvailable", { enumerable: true, get: function () { return cli_js_1.isTtyAvailable; } });
|
|
71
|
+
Object.defineProperty(exports, "promptOnTty", { enumerable: true, get: function () { return cli_js_1.promptOnTty; } });
|
|
72
|
+
Object.defineProperty(exports, "promptForProjectUrl", { enumerable: true, get: function () { return cli_js_1.promptForProjectUrl; } });
|
|
73
|
+
Object.defineProperty(exports, "interactiveConfigPrompt", { enumerable: true, get: function () { return cli_js_1.interactiveConfigPrompt; } });
|
|
74
|
+
var setup_js_1 = require("./setup.js");
|
|
75
|
+
Object.defineProperty(exports, "parseSetupArgs", { enumerable: true, get: function () { return setup_js_1.parseSetupArgs; } });
|
|
76
|
+
Object.defineProperty(exports, "readJsonFile", { enumerable: true, get: function () { return setup_js_1.readJsonFile; } });
|
|
77
|
+
Object.defineProperty(exports, "writeJsonFile", { enumerable: true, get: function () { return setup_js_1.writeJsonFile; } });
|
|
78
|
+
Object.defineProperty(exports, "isOryHookCommand", { enumerable: true, get: function () { return setup_js_1.isOryHookCommand; } });
|
|
79
|
+
Object.defineProperty(exports, "resolveHookCommand", { enumerable: true, get: function () { return setup_js_1.resolveHookCommand; } });
|
|
80
|
+
Object.defineProperty(exports, "matcherHookEntry", { enumerable: true, get: function () { return setup_js_1.matcherHookEntry; } });
|
|
81
|
+
Object.defineProperty(exports, "mergeMatcherHooks", { enumerable: true, get: function () { return setup_js_1.mergeMatcherHooks; } });
|
|
82
|
+
Object.defineProperty(exports, "removeMatcherHooks", { enumerable: true, get: function () { return setup_js_1.removeMatcherHooks; } });
|
|
83
|
+
Object.defineProperty(exports, "flatHookEntry", { enumerable: true, get: function () { return setup_js_1.flatHookEntry; } });
|
|
84
|
+
Object.defineProperty(exports, "mergeFlatHooks", { enumerable: true, get: function () { return setup_js_1.mergeFlatHooks; } });
|
|
85
|
+
Object.defineProperty(exports, "removeFlatHooks", { enumerable: true, get: function () { return setup_js_1.removeFlatHooks; } });
|
|
86
|
+
Object.defineProperty(exports, "printSetupHelp", { enumerable: true, get: function () { return setup_js_1.printSetupHelp; } });
|
|
87
|
+
Object.defineProperty(exports, "printNextSteps", { enumerable: true, get: function () { return setup_js_1.printNextSteps; } });
|
|
88
|
+
Object.defineProperty(exports, "resolveMcpServerCommand", { enumerable: true, get: function () { return setup_js_1.resolveMcpServerCommand; } });
|
|
89
|
+
Object.defineProperty(exports, "mcpServerEntry", { enumerable: true, get: function () { return setup_js_1.mcpServerEntry; } });
|
|
90
|
+
Object.defineProperty(exports, "mergeMcpServer", { enumerable: true, get: function () { return setup_js_1.mergeMcpServer; } });
|
|
91
|
+
Object.defineProperty(exports, "removeMcpServer", { enumerable: true, get: function () { return setup_js_1.removeMcpServer; } });
|
|
92
|
+
Object.defineProperty(exports, "registerPlugin", { enumerable: true, get: function () { return setup_js_1.registerPlugin; } });
|
|
93
|
+
Object.defineProperty(exports, "unregisterPlugin", { enumerable: true, get: function () { return setup_js_1.unregisterPlugin; } });
|
|
94
|
+
var dev_js_1 = require("./dev.js");
|
|
95
|
+
Object.defineProperty(exports, "runDevLauncher", { enumerable: true, get: function () { return dev_js_1.runDevLauncher; } });
|
|
96
|
+
var skills_js_1 = require("./skills.js");
|
|
97
|
+
Object.defineProperty(exports, "renderOrySkills", { enumerable: true, get: function () { return skills_js_1.renderOrySkills; } });
|
|
98
|
+
Object.defineProperty(exports, "renderOryCommands", { enumerable: true, get: function () { return skills_js_1.renderOryCommands; } });
|
|
99
|
+
Object.defineProperty(exports, "commandToSkill", { enumerable: true, get: function () { return skills_js_1.commandToSkill; } });
|
|
100
|
+
Object.defineProperty(exports, "commandToToml", { enumerable: true, get: function () { return skills_js_1.commandToToml; } });
|
|
101
|
+
Object.defineProperty(exports, "commandToFrontmatterMarkdown", { enumerable: true, get: function () { return skills_js_1.commandToFrontmatterMarkdown; } });
|
|
102
|
+
Object.defineProperty(exports, "commandToPlainMarkdown", { enumerable: true, get: function () { return skills_js_1.commandToPlainMarkdown; } });
|
|
103
|
+
Object.defineProperty(exports, "toSkillMarkdown", { enumerable: true, get: function () { return skills_js_1.toSkillMarkdown; } });
|
|
104
|
+
Object.defineProperty(exports, "writeSkillTree", { enumerable: true, get: function () { return skills_js_1.writeSkillTree; } });
|
|
105
|
+
Object.defineProperty(exports, "removeSkillDirs", { enumerable: true, get: function () { return skills_js_1.removeSkillDirs; } });
|
|
106
|
+
Object.defineProperty(exports, "ORY_SKILL_NAMES", { enumerable: true, get: function () { return skills_js_1.ORY_SKILL_NAMES; } });
|
|
107
|
+
Object.defineProperty(exports, "ORY_COMMAND_SKILL_NAMES", { enumerable: true, get: function () { return skills_js_1.ORY_COMMAND_SKILL_NAMES; } });
|
|
108
|
+
Object.defineProperty(exports, "ORY_COMMAND_SLUGS", { enumerable: true, get: function () { return skills_js_1.ORY_COMMAND_SLUGS; } });
|
|
109
|
+
var index_js_1 = require("./local/index.js");
|
|
110
|
+
Object.defineProperty(exports, "runLocalCommand", { enumerable: true, get: function () { return index_js_1.runLocalCommand; } });
|
|
111
|
+
Object.defineProperty(exports, "ensureDevJaeger", { enumerable: true, get: function () { return index_js_1.ensureDevJaeger; } });
|
|
112
|
+
Object.defineProperty(exports, "stopDevJaeger", { enumerable: true, get: function () { return index_js_1.stopDevJaeger; } });
|
|
113
|
+
Object.defineProperty(exports, "DEV_JAEGER_CONTAINER", { enumerable: true, get: function () { return index_js_1.DEV_JAEGER_CONTAINER; } });
|
|
114
|
+
var index_js_2 = require("./registry/index.js");
|
|
115
|
+
Object.defineProperty(exports, "runRegistryCommand", { enumerable: true, get: function () { return index_js_2.runRegistryCommand; } });
|
|
116
|
+
var mcp_js_1 = require("./mcp.js");
|
|
117
|
+
Object.defineProperty(exports, "parseClaudeCodeMcpTool", { enumerable: true, get: function () { return mcp_js_1.parseClaudeCodeMcpTool; } });
|
|
118
|
+
Object.defineProperty(exports, "parseGeminiMcpTool", { enumerable: true, get: function () { return mcp_js_1.parseGeminiMcpTool; } });
|
|
119
|
+
Object.defineProperty(exports, "parseMcpToolGeneric", { enumerable: true, get: function () { return mcp_js_1.parseMcpToolGeneric; } });
|
|
120
|
+
Object.defineProperty(exports, "checkMcpPermission", { enumerable: true, get: function () { return mcp_js_1.checkMcpPermission; } });
|
|
121
|
+
var subject_js_1 = require("./subject.js");
|
|
122
|
+
Object.defineProperty(exports, "resolveUserSubject", { enumerable: true, get: function () { return subject_js_1.resolveUserSubject; } });
|
|
123
|
+
Object.defineProperty(exports, "subjectLabel", { enumerable: true, get: function () { return subject_js_1.subjectLabel; } });
|
|
124
|
+
var denial_js_1 = require("./denial.js");
|
|
125
|
+
Object.defineProperty(exports, "formatDenialMessage", { enumerable: true, get: function () { return denial_js_1.formatDenialMessage; } });
|
|
126
|
+
Object.defineProperty(exports, "formatDenialSummary", { enumerable: true, get: function () { return denial_js_1.formatDenialSummary; } });
|
|
127
|
+
Object.defineProperty(exports, "formatAlertMessage", { enumerable: true, get: function () { return denial_js_1.formatAlertMessage; } });
|
|
128
|
+
Object.defineProperty(exports, "formatAlertSummary", { enumerable: true, get: function () { return denial_js_1.formatAlertSummary; } });
|
|
129
|
+
Object.defineProperty(exports, "alertAttributes", { enumerable: true, get: function () { return denial_js_1.alertAttributes; } });
|
|
130
|
+
Object.defineProperty(exports, "OryDenialError", { enumerable: true, get: function () { return denial_js_1.OryDenialError; } });
|
|
131
|
+
var tool_metadata_js_1 = require("./tool-metadata.js");
|
|
132
|
+
Object.defineProperty(exports, "summarizeToolInput", { enumerable: true, get: function () { return tool_metadata_js_1.summarizeToolInput; } });
|
|
133
|
+
Object.defineProperty(exports, "summarizeToolOutput", { enumerable: true, get: function () { return tool_metadata_js_1.summarizeToolOutput; } });
|
|
134
|
+
var index_js_3 = require("./otel/index.js");
|
|
135
|
+
Object.defineProperty(exports, "OtlpHttpExporter", { enumerable: true, get: function () { return index_js_3.OtlpHttpExporter; } });
|
|
136
|
+
Object.defineProperty(exports, "otlpExporterFromEnv", { enumerable: true, get: function () { return index_js_3.otlpExporterFromEnv; } });
|
|
137
|
+
Object.defineProperty(exports, "parseKeyValueList", { enumerable: true, get: function () { return index_js_3.parseKeyValueList; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI interface for the `local` subcommand.
|
|
3
|
+
*
|
|
4
|
+
* Each plugin CLI delegates `<bin> local <subcommand>` here.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Run a `local` subcommand. Call from each plugin CLI's `local` case.
|
|
8
|
+
*
|
|
9
|
+
* @param binName - The plugin CLI name (e.g., "ory-claude") for help text
|
|
10
|
+
* @param args - Arguments after "local" (e.g., ["up", "--no-seed"])
|
|
11
|
+
*/
|
|
12
|
+
export declare function runLocalCommand(binName: string, args: string[]): Promise<void>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CLI interface for the `local` subcommand.
|
|
4
|
+
*
|
|
5
|
+
* Each plugin CLI delegates `<bin> local <subcommand>` here.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.runLocalCommand = runLocalCommand;
|
|
9
|
+
const manager_js_1 = require("./manager.js");
|
|
10
|
+
/**
|
|
11
|
+
* Run a `local` subcommand. Call from each plugin CLI's `local` case.
|
|
12
|
+
*
|
|
13
|
+
* @param binName - The plugin CLI name (e.g., "ory-claude") for help text
|
|
14
|
+
* @param args - Arguments after "local" (e.g., ["up", "--no-seed"])
|
|
15
|
+
*/
|
|
16
|
+
async function runLocalCommand(binName, args) {
|
|
17
|
+
const [subcommand, ...rest] = args;
|
|
18
|
+
switch (subcommand) {
|
|
19
|
+
case "up":
|
|
20
|
+
await (0, manager_js_1.localUp)({ seed: !rest.includes("--no-seed") });
|
|
21
|
+
break;
|
|
22
|
+
case "down":
|
|
23
|
+
await (0, manager_js_1.localDown)();
|
|
24
|
+
break;
|
|
25
|
+
case "status":
|
|
26
|
+
await (0, manager_js_1.localStatus)();
|
|
27
|
+
break;
|
|
28
|
+
case "seed":
|
|
29
|
+
await (0, manager_js_1.localSeed)();
|
|
30
|
+
break;
|
|
31
|
+
case "logs":
|
|
32
|
+
(0, manager_js_1.localLogs)(rest);
|
|
33
|
+
break;
|
|
34
|
+
case "reset":
|
|
35
|
+
await (0, manager_js_1.localReset)();
|
|
36
|
+
break;
|
|
37
|
+
case "env":
|
|
38
|
+
(0, manager_js_1.localEnv)();
|
|
39
|
+
break;
|
|
40
|
+
case "configure":
|
|
41
|
+
(0, manager_js_1.localConfigure)();
|
|
42
|
+
break;
|
|
43
|
+
case "help":
|
|
44
|
+
case "--help":
|
|
45
|
+
case "-h":
|
|
46
|
+
case undefined:
|
|
47
|
+
printLocalHelp(binName);
|
|
48
|
+
break;
|
|
49
|
+
default:
|
|
50
|
+
console.error(`Unknown local subcommand: ${subcommand}`);
|
|
51
|
+
printLocalHelp(binName);
|
|
52
|
+
process.exit(1);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function printLocalHelp(binName) {
|
|
56
|
+
console.log(`
|
|
57
|
+
${binName} local — Run Ory locally for development
|
|
58
|
+
|
|
59
|
+
Usage:
|
|
60
|
+
npx ${binName} local <command> [options]
|
|
61
|
+
|
|
62
|
+
Commands:
|
|
63
|
+
up [--no-seed] Start local Ory services (Kratos, Keto, Hydra, gateway)
|
|
64
|
+
down Stop all local services (preserves data)
|
|
65
|
+
status Show service health and container states
|
|
66
|
+
seed Create test identity, session, and permission tuples
|
|
67
|
+
logs [service] [-f] View service logs (optionally follow, optionally filter)
|
|
68
|
+
reset Stop services and remove all data
|
|
69
|
+
env Print environment variables for connecting to local services
|
|
70
|
+
configure Save local gateway URL to shared plugin config
|
|
71
|
+
|
|
72
|
+
Requires Docker (Docker Desktop or docker engine + compose plugin).
|
|
73
|
+
|
|
74
|
+
The local environment runs:
|
|
75
|
+
Ory Kratos Identity & session management :4433 / :4434
|
|
76
|
+
Ory Keto Permission checks (Zanzibar) :4466 / :4467
|
|
77
|
+
Ory Hydra OAuth2 & OIDC :4444 / :4445
|
|
78
|
+
Nginx gateway Unified API (like Ory Network) :4000
|
|
79
|
+
|
|
80
|
+
After 'local up', set ORY_PROJECT_URL=http://localhost:4000 to point
|
|
81
|
+
any Ory agent plugin at the local environment.
|
|
82
|
+
|
|
83
|
+
Examples:
|
|
84
|
+
npx ${binName} local up # Start everything and seed test data
|
|
85
|
+
npx ${binName} local up --no-seed # Start services without seeding
|
|
86
|
+
npx ${binName} local seed # (Re-)seed test data
|
|
87
|
+
npx ${binName} local status # Check what's running
|
|
88
|
+
npx ${binName} local logs kratos # View Kratos logs
|
|
89
|
+
npx ${binName} local logs -f # Follow all logs
|
|
90
|
+
npx ${binName} local configure # Save local URL to config
|
|
91
|
+
npx ${binName} local env # Print export statements
|
|
92
|
+
npx ${binName} local down # Stop services
|
|
93
|
+
npx ${binName} local reset # Stop and delete all data
|
|
94
|
+
`);
|
|
95
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ory service configuration templates for local development.
|
|
3
|
+
*
|
|
4
|
+
* Each function returns the file content as a string. The local manager
|
|
5
|
+
* writes these into .ory-dev/ory/ at runtime so Docker Compose can mount them.
|
|
6
|
+
*/
|
|
7
|
+
export type ConsoleSource = "env" | "default";
|
|
8
|
+
export interface GatewayConfig {
|
|
9
|
+
/** Path under GATEWAY_URL that returns 2xx when the gateway is ready. */
|
|
10
|
+
healthPath: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ConsoleConfig {
|
|
13
|
+
/** True when Console Lite source is available and the UI will be built. */
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
/** Build context for `docker compose build` (Console Lite only). */
|
|
16
|
+
buildContext?: string;
|
|
17
|
+
/** Dockerfile path relative to buildContext (Console Lite only). */
|
|
18
|
+
dockerfile?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Absolute path to the `elements` workspace, passed to docker as a named
|
|
21
|
+
* build context. Console Lite's Dockerfile uses `COPY --from=elements`.
|
|
22
|
+
*/
|
|
23
|
+
elementsContext?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Value for the Console Lite Dockerfile's `NEXT_PUBLIC_BUILD_MODE`
|
|
26
|
+
* build arg. Defaults to `oss`.
|
|
27
|
+
*/
|
|
28
|
+
buildMode?: string;
|
|
29
|
+
/** Where the Console Lite path came from. */
|
|
30
|
+
source?: ConsoleSource;
|
|
31
|
+
}
|
|
32
|
+
/** Default location of the Console Lite source tree, sibling-checkout layout. */
|
|
33
|
+
export declare const DEFAULT_CONSOLE_LITE_SUBPATH: string;
|
|
34
|
+
/**
|
|
35
|
+
* The API gateway is always the bundled nginx routing layer that
|
|
36
|
+
* proxies bare Ory paths to Kratos / Hydra / Keto. No mode choice.
|
|
37
|
+
*/
|
|
38
|
+
export declare function getGatewayConfig(): GatewayConfig;
|
|
39
|
+
/**
|
|
40
|
+
* Resolve whether the optional Console Lite UI service should be brought
|
|
41
|
+
* up, and if so, with what build inputs.
|
|
42
|
+
*
|
|
43
|
+
* Enabled when Console Lite source is present at
|
|
44
|
+
* `<repoRoot>/../cloud/console/console` (sibling checkout, where
|
|
45
|
+
* `repoRoot` is the outermost `.git` ancestor of the given `projectRoot`).
|
|
46
|
+
* Disabled when that path is missing or unreadable.
|
|
47
|
+
*
|
|
48
|
+
* `ORY_CONSOLE_LITE_PATH` is an explicit override. When set it must
|
|
49
|
+
* point at a usable build context; downstream validation surfaces a hard
|
|
50
|
+
* error if the path doesn't exist. Relative paths are resolved against
|
|
51
|
+
* pnpm's `INIT_CWD` so they match the user's shell cwd.
|
|
52
|
+
*/
|
|
53
|
+
export declare function getConsoleConfig(projectRoot?: string): ConsoleConfig;
|
|
54
|
+
/**
|
|
55
|
+
* Render the docker-compose YAML.
|
|
56
|
+
*
|
|
57
|
+
* `consoleCfg` controls whether the optional Console UI service is
|
|
58
|
+
* emitted. When omitted, it is resolved via `getConsoleConfig(projectRoot)`.
|
|
59
|
+
* The nginx API gateway and the login UI are always emitted.
|
|
60
|
+
*/
|
|
61
|
+
export declare function dockerComposeYaml(projectRoot?: string, consoleCfg?: ConsoleConfig): string;
|
|
62
|
+
export declare function kratosConfigYaml(): string;
|
|
63
|
+
export declare function kratosIdentitySchema(): string;
|
|
64
|
+
export declare function ketoConfigYaml(): string;
|
|
65
|
+
export declare function hydraConfigYaml(): string;
|
|
66
|
+
/**
|
|
67
|
+
* Nginx config that acts as a unified API gateway, replicating what
|
|
68
|
+
* Ory Network does: route all API paths to the correct backend service
|
|
69
|
+
* so the @ory/client SDK works with a single basePath.
|
|
70
|
+
*/
|
|
71
|
+
export declare function nginxConf(): string;
|
|
72
|
+
export declare const GATEWAY_PORT = 4000;
|
|
73
|
+
export declare const GATEWAY_URL = "http://localhost:4000";
|
|
74
|
+
export declare const CONSOLE_PORT = 4100;
|
|
75
|
+
export declare const CONSOLE_URL = "http://localhost:4100";
|
|
76
|
+
export declare const LOGIN_UI_PORT = 3000;
|
|
77
|
+
export declare const LOGIN_UI_URL = "http://localhost:3000";
|
|
78
|
+
export declare const KRATOS_PUBLIC_PORT = 4433;
|
|
79
|
+
export declare const KRATOS_ADMIN_PORT = 4434;
|
|
80
|
+
export declare const KETO_READ_PORT = 4466;
|
|
81
|
+
export declare const KETO_WRITE_PORT = 4467;
|
|
82
|
+
export declare const HYDRA_PUBLIC_PORT = 4444;
|
|
83
|
+
export declare const HYDRA_ADMIN_PORT = 4445;
|
|
84
|
+
export declare const JAEGER_UI_PORT = 16686;
|
|
85
|
+
export declare const JAEGER_OTLP_HTTP_PORT = 4318;
|
|
86
|
+
export declare const JAEGER_UI_URL = "http://localhost:16686";
|
|
87
|
+
export declare const JAEGER_OTLP_HTTP_URL = "http://localhost:4318";
|
|
88
|
+
/** URL the manager probes to confirm the gateway is healthy. */
|
|
89
|
+
export declare function gatewayHealthUrl(): string;
|