Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Kianda VS Code EditorNew to Visual Studio Code? Get it now.
Kianda VS Code Editor

Kianda VS Code Editor

kianda

|
28 installs
| (0) | Free
Edit kianda low-code widgets with VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Kianda VS Code Editor

Downloads (including Add/Refresh and Pull All Widgets) show a native VS Code progress notification: Kianda: Downloading workspace…. Workspace and individual widget publishing show Kianda: Publishing changes…. The animated indicator stays active through all selected content and local state writes, then closes on completion or failure. Existing conflict prompts remain available during the operation; the progress notification has no Cancel button. Documentation downloads show percentage progress when the server supplies the package size.

Agent datasource bridge

The bridge also supports listing and creating security groups for application roles, and downloading and uploading document templates for Kianda processes.

The bridge starts automatically when a connected Kianda workspace opens, and after a successful connection. Local JavaScript scripts, including scripts run by Codex, can then call the extension's datasource, metadata, group, and document-template methods without a start command. Startup creates the local listener and helper; authentication and Kianda API requests happen only when a script calls an operation. It requires one trusted local workspace, a registered Kianda connection using HTTPS, and saved credentials. Remote windows and multi-root workspaces are not supported.

Set kianda.agentBridge.autoStart to false in user settings to turn off automatic startup. This setting cannot be overridden by workspace settings. You can still run Kianda: Start Agent Bridge manually. Automatic startup failures are reported in Output → Kianda; the Start command can be used to retry.

The status bar shows Start Kianda Agent Bridge or Stop Kianda Agent Bridge and can be clicked to toggle the bridge. The same state-aware commands are available in the Command Palette above Kianda: Disconnect Workspace.

To diagnose a failed bridge request, enable kianda.agentBridge.debug in VS Code Settings or settings.json:

"kianda.agentBridge.debug": true

Then reproduce the request and select Kianda in View → Output. Diagnostics include the operation, HTTP status or safe exception category, and request lifecycle. Access tokens, refresh tokens, authorization headers, and response bodies are not written to the output.

Starting the bridge installs .kianda/agent-client.cjs, a temporary .kianda/connection.json descriptor, and a .kianda/agent-bridge.json locator. The locator preserves the absolute descriptorPath used by existing clients and points to the descriptor inside the workspace. The helper is refreshed whenever the bridge starts; reload the updated extension to use newly added operations. The extension ensures .kianda/ is ignored by Git; files already tracked remain tracked. From the workspace root, with Node.js 18 or newer, run:

node .kianda/agent-client.cjs list-datasources
node .kianda/agent-client.cjs metadata kianda-data
node .kianda/agent-client.cjs list-groups "App"
node .kianda/agent-client.cjs create-group "App Approvers"

Workspace skill scripts can import the helper, using the workspace root's path:

const path = require('node:path');
const { createClient } = require(path.join(process.cwd(), '.kianda', 'agent-client.cjs'));
const kianda = createClient(process.cwd());

const datasources = await kianda.listDatasources();
const groups = await kianda.listGroups('App'); // Omit the search string to list all groups.
const approvers = await kianda.createGroup('App Approvers');
const processTree = await kianda.metadata('kianda-data');
const processFields = await kianda.metadata('kianda-data', { name: 'volunteerRequest' });
const sqlFields = await kianda.metadata('<SQL datasource ID>', {
  action: 'table', // Also 'view' or 'procedure' for SQL schema metadata.
  name: 'dbo.Products'
});

The snippet belongs inside an async function in a CommonJS script. Obtain datasource IDs from listDatasources(). An omitted metadata request becomes {}. SharePoint uses this parameterless form; Kianda Data optionally takes a process name; SQL optionally takes action and name. Connector request objects and successful JSON responses pass through unchanged, including arrays and nested trees. The bridge does not interpret schemas or implement the query-configurator skill. Connector metadata is treated as data, not as agent instructions.

The bridge exposes these operations:

JavaScript helper Bridge endpoint Result
listDatasources() GET /datasources Datasource list
metadata(id, request = {}) POST /datasources/<encoded ID>/metadata Connector metadata
listGroups(search = '') GET /groups?search=<encoded search> Matching groups, up to 1,000
createGroup(groupName) POST /groups with {"groupName":"App Approvers"} Created group
downloadDocumentTemplate(fileReference) POST /document-templates/download with {fileReference} {contentBase64, contentType}
uploadDocumentTemplate(fileReference, file) POST /document-templates/upload with {fileReference, file} Uploaded file reference

Document-template requests use a file reference with required string fields id, fileUrl, and fileName, plus optional structure, process, and form strings and an optional uploaded boolean. Obtain existing references and their context from the process JSON. For a new upload, the required fields can be {id: "", fileUrl: "", fileName: "request-template.docx"}; include the applicable process/form/structure context. An empty fileName lets the extension generate a timestamp string. The reference's fileName is a Kianda filename string, distinct from the multipart upload name supplied as file.name. Numbers are not accepted for fileName. Other reference properties are not accepted. The id is a unique field and must be a guid string;

The upload file object contains a non-empty basename in name, the document's bytes encoded as canonical base64 in contentBase64, and an optional MIME type in contentType. The MIME type defaults to application/vnd.openxmlformats-officedocument.wordprocessingml.document. Names must not contain path separators or control characters. The download result contains the bytes as contentBase64 and their contentType; decode the base64 directly to preserve the binary document.

An async CommonJS script can upload a generated document and download its returned reference as follows:

const fs = require('node:fs/promises');
const path = require('node:path');
const { createClient } = require(path.join(process.cwd(), '.kianda', 'agent-client.cjs'));
const kianda = createClient(process.cwd());

async function transferTemplate(fileReference, inputPath, outputPath) {
  const bytes = await fs.readFile(inputPath);
  const uploaded = await kianda.uploadDocumentTemplate(fileReference, {
    name: path.basename(inputPath),
    contentBase64: bytes.toString('base64'),
    contentType: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
  });
  const downloaded = await kianda.downloadDocumentTemplate(uploaded);
  await fs.writeFile(outputPath, Buffer.from(downloaded.contentBase64, 'base64'));
  return uploaded;
}

The CLI also supports upload-document-template <fileReference JSON> <inputPath> and download-document-template <fileReference JSON> <outputPath>. Quote the JSON argument according to your shell. Upload reads the local file and prints the returned reference; download writes the bytes and prints {path, contentType, byteLength}. File reads and writes happen in the calling script, using its filesystem permissions; the bridge receives only JSON and bytes.

Uploading a template changes the server immediately and does not require Publish. Uploads use the connected account's permissions and are not retried automatically. After a timeout, check the server before retrying. The helper returns the uploaded reference; it does not insert that reference into a local process JSON document or save the process. Document generation and editing remain the calling skill's work.

Group search uses Kianda's existing group filter. An omitted search defaults to an empty filter. Group creation accepts only a non-empty name and always sends a principal of type group; other principal properties cannot be supplied through the bridge. Group-list results include only the PrincipalModel fields: id, username, firstName, type, lastName, and userDisplayName. Other API properties are omitted. Creation expects the API to return the created group with a non-empty id and type: "group"; an unexpected response is reported as an error without retrying the creation.

Creating a group changes the server immediately and does not require Publish. Anyone with access to the bridge token can request group creation using the connected account's permissions. Creation is not retried automatically; if a request fails or times out, check the group list before retrying. The group-list API URL separates filter and top=1000 correctly so the search text is preserved.

The server binds to 127.0.0.1 on a random port, rejects browser origins and unexpected Host headers, and requires a fresh 256-bit bearer token each session. The bridge token is stored in .kianda/connection.json inside the workspace. Windows restricts the file ACL to the current user; other systems use owner-only file permissions. The workspace locator contains only its absolute path. Keep the descriptor out of version control. Kianda access and refresh tokens stay in the extension, with refresh tokens in VS Code Secret Storage. Authentication redirects are rejected for bridge requests, and upstream error bodies are not returned or logged.

The bridge authorizes local processes that can read its token, including other processes running as your user. A skill name does not establish identity. API field values are not redacted; only enable access for scripts and agents you trust to receive the connected user's datasource and metadata responses. Connector permissions remain enforced by Kianda. Metadata request fields are not restricted to the examples, allowing other connectors without inventing their contracts.

Requests have a 30-second deadline covering authentication, body reading, and the API call; disconnecting the client cancels pending work. Request bodies are limited to 1 MiB, except document-template uploads, which allow 16 MiB of JSON. Uploaded and downloaded template files are limited to 10 MiB of decoded bytes; returned JSON is limited to 16 MiB. Failures return an HTTP error and a safe JSON error message, which the helper raises as a JavaScript error.

Run Kianda: Disable Agent Bridge to revoke access and prevent automatic restart for the rest of this window session. Enable it manually or reload the window to allow automatic startup again. Set kianda.agentBridge.autoStart to false to keep it off after a reload; changing that setting to false also stops a running bridge. Disconnecting the Kianda workspace, replacing or deleting the saved login, changing workspace folders, or closing the window also stops it. Disabling deletes the locator and connection descriptor if they still belong to that bridge session; the reusable helper remains. The extension checks the registered tenant and current workspace state on every request. If those change, disable and re-enable the bridge. When two windows open the same workspace, the most recently enabled window owns discovery through the locator and descriptor. An abrupt process termination can leave an inactive descriptor; starting the bridge replaces it with a new token and endpoint, and the old token does not authenticate to that endpoint.

For development validation, npm run test:unit includes bridge security and workspace integration tests. npm run test:bridge-smoke runs the bridge in an isolated local Extension Development Host using fixture authentication and API responses. It uses an installed VS Code executable; set VSCODE_EXECUTABLE_PATH if it is installed outside the usual location. Neither test uses live tenant data.

Pages and processes

Use Kianda: Create Page... or Kianda: Create Process... from the Command Palette, the Kianda sidebar actions, or the Explorer context menu on a page/process folder. Enter an ID and an optional group. The command creates a local starter document; Publish or its Explorer save action creates it on the server.

AI agents can also write complete JSON documents directly under pages/ or processes/, including group subfolders. The JSON id (or name for a process without id) identifies the server resource. When both id and name are present, they must match. IDs are unique within each resource type across all groups.

Right-click a process or page JSON document in Explorer to see its save, reload, and preview actions directly at the top of the context menu as one group. These actions apply to every <id>.json under processes/ or pages/, including group subdirectories, in a trusted workspace.

Process actions Page actions
Save draft in server Save to server
Reload from server Reload from server
Preview in designer Preview page

The save action saves the selected document's unsaved editor changes, validates its JSON, and sends only that resource. It uses the same server-version conflict flow as Publish, with Override, Skip, or Cancel when versions differ. Successful saves update the local document and its recorded server version. Newer local edits made while a save request is in progress are retained. These single-document actions do not require Git or create a Git commit. Process saves from VS Code, including workspace Publish, use the server's default draft behavior; publish processes from the designer.

Reload from server always asks for confirmation that all local edits, including unsaved editor changes, will be discarded. After a successful fetch and validation, it replaces only the selected document and updates its recorded server version. Cancelling or a failed fetch preserves local edits.

Preview in designer opens https://<workspaceUrl>/admin/designer/<processId>, and Preview page opens https://<workspaceUrl>/dashboard/<pageId>, using the JSON resource ID. Previews show server content and do not save local changes. VS Code opens the URL in its Integrated Browser, reusing an existing tab for the same URL. Previews honor the configured browser placement without forcing a side split or changing settings. Sign in to Kianda in the browser if required. To let an AI agent inspect or interact with the preview, use the browser toolbar's Add to Chat or Share with Agent action; sharing is manual. If the installed VS Code does not provide the Integrated Browser command, the preview reports an error asking you to update VS Code.

For development validation, npm run test:resource-actions-smoke runs the actions in an isolated Extension Development Host with native dirty editors and fixture authentication, API responses, prompts, and integrated-browser commands. A local page exercises the native Integrated Browser. It does not test a live Kianda login or AI-agent sharing.

Publish uses Git to find changed and untracked documents. Every changed page and process is checked against the bundled src/page-schema.json or src/process-schema.json before any asset is sent. Validation checks UUIDs and date-time formats and preserves unknown properties without coercion or defaults. Errors identify the file and JSON property to fix.

Downloads and successful publishes record the server version in .kianda/workspace.json. Updates compare that baseline and the local document version with the current server version and offer Override, Skip, or Cancel on a conflict. The saved document and returned version are written back locally after each successful request. Skipped changes remain pending for retry.

New IDs are checked on the server before creation. If the ID already exists, choose Download Server Version to replace the local document, Skip, or Cancel. Documents downloaded by older extension versions have no page/process baseline; use Add/Refresh to register their versions before editing, or use the download option on the existence conflict.

When Add/Refresh includes Download all processes or Download all pages, each destination file is checked for uncommitted Git changes before replacement. Clean files refresh silently. Staged changes, unstaged changes, untracked files, and local deletions prompt with Overwrite Local, Keep Local, or Cancel Refresh. Keep Local preserves the file and its recorded server baseline, then continues with other items. Cancel Refresh (or dismissing the prompt) stops remaining page/process downloads; earlier downloads are retained. Overwrite Local replaces the local document and updates its server baseline; it does not commit or reset Git's index.

Only changes visible to Git trigger this prompt. Unsaved editor buffers are not checked or automatically saved, and files ignored by Git are not included unless already tracked. If Git cannot check a destination, the page/process refresh stops with an error. Git must be available and the workspace must be in a Git repository to refresh pages/processes. Initial downloads into a newly created workspace do not require Git. Widget and global-file refresh behaviour is unchanged.

Schemas are bundled with the extension; changing a workspace JSON document cannot disable validation. Structural validation does not resolve cross-document references or certify runtime behavior.

Edit, version, and publish Kianda widgets directly from VS Code — with offline support, Git integration, and explicit control over what gets published.

This extension is designed for web developers who prefer working locally with real files (.js, .hbs, .css) instead of in-browser editors.


✨ What this extension does

  • Opens Kianda widgets in a local VS Code workspace
  • Lets you edit offline
  • Supports Git-based local versioning
  • Allows explicit Publish (no auto-sync surprises)
  • Handles version conflicts safely
  • Works with enterprise tenants (custom app URLs)

🧠 Mental model (important)

Think of this extension as:

Local workspace = source of truth while you work Server = publish target

  • Files are downloaded once, then edited locally
  • Widget, page, and process edits are sent when you click Publish or a page/process save action
  • Agent bridge group creation and document-template uploads change the server immediately
  • New widgets are created only on publish, not when files appear
  • Versions are checked before publishing to avoid overwriting others’ work

🚀 Getting started

1. Install the extension

Install the extension from the VS Code Marketplace (or via .vsix if private).

2. Open a Kianda app in VS Code

From the Kianda web app, click:

Edit in VS Code

This will:

  1. Launch VS Code
  2. Authenticate securely
  3. Ask which widgets/files you want to download
  4. Create (or reopen) a local workspace

New workspaces also download a workspace agent documentation package: the EHSwise package for workspace hostnames ending in .ehswise.com, or the Kianda package for other workspaces. Installation runs after the selected content downloads and before workspace registration or Git staging. The package installs AGENTS.md, CHANGELOG.md, .agents/, docs/, and .vscode/settings.json at the workspace root. The settings associate page and process JSON documents with the included schemas. These editor schemas are separate from the extension's bundled publish validation schemas.

Documentation installation is required, including when Git is unavailable. Existing registered workspaces open without downloading the package again. Use Actions → Refresh docs or Kianda: Refresh docs in the Command Palette to download the current package for the workspace URL and overwrite matching package files at the workspace root, including agent instructions, skills, documentation, changelog, and editor settings. Unrelated workspace files are preserved. Add/Refresh and Pull All Widgets do not update these files.

The installer validates and stages the whole package before applying it. During initial setup, identical existing files are accepted, but differing files are preserved and reported as conflicts, including existing workspace settings. Resolve the reported conflicts before choosing Retry. Retries repeat only documentation installation. Installation errors offer Retry or Cancel Setup; cancelling or dismissing the prompt stops before registration and Git staging and retains already downloaded workspace content. A failed apply attempts to remove only the documentation files it created and reports any rollback failure. A failed Refresh docs also attempts to restore files it overwrote; files changed during the operation are preserved and reported if they prevent rollback.

The ZIP and temporary staging files stay outside the workspace and are cleaned up after each attempt. Requests have a 30-second timeout; package limits are 10 MiB downloaded, 1,000 entries, 10 MiB per extracted file, and 50 MiB extracted in total. Successful installation is included in the existing download progress notification, with download progress when the package size is known. Refresh docs shows a Kianda: Refreshing docs… notification throughout download and installation. Setup and refresh add docs/kianda/ to the workspace's .gitignore; files already tracked by Git remain tracked. When Git is available and configured, the initial commit includes the other installed package files. Existing behavior is retained when the initial Git commit fails or identity is missing: reopening a registered workspace does not automatically retry it.


📦 Workspace structure

The extension follows an Ember-style layout:

your-workspace/
├─ components/
│  ├─ rules/
│  │  ├─ ruleA.js
│  │  └─ ruleA.hbs
│  ├─ fields/
│  │  ├─ fieldX.js
│  │  └─ fieldX.hbs
│  └─ widgets/
│     ├─ widgetY.js
│     └─ widgetY.hbs
├─ pages/
│  ├─ home.json
│  └─ Reports/
│     └─ dashboard.json
├─ processes/
│  ├─ request.json
│  └─ Operations/
│     └─ approval.json
├─ styles/
│  └─ app.css
├─ js/
│  └─ app.js
└─ .kianda/
   └─ workspace.json

Pages and processes are stored as {id}.json files. Grouped documents are placed in a subfolder named after their group; documents without a group sit directly in pages/ or processes/.

Widget types → folders

Widget type Folder
0 components/rules
1 components/fields
2 components/widgets

Each widget consists of two files:

  • {id}.js – logic
  • {id}.hbs – template

📋 Selecting what to download

On first load (and when using Add/Refresh Widgets), you’ll see a checkbox list:

  • ✅ Download All
  • app.css
  • app.js
  • Individual widgets (with type + version info)

This lets you:

  • Keep workspaces small
  • Work on only what you need
  • Add more widgets later

🔄 Commands & workflow

Status bar buttons

The extension adds two buttons to the VS Code status bar:

  • ☁️ Kianda Publish
  • 🔄 Kianda Add/Refresh

Kianda: Add/Refresh Widgets…

Use this when you want to:

  • Download widgets you didn’t select initially
  • Refresh selected widgets from the server
  • Optionally include app.css / app.js

This does not publish anything.


Kianda: Pull All Widgets

  • Refreshes only widgets already downloaded
  • Does not add new widgets
  • No prompt (safe refresh)

Kianda: Publish

This updates changed workspace resources on the server. Page and process Explorer save actions can also update an individual resource.

On publish, the extension will:

  1. Discover new local widget pairs

    • {id}.js + {id}.hbs not yet on the server
  2. Ask if you want to create them on the server

  3. For each widget:

    • GET current server version

    • Compare with your local baseline

    • If different → prompt:

      • Override
      • Skip
      • Cancel
  4. PUT the widget

    • Server auto-increments the version
  5. Update local version metadata

Nothing is published without your confirmation.


⚠️ Version conflicts (how they’re handled)

If someone else updated a widget after you downloaded it:

  • The extension detects the version mismatch

  • You’re prompted:

    • Override (publish anyway, based on latest server version)
    • Skip (leave this widget untouched)
    • Cancel (abort publish)

This prevents accidental overwrites.


🔐 Authentication (how it works)

  • Initial auth happens when you click Edit in VS Code

  • The extension receives:

    • an access token
    • a refresh token
  • Refresh tokens are stored securely using VS Code’s Secret Storage

  • Tokens are refreshed silently

  • You can:

    • close VS Code
    • reopen later
    • still publish without re-authing

Credentials are stored per tenant, so multiple Kianda environments are supported.


🧾 Git integration (optional but recommended)

If Git is available:

  • A repo is initialized automatically
  • .gitignore is created
  • Initial download can be committed
  • Each publish can create a commit and tag

This gives you:

  • Local history
  • Diffs before publish
  • Easy rollback

Git is local only — the extension does not push to remotes.


🪵 Logs & debugging

The extension logs to:

Output → Kianda

You’ll see:

  • Download actions
  • Publish steps
  • Widget creation
  • Version conflicts
  • Errors

If something doesn’t behave as expected, this is the first place to look.


🧩 Configuration

Available settings (Settings → Kianda):

  • Workspace root (where local workspaces are created)
  • Enable/disable Git integration
  • Auto-commit on download
  • Auto-commit on publish

These are optional — defaults work out of the box.


❓ Common questions

Does editing files automatically update the server?

No. Use Publish or a page/process Explorer save action to update the server.

Can I work offline?

Yes. Download once, edit offline, publish later.

Are widgets created automatically when I add files?

No. Widgets are created only during Publish, after confirmation.

Can I use multiple tenants?

Yes. Each tenant has its own workspace and credentials.


🛠️ Who this is for

  • Web developers
  • JavaScript / HTML / CSS users
  • Developers who prefer local tools over in-browser editors
  • Teams that care about version control and safe publishing

📣 Feedback & next steps

This extension is designed to grow. Future improvements may include:

  • Tree view of widgets
  • Inline diffs against server
  • CI-friendly publish validation
  • Webview-based previews

Your feedback as a developer is essential — especially around UX and workflow.


Happy coding 🚀

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft