@devframes/service-open 0.9.11 → 0.9.15

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/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { KnownEditor } from "devframe/recipes/common-rpc-functions";
2
2
  import { DevframeServiceDefinition } from "devframe/types";
3
3
  //#region src/index.d.ts
4
- declare const OPEN_SERVICE_PACKAGE = "@devframes/service-open";
5
- declare const OPEN_SERVICE_SCOPE = "devframes:service:open";
6
- interface OpenServiceOptions {
4
+ export declare const OPEN_SERVICE_PACKAGE = "@devframes/service-open";
5
+ export declare const OPEN_SERVICE_SCOPE = "devframes:service:open";
6
+ export interface OpenServiceOptions {
7
7
  /**
8
8
  * Preferred editor command, one of the `KNOWN_EDITORS` `launch-editor`
9
9
  * recognizes. Auto-detected (via `LAUNCH_EDITOR` and common defaults)
@@ -17,7 +17,7 @@ interface OpenServiceOptions {
17
17
  */
18
18
  roots?: string[];
19
19
  }
20
- interface OpenInEditorInput {
20
+ export interface OpenInEditorInput {
21
21
  /**
22
22
  * File to open, absolute or relative to the service's `workspaceRoot`
23
23
  * (so a client with only a workspace-relative path, e.g. a message's file
@@ -29,7 +29,7 @@ interface OpenInEditorInput {
29
29
  /** Per-call editor override (one of `KNOWN_EDITORS`). */
30
30
  editor?: KnownEditor;
31
31
  }
32
- interface OpenServiceApi {
32
+ export interface OpenServiceApi {
33
33
  /** Open a file (optionally at a line/column) in the user's editor. */
34
34
  openInEditor: (input: OpenInEditorInput) => Promise<void>;
35
35
  /** Reveal a path in the OS file explorer. */
@@ -61,6 +61,6 @@ declare module 'devframe' {
61
61
  * commands to the `KNOWN_EDITORS` picklist so the RPC surface can't spawn an
62
62
  * arbitrary command.
63
63
  */
64
- declare function createOpenService(options?: OpenServiceOptions): DevframeServiceDefinition<OpenServiceApi, OpenServiceOptions>;
64
+ export declare function createOpenService(options?: OpenServiceOptions): DevframeServiceDefinition<OpenServiceApi, OpenServiceOptions>;
65
65
  //#endregion
66
- export { OPEN_SERVICE_PACKAGE, OPEN_SERVICE_SCOPE, OpenInEditorInput, OpenServiceApi, OpenServiceOptions, createOpenService, createOpenService as default };
66
+ export { createOpenService as default };
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { s } from "devframe/utils/simple-schema";
5
5
  import { dirname, isAbsolute, normalize, relative, resolve } from "pathe";
6
6
  import { defineDiagnostics } from "devframe/utils/nostics";
7
7
  //#region package.json
8
- var version = "0.9.11";
8
+ var version = "0.9.15";
9
9
  //#endregion
10
10
  //#region src/diagnostics.ts
11
11
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/service-open",
3
3
  "type": "module",
4
- "version": "0.9.11",
4
+ "version": "0.9.15",
5
5
  "description": "Devframe wire service that opens files in the user's editor or reveals them in the OS file explorer.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -28,16 +28,16 @@
28
28
  "dist"
29
29
  ],
30
30
  "peerDependencies": {
31
- "devframe": "0.9.11"
31
+ "devframe": "0.9.15"
32
32
  },
33
33
  "dependencies": {
34
34
  "pathe": "^2.0.3"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/node": "^26.4.0",
38
- "devframe": "0.9.11",
39
- "tsdown": "^0.22.14",
40
- "vitest": "^4.1.11"
37
+ "@types/node": "^26.5.0",
38
+ "devframe": "0.9.15",
39
+ "tsdown": "^0.23.0",
40
+ "vitest": "^5.0.0"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsdown",