@highstate/backend-api 0.9.19 → 0.9.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highstate/backend-api",
3
- "version": "0.9.19",
3
+ "version": "0.9.21",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -17,7 +17,10 @@
17
17
  "access": "public"
18
18
  },
19
19
  "scripts": {
20
- "build": "highstate build"
20
+ "build": "highstate build",
21
+ "typecheck": "tsgo --noEmit --skipLibCheck",
22
+ "biome": "biome check --write --unsafe --error-on-warnings",
23
+ "biome:check": "biome check --error-on-warnings"
21
24
  },
22
25
  "peerDependencies": {
23
26
  "@pulumi/pulumi": "^3.163.0",
@@ -33,13 +36,18 @@
33
36
  },
34
37
  "dependencies": {
35
38
  "@bufbuild/protobuf": "^2.6.1",
36
- "@highstate/api": "^0.9.19",
37
- "@highstate/backend": "^0.9.19",
38
- "@highstate/cli": "^0.9.19",
39
+ "@highstate/api": "^0.9.21",
40
+ "@highstate/backend": "^0.9.21",
41
+ "@highstate/cli": "^0.9.21",
42
+ "@highstate/contract": "^0.9.21",
39
43
  "abort-controller-x": "^0.4.3",
40
44
  "nice-grpc": "^2.1.12",
41
45
  "nice-grpc-common": "^2.0.2",
42
46
  "zod": "^4.0.5"
43
47
  },
44
- "gitHead": "e77d292335556c6e5b6275acda1a3d1609d786a1"
48
+ "devDependencies": {
49
+ "@biomejs/biome": "2.2.0",
50
+ "@typescript/native-preview": "^7.0.0-dev.20250920.1"
51
+ },
52
+ "gitHead": "390ff15c0e0076822a682f9d4e19260942a8d6c2"
45
53
  }
@@ -4,18 +4,16 @@ import { authenticate } from "../shared"
4
4
 
5
5
  export function createSecretService(services: Services): SecretServiceImplementation {
6
6
  return {
7
- async getSecretContent(request, context) {
8
- const [projectId] = await authenticate(services, context)
7
+ async getSecretContent(_request, context) {
8
+ const [_projectId] = await authenticate(services, context)
9
9
 
10
10
  // TODO: validate secret access
11
11
 
12
- const content = await services.stateManager
13
- .getSecretContentRepository(projectId)
14
- .get(request.secretId)
12
+ throw new Error("Not implemented")
15
13
 
16
- return {
17
- content,
18
- }
14
+ // return {
15
+ // content,
16
+ // }
19
17
  },
20
18
  }
21
19
  }
package/src/index.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { rm } from "node:fs/promises"
2
- import { createServer } from "nice-grpc"
3
1
  import type { Services } from "@highstate/backend"
2
+ import { rm } from "node:fs/promises"
4
3
  import { InstanceServiceDefinition } from "@highstate/api/instance.v1"
5
4
  import { SecretServiceDefinition } from "@highstate/api/secret.v1"
6
5
  import { WorkerServiceDefinition } from "@highstate/api/worker.v1"
7
- import { createErrorHandlingMiddleware } from "./shared"
6
+ import { createServer } from "nice-grpc"
8
7
  import { createInstanceService } from "./handlers/instance"
9
8
  import { createSecretService } from "./handlers/secret"
10
9
  import { createWorkerService } from "./handlers/worker"
10
+ import { createErrorHandlingMiddleware } from "./shared"
11
11
 
12
12
  export async function startBackedApi(services: Services) {
13
13
  const server = createServer()