@passlock/cli 2.0.1 → 2.0.2

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 CHANGED
@@ -42,7 +42,7 @@ Install the CLI globally:
42
42
 
43
43
  or
44
44
 
45
- `pnpm add -g @passlock/api`
45
+ `pnpm add -g @passlock/cli`
46
46
 
47
47
  ### Create a cloud instance
48
48
 
@@ -42,7 +42,7 @@ Install the CLI globally:
42
42
 
43
43
  or
44
44
 
45
- `pnpm add -g @passlock/api`
45
+ `pnpm add -g @passlock/cli`
46
46
 
47
47
  ### Create a cloud instance
48
48
 
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ import { HttpClient, HttpClientRequest } from "@effect/platform";
4
4
  import { NodeContext, NodeHttpClient, NodeRuntime } from "@effect/platform-node";
5
5
  import { Console, Effect, Layer, pipe } from "effect";
6
6
  import { init } from "./init.js";
7
+ const VERSION = "2.0.2";
7
8
  // prepend the correct endpoint
8
9
  const mapClient = (endpoint) => pipe(HttpClient.HttpClient, Effect.map(HttpClient.mapRequest(HttpClientRequest.prependUrl(endpoint))), Layer.effect(HttpClient.HttpClient));
9
10
  const endpoint = Options.text("endpoint")
@@ -16,7 +17,7 @@ const command = pipe(mainCmd, Command.withSubcommands([initCmd]));
16
17
  // Set up the CLI application
17
18
  const cli = Command.run(command, {
18
19
  name: "Passlock CLI tools",
19
- version: "v2.0.0.alpha.1",
20
+ version: VERSION,
20
21
  });
21
22
  // Prepare and run the CLI application
22
23
  pipe(cli(process.argv), Effect.provide(NodeHttpClient.layer), Effect.provide(NodeContext.layer), NodeRuntime.runMain);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA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,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;AAEjE,6BAA6B;AAC7B,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE;IAC/B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,gBAAgB;CAC1B,CAAC,CAAA;AAEF,sCAAsC;AACtC,IAAI,CACF,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,EACjB,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,EACpC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,EACjC,WAAW,CAAC,OAAO,CACpB,CAAA","sourcesContent":["#!/usr/bin/env node\n\nimport { Command, Options } from \"@effect/cli\"\nimport { HttpClient, HttpClientRequest } from \"@effect/platform\"\nimport { NodeContext, NodeHttpClient, NodeRuntime } from \"@effect/platform-node\"\nimport { Console, Effect, Layer, pipe } from \"effect\"\nimport { init } from \"./init.js\"\n\n// prepend the correct endpoint\nconst mapClient = (endpoint: string) =>\n pipe(\n HttpClient.HttpClient,\n Effect.map(HttpClient.mapRequest(HttpClientRequest.prependUrl(endpoint))),\n Layer.effect(HttpClient.HttpClient)\n )\n\nconst endpoint = Options.text(\"endpoint\")\n .pipe(Options.withAlias(\"e\"))\n .pipe(Options.withDescription(\"Passlock API endpoint\"))\n .pipe(Options.withDefault(\"https://api.passlock.dev\"))\n\nconst initCmd = pipe(\n Command.make(\"init\", { endpoint }, ({ endpoint }) =>\n pipe(init, Effect.provide(mapClient(endpoint)))\n ),\n Command.withDescription(\"Setup a new Passlock cloud instance\")\n)\n\nconst mainCmd = pipe(\n Command.make(\"passlock\", {}, () =>\n Console.log(\"Passlock CLI tools\\nRun with --help for commands and options\")\n ),\n Command.withDescription(\"Passlock CLI tools\")\n)\n\nconst command = pipe(mainCmd, Command.withSubcommands([initCmd]))\n\n// Set up the CLI application\nconst cli = Command.run(command, {\n name: \"Passlock CLI tools\",\n version: \"v2.0.0.alpha.1\",\n})\n\n// Prepare and run the CLI application\npipe(\n cli(process.argv),\n Effect.provide(NodeHttpClient.layer),\n Effect.provide(NodeContext.layer),\n NodeRuntime.runMain\n)\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,MAAM,OAAO,GAAG,aAAa,CAAA;AAE7B,+BAA+B;AAC/B,MAAM,SAAS,GAAG,CAAC,QAAgB,EAAE,EAAE,CACrC,IAAI,CACF,UAAU,CAAC,UAAU,EACrB,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,EACzE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CACpC,CAAA;AAEH,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC;KACtC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;KAC5B,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,uBAAuB,CAAC,CAAC;KACtD,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC,CAAA;AAExD,MAAM,OAAO,GAAG,IAAI,CAClB,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAClD,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAChD,EACD,OAAO,CAAC,eAAe,CAAC,qCAAqC,CAAC,CAC/D,CAAA;AAED,MAAM,OAAO,GAAG,IAAI,CAClB,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,GAAG,EAAE,CAChC,OAAO,CAAC,GAAG,CAAC,8DAA8D,CAAC,CAC5E,EACD,OAAO,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAC9C,CAAA;AAED,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;AAEjE,6BAA6B;AAC7B,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE;IAC/B,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,OAAO;CACjB,CAAC,CAAA;AAEF,sCAAsC;AACtC,IAAI,CACF,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,EACjB,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,EACpC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,EACjC,WAAW,CAAC,OAAO,CACpB,CAAA","sourcesContent":["#!/usr/bin/env node\n\nimport { Command, Options } from \"@effect/cli\"\nimport { HttpClient, HttpClientRequest } from \"@effect/platform\"\nimport { NodeContext, NodeHttpClient, NodeRuntime } from \"@effect/platform-node\"\nimport { Console, Effect, Layer, pipe } from \"effect\"\nimport { init } from \"./init.js\"\n\nconst VERSION = \"#{VERSION}#\"\n\n// prepend the correct endpoint\nconst mapClient = (endpoint: string) =>\n pipe(\n HttpClient.HttpClient,\n Effect.map(HttpClient.mapRequest(HttpClientRequest.prependUrl(endpoint))),\n Layer.effect(HttpClient.HttpClient)\n )\n\nconst endpoint = Options.text(\"endpoint\")\n .pipe(Options.withAlias(\"e\"))\n .pipe(Options.withDescription(\"Passlock API endpoint\"))\n .pipe(Options.withDefault(\"https://api.passlock.dev\"))\n\nconst initCmd = pipe(\n Command.make(\"init\", { endpoint }, ({ endpoint }) =>\n pipe(init, Effect.provide(mapClient(endpoint)))\n ),\n Command.withDescription(\"Setup a new Passlock cloud instance\")\n)\n\nconst mainCmd = pipe(\n Command.make(\"passlock\", {}, () =>\n Console.log(\"Passlock CLI tools\\nRun with --help for commands and options\")\n ),\n Command.withDescription(\"Passlock CLI tools\")\n)\n\nconst command = pipe(mainCmd, Command.withSubcommands([initCmd]))\n\n// Set up the CLI application\nconst cli = Command.run(command, {\n name: \"Passlock CLI tools\",\n version: VERSION,\n})\n\n// Prepare and run the CLI application\npipe(\n cli(process.argv),\n Effect.provide(NodeHttpClient.layer),\n Effect.provide(NodeContext.layer),\n NodeRuntime.runMain\n)\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@passlock/cli",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "CLI tooling support for the Passlock authentication framework",
5
5
  "keywords": [
6
6
  "passkey",
@@ -42,21 +42,21 @@
42
42
  "!dist/**/*.spec.*"
43
43
  ],
44
44
  "dependencies": {
45
- "@clack/prompts": "^1.0.0",
46
- "@effect/cli": "^0.73.1",
47
- "@effect/cluster": "^0.56.1",
48
- "@effect/platform": "^0.94.2",
45
+ "@clack/prompts": "^1.0.1",
46
+ "@effect/cli": "^0.73.2",
47
+ "@effect/cluster": "^0.56.4",
48
+ "@effect/platform": "^0.94.5",
49
49
  "@effect/platform-node": "^0.104.1",
50
- "effect": "3.19.15",
50
+ "effect": "3.19.19",
51
51
  "kleur": "^4.1.5"
52
52
  },
53
53
  "devDependencies": {
54
- "@biomejs/biome": "^2.3.13",
55
- "@types/node": "25.1.0",
56
- "globals": "^17.2.0",
57
- "npm-check-updates": "^19.3.2",
54
+ "@biomejs/biome": "^2.4.4",
55
+ "@types/node": "25.3.0",
56
+ "globals": "^17.3.0",
57
+ "npm-check-updates": "^19.4.1",
58
58
  "publint": "0.3.17",
59
- "rimraf": "^6.1.2",
59
+ "rimraf": "^6.1.3",
60
60
  "tsx": "4.21.0",
61
61
  "typescript": "^5.9.3"
62
62
  },
@@ -67,10 +67,10 @@
67
67
  "build": "tsc --build",
68
68
  "build:clean": "$npm_execpath run clean:full && $npm_execpath run build",
69
69
  "build:production": "$npm_execpath run build:clean && $npm_execpath run build:readme && $npm_execpath run replaceTokens && echo '' && publint",
70
- "build:readme": "LATEST=${npm_package_version} tsx ../../scripts/replace-readme-tokens.ts ./packages/cli",
70
+ "build:readme": "VERSION=${npm_package_version} tsx ../../scripts/replace-readme-tokens.ts ./packages/cli",
71
71
  "clean": "tsc --build --clean",
72
72
  "clean:full": "rimraf dist tsconfig.tsbuildinfo",
73
- "replaceTokens": "LATEST=${npm_package_version} tsx ../../scripts/replace-tokens.ts ./packages/cli",
73
+ "replaceTokens": "VERSION=${npm_package_version} tsx ../../scripts/replace-tokens.ts ./packages/cli",
74
74
  "test:unit": "vitest",
75
75
  "typecheck": "tsc --noEmit",
76
76
  "lint": "biome check .",