Capability first · transport second

DevelopmentWorkspace.js

Provides complete workspace inspection, context, setup task, and Node installer clients without arbitrary command execution.

SDK 0.5.18Runtime 0.8.12Protocol arcane/1
On this page

Overview

Provides complete workspace inspection, context, setup task, and Node installer clients without arbitrary command execution.

  • Artifact
    DevelopmentWorkspace.js · esm
  • Classification
    public first party
  • Availability
    Native bridge
  • Normalization
    Complete plain-text inputs and provider result/error preserved.

Import and lifecycle

JavaScript
import * as module from '/arcane/modules/DevelopmentWorkspace.js';

The client itself performs no discovery; inspect, context, setup, and installNode delegate only to an injected or Arcane.development provider.

Application-facing behavior: default DevelopmentWorkspace and input validators; inspect(), context(), setup(), installNode().

Protocol and host implementation

Arcane.development This detail does not widen the application-facing API or grant authority.

Exports, signatures, parameters, and results

BindingFormDeclaration or signatureParameter syntax
defaultdefault · classclass DevelopmentWorkspace
contextQueryfunctionfunction contextQuery(value)value
setupTaskIdfunctionfunction setupTaskId(value)value
workspaceRootfunctionfunction workspaceRoot(value)value
CallableKindExact public signatureParameter syntax
DevelopmentWorkspace.inspectpublic-memberinspect(root)root
DevelopmentWorkspace.contextpublic-membercontext(root,query='')root,query=''
DevelopmentWorkspace.setuppublic-membersetup(root,taskId)root,taskId
DevelopmentWorkspace.installNodepublic-memberinstallNode()
MemberKindExact public declarationParameter syntax
DevelopmentWorkspace.constructorconstructorconstructor(api=globalThis.Arcane?.development)api=globalThis.Arcane?.development
DevelopmentWorkspace.availablegetget available()
DevelopmentWorkspace.nodeInstallerAvailablegetget nodeInstallerAvailable()
DevelopmentWorkspace.requiremethodrequire(method)method
DevelopmentWorkspace.inspectmethodinspect(root)root
DevelopmentWorkspace.contextmethodcontext(root,query='')root,query=''
DevelopmentWorkspace.setupmethodsetup(root,taskId)root,taskId
DevelopmentWorkspace.installNodemethodinstallNode()

Parameter meanings and results

DevelopmentWorkspace(api) reports available and nodeInstallerAvailable. inspect(root), context(root, query), setup(root, taskId), and installNode() preserve complete provider results.

Events, side effects, and errors

Source-literal CustomEvent dispatches

No source-literal CustomEvent dispatch is part of this artifact.

Lifecycle and event flow

This artifact has no additional documented lifecycle event flow.

Direct coded failures

This artifact directly assigns no stable coded failure.

Exported Error subclasses

This artifact exports no Error subclass.

Documented failure behavior

  • TypeError for missing or malformed-control-character root, query, or task id
  • unavailable capability Error
  • provider errors preserved

Availability and capabilities

Native bridge. Complete plain-text inputs and provider result/error preserved.

Native development-capability wrapper; the provider owns filesystem authorization, canonical paths, filtering, setup-task interpretation, and the fixed Node installer, with no arbitrary-command API.

Contract example

JavaScript
import DevelopmentWorkspace from '/arcane/modules/DevelopmentWorkspace.js';

const workspace=new DevelopmentWorkspace({
    inspect:async root=>({root}),
    context:async(root,query)=>({root,query}),
    setup:async()=>({ok:true})
});
console.log(await workspace.inspect('C:\\Projects\\demo'));