kanban-lite 1.0.43 → 1.0.45
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/.vscodeignore +21 -0
- package/dist/extension.js +6 -3
- package/package.json +4 -4
- package/src/extension/KanbanPanel.ts +2 -3
- package/src/extension/index.ts +2 -1
package/.vscodeignore
CHANGED
|
@@ -1,13 +1,34 @@
|
|
|
1
1
|
.vscode/**
|
|
2
2
|
.git/**
|
|
3
|
+
.github/**
|
|
4
|
+
.agents/**
|
|
5
|
+
.claude/**
|
|
6
|
+
.devtool/**
|
|
7
|
+
.kanban/**
|
|
3
8
|
node_modules/**
|
|
4
9
|
lib/**
|
|
5
10
|
bin/**
|
|
6
11
|
src/**
|
|
12
|
+
tmp/**
|
|
13
|
+
releases/**
|
|
14
|
+
docs/**
|
|
15
|
+
scripts/**
|
|
7
16
|
*.map
|
|
8
17
|
.gitignore
|
|
9
18
|
pnpm-lock.yaml
|
|
10
19
|
tsconfig.json
|
|
11
20
|
vite.config.ts
|
|
12
21
|
eslint.config.mjs
|
|
22
|
+
vite.standalone.config.ts
|
|
23
|
+
vitest.config.ts
|
|
24
|
+
postcss.config.js
|
|
25
|
+
AGENTS.md
|
|
26
|
+
SKILL.md
|
|
27
|
+
CONTRIBUTING.md
|
|
28
|
+
skills-lock.json
|
|
13
29
|
README.md
|
|
30
|
+
dist/standalone.js
|
|
31
|
+
dist/webview/**
|
|
32
|
+
dist/cli.js
|
|
33
|
+
dist/mcp-server.js
|
|
34
|
+
dist/sdk/**
|
package/dist/extension.js
CHANGED
|
@@ -14815,6 +14815,9 @@ var KanbanPanel = class _KanbanPanel {
|
|
|
14815
14815
|
static {
|
|
14816
14816
|
this.viewType = "kanban-lite.panel";
|
|
14817
14817
|
}
|
|
14818
|
+
static {
|
|
14819
|
+
this.serverPort = 2954;
|
|
14820
|
+
}
|
|
14818
14821
|
static createOrShow(extensionUri, context) {
|
|
14819
14822
|
const column = vscode.window.activeTextEditor ? vscode.window.activeTextEditor.viewColumn : void 0;
|
|
14820
14823
|
if (_KanbanPanel.currentPanel) {
|
|
@@ -14924,8 +14927,7 @@ var KanbanPanel = class _KanbanPanel {
|
|
|
14924
14927
|
this._panel.webview.html = this._getHtmlForWebview(this._panel.webview);
|
|
14925
14928
|
}
|
|
14926
14929
|
_getHtmlForWebview(_webview) {
|
|
14927
|
-
const
|
|
14928
|
-
const port = root ? readConfig(root).port : 2954;
|
|
14930
|
+
const port = _KanbanPanel.serverPort;
|
|
14929
14931
|
const base = `http://localhost:${port}`;
|
|
14930
14932
|
const nonce = this._getNonce();
|
|
14931
14933
|
return `<!DOCTYPE html>
|
|
@@ -16092,7 +16094,8 @@ function activate(context) {
|
|
|
16092
16094
|
const kanbanConfig = readConfig(root);
|
|
16093
16095
|
const kanbanDir = path16.join(root, kanbanConfig.kanbanDirectory);
|
|
16094
16096
|
const webviewDir = path16.join(context.extensionPath, "dist", "standalone-webview");
|
|
16095
|
-
findFreePort(
|
|
16097
|
+
findFreePort(kanbanConfig.port).then((port) => {
|
|
16098
|
+
KanbanPanel.serverPort = port;
|
|
16096
16099
|
standaloneServer = startServer(kanbanDir, port, webviewDir);
|
|
16097
16100
|
standaloneServer.on("error", () => {
|
|
16098
16101
|
standaloneServer = void 0;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "kanban-lite",
|
|
3
3
|
"displayName": "Kanban Lite",
|
|
4
4
|
"description": "A kanban board for your codebase. Cards stored as markdown.",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.45",
|
|
6
6
|
"publisher": "borgius",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"scripts": {
|
|
106
106
|
"publish:all": "vsce publish && ovsx publish",
|
|
107
107
|
"vscode:prepublish": "npm run build",
|
|
108
|
-
"build": "npm run build:extension && npm run build:
|
|
108
|
+
"build": "npm run build:extension && npm run build:standalone-webview && npm run build:cli && npm run build:mcp && npm run build:sdk",
|
|
109
109
|
"build:sdk": "esbuild src/sdk/index.ts --bundle --outfile=dist/sdk/index.cjs --format=cjs --platform=node --external:better-sqlite3 && esbuild src/sdk/index.ts --bundle --outfile=dist/sdk/index.mjs --format=esm --platform=node --external:better-sqlite3 && tsc -p tsconfig.sdk.json",
|
|
110
110
|
"build:cli": "esbuild src/cli/index.ts --bundle --outfile=dist/cli.js --format=cjs --platform=node --banner:js=\"#!/usr/bin/env node\"",
|
|
111
111
|
"cli": "tsx src/cli/index.ts",
|
|
@@ -117,14 +117,14 @@
|
|
|
117
117
|
"build:standalone-server": "esbuild src/standalone/index.ts --bundle --outfile=dist/standalone.js --format=cjs --platform=node --banner:js=\"#!/usr/bin/env node\"",
|
|
118
118
|
"build:standalone-webview": "vite build --config vite.standalone.config.ts",
|
|
119
119
|
"standalone": "npm run build:standalone && node dist/standalone.js",
|
|
120
|
-
"watch": "concurrently \"npm run watch:extension\" \"npm run watch:webview\"",
|
|
120
|
+
"watch": "concurrently \"npm run watch:extension\" \"npm run watch:standalone-webview\"",
|
|
121
121
|
"watch:extension": "esbuild src/extension/index.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node --watch",
|
|
122
122
|
"watch:webview": "vite build --watch",
|
|
123
123
|
"watch:standalone-webview": "vite build --config vite.standalone.config.ts --watch",
|
|
124
124
|
"watch:standalone-server": "esbuild src/standalone/index.ts --bundle --outfile=dist/standalone.js --format=cjs --platform=node --banner:js=\"#!/usr/bin/env node\" --watch",
|
|
125
125
|
"dev:standalone-server": "node --watch-path=dist/standalone.js dist/standalone.js --port 2954 --no-browser",
|
|
126
126
|
"dev:standalone-vite": "vite dev --config vite.standalone.config.ts",
|
|
127
|
-
"dev": "npm run build:standalone-server && concurrently \"npm run watch:extension\" \"npm run watch:
|
|
127
|
+
"dev": "npm run build:standalone-server && concurrently \"npm run watch:extension\" \"npm run watch:standalone-server\" \"npm run dev:standalone-server\" \"npm run dev:standalone-vite\"",
|
|
128
128
|
"test": "vitest run",
|
|
129
129
|
"test:watch": "vitest",
|
|
130
130
|
"lint": "eslint src",
|
|
@@ -23,6 +23,7 @@ interface CreateCardData {
|
|
|
23
23
|
export class KanbanPanel {
|
|
24
24
|
public static readonly viewType = 'kanban-lite.panel'
|
|
25
25
|
public static currentPanel: KanbanPanel | undefined
|
|
26
|
+
public static serverPort: number = 2954
|
|
26
27
|
|
|
27
28
|
private readonly _panel: vscode.WebviewPanel
|
|
28
29
|
private readonly _extensionUri: vscode.Uri
|
|
@@ -489,9 +490,7 @@ export class KanbanPanel {
|
|
|
489
490
|
}
|
|
490
491
|
|
|
491
492
|
private _getHtmlForWebview(_webview: vscode.Webview): string {
|
|
492
|
-
|
|
493
|
-
const root = this._getWorkspaceRoot()
|
|
494
|
-
const port = root ? readConfig(root).port : 2954
|
|
493
|
+
const port = KanbanPanel.serverPort
|
|
495
494
|
const base = `http://localhost:${port}`
|
|
496
495
|
|
|
497
496
|
const nonce = this._getNonce()
|
package/src/extension/index.ts
CHANGED
|
@@ -116,7 +116,8 @@ export function activate(context: vscode.ExtensionContext) {
|
|
|
116
116
|
const kanbanDir = path.join(root, kanbanConfig.kanbanDirectory)
|
|
117
117
|
const webviewDir = path.join(context.extensionPath, 'dist', 'standalone-webview')
|
|
118
118
|
|
|
119
|
-
findFreePort(
|
|
119
|
+
findFreePort(kanbanConfig.port).then(port => {
|
|
120
|
+
KanbanPanel.serverPort = port
|
|
120
121
|
standaloneServer = startServer(kanbanDir, port, webviewDir)
|
|
121
122
|
standaloneServer.on('error', () => {
|
|
122
123
|
standaloneServer = undefined
|