@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.
Files changed (80) hide show
  1. package/README.md +134 -0
  2. package/assets/commands/local-down.md +19 -0
  3. package/assets/commands/local-up.md +27 -0
  4. package/assets/skills/auth-setup/SKILL.md +279 -0
  5. package/assets/skills/local-dev/SKILL.md +206 -0
  6. package/assets/skills/login-flow/SKILL.md +383 -0
  7. package/assets/skills/social-login/SKILL.md +312 -0
  8. package/dist/agent-auth.d.ts +204 -0
  9. package/dist/agent-auth.js +553 -0
  10. package/dist/auth-gate.d.ts +71 -0
  11. package/dist/auth-gate.js +308 -0
  12. package/dist/auth-store.d.ts +75 -0
  13. package/dist/auth-store.js +261 -0
  14. package/dist/auth.d.ts +93 -0
  15. package/dist/auth.js +323 -0
  16. package/dist/cli.d.ts +73 -0
  17. package/dist/cli.js +484 -0
  18. package/dist/client.d.ts +158 -0
  19. package/dist/client.js +679 -0
  20. package/dist/config.d.ts +135 -0
  21. package/dist/config.js +344 -0
  22. package/dist/denial.d.ts +79 -0
  23. package/dist/denial.js +103 -0
  24. package/dist/dev.d.ts +95 -0
  25. package/dist/dev.js +514 -0
  26. package/dist/index.d.ts +20 -0
  27. package/dist/index.js +137 -0
  28. package/dist/local/cli.d.ts +12 -0
  29. package/dist/local/cli.js +95 -0
  30. package/dist/local/configs.d.ts +89 -0
  31. package/dist/local/configs.js +634 -0
  32. package/dist/local/health.d.ts +32 -0
  33. package/dist/local/health.js +65 -0
  34. package/dist/local/index.d.ts +6 -0
  35. package/dist/local/index.js +38 -0
  36. package/dist/local/jaeger-main.d.ts +13 -0
  37. package/dist/local/jaeger-main.js +85 -0
  38. package/dist/local/jaeger.d.ts +50 -0
  39. package/dist/local/jaeger.js +162 -0
  40. package/dist/local/main.d.ts +7 -0
  41. package/dist/local/main.js +14 -0
  42. package/dist/local/manager.d.ts +45 -0
  43. package/dist/local/manager.js +676 -0
  44. package/dist/local/seed.d.ts +71 -0
  45. package/dist/local/seed.js +237 -0
  46. package/dist/logger.d.ts +29 -0
  47. package/dist/logger.js +139 -0
  48. package/dist/mcp.d.ts +76 -0
  49. package/dist/mcp.js +122 -0
  50. package/dist/otel/exporter.d.ts +17 -0
  51. package/dist/otel/exporter.js +12 -0
  52. package/dist/otel/index.d.ts +2 -0
  53. package/dist/otel/index.js +8 -0
  54. package/dist/otel/otlp-http.d.ts +116 -0
  55. package/dist/otel/otlp-http.js +322 -0
  56. package/dist/registry/cli.d.ts +12 -0
  57. package/dist/registry/cli.js +76 -0
  58. package/dist/registry/config.d.ts +23 -0
  59. package/dist/registry/config.js +80 -0
  60. package/dist/registry/index.d.ts +3 -0
  61. package/dist/registry/index.js +21 -0
  62. package/dist/registry/main.d.ts +7 -0
  63. package/dist/registry/main.js +14 -0
  64. package/dist/registry/manager.d.ts +38 -0
  65. package/dist/registry/manager.js +674 -0
  66. package/dist/setup.d.ts +118 -0
  67. package/dist/setup.js +398 -0
  68. package/dist/skills.d.ts +78 -0
  69. package/dist/skills.js +264 -0
  70. package/dist/subject.d.ts +43 -0
  71. package/dist/subject.js +55 -0
  72. package/dist/tool-metadata.d.ts +41 -0
  73. package/dist/tool-metadata.js +127 -0
  74. package/dist/tracer.d.ts +172 -0
  75. package/dist/tracer.js +452 -0
  76. package/dist/types.d.ts +57 -0
  77. package/dist/types.js +3 -0
  78. package/dist/watch-sandbox.d.ts +9 -0
  79. package/dist/watch-sandbox.js +81 -0
  80. package/package.json +79 -0
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Standalone entry point for `registry` commands.
4
+ *
5
+ * Used by root package.json scripts: node packages/core/dist/registry/main.js <subcommand>
6
+ */
7
+ export {};
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ /**
4
+ * Standalone entry point for `registry` commands.
5
+ *
6
+ * Used by root package.json scripts: node packages/core/dist/registry/main.js <subcommand>
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ const cli_js_1 = require("./cli.js");
10
+ const args = process.argv.slice(2);
11
+ (0, cli_js_1.runRegistryCommand)("pnpm", args).catch((err) => {
12
+ console.error(err.message ?? err);
13
+ process.exit(1);
14
+ });
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Local npm registry manager.
3
+ *
4
+ * Manages a Verdaccio Docker container for publishing and installing
5
+ * @ory packages locally. Completely ephemeral — the
6
+ * container is started with `--rm` and all state lives under
7
+ * `.ory-dev/registry/` on the host, bind-mounted into the container.
8
+ *
9
+ * Mirrors the lifecycle model used by the standalone Jaeger container
10
+ * (see `local/jaeger.ts`): single `docker run -d --rm --name <name>`,
11
+ * idempotent start, removal via `docker rm -f`.
12
+ */
13
+ /**
14
+ * Per-registry npm cache directory.
15
+ *
16
+ * Isolating npm's pacote cache here is the only way to keep republishing
17
+ * the same version reliably — npm caches manifests by URL, so the user's
18
+ * `~/.npm` would otherwise serve stale "this version exists" answers to
19
+ * pnpm publish/npm install even after we drop the version from Verdaccio.
20
+ */
21
+ export declare function getLocalRegistryNpmCacheDir(): string;
22
+ /**
23
+ * Start the local registry if it isn't already running.
24
+ */
25
+ export declare function ensureRegistryRunning(): Promise<void>;
26
+ /**
27
+ * Publish all `@ory/*` packages to the local registry — entrypoint used by
28
+ * the dev launcher. The `harnessName` arg is retained for call-site
29
+ * compatibility; we publish the whole scope every time so any harness gets
30
+ * a coherent registry state without needing to compute its dep closure.
31
+ */
32
+ export declare function publishHarnessToLocal(_harnessName: string): Promise<void>;
33
+ export declare function registryStart(): Promise<void>;
34
+ export declare function registryStop(): Promise<void>;
35
+ export declare function registryStatus(): Promise<void>;
36
+ export declare function registryPublish(): Promise<void>;
37
+ export declare function registryClean(): Promise<void>;
38
+ export declare function registryNpmrc(): Promise<void>;