create-pmos 0.723.0 → 0.724.0
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 +14 -32
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +13 -0
- package/workspace/lib/headless.js +4 -0
- package/workspace/lib/jira-status.js +18 -2
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/server.js +5 -1
- package/workspace/skills/jira-sync.skill +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.724.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -33,6 +33,19 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.724.0",
|
|
38
|
+
"at": "2026-11-23T02:49:31.191Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1601,
|
|
43
|
+
"t": "Jira reads work through the official Atlassian MCP connector",
|
|
44
|
+
"s": "Jira reads work through the official Atlassian MCP connector",
|
|
45
|
+
"k": "fix"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
36
49
|
{
|
|
37
50
|
"v": "0.723.0",
|
|
38
51
|
"at": "2026-11-23T01:56:36.110Z",
|
|
@@ -459,37 +472,6 @@
|
|
|
459
472
|
"k": "imp"
|
|
460
473
|
}
|
|
461
474
|
]
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
"v": "0.691.0",
|
|
465
|
-
"at": "2026-11-22T09:21:12.074Z",
|
|
466
|
-
"f": 4,
|
|
467
|
-
"prs": [
|
|
468
|
-
{
|
|
469
|
-
"n": 1511,
|
|
470
|
-
"t": "Intelligence C6 at the default URL, and correct the ?dash= claim",
|
|
471
|
-
"s": "Intelligence C6 at the default URL, and correct the ?dash= claim",
|
|
472
|
-
"k": "x"
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
"n": 1492,
|
|
476
|
-
"t": "Subtasks at any depth, bulk move with one Undo, and the Jira epic check",
|
|
477
|
-
"s": "Subtasks at any depth, bulk move with one Undo, and the Jira epic check",
|
|
478
|
-
"k": "new"
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
"n": 1501,
|
|
482
|
-
"t": "Kind marks each lifecycle stage owned, watched or hidden",
|
|
483
|
-
"s": "Kind marks each lifecycle stage owned, watched or hidden",
|
|
484
|
-
"k": "new"
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
"n": 1503,
|
|
488
|
-
"t": "One record of every agent change, and no source, no auto (A443)",
|
|
489
|
-
"s": "One record of every agent change, and no source, no auto (A443)",
|
|
490
|
-
"k": "new"
|
|
491
|
-
}
|
|
492
|
-
]
|
|
493
475
|
}
|
|
494
476
|
]
|
|
495
477
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Eval calibration log"
|
|
4
4
|
description: "Append-only record of every PM override of an evaluator verdict."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-23T02:49:27Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-23T02:49:27Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-23T02:49:27Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.724.0",
|
|
4
|
+
"at": "2026-11-23T02:49:31.191Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1601,
|
|
9
|
+
"t": "Jira reads work through the official Atlassian MCP connector",
|
|
10
|
+
"s": "Jira reads work through the official Atlassian MCP connector",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.723.0",
|
|
4
17
|
"at": "2026-11-23T01:56:36.110Z",
|
|
@@ -278,6 +278,10 @@ const CONNECTOR_READ_SEED = Object.freeze([
|
|
|
278
278
|
'getJiraIssueTypeMetaWithFields', 'getJiraIssueRemoteIssueLinks', 'getTransitionsForJiraIssue', 'lookupJiraAccountId',
|
|
279
279
|
'getConfluencePage', 'getConfluenceSpaces', 'getPagesInConfluenceSpace', 'getConfluencePageDescendants', 'getConfluencePageFooterComments',
|
|
280
280
|
'getConfluencePageInlineComments', 'searchConfluenceUsingCql', 'search', 'fetch'].map((t) => 'mcp__claude_ai_Atlassian__' + t),
|
|
281
|
+
// The official Atlassian MCP connector (2026-11-23) is named "Atlassian MCP", so Claude Code names its tools `mcp__claude_ai_Atlassian_MCP__…`
|
|
282
|
+
// and has fewer, broader ones. Both prefixes are seeded: a PM may have either connector, and an unknown name is harmless.
|
|
283
|
+
...['getAccessibleAtlassianResources', 'searchJiraIssuesUsingJql', 'getJiraIssue', 'listJiraIssueComments', 'getConfluenceContent',
|
|
284
|
+
'searchConfluence', 'search'].map((t) => 'mcp__claude_ai_Atlassian_MCP__' + t),
|
|
281
285
|
...['slack_read_channel', 'slack_read_thread', 'slack_read_canvas', 'slack_read_user_profile', 'slack_search_public', 'slack_search_public_and_private',
|
|
282
286
|
'slack_search_channels', 'slack_search_users', 'slack_list_user_channels'].map((t) => 'mcp__claude_ai_Slack__' + t),
|
|
283
287
|
...['list_events', 'get_event', 'search_events', 'list_calendars'].map((t) => 'mcp__claude_ai_Google_Calendar__' + t),
|
|
@@ -215,7 +215,7 @@ function subsOf(v) {
|
|
|
215
215
|
}
|
|
216
216
|
/** https://site.atlassian.net/rest/api/3/issue/10001 → https://site.atlassian.net/browse/KEY */
|
|
217
217
|
function urlOf(x, key) {
|
|
218
|
-
const raw = isStr(x.url) ? x.url : isStr(x.self) ? x.self : '';
|
|
218
|
+
const raw = isStr(x.url) ? x.url : isStr(x.webUrl) ? x.webUrl : isStr(x.self) ? x.self : '';
|
|
219
219
|
let u;
|
|
220
220
|
try { u = new URL(raw); } catch { return null; }
|
|
221
221
|
if (u.protocol !== 'https:') return null;
|
|
@@ -241,12 +241,28 @@ function whoWhen(a, up) {
|
|
|
241
241
|
const t = Date.parse(isStr(up) ? up : '');
|
|
242
242
|
return { ...(name ? { assignee: name } : {}), ...(Number.isFinite(t) ? { updated: new Date(t).toISOString() } : {}) };
|
|
243
243
|
}
|
|
244
|
+
/** The official Atlassian MCP connector returns custom fields under `fields.customFields`, keyed by name: { Sprint: { id: 'customfield_10004',
|
|
245
|
+
* value: [...] } }. They are put back at the top level under their id and their name, as the REST shape has them, so the sprint, points
|
|
246
|
+
* and flag rules read them. A field already at the top level wins. */
|
|
247
|
+
function flatCustom(f) {
|
|
248
|
+
const c = f.customFields;
|
|
249
|
+
if (!c || typeof c !== 'object' || Array.isArray(c)) return f;
|
|
250
|
+
const out = { ...f };
|
|
251
|
+
for (const [name, e] of Object.entries(c)) {
|
|
252
|
+
const has = e && typeof e === 'object' && !Array.isArray(e) && 'value' in e;
|
|
253
|
+
const v = has ? e.value : e;
|
|
254
|
+
if (has && isStr(e.id) && /^customfield_\d+$/.test(e.id) && !(e.id in out)) out[e.id] = v;
|
|
255
|
+
if (!(name in out)) out[name] = v;
|
|
256
|
+
}
|
|
257
|
+
delete out.customFields;
|
|
258
|
+
return out;
|
|
259
|
+
}
|
|
244
260
|
function normalizeIssue(x) {
|
|
245
261
|
if (!x || typeof x !== 'object') return null;
|
|
246
262
|
const key = oneLine(x.key).toUpperCase();
|
|
247
263
|
if (!KEY_RE.test(key)) return null;
|
|
248
264
|
if (x.fields && typeof x.fields === 'object') {
|
|
249
|
-
const f = x.fields;
|
|
265
|
+
const f = flatCustom(x.fields);
|
|
250
266
|
const summary = clip(oneLine(f.summary), 250);
|
|
251
267
|
if (!summary) return null;
|
|
252
268
|
const st = f.status || {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.724.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.724.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
package/workspace/server.js
CHANGED
|
@@ -4754,11 +4754,15 @@ function knownConnectorTools(env) {
|
|
|
4754
4754
|
const seen = all[connectorHome(env)];
|
|
4755
4755
|
return [...headlessLib.CONNECTOR_READ_SEED, ...(seen && Array.isArray(seen.tools) ? seen.tools : [])];
|
|
4756
4756
|
}
|
|
4757
|
+
// Learned tools are ADDED to what this home already had, never replace it (fix 2026-11-23): a connector still loading when a run starts is
|
|
4758
|
+
// missing from that run's init line, and replacing the list then refused its tools in the next run (Jira, Figma and Wispr on the Mac).
|
|
4759
|
+
// A tool name the login no longer has is harmless in --allowedTools.
|
|
4757
4760
|
function learnConnectorTools(env, tools) {
|
|
4758
|
-
const reads = headlessLib.connectorReads(tools);
|
|
4759
4761
|
try {
|
|
4760
4762
|
let all = {}; try { all = JSON.parse(fs.readFileSync(CONNECTOR_TOOLS_FILE, 'utf8')) || {}; } catch { /* first one */ }
|
|
4761
4763
|
const home = connectorHome(env);
|
|
4764
|
+
const had = all[home] && Array.isArray(all[home].tools) ? all[home].tools : [];
|
|
4765
|
+
const reads = headlessLib.connectorReads([...had, ...(Array.isArray(tools) ? tools : [])]);
|
|
4762
4766
|
if (all[home] && JSON.stringify(all[home].tools) === JSON.stringify(reads)) return;
|
|
4763
4767
|
all[home] = { at: nowISO(), tools: reads };
|
|
4764
4768
|
fs.mkdirSync(path.dirname(CONNECTOR_TOOLS_FILE), { recursive: true });
|
|
@@ -25,7 +25,7 @@ Procedure:
|
|
|
25
25
|
0. Ask first, when the task names no initiative. Run `pmos refresh since jira`. If it says "read in full", go to step 1. If it says "ask first", note the number of minutes it prints. Run `pmos jira query` and `pmos jira query --sprints`, and run each search they print with ` AND updated >= -<minutes>m` added (put the search in brackets first), asking only for the key field and one result. If no search returns an issue, run `pmos refresh same jira`, finish with "Checked: no change in Jira in the last <minutes> minutes", and stop. If any search returns an issue, or a search fails, go to step 1 and read in full.
|
|
26
26
|
0a. One sprint, when the task names it ("This check: sprint …"): the PM asked PMOS to read a closed sprint it never saw. Run `pmos jira query --sprint "<the sprint's name>"`, run that search with the fields of step 2, fetch every page, save the result in the scratch folder in the shape of step 3, run `pmos jira sync --sprint "<the sprint's name>" --from <the file>`, finish with "Checked: <the sprint's name>, <N> tickets kept", and stop. Do nothing else in that run.
|
|
27
27
|
1. If the task names one initiative ("This check: initiative …"), check that one only: run `pmos jira query <initiative>`. Otherwise run `pmos jira query`: each line is an initiative id, a tab and the Jira search (JQL) to run for it. An initiative PMOS pushed no ticket for, but which is linked to Jira epics, gets a search for those epics and the issues under them. An initiative whose tasks start with a Jira key (tasks imported from Jira, such as "IDPF-2746 · Send verification email") gets those tickets in its search too: PMOS sets each task's state from what you read. If no initiative has a ticket or an epic in Jira, say so in one line and stop.
|
|
28
|
-
2. For each initiative, run its search with the Jira search tool and the fields in rule 3, at most 50 issues per page. The sprint is a custom field named "Sprint" whose id differs per site (often `customfield_10020`, on some sites `customfield_10004`). If the first page comes back with no Sprint field, ask once for every field of one issue (`*all`), find the field whose value is a list of sprints (each with a name and a state), and ask for that id from then on. Story points are also a custom field, named "Story Points" or "Story point estimate" (often `customfield_10016`); ask for it by name. Fetch every page.
|
|
28
|
+
2. For each initiative, run its search with the Jira search tool and the fields in rule 3, at most 50 issues per page. The sprint is a custom field named "Sprint" whose id differs per site (often `customfield_10020`, on some sites `customfield_10004`). If the first page comes back with no Sprint field, ask once for every field of one issue (`*all`), find the field whose value is a list of sprints (each with a name and a state), and ask for that id from then on. Story points are also a custom field, named "Story Points" or "Story point estimate" (often `customfield_10016`); ask for it by name. With the Atlassian MCP connector, name the fields in `fields`, use the `full` view, and save the result as it comes back: it puts custom fields under `fields.customFields`, and `pmos` reads them there. Fetch every page.
|
|
29
29
|
3. Save the result as JSON in the scratch folder, for example `<scratch>/jira-<initiative>.json`, as a list with one object per issue:
|
|
30
30
|
`{"key", "summary", "status", "category", "type", "parent", "sprint", "subtasks", "points", "resolved", "flagged", "reason", "url"}`
|
|
31
31
|
- `type`: the issue type's name, for example `Epic`, `Story`, `Task` or `Bug`.
|