@beyondwork/wb-cli 0.1.12 → 0.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,22 @@
1
+ # Changelog
2
+
3
+ ## v0.1.15
4
+
5
+ - Added support for design docs.
6
+
7
+ ## v0.1.14
8
+
9
+ - Documentation updates.
10
+
11
+ ## v0.1.13
12
+
13
+ - Make it easier to import a workblock that only exists on the filesystem. Right-click on a connection, select `Store new workblock`. This will import the workblock and bind it to the local dir.
14
+
15
+ ## v0.1.12
16
+
17
+ - Automatically map local directories to remote workspaces.
18
+
19
+ ## v0.1.11
20
+
21
+ - Better error handling and display.
22
+
package/README.md ADDED
@@ -0,0 +1,113 @@
1
+ # Beyond Work
2
+
3
+ This extension and cli is for interacting with the Beyond Work platform. This package provides both a VS Code extension and a command-line interface (CLI) for working with Beyond Work workblocks.
4
+
5
+ # VS Code Extension
6
+
7
+ The Beyond Work VS Code extension enables developers to write, test, and manage Workblocks directly within Visual Studio Code. Using a remote file system, it provides direct access to your Beyond Work Workblocks, making it the ideal tool for developers who want a full-featured editor for creating and updating Workblocks.
8
+
9
+ ## Usage
10
+
11
+ Use this to edit workblocks via VSCode. The extension allows you to connect to Beyond Work and bind workblocks to directories on your local machine.
12
+ The workblocks in those workspaces can then be stored as files on your local machine.
13
+
14
+ The extension has 3 features:
15
+
16
+ - Get a work block from an existing workspace to local filesystem
17
+ - Set a work block on a workspace from local files
18
+ - Live sync work blocks between open workspaces and local filesystem
19
+
20
+ Work blocks are expected to be placed in a directory that contains nothing but work blocks. When starting from scratch simply create a new directory somewhere.
21
+
22
+ ### Getting started
23
+
24
+ First step is to create a new connection. Click the `+` button in the BEYOND WORK sidebar, or use CMD-SHIFT-P and type `Beyond Work: Add Connection`.
25
+ Then, enter the hostname of the Beyond Work instance you want to connect to. This is the same hostname you use to access the web UI.
26
+
27
+ Then, click on the connection in the BEYOND WORK sidebar. This will prompt for an API key. You can get this by creating a new token under the account settings.
28
+
29
+ The connection should now have a blue checkmark. Under it, workspaces with an open editor will be shown. Each of them can be bound to a directory by clicking on them
30
+ and choosing `Choose a directory`.
31
+
32
+
33
+ ### Getting a work block
34
+
35
+ Click a workspace in the menu and choose \`Get workblock from workspace\`. This takes the work block that's in the workspace provided and downloads it to the directory associated with the workspace.
36
+
37
+ ### Setting a work block
38
+
39
+ Click a workspace in the menu and choose \`Store workblock to workspace\`. This takes the work block files in the associated directory and combines them into a work block definition and sets it in the workspace provided.
40
+
41
+ Note that this does not actually store the work block outside the workspace. In order to do that open the work block editor in the workspace and click store.
42
+
43
+ ### Syncing work blocks
44
+
45
+ Click a workspace in the menu and choose \`Enable sync\`.
46
+
47
+ If a workblock is changed in the UI, either via the editor or by an agent, that change will be reflected in the local files. If local files are changed they are automatically set on the workspace. It's possible to have the UI editor open while editing files locally, the editor will update live as files are saved.
48
+
49
+ Notice that workblocks are validated before they are set on a workspace. If a workblock is not valid, errors will be shown in the files.
50
+
51
+ ### Directory structure
52
+
53
+ The work block directory structure is like this:
54
+
55
+ <pre>
56
+ Base dir/
57
+ work_block_1/
58
+ task_1/
59
+ assets/
60
+ asset1.txt
61
+ task_1.py
62
+ manifest.yaml
63
+ </pre>
64
+
65
+
66
+ ## CLI Tool
67
+
68
+ In addition to the VS Code extension, this package provides a command-line interface (CLI) for working with Beyond Work workblocks.
69
+
70
+ ### Installation as a CLI tool
71
+
72
+ ```bash
73
+ npm install -g beyondwork
74
+ # or
75
+ yarn global add beyondwork
76
+ # or
77
+ pnpm add -g beyondwork
78
+ ```
79
+
80
+ ### CLI Usage
81
+
82
+ #### Assemble a workblock from a directory
83
+ ```bash
84
+ beyondwork assemble /path/to/workblock/dir [--output output.json]
85
+ ```
86
+
87
+ This command takes a directory containing workblock files and assembles them into a complete workblock JSON object. The structure follows the Beyond Work format:
88
+
89
+ ```
90
+ Base dir/
91
+ work_block_1/
92
+ task_1/
93
+ assets/
94
+ asset1.txt
95
+ task_1.py
96
+ manifest.yaml
97
+ ```
98
+
99
+ ## Programmatic Usage
100
+
101
+ You can also use the library programmatically:
102
+
103
+ ```typescript
104
+ import { assembleWorkblock, storeWorkblockFiles } from 'beyondwork/lib/utils';
105
+
106
+ // Assemble a workblock from files
107
+ const workblock = await assembleWorkblock('/path/to/workblock');
108
+
109
+ // Store a workblock as files
110
+ await storeWorkblockFiles('/output/path', workblockObject);
111
+ ```
112
+
113
+
package/media/icon.png ADDED
Binary file
package/out/extension.js CHANGED
@@ -259,6 +259,72 @@ function activate(context) {
259
259
  treeDataProvider.removeConnection(connection);
260
260
  }
261
261
  });
262
+ const storeNewWorkblock = vscode.commands.registerCommand("beyondwork.beyondwork.storeWorkblock", async (item) => {
263
+ outputChannel.appendLine(`Store new workblock`);
264
+ const opts = {
265
+ canSelectFolders: true,
266
+ canSelectFiles: false,
267
+ canSelectMany: false,
268
+ openLabel: "Select folder for the workblock",
269
+ };
270
+ const baseDir = await vscode.window.showOpenDialog(opts);
271
+ if (!baseDir?.length) {
272
+ return;
273
+ }
274
+ const manifestDir = await (0, lib_1.locateManifest)(baseDir[0].fsPath);
275
+ if (!manifestDir) {
276
+ vscode.window.showErrorMessage(`No manifest.yaml found in selected directory`);
277
+ return;
278
+ }
279
+ // Assemble workblock from selected directory
280
+ const wb = await (0, lib_1.assembleWorkblock)(baseDir[0].fsPath, outputLogger);
281
+ if (!wb) {
282
+ vscode.window.showErrorMessage("Failed to assemble workblock from directory");
283
+ return;
284
+ }
285
+ const host = item?.connection?.host;
286
+ if (!host) {
287
+ return;
288
+ }
289
+ const client = clientsByHost[host];
290
+ if (!client) {
291
+ vscode.window.showErrorMessage(`Not connected to ${host}`);
292
+ return;
293
+ }
294
+ outputChannel.appendLine(`Creating new stream for workblock '${wb.name}' on host ${host}`);
295
+ try {
296
+ const stream = await client.storeWorkblock(wb);
297
+ outputChannel.appendLine(`Created stream ${stream.id} (${stream.title})`);
298
+ // Ensure host mapping structures exist
299
+ if (!streamsByHost[host]) {
300
+ streamsByHost[host] = [];
301
+ }
302
+ hostsByStream[stream.id] = host;
303
+ // Insert new stream into list if not present
304
+ if (!streamsByHost[host].some((s) => s.id === stream.id)) {
305
+ streamsByHost[host].push({
306
+ id: stream.id,
307
+ editing: stream.editing ?? true,
308
+ title: stream.title ?? wb.name,
309
+ });
310
+ streamsByHost[host] = streamsByHost[host].sort((a, b) => a.title.localeCompare(b.title));
311
+ }
312
+ // Bind directory to stream
313
+ streamsByDir[stream.id] = baseDir[0].fsPath;
314
+ context.globalState.update("bw_streams_dir", streamsByDir);
315
+ // Store latest workblock for change tracking
316
+ latestWorkblocks[host + stream.id] = wb;
317
+ // Update tree view
318
+ treeDataProvider.setStreamsForHost(host, streamsByHost[host]);
319
+ treeDataProvider.refresh();
320
+ vscode.window.showInformationMessage(`Created and bound new stream '${stream.title}'`);
321
+ }
322
+ catch (e) {
323
+ const msg = e?.message ?? String(e);
324
+ outputChannel.appendLine(`Failed to create stream: ${msg}`);
325
+ vscode.window.showErrorMessage(`Failed to create stream: ${msg}`);
326
+ }
327
+ });
262
328
  const bindStream = vscode.commands.registerCommand("beyondwork.beyondwork.bindStream", async (stream, dir) => {
263
329
  outputChannel.appendLine(`Binding stream ${stream.id} ${dir}`);
264
330
  const opts = {
@@ -486,7 +552,7 @@ Base dir/
486
552
  const saveListener = vscode.workspace.onDidSaveTextDocument((doc) => {
487
553
  onFileChange(doc.uri, true);
488
554
  });
489
- context.subscriptions.push(providerReg, addConnectionCmd, connectToTenantCmd, clearConnectionsCmd, removeConnectionCmd, bindStream, getWB, setWB, streamOptions, syncSelected, help, watcher, treeView, outputChannel, diagnosticCollection, saveListener);
555
+ context.subscriptions.push(providerReg, addConnectionCmd, connectToTenantCmd, clearConnectionsCmd, removeConnectionCmd, storeNewWorkblock, bindStream, getWB, setWB, streamOptions, syncSelected, help, watcher, treeView, outputChannel, diagnosticCollection, saveListener);
490
556
  }
491
557
  function deactivate() {
492
558
  for (const [key, cl] of Object.entries(clientsByHost)) {
@@ -575,6 +641,17 @@ async function storeWorkblockFiles(dir, wb, client) {
575
641
  fs.mkdirSync(assetDir, { recursive: true });
576
642
  fs.writeFileSync(filepath, value);
577
643
  };
644
+ const writeDocs = (dir, docs) => {
645
+ if (docs) {
646
+ for (const [key, doc] of Object.entries(docs)) {
647
+ const docPath = path.join(dir, "design_docs", key);
648
+ if (doc.text) {
649
+ promises.push(resolve(docPath, doc.text));
650
+ delete doc.text;
651
+ }
652
+ }
653
+ }
654
+ };
578
655
  wb = JSON.parse(JSON.stringify(wb));
579
656
  const promises = [];
580
657
  for (const module of wb.modules ?? []) {
@@ -611,7 +688,9 @@ async function storeWorkblockFiles(dir, wb, client) {
611
688
  delete task.updated_at;
612
689
  delete task.action.value;
613
690
  delete task.assets;
691
+ writeDocs(taskDir, task.design_docs);
614
692
  }
693
+ writeDocs(moduleDir, module.design_docs);
615
694
  }
616
695
  if (wb.library) {
617
696
  const libPath = path.join(dir, "library.py");
@@ -634,6 +713,12 @@ async function storeWorkblockFiles(dir, wb, client) {
634
713
  }
635
714
  }
636
715
  }
716
+ if (wb.todo && wb.todo.text) {
717
+ const todoPath = path.join(dir, "todo.md");
718
+ promises.push(resolve(todoPath, wb.todo.text));
719
+ delete wb.todo.text;
720
+ }
721
+ writeDocs(dir, wb.design_docs);
637
722
  await Promise.all(promises);
638
723
  const out = JSON.parse(JSON.stringify(wb));
639
724
  delete out.created_at;
@@ -49,56 +49,90 @@ const path = __importStar(require("path"));
49
49
  const yaml_1 = require("yaml");
50
50
  const ignore_1 = __importDefault(require("ignore"));
51
51
  function trimWorkblock(wb) {
52
- const ignoreFields = ["created_at", "updated_at", "state", "actor", "branch_user", "storing", "description"];
52
+ const ignoreFields = [
53
+ "created_at",
54
+ "updated_at",
55
+ "state",
56
+ "actor",
57
+ "branch_user",
58
+ "storing",
59
+ "description",
60
+ ];
53
61
  const uWb = wb;
54
62
  for (const field of ignoreFields) {
55
63
  delete uWb[field];
56
64
  }
57
65
  for (const task of uWb.tasks ?? []) {
58
- delete task['created_at'];
59
- delete task['updated_at'];
60
- delete task['explanation'];
61
- task['action']['value'] = task['action']['value']?.trim();
62
- if (!task['assets']) {
63
- task['assets'] = {};
66
+ delete task["created_at"];
67
+ delete task["updated_at"];
68
+ delete task["explanation"];
69
+ task["action"]["value"] = task["action"]["value"]?.trim();
70
+ if (!task["assets"]) {
71
+ task["assets"] = {};
64
72
  }
65
73
  }
66
- if (!uWb['react_components']) {
67
- uWb['react_components'] = [];
74
+ if (!uWb["react_components"]) {
75
+ uWb["react_components"] = [];
68
76
  }
69
- if (uWb['library']) {
70
- uWb['library'] = uWb['library'].trim();
77
+ if (uWb["library"]) {
78
+ uWb["library"] = uWb["library"].trim();
71
79
  }
72
80
  return uWb;
73
81
  }
74
82
  async function locateManifest(dir) {
75
- return await locateFile(dir, 'manifest.yaml', 'manifest.yaml');
83
+ return await locateFile(dir, "manifest.yaml", "manifest.yaml");
76
84
  }
77
85
  async function locateFile(dir, suffix, defaultName) {
78
86
  if (!fs.existsSync(dir)) {
79
87
  return path.join(dir, defaultName);
80
88
  }
81
89
  const entries = await fs.promises.readdir(dir);
82
- const file = entries.find(entry => entry.endsWith(suffix));
90
+ const file = entries.find((entry) => entry.endsWith(suffix));
83
91
  if (file) {
84
92
  return path.join(dir, file);
85
93
  }
86
94
  return path.join(dir, defaultName);
87
95
  }
88
96
  function normalizedFilename(name) {
89
- return name.toLowerCase().replaceAll(' ', '_');
97
+ return name.toLowerCase().replaceAll(" ", "_");
90
98
  }
91
99
  async function assembleWorkblock(dir, log) {
92
- const { fileTypeFromFile } = await import('file-type');
100
+ const { fileTypeFromFile } = await import("file-type");
93
101
  const mf = await locateManifest(dir);
94
102
  if (!fs.existsSync(mf)) {
95
103
  log.error(`Manifest file ${mf} not found`);
96
104
  return;
97
105
  }
98
- const data = fs.readFileSync(mf, 'utf8');
106
+ const data = fs.readFileSync(mf, "utf8");
99
107
  const wb = (0, yaml_1.parse)(data);
100
108
  wb.state = "modified";
101
109
  wb.updated_at = new Date().toISOString();
110
+ const assembleDesignDocs = async (dir, obj) => {
111
+ if (fs.existsSync(path.join(dir, "design_docs"))) {
112
+ if (!obj.design_docs) {
113
+ obj.design_docs = {};
114
+ }
115
+ const designDocsDir = path.join(dir, "design_docs");
116
+ const docs = fs.readdirSync(designDocsDir);
117
+ for (const doc of docs) {
118
+ const docPath = path.join(designDocsDir, doc);
119
+ if (fs.statSync(docPath).isDirectory()) {
120
+ continue;
121
+ }
122
+ if (await isFileGitIgnored(docPath, log)) {
123
+ continue;
124
+ }
125
+ let fileType = (await fileTypeFromFile(docPath))?.mime;
126
+ if (!fileType) {
127
+ fileType = mime.lookup(doc) || "text/markdown";
128
+ }
129
+ obj.design_docs[doc] = {
130
+ content_type: fileType,
131
+ text: fs.readFileSync(docPath, "utf8"),
132
+ };
133
+ }
134
+ }
135
+ };
102
136
  for (const module of wb.modules ?? []) {
103
137
  const moduleDir = path.join(dir, normalizedFilename(module.name));
104
138
  if (!fs.existsSync(moduleDir)) {
@@ -112,19 +146,19 @@ async function assembleWorkblock(dir, log) {
112
146
  log.error(`Task directory ${taskDir} not found`);
113
147
  continue;
114
148
  }
115
- const taskPath = await locateFile(taskDir, '.py', `${name}.py`);
149
+ const taskPath = await locateFile(taskDir, ".py", `${name}.py`);
116
150
  if (!fs.existsSync(taskPath)) {
117
151
  log.error(`Task file ${taskPath} not found`);
118
152
  return;
119
153
  }
120
- task.action.value = fs.readFileSync(taskPath, 'utf8');
121
- if (fs.existsSync(path.join(moduleDir, name, 'assets'))) {
154
+ task.action.value = fs.readFileSync(taskPath, "utf8");
155
+ if (fs.existsSync(path.join(moduleDir, name, "assets"))) {
122
156
  if (!task.assets) {
123
157
  task.assets = {};
124
158
  }
125
- const assets = fs.readdirSync(path.join(moduleDir, name, 'assets'));
159
+ const assets = fs.readdirSync(path.join(moduleDir, name, "assets"));
126
160
  for (const asset of assets) {
127
- const assetPath = path.join(moduleDir, name, 'assets', asset);
161
+ const assetPath = path.join(moduleDir, name, "assets", asset);
128
162
  if (fs.statSync(assetPath).isDirectory()) {
129
163
  continue;
130
164
  }
@@ -133,31 +167,36 @@ async function assembleWorkblock(dir, log) {
133
167
  }
134
168
  let fileType = (await fileTypeFromFile(assetPath))?.mime;
135
169
  if (!fileType) {
136
- fileType = mime.lookup(asset) || 'text/plain';
170
+ fileType = mime.lookup(asset) || "text/plain";
137
171
  }
138
172
  task.assets[asset] = {
139
173
  content_type: fileType,
140
- text: fs.readFileSync(assetPath, 'utf8'),
174
+ text: fs.readFileSync(assetPath, "utf8"),
141
175
  };
142
176
  }
143
177
  }
178
+ await assembleDesignDocs(taskDir, task);
144
179
  }
180
+ await assembleDesignDocs(moduleDir, module);
145
181
  }
146
- if (fs.existsSync(path.join(dir, 'library.py'))) {
147
- wb.library = fs.readFileSync(path.join(dir, 'library.py'), 'utf8');
182
+ if (fs.existsSync(path.join(dir, "library.py"))) {
183
+ wb.library = fs.readFileSync(path.join(dir, "library.py"), "utf8");
148
184
  }
149
- if (fs.existsSync(path.join(dir, 'logo.svg'))) {
150
- wb.logo = fs.readFileSync(path.join(dir, 'logo.svg'), 'utf8');
185
+ if (fs.existsSync(path.join(dir, "logo.svg"))) {
186
+ wb.logo = fs.readFileSync(path.join(dir, "logo.svg"), "utf8");
151
187
  }
152
- if (fs.existsSync(path.join(dir, 'react_components'))) {
188
+ if (fs.existsSync(path.join(dir, "react_components"))) {
153
189
  if (!wb.react_components) {
154
190
  wb.react_components = {};
155
191
  }
156
- const reactComponentsDir = path.join(dir, 'react_components');
192
+ const reactComponentsDir = path.join(dir, "react_components");
157
193
  async function addReactComponentsRecursively(currentDir, relativeBase) {
158
194
  const assets = fs.readdirSync(currentDir);
159
195
  for (const asset of assets) {
160
- if (asset === 'node_modules' || asset === '.git' || asset === "bun.lock" || asset === "pnpm-lock.yaml") {
196
+ if (asset === "node_modules" ||
197
+ asset === ".git" ||
198
+ asset === "bun.lock" ||
199
+ asset === "pnpm-lock.yaml") {
161
200
  continue;
162
201
  }
163
202
  const assetPath = path.join(currentDir, asset);
@@ -171,16 +210,25 @@ async function assembleWorkblock(dir, log) {
171
210
  }
172
211
  let fileType = (await fileTypeFromFile(assetPath))?.mime;
173
212
  if (!fileType) {
174
- fileType = mime.lookup(asset) || 'text/plain';
213
+ fileType = mime.lookup(asset) || "text/plain";
175
214
  }
176
215
  wb.react_components[relPath] = {
177
216
  content_type: fileType,
178
- text: fs.readFileSync(assetPath, 'utf8'),
217
+ text: fs.readFileSync(assetPath, "utf8"),
179
218
  };
180
219
  }
181
220
  }
182
221
  await addReactComponentsRecursively(reactComponentsDir, "");
183
222
  }
223
+ await assembleDesignDocs(dir, wb);
224
+ if (fs.existsSync(path.join(dir, "todo.md"))) {
225
+ if (!wb.todo) {
226
+ wb.todo = {
227
+ content_type: "text/markdown",
228
+ };
229
+ }
230
+ wb.todo.text = fs.readFileSync(path.join(dir, "todo.md"), "utf8");
231
+ }
184
232
  return wb;
185
233
  }
186
234
  function findGitIgnoreDir(startPath) {
@@ -189,8 +237,8 @@ function findGitIgnoreDir(startPath) {
189
237
  currentDir = path.dirname(currentDir);
190
238
  }
191
239
  while (currentDir !== path.parse(currentDir).root) {
192
- const gitignorePath = path.join(currentDir, '.gitignore');
193
- const gitDirPath = path.join(currentDir, '.git');
240
+ const gitignorePath = path.join(currentDir, ".gitignore");
241
+ const gitDirPath = path.join(currentDir, ".git");
194
242
  if (fs.existsSync(gitDirPath)) {
195
243
  return fs.existsSync(gitignorePath) ? currentDir : null;
196
244
  }
@@ -204,8 +252,8 @@ async function isFileGitIgnored(filePath, log) {
204
252
  if (!gitignoreDir) {
205
253
  return false;
206
254
  }
207
- const gitignorePath = path.join(gitignoreDir, '.gitignore');
208
- const gitignoreContent = fs.readFileSync(gitignorePath, 'utf8');
255
+ const gitignorePath = path.join(gitignoreDir, ".gitignore");
256
+ const gitignoreContent = fs.readFileSync(gitignorePath, "utf8");
209
257
  const relativePath = path.relative(gitignoreDir, filePath);
210
258
  const ig = (0, ignore_1.default)();
211
259
  ig.add(gitignoreContent);
@@ -1 +1 @@
1
- {"version":3,"file":"workblock.js","sourceRoot":"","sources":["../../src/lib/workblock.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,sCAuBC;AAED,wCAEC;AAED,gCAcC;AAGD,gDAEC;AAED,8CAuGC;AAED,4CAkBC;AAED,4CAmBC;AA3MD,uCAAyB;AAEzB,iDAAmC;AACnC,2CAA6B;AAC7B,+BAA6B;AAC7B,oDAA4B;AAI5B,SAAgB,aAAa,CAAC,EAAuB;IACjD,MAAM,YAAY,GAAG,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;IAC7G,MAAM,GAAG,GAAwB,EAAE,CAAA;IACnC,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE,CAAC;QAC/B,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,GAAG,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC;QAC1D,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAClB,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;QACxB,CAAC;IACL,CAAC;IACD,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,EAAE,CAAC;QAC3B,GAAG,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC;IACjC,CAAC;IAED,IAAI,GAAG,CAAC,SAAS,CA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C,OAAO,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,GAAG,CAAC,GAAG,CAAC,oCAAoC,KAAK,EAAE,CAAC,CAAC;QACrD,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -2,8 +2,9 @@
2
2
  "name": "@beyondwork/wb-cli",
3
3
  "publisher": "beyondwork",
4
4
  "displayName": "Beyond Work",
5
- "description": "Beyond Work is a tool for managing your work in a way that is easy to use and understand.",
6
- "version": "0.1.12",
5
+ "description": "Tool for interacting with Beyond Work workblocks from VS Code and CLI.",
6
+ "version": "0.1.15",
7
+ "icon": "media/icon.png",
7
8
  "engines": {
8
9
  "vscode": "^1.94.0",
9
10
  "node": ">=16.0.0"
@@ -17,7 +18,11 @@
17
18
  "files": [
18
19
  "out/lib/**/*",
19
20
  "out/cli.js",
20
- "out/extension.js"
21
+ "out/extension.js",
22
+ "media/icon.png",
23
+ "CHANGELOG.md",
24
+ "README.md",
25
+ "LICENSE.txt"
21
26
  ],
22
27
  "main": "./out/extension.js",
23
28
  "private": false,
@@ -42,6 +47,10 @@
42
47
  "title": "Beyond Work: Remove Connection",
43
48
  "icon": "$(trash)"
44
49
  },
50
+ {
51
+ "command": "beyondwork.beyondwork.storeWorkblock",
52
+ "title": "Beyond Work: Store new workblock"
53
+ },
45
54
  {
46
55
  "command": "beyondwork.beyondwork.help",
47
56
  "title": "Beyond Work: Help",
@@ -71,6 +80,11 @@
71
80
  "command": "beyondwork.beyondwork.removeConnection",
72
81
  "when": "view == beyondworkConnections",
73
82
  "group": "navigation"
83
+ },
84
+ {
85
+ "command": "beyondwork.beyondwork.storeWorkblock",
86
+ "when": "view == beyondworkConnections",
87
+ "group": "navigation"
74
88
  }
75
89
  ]
76
90
  },