Skip to content

Commit b63eba0

Browse files
committed
proper org
1 parent 0699716 commit b63eba0

File tree

17 files changed

+57
-57
lines changed

17 files changed

+57
-57
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ jobs:
6565
cd /tmp/jacs-npm-smoke
6666
npm init -y >/dev/null
6767
npm install "${GITHUB_WORKSPACE}/jacsnpm/${PACKAGE_TGZ}" --ignore-scripts
68-
node -e "require('@hai-ai/jacs'); require('@hai-ai/jacs/simple'); require('@hai-ai/jacs/mcp'); require('@hai-ai/jacs/a2a'); console.log('smoke imports ok')"
68+
node -e "require('@hai.ai/jacs'); require('@hai.ai/jacs/simple'); require('@hai.ai/jacs/mcp'); require('@hai.ai/jacs/a2a'); console.log('smoke imports ok')"

jacs/docs/jacsbook/src/nodejs/installation.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Node.js Installation
22

3-
The JACS Node.js package (`@hai-ai/jacs`) provides JavaScript/TypeScript bindings to the JACS Rust library, making it easy to integrate JACS into web applications, servers, and Node.js projects.
3+
The JACS Node.js package (`@hai.ai/jacs`) provides JavaScript/TypeScript bindings to the JACS Rust library, making it easy to integrate JACS into web applications, servers, and Node.js projects.
44

55
## Requirements
66

@@ -12,17 +12,17 @@ The JACS Node.js package (`@hai-ai/jacs`) provides JavaScript/TypeScript binding
1212

1313
### Using npm
1414
```bash
15-
npm install @hai-ai/jacs
15+
npm install @hai.ai/jacs
1616
```
1717

1818
### Using yarn
1919
```bash
20-
yarn add @hai-ai/jacs
20+
yarn add @hai.ai/jacs
2121
```
2222

2323
### Using pnpm
2424
```bash
25-
pnpm add @hai-ai/jacs
25+
pnpm add @hai.ai/jacs
2626
```
2727

2828
## Verify Installation
@@ -31,7 +31,7 @@ Create a simple test to verify everything is working:
3131

3232
```javascript
3333
// test.js
34-
import { JacsAgent } from '@hai-ai/jacs';
34+
import { JacsAgent } from '@hai.ai/jacs';
3535

3636
console.log('JACS Node.js bindings loaded successfully!');
3737

@@ -52,40 +52,40 @@ node test.js
5252

5353
## Package Structure
5454

55-
The `@hai-ai/jacs` package includes several modules:
55+
The `@hai.ai/jacs` package includes several modules:
5656

57-
### Core Module (`@hai-ai/jacs`)
57+
### Core Module (`@hai.ai/jacs`)
5858
```javascript
5959
import {
6060
JacsAgent,
6161
JacsConfig,
6262
JacsDocument,
6363
JacsError
64-
} from '@hai-ai/jacs';
64+
} from '@hai.ai/jacs';
6565
```
6666

67-
### MCP Integration (`@hai-ai/jacs/mcp`)
67+
### MCP Integration (`@hai.ai/jacs/mcp`)
6868
```javascript
6969
import {
7070
JacsMcpServer,
7171
createJacsMiddleware
72-
} from '@hai-ai/jacs/mcp';
72+
} from '@hai.ai/jacs/mcp';
7373
```
7474

75-
### HTTP Server (`@hai-ai/jacs/http`)
75+
### HTTP Server (`@hai.ai/jacs/http`)
7676
```javascript
7777
import {
7878
JacsHttpServer,
7979
createJacsRouter
80-
} from '@hai-ai/jacs/http';
80+
} from '@hai.ai/jacs/http';
8181
```
8282

8383
## TypeScript Support
8484

8585
The package includes full TypeScript definitions:
8686

8787
```typescript
88-
import { JacsAgent, createConfig, hashString } from '@hai-ai/jacs';
88+
import { JacsAgent, createConfig, hashString } from '@hai.ai/jacs';
8989

9090
// Create an agent instance
9191
const agent: JacsAgent = new JacsAgent();
@@ -144,7 +144,7 @@ Create a `jacs.config.json` file:
144144

145145
Load the configuration:
146146
```javascript
147-
import { JacsAgent } from '@hai-ai/jacs';
147+
import { JacsAgent } from '@hai.ai/jacs';
148148

149149
const agent = new JacsAgent();
150150
agent.load('./jacs.config.json');
@@ -259,7 +259,7 @@ my-jacs-project/
259259
"version": "1.0.0",
260260
"type": "module",
261261
"dependencies": {
262-
"@hai-ai/jacs": "^0.6.0",
262+
"@hai.ai/jacs": "^0.6.0",
263263
"express": "^4.18.0"
264264
},
265265
"scripts": {
@@ -273,7 +273,7 @@ my-jacs-project/
273273
### Basic Application
274274
```javascript
275275
// src/app.js
276-
import { JacsAgent } from '@hai-ai/jacs';
276+
import { JacsAgent } from '@hai.ai/jacs';
277277

278278
// Create and load agent
279279
const agent = new JacsAgent();
@@ -329,8 +329,8 @@ If you get binary compatibility errors:
329329
npm rebuild
330330

331331
# Or reinstall
332-
npm uninstall @hai-ai/jacs
333-
npm install @hai-ai/jacs
332+
npm uninstall @hai.ai/jacs
333+
npm install @hai.ai/jacs
334334
```
335335

336336
### TypeScript Issues

jacs/docs/jacsbook/src/nodejs/mcp.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ JACS provides a **transport proxy** that sits between your MCP server/client and
2626
```javascript
2727
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2828
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
29-
import { createJACSTransportProxy } from '@hai-ai/jacs/mcp';
29+
import { createJACSTransportProxy } from '@hai.ai/jacs/mcp';
3030
import { z } from 'zod';
3131

3232
const JACS_CONFIG_PATH = "./jacs.config.json";
@@ -69,7 +69,7 @@ main();
6969
```javascript
7070
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
7171
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
72-
import { createJACSTransportProxy } from '@hai-ai/jacs/mcp';
72+
import { createJACSTransportProxy } from '@hai.ai/jacs/mcp';
7373

7474
const JACS_CONFIG_PATH = "./jacs.config.json";
7575

@@ -123,7 +123,7 @@ main();
123123
The main class that wraps MCP transports with JACS encryption.
124124

125125
```javascript
126-
import { JACSTransportProxy } from '@hai-ai/jacs/mcp';
126+
import { JACSTransportProxy } from '@hai.ai/jacs/mcp';
127127

128128
const proxy = new JACSTransportProxy(
129129
transport, // Any MCP transport (Stdio, SSE, WebSocket)
@@ -137,7 +137,7 @@ const proxy = new JACSTransportProxy(
137137
Factory function for creating a transport proxy.
138138

139139
```javascript
140-
import { createJACSTransportProxy } from '@hai-ai/jacs/mcp';
140+
import { createJACSTransportProxy } from '@hai.ai/jacs/mcp';
141141

142142
const secureTransport = createJACSTransportProxy(
143143
baseTransport, // The underlying MCP transport
@@ -151,7 +151,7 @@ const secureTransport = createJACSTransportProxy(
151151
Async factory that waits for JACS to be fully loaded before returning.
152152

153153
```javascript
154-
import { createJACSTransportProxyAsync } from '@hai-ai/jacs/mcp';
154+
import { createJACSTransportProxyAsync } from '@hai.ai/jacs/mcp';
155155

156156
const secureTransport = await createJACSTransportProxyAsync(
157157
baseTransport,
@@ -168,7 +168,7 @@ Best for CLI tools and subprocess communication:
168168

169169
```javascript
170170
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
171-
import { createJACSTransportProxy } from '@hai-ai/jacs/mcp';
171+
import { createJACSTransportProxy } from '@hai.ai/jacs/mcp';
172172

173173
const baseTransport = new StdioServerTransport();
174174
const secureTransport = createJACSTransportProxy(
@@ -186,7 +186,7 @@ For web-based MCP servers:
186186

187187
```javascript
188188
import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js";
189-
import { createJACSTransportProxy } from '@hai-ai/jacs/mcp';
189+
import { createJACSTransportProxy } from '@hai.ai/jacs/mcp';
190190
import express from 'express';
191191

192192
const app = express();
@@ -275,7 +275,7 @@ When the transport receives a message, the proxy:
275275
#!/usr/bin/env node
276276
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
277277
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
278-
import { createJACSTransportProxy } from '@hai-ai/jacs/mcp';
278+
import { createJACSTransportProxy } from '@hai.ai/jacs/mcp';
279279
import { z } from 'zod';
280280

281281
async function main() {
@@ -341,7 +341,7 @@ main().catch(err => {
341341
#!/usr/bin/env node
342342
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
343343
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
344-
import { createJACSTransportProxy } from '@hai-ai/jacs/mcp';
344+
import { createJACSTransportProxy } from '@hai.ai/jacs/mcp';
345345

346346
async function main() {
347347
console.log("JACS MCP Client starting...");

jacs/docs/jacsbook/src/nodejs/simple-api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Simplified API
22

3-
The simplified API (`@hai-ai/jacs/simple`) provides a streamlined, module-level interface for common JACS operations. It's designed to get you signing and verifying in under 2 minutes.
3+
The simplified API (`@hai.ai/jacs/simple`) provides a streamlined, module-level interface for common JACS operations. It's designed to get you signing and verifying in under 2 minutes.
44

55
## Quick Start
66

77
```javascript
8-
const jacs = require('@hai-ai/jacs/simple');
8+
const jacs = require('@hai.ai/jacs/simple');
99

1010
// Load your agent
1111
const agent = jacs.load('./jacs.config.json');
@@ -390,7 +390,7 @@ interface Attachment {
390390
## Complete Example
391391

392392
```javascript
393-
const jacs = require('@hai-ai/jacs/simple');
393+
const jacs = require('@hai.ai/jacs/simple');
394394

395395
// Load agent
396396
const agent = jacs.load('./jacs.config.json');
@@ -452,7 +452,7 @@ The simplified API works well with MCP tool implementations:
452452

453453
```javascript
454454
const { Server } = require('@modelcontextprotocol/sdk/server/index.js');
455-
const jacs = require('@hai-ai/jacs/simple');
455+
const jacs = require('@hai.ai/jacs/simple');
456456

457457
// Load agent once at startup
458458
jacs.load('./jacs.config.json');
@@ -480,7 +480,7 @@ server.setRequestHandler('tools/call', async (request) => {
480480
## Error Handling
481481

482482
```javascript
483-
const jacs = require('@hai-ai/jacs/simple');
483+
const jacs = require('@hai.ai/jacs/simple');
484484

485485
try {
486486
jacs.load('./missing-config.json');

jacs/docs/jacsbook/src/reference/migration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jacs keygen
6565
2. **Update Dependencies:**
6666
```bash
6767
# Node.js
68-
npm install @hai-ai/jacs@latest
68+
npm install @hai.ai/jacs@latest
6969

7070
# Python
7171
pip install --upgrade jacs
@@ -302,7 +302,7 @@ If migrating from filesystem to include database storage:
302302

303303
1. **Install JACS:**
304304
```bash
305-
npm install @hai-ai/jacs
305+
npm install @hai.ai/jacs
306306
```
307307

308308
2. **Wrap Existing Transport:**
@@ -312,7 +312,7 @@ If migrating from filesystem to include database storage:
312312
await server.connect(transport);
313313

314314
// After
315-
import { createJACSTransportProxy } from '@hai-ai/jacs/mcp';
315+
import { createJACSTransportProxy } from '@hai.ai/jacs/mcp';
316316

317317
const baseTransport = new StdioServerTransport();
318318
const secureTransport = createJACSTransportProxy(
@@ -341,12 +341,12 @@ If migrating from filesystem to include database storage:
341341

342342
1. **Install Middleware:**
343343
```bash
344-
npm install @hai-ai/jacs
344+
npm install @hai.ai/jacs
345345
```
346346

347347
2. **Add Middleware to Routes:**
348348
```javascript
349-
import { JACSExpressMiddleware } from '@hai-ai/jacs/http';
349+
import { JACSExpressMiddleware } from '@hai.ai/jacs/http';
350350

351351
// Before
352352
app.use('/api', express.json());
@@ -442,7 +442,7 @@ If migration fails:
442442
3. **Restore Dependencies:**
443443
```bash
444444
# Node.js
445-
npm install @hai-ai/jacs@previous-version
445+
npm install @hai.ai/jacs@previous-version
446446

447447
# Python
448448
pip install jacs==previous-version

jacs/docs/jacsbook/src/schemas/agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ print(f"Agent Type: {agent_doc['jacsAgentType']}")
338338
### Node.js
339339

340340
```javascript
341-
import { JacsAgent } from '@hai-ai/jacs';
341+
import { JacsAgent } from '@hai.ai/jacs';
342342

343343
const agent = new JacsAgent();
344344
const agentJson = agent.load('./jacs.config.json');

jacs/docs/jacsbook/src/schemas/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ agent.load('./jacs.config.json')
440440
### Node.js
441441

442442
```javascript
443-
import { JacsAgent } from '@hai-ai/jacs';
443+
import { JacsAgent } from '@hai.ai/jacs';
444444

445445
const agent = new JacsAgent();
446446
agent.load('./jacs.config.json');

jacs/docs/jacsbook/src/schemas/document.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ doc = agent.create_document(json.dumps({
298298
```
299299

300300
```javascript
301-
import { JacsAgent } from '@hai-ai/jacs';
301+
import { JacsAgent } from '@hai.ai/jacs';
302302

303303
const agent = new JacsAgent();
304304
agent.load('./jacs.config.json');

jacs/docs/jacsbook/src/schemas/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ doc = agent.create_document(
128128
```
129129

130130
```javascript
131-
import { JacsAgent } from '@hai-ai/jacs';
131+
import { JacsAgent } from '@hai.ai/jacs';
132132

133133
const agent = new JacsAgent();
134134
agent.load('./jacs.config.json');

jacs/docs/jacsbook/src/usecases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ See [USECASES.md § 2](https://github.com/HumanAssisted/JACS/blob/main/USECASES.
2424

2525
## 3. Registering and testing your agent on HAI.ai
2626

27-
**Summary.** You want to register your JACS agent with HAI.ai for attestation and discoverability, and to test verification before going live. Use the HAI registration flow: from Node `registerWithHai()` (@hai-ai/jacs), from Go `RegisterWithHai()` (jacsgo), from Python `register_with_hai` / `register_new_agent()` (jacspy), or `openclaw jacs register` (moltyjacs). Set `HAI_API_KEY`, then check attestation and run verification with `JACS_KEY_RESOLUTION=local,hai`.
27+
**Summary.** You want to register your JACS agent with HAI.ai for attestation and discoverability, and to test verification before going live. Use the HAI registration flow: from Node `registerWithHai()` (@hai.ai/jacs), from Go `RegisterWithHai()` (jacsgo), from Python `register_with_hai` / `register_new_agent()` (jacspy), or `openclaw jacs register` (moltyjacs). Set `HAI_API_KEY`, then check attestation and run verification with `JACS_KEY_RESOLUTION=local,hai`.
2828

2929
See [USECASES.md § 3](https://github.com/HumanAssisted/JACS/blob/main/USECASES.md#3-registering-and-testing-your-agent-on-haiai) for the full scenario.
3030

0 commit comments

Comments
 (0)