You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: rename npm scope to @sf-agentscript and add publish workflow
Migrate all packages from @agentscript/* to @sf-agentscript/* for publishing
to the newly acquired npm namespace. Add a GitHub Actions workflow using
changesets/action that creates version PRs and publishes to npm on merge.
- Rename scope in all package.json files, source imports, and docs
- Add publishConfig with public access to all 14 publishable packages
- Add .github/workflows/publish.yml (changesets-based publish on main)
- Fix changeset baseBranch from "master" to "main"
- Regenerate pnpm-lock.yaml
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@@ -179,51 +179,51 @@ Each block has a **schema** defined by its dialect. A **dialect** is a collectio
179
179
180
180
| Package | Description |
181
181
| --- | --- |
182
-
|[`@agentscript/types`](packages/types/)| Shared types (`SyntaxNode`, `Diagnostic`, `Range`, etc.) used across all packages. Zero dependencies. |
183
-
|[`@agentscript/parser-tree-sitter`](packages/parser-tree-sitter/)| Tree-sitter grammar and C parser. Generates Node.js native bindings and WASM for browser use. Zero internal dependencies. Must rebuild after grammar changes. |
184
-
|[`@agentscript/parser-javascript`](packages/parser-javascript/)| Hand-written TypeScript parser. Error-tolerant recursive descent with Pratt expression parsing and CST output. Pure JS — no native dependencies. |
185
-
|[`@agentscript/parser`](packages/parser/)| Parser abstraction layer. Resolves to `parser-javascript` by default; swap to `parser-tree-sitter` via conditional exports. |
182
+
|[`@sf-agentscript/types`](packages/types/)| Shared types (`SyntaxNode`, `Diagnostic`, `Range`, etc.) used across all packages. Zero dependencies. |
183
+
|[`@sf-agentscript/parser-tree-sitter`](packages/parser-tree-sitter/)| Tree-sitter grammar and C parser. Generates Node.js native bindings and WASM for browser use. Zero internal dependencies. Must rebuild after grammar changes. |
184
+
|[`@sf-agentscript/parser-javascript`](packages/parser-javascript/)| Hand-written TypeScript parser. Error-tolerant recursive descent with Pratt expression parsing and CST output. Pure JS — no native dependencies. |
185
+
|[`@sf-agentscript/parser`](packages/parser/)| Parser abstraction layer. Resolves to `parser-javascript` by default; swap to `parser-tree-sitter` via conditional exports. |
186
186
187
187
### Core Layer
188
188
189
189
| Package | Description |
190
190
| --- | --- |
191
-
|[`@agentscript/language`](packages/language/)| Language infrastructure and analysis engine. Provides AST types, scope/symbol resolution, linting framework (18+ passes), and the Language Service API. |
191
+
|[`@sf-agentscript/language`](packages/language/)| Language infrastructure and analysis engine. Provides AST types, scope/symbol resolution, linting framework (18+ passes), and the Language Service API. |
192
192
193
193
### Dialect Layer
194
194
195
195
| Package | Description |
196
196
| --- | --- |
197
-
|[`@agentscript/agentscript-dialect`](dialect/agentscript/)| Base dialect — core language schema and lint rules. |
198
-
|[`@agentscript/agentforce-dialect`](dialect/agentforce/)| Extends AgentScript with Salesforce Agentforce-specific blocks, fields, and compilation. |
199
-
|[`@agentscript/agentfabric-dialect`](dialect/agentfabric/)| AgentFabric dialect — alternative schema, lint rules, and compiler. |
197
+
|[`@sf-agentscript/agentscript-dialect`](dialect/agentscript/)| Base dialect — core language schema and lint rules. |
198
+
|[`@sf-agentscript/agentforce-dialect`](dialect/agentforce/)| Extends AgentScript with Salesforce Agentforce-specific blocks, fields, and compilation. |
199
+
|[`@sf-agentscript/agentfabric-dialect`](dialect/agentfabric/)| AgentFabric dialect — alternative schema, lint rules, and compiler. |
200
200
201
201
### Compiler
202
202
203
203
| Package | Description |
204
204
| --- | --- |
205
-
|[`@agentscript/compiler`](packages/compiler/)| Transforms parsed AgentScript AST into a Salesforce runtime specification with source-map support. |
205
+
|[`@sf-agentscript/compiler`](packages/compiler/)| Transforms parsed AgentScript AST into a Salesforce runtime specification with source-map support. |
206
206
207
207
### SDK
208
208
209
209
| Package | Description |
210
210
| --- | --- |
211
-
|[`@agentscript/agentforce`](packages/agentforce/)| Batteries-included SDK. Combines parser, language, compiler, and dialects into a single import. Provides `parse()`, `Document` (with mutation/undo/redo), `parseComponent()`, `emitComponent()`, and `compileSource()`. Works in Node.js and browsers. |
211
+
|[`@sf-agentscript/agentforce`](packages/agentforce/)| Batteries-included SDK. Combines parser, language, compiler, and dialects into a single import. Provides `parse()`, `Document` (with mutation/undo/redo), `parseComponent()`, `emitComponent()`, and `compileSource()`. Works in Node.js and browsers. |
212
212
213
213
### LSP Layer
214
214
215
215
| Package | Description |
216
216
| --- | --- |
217
-
|[`@agentscript/lsp`](packages/lsp/)| Dialect-agnostic LSP core. All providers (diagnostics, hover, completions, definition, references, rename, symbols, code actions, semantic tokens) live here. Parser and dialects are injected via config. |
218
-
|[`@agentscript/lsp-server`](packages/lsp-server/)| Node.js LSP server. Thin stdio/IPC wrapper over `@agentscript/lsp`. Ships the `agentscript-lsp` CLI. |
219
-
|[`@agentscript/lsp-browser`](packages/lsp-browser/)| Browser LSP server. Runs in a Web Worker with the TypeScript parser. Single-bundle output. |
217
+
|[`@sf-agentscript/lsp`](packages/lsp/)| Dialect-agnostic LSP core. All providers (diagnostics, hover, completions, definition, references, rename, symbols, code actions, semantic tokens) live here. Parser and dialects are injected via config. |
218
+
|[`@sf-agentscript/lsp-server`](packages/lsp-server/)| Node.js LSP server. Thin stdio/IPC wrapper over `@sf-agentscript/lsp`. Ships the `agentscript-lsp` CLI. |
219
+
|[`@sf-agentscript/lsp-browser`](packages/lsp-browser/)| Browser LSP server. Runs in a Web Worker with the TypeScript parser. Single-bundle output. |
220
220
221
221
### Editor Integrations
222
222
223
223
| Package | Description |
224
224
| --- | --- |
225
-
|[`@agentscript/vscode`](packages/vscode/)| VS Code extension — syntax highlighting, diagnostics, completions, go-to-definition, rename, and more for `.agent` files. |
226
-
|[`@agentscript/monaco`](packages/monaco/)| Monaco Editor integration — language registration, syntax highlighting, hover, and schema resolution. |
225
+
|[`@sf-agentscript/vscode`](packages/vscode/)| VS Code extension — syntax highlighting, diagnostics, completions, go-to-definition, rename, and more for `.agent` files. |
226
+
|[`@sf-agentscript/monaco`](packages/monaco/)| Monaco Editor integration — language registration, syntax highlighting, hover, and schema resolution. |
Copy file name to clipboardExpand all lines: SPEC.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -290,7 +290,7 @@ Namespaces may have aliases — alternative names that resolve to the same scope
290
290
291
291
#### 4.1 Schema Management
292
292
293
-
Every block in Agent Script has a schema. Schemas are defined in TypeScript using factory functions from `@agentscript/language`. The schema for a block defines what keys are valid, what types their values must be, and whether fields are required or optional.
293
+
Every block in Agent Script has a schema. Schemas are defined in TypeScript using factory functions from `@sf-agentscript/language`. The schema for a block defines what keys are valid, what types their values must be, and whether fields are required or optional.
0 commit comments