@almadar/workspace 0.8.0 → 0.9.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.
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/service.d.ts +7 -1
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/service.d.ts
CHANGED
|
@@ -27,13 +27,19 @@ export declare class WorkspaceServiceImpl implements WorkspaceService {
|
|
|
27
27
|
private readonly backend;
|
|
28
28
|
private readonly sinks;
|
|
29
29
|
private readonly git;
|
|
30
|
-
private
|
|
30
|
+
private github;
|
|
31
31
|
/** Per-absolute-path serial queue. */
|
|
32
32
|
private readonly writeQueue;
|
|
33
33
|
readonly index: WorkspaceIndex;
|
|
34
34
|
constructor(args: ServiceCtorArgs);
|
|
35
35
|
get appId(): string | undefined;
|
|
36
36
|
setAppId(id: string): void;
|
|
37
|
+
/**
|
|
38
|
+
* Set (or clear) the GitHub config after open. Lets a consumer resolve the
|
|
39
|
+
* link/token lazily — e.g. from a workspace file read post-open — and wire
|
|
40
|
+
* `commitAndPush`/`pullIfLinked` without knowing it at construction time.
|
|
41
|
+
*/
|
|
42
|
+
setGitHub(config: GitHubConfig | undefined): void;
|
|
37
43
|
/** Run `op` under a per-path serial lock. */
|
|
38
44
|
private withLock;
|
|
39
45
|
/** Make sure the parent directory of `absPath` exists. */
|
package/dist/types.d.ts
CHANGED
|
@@ -236,6 +236,8 @@ export interface WorkspaceService {
|
|
|
236
236
|
readonly appId: string | undefined;
|
|
237
237
|
readonly workDir: string;
|
|
238
238
|
setAppId(id: string): void;
|
|
239
|
+
/** Set/clear the GitHub config post-open (resolve link/token lazily, then wire push/pull). */
|
|
240
|
+
setGitHub(config: GitHubConfig | undefined): void;
|
|
239
241
|
readOrbital(name: string): string | null;
|
|
240
242
|
writeOrbital(name: string, content: string): Promise<void>;
|
|
241
243
|
listOrbitals(): string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Storage-agnostic workspace primitives shared by Almadar consumers. One service, six exports, hidden paths, single observer. See docs/Almadar_Workspace.md.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|