@x12i/connectix-docs 0.1.0 → 0.1.2

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.
Files changed (67) hide show
  1. package/dist/generated/bundle.d.ts.map +1 -1
  2. package/dist/generated/bundle.js +50 -8
  3. package/dist/generated/bundle.js.map +1 -1
  4. package/dist/web/INDEX.md +38 -0
  5. package/dist/web/SEARCH.json +157 -0
  6. package/dist/web/agent/INDEX.md +38 -0
  7. package/dist/web/agent/SEARCH.json +157 -0
  8. package/dist/web/agent/agent-manifest.json +120 -0
  9. package/dist/web/agent/indexes/books.json +17 -0
  10. package/dist/web/agent/indexes/books.md +4 -0
  11. package/dist/web/agent/indexes/concepts.json +4 -0
  12. package/dist/web/agent/indexes/concepts.md +3 -0
  13. package/dist/web/agent/indexes/diagrams.json +4 -0
  14. package/dist/web/agent/indexes/diagrams.md +3 -0
  15. package/dist/web/agent/indexes/guides.json +4 -0
  16. package/dist/web/agent/indexes/guides.md +3 -0
  17. package/dist/web/agent/indexes/scenarios.json +4 -0
  18. package/dist/web/agent/indexes/scenarios.md +3 -0
  19. package/dist/web/agent/indexes/tutorials.json +4 -0
  20. package/dist/web/agent/indexes/tutorials.md +3 -0
  21. package/dist/web/agent/indexes/use-cases.json +29 -0
  22. package/dist/web/agent/indexes/use-cases.md +6 -0
  23. package/dist/web/agent/use-cases/call-connect-tools.md +78 -0
  24. package/dist/web/agent/use-cases/catalog-extension-overview.md +42 -0
  25. package/dist/web/agent/use-cases/orient-connectix.md +95 -0
  26. package/dist/web/agent/use-cases/run-package-simulator.md +48 -0
  27. package/dist/web/agent-manifest.json +20 -2
  28. package/dist/web/agents.html +38 -0
  29. package/dist/web/app.js +449 -0
  30. package/dist/web/assets/extras.css +302 -0
  31. package/dist/web/assets/site.css +21 -0
  32. package/dist/web/books/00-orient-connectix.html +35 -2
  33. package/dist/web/books/01-tools-and-simulator.html +35 -2
  34. package/dist/web/catalog.html +38 -0
  35. package/dist/web/concepts.html +65 -0
  36. package/dist/web/diagrams.html +65 -0
  37. package/dist/web/docs.html +38 -0
  38. package/dist/web/explore.html +76 -0
  39. package/dist/web/getting-started.html +38 -0
  40. package/dist/web/guides.html +65 -0
  41. package/dist/web/index.html +39 -1
  42. package/dist/web/indexes/books.json +17 -0
  43. package/dist/web/indexes/books.md +4 -0
  44. package/dist/web/indexes/concepts.json +4 -0
  45. package/dist/web/indexes/concepts.md +3 -0
  46. package/dist/web/indexes/diagrams.json +4 -0
  47. package/dist/web/indexes/diagrams.md +3 -0
  48. package/dist/web/indexes/guides.json +4 -0
  49. package/dist/web/indexes/guides.md +3 -0
  50. package/dist/web/indexes/scenarios.json +4 -0
  51. package/dist/web/indexes/scenarios.md +3 -0
  52. package/dist/web/indexes/tutorials.json +4 -0
  53. package/dist/web/indexes/tutorials.md +3 -0
  54. package/dist/web/indexes/use-cases.json +29 -0
  55. package/dist/web/indexes/use-cases.md +6 -0
  56. package/dist/web/knowledge.json +15 -0
  57. package/dist/web/read.html +161 -74
  58. package/dist/web/scenarios.html +65 -0
  59. package/dist/web/search.html +71 -0
  60. package/dist/web/site.json +1 -1
  61. package/dist/web/use-cases/call-connect-tools.md +78 -0
  62. package/dist/web/use-cases/catalog-extension-overview.md +42 -0
  63. package/dist/web/use-cases/orient-connectix.md +95 -0
  64. package/dist/web/use-cases/run-package-simulator.md +48 -0
  65. package/dist/web/use-cases.html +38 -0
  66. package/dist/web/use-cases.json +28 -4
  67. package/package.json +7 -7
@@ -0,0 +1,48 @@
1
+ # Develop against the package simulator
2
+
3
+ > **Use case id:** `run-package-simulator`
4
+ > **Goal:** Use @x12i/connectix-simulator for deterministic local development and tests without the service, Credorix, or providers.
5
+ > **Audiences:** developers
6
+ > **Tags:** simulator, testing
7
+
8
+ ## Reading path
9
+
10
+ 1. **AI Tools and the Package Simulator** (developers) → chapters: `2-run-the-package-simulator`
11
+
12
+ ## From: AI Tools and the Package Simulator — 2. Run the package simulator
13
+
14
+ `@x12i/connectix-simulator` is a package simulator built on `@x12i/api-simulator`. It mirrors
15
+ the Connectix HTTP surface with deterministic fixtures so you can develop tools, callers, and
16
+ tests without the service, Credorix, or providers:
17
+
18
+ ```ts
19
+ import { createConnectToolRunner } from "@x12i/connectix-tools";
20
+ import { createSimulatorPipelineCaller, createConnectixSimulator } from "@x12i/connectix-simulator";
21
+
22
+ // In-process pipeline caller for tool runners:
23
+ const runner = createConnectToolRunner(createSimulatorPipelineCaller());
24
+
25
+ // Or raw HTTP-shaped dispatch:
26
+ const { simulator } = createConnectixSimulator();
27
+ await simulator.dispatch({ method: "GET", path: "/metadata" });
28
+ ```
29
+
30
+ Simulated fixtures mirror the service foundation: actions `example.echo`,
31
+ `hackernews.get_item`, `hackernews.list_top_stories`, `github.issue.create` and bindings
32
+ `demo-echo`, `demo-hackernews`, `demo-github`.
33
+
34
+ An optional HTTP entry (`startConnectixSimulatorServer`) binds `127.0.0.1:5524` in the
35
+ api-simulator port zone (5520–5539) when a caller needs a real URL. Prefer in-process
36
+ `dispatch()` for tests.
37
+
38
+ The simulator supports **stub mode only**. Live requests return
39
+ `ACTION_IMPLEMENTATION_UNAVAILABLE` — switch `baseUrl` to the real service for live execution.
40
+ Because envelopes are identical, no caller code changes.
41
+
42
+ ## Also see
43
+
44
+ - **call-connect-tools** (`call-connect-tools`) —
45
+
46
+ ---
47
+
48
+ _Generated use-case pack for agents and humans. See `agent-manifest.json` for discovery._
@@ -8,6 +8,40 @@
8
8
  <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet">
9
9
  <link rel="stylesheet" href="/assets/site.css">
10
10
  <link rel="stylesheet" href="/assets/extras.css">
11
+ <script data-docify-guard="docify:serve-guard">
12
+ (function () {
13
+ if (window.location.protocol !== "file:") return;
14
+ var cmd = "npm run docs";
15
+ var dir = "";
16
+ function render() {
17
+ var host = document.createElement("div");
18
+ host.setAttribute("role", "alert");
19
+ host.setAttribute("style", "position:fixed;inset:0;z-index:2147483647;display:flex;align-items:center;justify-content:center;padding:24px;margin:0;background:#0b0e14;color:#e6e9ef;font:16px/1.55 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif");
20
+ host.innerHTML =
21
+ '<div style="max-width:44rem">' +
22
+ '<p style="margin:0 0 8px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#8b95a7">Docify</p>' +
23
+ '<h1 style="margin:0 0 12px;font-size:28px;line-height:1.2">Serve this site to view it</h1>' +
24
+ '<p style="margin:0 0 16px;color:#b6bfcf">This page was opened from the file system, so its stylesheets and scripts ' +
25
+ 'cannot load and the layout you see is not the real design. Docify sites are served over HTTP.</p>' +
26
+ '<pre style="margin:0 0 16px;padding:14px 16px;border-radius:10px;background:#151a23;border:1px solid #232a36;overflow:auto;font:14px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:#e6e9ef"><code>' +
27
+ (dir ? "cd " + dir + "\n" : "") + cmd + '</code></pre>' +
28
+ '<p style="margin:0;color:#8b95a7;font-size:14px">The command builds the bundle, starts the local server, and opens the correct URL.</p>' +
29
+ "</div>";
30
+ document.documentElement.style.background = "#0b0e14";
31
+ if (document.body) {
32
+ document.body.innerHTML = "";
33
+ document.body.appendChild(host);
34
+ } else {
35
+ document.documentElement.appendChild(host);
36
+ }
37
+ }
38
+ if (document.readyState === "loading") {
39
+ document.addEventListener("DOMContentLoaded", render);
40
+ } else {
41
+ render();
42
+ }
43
+ })();
44
+ </script>
11
45
  </head>
12
46
  <body class="page-use-cases" style="--accent:#2f6feb;--accent-alt:#1f6e5c" data-page="use-cases">
13
47
  <div class="page-shell">
@@ -37,9 +71,13 @@
37
71
  <p class="install-lead">Knowledge SDK — install as a <strong>devDependency</strong> only (not a production runtime).</p>
38
72
  <pre class="install-cmd install-cmd-primary"><code>npm i -D @x12i/connectix-docs</code></pre>
39
73
 
74
+
75
+
76
+
40
77
  <p class="install-more"><a href="/agents">Agents / SDK details →</a> · <a href="/agent-manifest.json">agent-manifest.json</a></p>
41
78
  </div>
42
79
  </section>
80
+
43
81
  <section class="section" data-hydrate="use-cases"><div id="use-cases-root"></div></section>
44
82
  <section class="section prose"><p>Each use case packs the relevant book chapters into one markdown document for humans and agents.</p>
45
83
  </section>
@@ -24,7 +24,13 @@
24
24
  ],
25
25
  "alsoSee": [
26
26
  "call-connect-tools"
27
- ]
27
+ ],
28
+ "prerequisites": [],
29
+ "successCriteria": [],
30
+ "nextUseCases": [],
31
+ "scenarioIds": [],
32
+ "guideIds": [],
33
+ "troubleshooting": []
28
34
  },
29
35
  {
30
36
  "id": "call-connect-tools",
@@ -49,7 +55,13 @@
49
55
  ],
50
56
  "alsoSee": [
51
57
  "run-package-simulator"
52
- ]
58
+ ],
59
+ "prerequisites": [],
60
+ "successCriteria": [],
61
+ "nextUseCases": [],
62
+ "scenarioIds": [],
63
+ "guideIds": [],
64
+ "troubleshooting": []
53
65
  },
54
66
  {
55
67
  "id": "run-package-simulator",
@@ -73,7 +85,13 @@
73
85
  ],
74
86
  "alsoSee": [
75
87
  "call-connect-tools"
76
- ]
88
+ ],
89
+ "prerequisites": [],
90
+ "successCriteria": [],
91
+ "nextUseCases": [],
92
+ "scenarioIds": [],
93
+ "guideIds": [],
94
+ "troubleshooting": []
77
95
  },
78
96
  {
79
97
  "id": "catalog-extension-overview",
@@ -97,7 +115,13 @@
97
115
  ],
98
116
  "alsoSee": [
99
117
  "orient-connectix"
100
- ]
118
+ ],
119
+ "prerequisites": [],
120
+ "successCriteria": [],
121
+ "nextUseCases": [],
122
+ "scenarioIds": [],
123
+ "guideIds": [],
124
+ "troubleshooting": []
101
125
  }
102
126
  ]
103
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x12i/connectix-docs",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Connectix docs knowledge SDK + deployable dist/web static site. Install the package as a devDependency only; deploy dist/web for humans.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -36,14 +36,14 @@
36
36
  "node": ">=22.0.0"
37
37
  },
38
38
  "dependencies": {
39
- "@x12i/docify-core": "^1.0.2",
40
- "@x12i/docify-sdk": "^1.0.1"
39
+ "@x12i/docify-core": "^1.1.1",
40
+ "@x12i/docify-sdk": "^1.1.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@x12i/docify-export": "^1.0.1",
44
- "@x12i/docify-render": "^1.0.2",
45
- "@x12i/docify-theme": "^1.0.4",
46
- "@x12i/docify-web": "^1.0.4"
43
+ "@x12i/docify-export": "^1.1.2",
44
+ "@x12i/docify-render": "^1.1.1",
45
+ "@x12i/docify-theme": "^1.1.0",
46
+ "@x12i/docify-web": "^1.1.1"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public",