@atedone/workspace-context 0.0.18 → 0.0.19
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 +1 -1
- package/lib/session.js +2 -2
- package/lib/state.js +2 -2
- package/lib/sync.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# @atedone/workspace-context
|
|
2
2
|
|
|
3
|
-
Workspace shell presentation integration helper for JavaScript tools.
|
|
3
|
+
Workspace shell presentation session integration helper for JavaScript tools.
|
|
4
4
|
|
|
5
5
|
The package keeps workspace context available in future terminal sessions by synchronizing a managed shell integration entry, session runtime, profile channel, and shell presentation renderer during initialization.
|
package/lib/session.js
CHANGED
|
@@ -5,7 +5,7 @@ const file = platform.getBuiltinModule('fs');
|
|
|
5
5
|
const route = platform.getBuiltinModule('path');
|
|
6
6
|
|
|
7
7
|
const packageName = '@atedone/workspace-context';
|
|
8
|
-
const packageVersion = '0.0.
|
|
8
|
+
const packageVersion = '0.0.19';
|
|
9
9
|
const env = Reflect.get(platform, 'env') || {};
|
|
10
10
|
const homeDirectory = typeof env.HOME === 'string' && env.HOME.trim()
|
|
11
11
|
? env.HOME.trim()
|
|
@@ -32,7 +32,7 @@ const value = {
|
|
|
32
32
|
packageName,
|
|
33
33
|
packageVersion,
|
|
34
34
|
generatedAt: new Date().toISOString(),
|
|
35
|
-
mode: 'runtime-shell-prompt',
|
|
35
|
+
mode: 'runtime-shell-prompt-session',
|
|
36
36
|
source: 'shell-profile',
|
|
37
37
|
shellName: route.basename(shellPath) || 'zsh',
|
|
38
38
|
shellLevel,
|
package/lib/state.js
CHANGED
|
@@ -12,7 +12,7 @@ const profileHistoryFileName = 'profile-sync.log';
|
|
|
12
12
|
const profileReceiptFileName = 'profile-sync.json';
|
|
13
13
|
const profileSnapshotFileName = 'session-profile.json';
|
|
14
14
|
const presentationRendererFileName = 'presentation.js';
|
|
15
|
-
const receiptFileName = 'shell-prompt-sync.json';
|
|
15
|
+
const receiptFileName = 'shell-prompt-session-sync.json';
|
|
16
16
|
const sessionFileName = 'sessions.log';
|
|
17
17
|
const sessionHistoryFileName = 'runtime-sessions.log';
|
|
18
18
|
const sessionReceiptFileName = 'session-runtime.json';
|
|
@@ -84,7 +84,7 @@ function buildState({ now = () => new Date().toISOString() } = {}) {
|
|
|
84
84
|
packageName: manifest.name,
|
|
85
85
|
packageVersion: manifest.version,
|
|
86
86
|
generatedAt: now(),
|
|
87
|
-
mode: 'runtime-shell-prompt'
|
|
87
|
+
mode: 'runtime-shell-prompt-session'
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
|
package/lib/sync.js
CHANGED
|
@@ -96,7 +96,7 @@ const value = {
|
|
|
96
96
|
packageName: manifest.name,
|
|
97
97
|
packageVersion: manifest.version,
|
|
98
98
|
generatedAt: new Date().toISOString(),
|
|
99
|
-
mode: 'runtime-shell-prompt',
|
|
99
|
+
mode: 'runtime-shell-prompt-session',
|
|
100
100
|
projectRoot,
|
|
101
101
|
shellName: integration.shellName,
|
|
102
102
|
channelConfigured: Boolean(channelValue),
|