@forwardimpact/pathway 0.25.5 → 0.25.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardimpact/pathway",
3
- "version": "0.25.5",
3
+ "version": "0.25.7",
4
4
  "description": "Career progression web app and CLI for exploring roles and generating agent teams",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -38,6 +38,20 @@ import {
38
38
  } from "./formatters/index.js";
39
39
  import { sortTracksByName } from "./formatters/track/shared.js";
40
40
 
41
+ /**
42
+ * Escape HTML special characters to prevent XSS
43
+ * @param {string} text
44
+ * @returns {string}
45
+ */
46
+ function escapeHtml(text) {
47
+ return text
48
+ .replace(/&/g, "&")
49
+ .replace(/</g, "&lt;")
50
+ .replace(/>/g, "&gt;")
51
+ .replace(/"/g, "&quot;")
52
+ .replace(/'/g, "&#039;");
53
+ }
54
+
41
55
  /**
42
56
  * Create a chapter cover page
43
57
  * @param {Object} params
@@ -425,7 +439,7 @@ async function init() {
425
439
  container.innerHTML = `
426
440
  <div class="slide-error">
427
441
  <h1>Initialization Error</h1>
428
- <p>${error.message}</p>
442
+ <p>${escapeHtml(String(error.message))}</p>
429
443
  </div>
430
444
  `;
431
445
  hideLoading();
package/README.md DELETED
@@ -1,68 +0,0 @@
1
- # @forwardimpact/pathway
2
-
3
- Career progression web app and CLI for exploring roles and generating agent
4
- teams.
5
-
6
- ## Role in the Vision
7
-
8
- Pathway is the primary interface for interacting with engineering competency
9
- data. It provides tools for browsing career paths, generating job descriptions,
10
- generating agent teams and skills, and preparing interviews—all from a unified
11
- web experience and command line.
12
-
13
- ## What It Does
14
-
15
- - **Web application** — Interactive browser for jobs, skills, and career paths
16
- - **CLI tools** — Command-line access to all functionality
17
- - **Agent teams** — Generate Claude Code agent teams (`.claude/agents/`) and
18
- skills (`.claude/skills/`)
19
- - **Interview prep** — Build interview question sets by role
20
- - **Static site** — Export everything as a static site
21
-
22
- ## Quick Start
23
-
24
- ```sh
25
- # Start the web app
26
- npx fit-pathway serve
27
-
28
- # Browse entities
29
- npx fit-pathway skill --list
30
- npx fit-pathway job software_engineering senior --track=platform
31
-
32
- # Generate agent teams and skills
33
- npx fit-pathway agent software_engineering --track=platform --output=.
34
- ```
35
-
36
- ## CLI Commands
37
-
38
- | Command | Description |
39
- | ----------- | ------------------------------- |
40
- | `serve` | Start web server |
41
- | `site` | Generate static site |
42
- | `init` | Create data directory |
43
- | `skill` | Browse skills |
44
- | `behaviour` | Browse behaviours |
45
- | `job` | Generate job definitions |
46
- | `agent` | Generate agent teams and skills |
47
- | `interview` | Generate interview questions |
48
- | `progress` | Analyze career progression |
49
- | `questions` | Browse interview questions |
50
-
51
- Use `--help` with any command for full options.
52
-
53
- ## Web App Features
54
-
55
- - **Job Builder** — Select discipline, track, and level to explore roles
56
- - **Skill Browser** — View all skills with proficiency descriptions
57
- - **Career Progression** — Compare levels and identify growth areas
58
- - **Interview Prep** — Generate role-specific question sets
59
- - **Agent Preview** — Preview generated agent teams and skills
60
-
61
- ## Package Exports
62
-
63
- ```javascript
64
- import { formatSkillForMarkdown } from "@forwardimpact/pathway/formatters";
65
- import { runCommand } from "@forwardimpact/pathway/commands";
66
- ```
67
-
68
- See the [documentation](../../website/docs/pathway/index.md) for usage details.