@septkit/shell-lib 0.0.2 → 0.0.4

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.
@@ -1,2 +1,3 @@
1
1
  export declare const LIBRARY_DB_PREFIX = "SET-LIBRARY-";
2
2
  export declare const TEMP_DOCUMENT_PREFIX = "TEMP-";
3
+ export declare const TEMP_PROJECT_PREFIX = "TEMP-PROJECT-";
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export type * from './types';
2
- export { LIBRARY_DB_PREFIX, TEMP_DOCUMENT_PREFIX } from './constants';
2
+ export { LIBRARY_DB_PREFIX, TEMP_DOCUMENT_PREFIX, TEMP_PROJECT_PREFIX } from './constants';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region src/constants.ts
2
- var e = "SET-LIBRARY-", t = "TEMP-";
2
+ var e = "SET-LIBRARY-", t = "TEMP-", n = "TEMP-PROJECT-";
3
3
  //#endregion
4
- export { e as LIBRARY_DB_PREFIX, t as TEMP_DOCUMENT_PREFIX };
4
+ export { e as LIBRARY_DB_PREFIX, t as TEMP_DOCUMENT_PREFIX, n as TEMP_PROJECT_PREFIX };
@@ -1,12 +1,11 @@
1
1
  import { Scl } from '@dialecte/scl/v2019C1';
2
2
  export interface ShellCommands {
3
- activateDocument: (documentId: string) => void;
3
+ activateDocument: (documentId: string) => Promise<void>;
4
4
  switchProject: (projectName: string) => Promise<void>;
5
5
  onDocumentsChanged: (listener: () => void) => () => void;
6
6
  }
7
7
  export interface Observable<T> {
8
8
  readonly value: T | undefined;
9
- emit(newValue: T | undefined): void;
10
9
  subscribe(listener: (value: T | undefined, prev: T | undefined) => void): () => void;
11
10
  }
12
11
  export interface ExtensionAPI {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@septkit/shell-lib",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -20,7 +20,7 @@
20
20
  }
21
21
  },
22
22
  "dependencies": {
23
- "@dialecte/scl": "^0.2.6"
23
+ "@dialecte/scl": "^0.2.7"
24
24
  },
25
25
  "devDependencies": {
26
26
  "oxlint": "~1.6.0",