jinn-cli 0.8.0 → 0.9.1
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/dist/package.json +2 -2
- package/dist/src/cli/migrate.d.ts.map +1 -1
- package/dist/src/cli/migrate.js +20 -2
- package/dist/src/cli/migrate.js.map +1 -1
- package/dist/src/connectors/discord/index.d.ts +6 -0
- package/dist/src/connectors/discord/index.d.ts.map +1 -1
- package/dist/src/connectors/discord/index.js +9 -3
- package/dist/src/connectors/discord/index.js.map +1 -1
- package/dist/src/connectors/discord/threads.d.ts +1 -1
- package/dist/src/connectors/discord/threads.d.ts.map +1 -1
- package/dist/src/connectors/discord/threads.js +4 -4
- package/dist/src/connectors/discord/threads.js.map +1 -1
- package/dist/src/gateway/__tests__/org-hierarchy.test.d.ts +2 -0
- package/dist/src/gateway/__tests__/org-hierarchy.test.d.ts.map +1 -0
- package/dist/src/gateway/__tests__/org-hierarchy.test.js +161 -0
- package/dist/src/gateway/__tests__/org-hierarchy.test.js.map +1 -0
- package/dist/src/gateway/__tests__/services.test.js +139 -151
- package/dist/src/gateway/__tests__/services.test.js.map +1 -1
- package/dist/src/gateway/api.d.ts +5 -0
- package/dist/src/gateway/api.d.ts.map +1 -1
- package/dist/src/gateway/api.js +242 -64
- package/dist/src/gateway/api.js.map +1 -1
- package/dist/src/gateway/org-hierarchy.d.ts +5 -0
- package/dist/src/gateway/org-hierarchy.d.ts.map +1 -0
- package/dist/src/gateway/org-hierarchy.js +174 -0
- package/dist/src/gateway/org-hierarchy.js.map +1 -0
- package/dist/src/gateway/org.d.ts.map +1 -1
- package/dist/src/gateway/org.js +6 -0
- package/dist/src/gateway/org.js.map +1 -1
- package/dist/src/gateway/server.d.ts.map +1 -1
- package/dist/src/gateway/server.js +235 -5
- package/dist/src/gateway/server.js.map +1 -1
- package/dist/src/gateway/services.d.ts +20 -9
- package/dist/src/gateway/services.d.ts.map +1 -1
- package/dist/src/gateway/services.js +73 -34
- package/dist/src/gateway/services.js.map +1 -1
- package/dist/src/sessions/context.d.ts +1 -0
- package/dist/src/sessions/context.d.ts.map +1 -1
- package/dist/src/sessions/context.js +113 -5
- package/dist/src/sessions/context.js.map +1 -1
- package/dist/src/sessions/fork.d.ts +30 -0
- package/dist/src/sessions/fork.d.ts.map +1 -0
- package/dist/src/sessions/fork.js +178 -0
- package/dist/src/sessions/fork.js.map +1 -0
- package/dist/src/sessions/manager.d.ts.map +1 -1
- package/dist/src/sessions/manager.js +8 -0
- package/dist/src/sessions/manager.js.map +1 -1
- package/dist/src/sessions/registry.d.ts +8 -0
- package/dist/src/sessions/registry.d.ts.map +1 -1
- package/dist/src/sessions/registry.js +36 -0
- package/dist/src/sessions/registry.js.map +1 -1
- package/dist/src/shared/types.d.ts +66 -0
- package/dist/src/shared/types.d.ts.map +1 -1
- package/dist/web/404.html +1 -1
- package/dist/web/_next/static/chunks/{155-d60b5aa6e01f7738.js → 155-655a087df45da990.js} +1 -1
- package/dist/web/_next/static/chunks/192-c0150e3d227be735.js +1 -0
- package/dist/web/_next/static/chunks/579-09eb1d7ab35333fc.js +1 -0
- package/dist/web/_next/static/chunks/943.7dec3c35287ad545.js +1 -0
- package/dist/web/_next/static/chunks/app/chat/page-4ba0008df3b5d032.js +1 -0
- package/dist/web/_next/static/chunks/app/cron/page-648f892629b4af65.js +1 -0
- package/dist/web/_next/static/chunks/app/kanban/{page-0aa74ece5109e58f.js → page-5e00ac0363936a53.js} +1 -1
- package/dist/web/_next/static/chunks/app/org/page-0f7617805f6f6eb7.js +1 -0
- package/dist/web/_next/static/chunks/app/settings/page-5588e1b2bb8a5196.js +1 -0
- package/dist/web/_next/static/chunks/{webpack-2e375360ad2078fe.js → webpack-21588284a59cb80f.js} +1 -1
- package/dist/web/_next/static/css/334114aa3839160f.css +1 -0
- package/dist/web/chat.html +1 -1
- package/dist/web/chat.txt +4 -4
- package/dist/web/cron.html +1 -1
- package/dist/web/cron.txt +4 -4
- package/dist/web/index.html +1 -1
- package/dist/web/index.txt +4 -4
- package/dist/web/kanban.html +1 -1
- package/dist/web/kanban.txt +4 -4
- package/dist/web/logs.html +2 -2
- package/dist/web/logs.txt +4 -4
- package/dist/web/org.html +1 -1
- package/dist/web/org.txt +4 -4
- package/dist/web/sessions.html +1 -1
- package/dist/web/sessions.txt +3 -3
- package/dist/web/settings.html +1 -1
- package/dist/web/settings.txt +4 -4
- package/dist/web/skills.html +1 -1
- package/dist/web/skills.txt +4 -4
- package/package.json +2 -2
- package/template/AGENTS.md +132 -31
- package/template/CLAUDE.md +186 -24
- package/template/migrations/0.9.0/MIGRATION.md +82 -0
- package/template/skills/management/SKILL.md +32 -9
- package/dist/web/_next/static/chunks/192-8281220a22c7a155.js +0 -1
- package/dist/web/_next/static/chunks/379-11f5e4203461fd6a.js +0 -1
- package/dist/web/_next/static/chunks/943.c30215b2dbec402b.js +0 -1
- package/dist/web/_next/static/chunks/app/chat/page-3a532ea2d0f8b961.js +0 -1
- package/dist/web/_next/static/chunks/app/cron/page-9787c557594dc688.js +0 -1
- package/dist/web/_next/static/chunks/app/org/page-99d1b67b8f17e4d5.js +0 -1
- package/dist/web/_next/static/chunks/app/settings/page-c2b014fb0706aa88.js +0 -1
- package/dist/web/_next/static/css/214f7107c416b9a3.css +0 -1
- /package/dist/web/_next/static/{yhgZ2UX_j_Aier68GaRfB → VBCQXj1bVyMDiXQTiHQ-p}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{yhgZ2UX_j_Aier68GaRfB → VBCQXj1bVyMDiXQTiHQ-p}/_ssgManifest.js +0 -0
|
@@ -1,165 +1,153 @@
|
|
|
1
|
-
import { describe, it, expect } from
|
|
2
|
-
import { findCommonAncestor, buildRoutePath, resolveManagerChain
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const depts = [
|
|
17
|
-
{ name: 'company', displayName: 'Company', path: 'company', manager: 'ceo', children: ['engineering', 'design'], employees: ['ceo'] },
|
|
18
|
-
{ name: 'engineering', displayName: 'Engineering', path: 'engineering', parent: 'company', manager: 'eng-lead', children: ['backend', 'frontend'], employees: ['eng-lead'] },
|
|
19
|
-
{ name: 'design', displayName: 'Design', path: 'design', parent: 'company', manager: 'design-lead', children: [], employees: ['design-lead', 'designer-carol'] },
|
|
20
|
-
{ name: 'backend', displayName: 'Backend', path: 'backend', parent: 'engineering', manager: 'backend-lead', children: [], employees: ['backend-lead', 'dev-alice'] },
|
|
21
|
-
{ name: 'frontend', displayName: 'Frontend', path: 'frontend', parent: 'engineering', manager: 'frontend-lead', children: [], employees: ['frontend-lead', 'dev-bob'] },
|
|
22
|
-
];
|
|
23
|
-
const map = new Map();
|
|
24
|
-
for (const d of depts)
|
|
25
|
-
map.set(d.path, d);
|
|
26
|
-
return map;
|
|
1
|
+
import { describe, it, expect } from "vitest";
|
|
2
|
+
import { buildServiceRegistry, findCommonAncestor, buildRoutePath, resolveManagerChain } from "../services.js";
|
|
3
|
+
import { resolveOrgHierarchy } from "../org-hierarchy.js";
|
|
4
|
+
function emp(name, opts = {}) {
|
|
5
|
+
return {
|
|
6
|
+
name,
|
|
7
|
+
displayName: opts.displayName ?? name,
|
|
8
|
+
department: opts.department ?? "default",
|
|
9
|
+
rank: opts.rank ?? "employee",
|
|
10
|
+
engine: opts.engine ?? "claude",
|
|
11
|
+
model: opts.model ?? "opus",
|
|
12
|
+
persona: opts.persona ?? `persona for ${name}`,
|
|
13
|
+
reportsTo: opts.reportsTo,
|
|
14
|
+
provides: opts.provides,
|
|
15
|
+
};
|
|
27
16
|
}
|
|
28
|
-
function
|
|
29
|
-
const base = { engine: 'claude', model: 'sonnet', persona: 'test' };
|
|
30
|
-
const emps = [
|
|
31
|
-
{ name: 'ceo', displayName: 'CEO', department: 'company', rank: 'executive', ...base },
|
|
32
|
-
{ name: 'eng-lead', displayName: 'Eng Lead', department: 'engineering', rank: 'manager', ...base },
|
|
33
|
-
{ name: 'design-lead', displayName: 'Design Lead', department: 'design', rank: 'manager', ...base },
|
|
34
|
-
{ name: 'backend-lead', displayName: 'Backend Lead', department: 'backend', rank: 'senior', ...base },
|
|
35
|
-
{ name: 'frontend-lead', displayName: 'Frontend Lead', department: 'frontend', rank: 'senior', ...base },
|
|
36
|
-
{ name: 'dev-alice', displayName: 'Alice', department: 'backend', rank: 'employee', ...base },
|
|
37
|
-
{ name: 'dev-bob', displayName: 'Bob', department: 'frontend', rank: 'employee', ...base },
|
|
38
|
-
{ name: 'designer-carol', displayName: 'Carol', department: 'design', rank: 'employee', ...base },
|
|
39
|
-
];
|
|
17
|
+
function registry(...employees) {
|
|
40
18
|
const map = new Map();
|
|
41
|
-
for (const e of
|
|
19
|
+
for (const e of employees)
|
|
42
20
|
map.set(e.name, e);
|
|
43
21
|
return map;
|
|
44
22
|
}
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
describe(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
expect(
|
|
53
|
-
});
|
|
54
|
-
it(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
expect(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
23
|
+
// ═══════════════════════════════════════════════════════════════
|
|
24
|
+
// buildServiceRegistry
|
|
25
|
+
// ═══════════════════════════════════════════════════════════════
|
|
26
|
+
describe("buildServiceRegistry", () => {
|
|
27
|
+
it("returns empty registry when no employees have provides", () => {
|
|
28
|
+
const reg = registry(emp("a"), emp("b"));
|
|
29
|
+
const services = buildServiceRegistry(reg);
|
|
30
|
+
expect(services.size).toBe(0);
|
|
31
|
+
});
|
|
32
|
+
it("registers services from employees", () => {
|
|
33
|
+
const reg = registry(emp("dev", { provides: [{ name: "code-review", description: "Review PRs" }] }));
|
|
34
|
+
const services = buildServiceRegistry(reg);
|
|
35
|
+
expect(services.size).toBe(1);
|
|
36
|
+
expect(services.get("code-review")?.provider.name).toBe("dev");
|
|
37
|
+
expect(services.get("code-review")?.declaration.description).toBe("Review PRs");
|
|
38
|
+
});
|
|
39
|
+
it("registers multiple services from one employee", () => {
|
|
40
|
+
const reg = registry(emp("dev", {
|
|
41
|
+
provides: [
|
|
42
|
+
{ name: "code-review", description: "Review PRs" },
|
|
43
|
+
{ name: "web-dev", description: "Build web features" },
|
|
44
|
+
],
|
|
45
|
+
}));
|
|
46
|
+
const services = buildServiceRegistry(reg);
|
|
47
|
+
expect(services.size).toBe(2);
|
|
48
|
+
expect(services.get("code-review")?.provider.name).toBe("dev");
|
|
49
|
+
expect(services.get("web-dev")?.provider.name).toBe("dev");
|
|
50
|
+
});
|
|
51
|
+
it("higher-ranked employee wins on collision", () => {
|
|
52
|
+
const reg = registry(emp("junior", { rank: "employee", provides: [{ name: "review", description: "Junior review" }] }), emp("senior", { rank: "senior", provides: [{ name: "review", description: "Senior review" }] }));
|
|
53
|
+
const services = buildServiceRegistry(reg);
|
|
54
|
+
expect(services.get("review")?.provider.name).toBe("senior");
|
|
55
|
+
expect(services.get("review")?.declaration.description).toBe("Senior review");
|
|
56
|
+
});
|
|
57
|
+
it("alphabetical wins on same-rank collision", () => {
|
|
58
|
+
const reg = registry(emp("bob", { rank: "senior", provides: [{ name: "design", description: "Bob design" }] }), emp("alice", { rank: "senior", provides: [{ name: "design", description: "Alice design" }] }));
|
|
59
|
+
const services = buildServiceRegistry(reg);
|
|
60
|
+
expect(services.get("design")?.provider.name).toBe("alice");
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
// ═══════════════════════════════════════════════════════════════
|
|
64
|
+
// findCommonAncestor
|
|
65
|
+
// ═══════════════════════════════════════════════════════════════
|
|
66
|
+
describe("findCommonAncestor", () => {
|
|
67
|
+
it("returns null for unknown employees", () => {
|
|
68
|
+
const reg = registry(emp("a"));
|
|
69
|
+
const hierarchy = resolveOrgHierarchy(reg);
|
|
70
|
+
expect(findCommonAncestor("x", "y", hierarchy)).toBeNull();
|
|
71
|
+
});
|
|
72
|
+
it("returns the employee itself when both are the same", () => {
|
|
73
|
+
const reg = registry(emp("coo", { rank: "executive" }));
|
|
74
|
+
const hierarchy = resolveOrgHierarchy(reg);
|
|
75
|
+
expect(findCommonAncestor("coo", "coo", hierarchy)).toBe("coo");
|
|
76
|
+
});
|
|
77
|
+
it("finds root as common ancestor for two siblings", () => {
|
|
78
|
+
const reg = registry(emp("coo", { rank: "executive" }), emp("a", { reportsTo: "coo" }), emp("b", { reportsTo: "coo" }));
|
|
79
|
+
const hierarchy = resolveOrgHierarchy(reg);
|
|
80
|
+
expect(findCommonAncestor("a", "b", hierarchy)).toBe("coo");
|
|
81
|
+
});
|
|
82
|
+
it("finds ancestor when one is deeper", () => {
|
|
83
|
+
const reg = registry(emp("coo", { rank: "executive" }), emp("mgr", { rank: "manager", reportsTo: "coo" }), emp("dev", { reportsTo: "mgr" }), emp("other", { reportsTo: "coo" }));
|
|
84
|
+
const hierarchy = resolveOrgHierarchy(reg);
|
|
85
|
+
expect(findCommonAncestor("dev", "other", hierarchy)).toBe("coo");
|
|
86
|
+
});
|
|
87
|
+
it("returns parent when one reports to the other", () => {
|
|
88
|
+
const reg = registry(emp("coo", { rank: "executive" }), emp("mgr", { rank: "manager", reportsTo: "coo" }), emp("dev", { reportsTo: "mgr" }));
|
|
89
|
+
const hierarchy = resolveOrgHierarchy(reg);
|
|
90
|
+
expect(findCommonAncestor("dev", "mgr", hierarchy)).toBe("mgr");
|
|
91
|
+
});
|
|
92
|
+
it("returns null when both are root-level with no common ancestor", () => {
|
|
93
|
+
// No executive — both become root nodes
|
|
94
|
+
const reg = registry(emp("a", { department: "eng" }), emp("b", { department: "mkt" }));
|
|
95
|
+
const hierarchy = resolveOrgHierarchy(reg);
|
|
96
|
+
expect(findCommonAncestor("a", "b", hierarchy)).toBeNull();
|
|
74
97
|
});
|
|
75
98
|
});
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
it('handles unknown department gracefully', () => {
|
|
102
|
-
const route = buildRoutePath('nonexistent', 'backend', depts);
|
|
103
|
-
// nonexistent has no parent, no common ancestor found
|
|
104
|
-
// upPath = ['nonexistent'], no ancestor, downPath walks back from backend
|
|
105
|
-
expect(route).toContain('nonexistent');
|
|
99
|
+
// ═══════════════════════════════════════════════════════════════
|
|
100
|
+
// buildRoutePath
|
|
101
|
+
// ═══════════════════════════════════════════════════════════════
|
|
102
|
+
describe("buildRoutePath", () => {
|
|
103
|
+
it("returns single-element for same employee", () => {
|
|
104
|
+
const reg = registry(emp("a"));
|
|
105
|
+
const hierarchy = resolveOrgHierarchy(reg);
|
|
106
|
+
expect(buildRoutePath("a", "a", hierarchy)).toEqual(["a"]);
|
|
107
|
+
});
|
|
108
|
+
it("builds path through common ancestor", () => {
|
|
109
|
+
const reg = registry(emp("coo", { rank: "executive" }), emp("a", { reportsTo: "coo" }), emp("b", { reportsTo: "coo" }));
|
|
110
|
+
const hierarchy = resolveOrgHierarchy(reg);
|
|
111
|
+
expect(buildRoutePath("a", "b", hierarchy)).toEqual(["a", "coo", "b"]);
|
|
112
|
+
});
|
|
113
|
+
it("builds path through deeper tree", () => {
|
|
114
|
+
const reg = registry(emp("coo", { rank: "executive" }), emp("eng-lead", { rank: "manager", department: "eng", reportsTo: "coo" }), emp("dev", { department: "eng", reportsTo: "eng-lead" }), emp("mkt-lead", { rank: "manager", department: "mkt", reportsTo: "coo" }), emp("writer", { department: "mkt", reportsTo: "mkt-lead" }));
|
|
115
|
+
const hierarchy = resolveOrgHierarchy(reg);
|
|
116
|
+
expect(buildRoutePath("dev", "writer", hierarchy)).toEqual([
|
|
117
|
+
"dev", "eng-lead", "coo", "mkt-lead", "writer",
|
|
118
|
+
]);
|
|
119
|
+
});
|
|
120
|
+
it("builds direct path when one reports to the other", () => {
|
|
121
|
+
const reg = registry(emp("mgr", { rank: "manager" }), emp("dev", { reportsTo: "mgr" }));
|
|
122
|
+
const hierarchy = resolveOrgHierarchy(reg);
|
|
123
|
+
expect(buildRoutePath("dev", "mgr", hierarchy)).toEqual(["dev", "mgr"]);
|
|
106
124
|
});
|
|
107
125
|
});
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
const
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
expect(names).toContain('eng-lead');
|
|
117
|
-
expect(names).toContain('frontend-lead');
|
|
118
|
-
});
|
|
119
|
-
it('resolves managers along a cousin route', () => {
|
|
120
|
-
const route = buildRoutePath('backend', 'design', depts);
|
|
121
|
-
const chain = resolveManagerChain(route, depts, emps);
|
|
122
|
-
const names = chain.map((e) => e.name);
|
|
123
|
-
expect(names).toContain('backend-lead');
|
|
124
|
-
expect(names).toContain('eng-lead');
|
|
125
|
-
expect(names).toContain('ceo');
|
|
126
|
-
expect(names).toContain('design-lead');
|
|
127
|
-
});
|
|
128
|
-
it('deduplicates managers when route passes through same dept twice', () => {
|
|
129
|
-
// same dept = single element route
|
|
130
|
-
const route = ['engineering', 'engineering'];
|
|
131
|
-
const chain = resolveManagerChain(route, depts, emps);
|
|
132
|
-
// eng-lead should appear only once
|
|
133
|
-
expect(chain.filter((e) => e.name === 'eng-lead')).toHaveLength(1);
|
|
134
|
-
});
|
|
135
|
-
it('returns empty chain for unknown departments', () => {
|
|
136
|
-
const chain = resolveManagerChain(['nonexistent'], depts, emps);
|
|
126
|
+
// ═══════════════════════════════════════════════════════════════
|
|
127
|
+
// resolveManagerChain
|
|
128
|
+
// ═══════════════════════════════════════════════════════════════
|
|
129
|
+
describe("resolveManagerChain", () => {
|
|
130
|
+
it("returns empty for single employee", () => {
|
|
131
|
+
const reg = registry(emp("a"));
|
|
132
|
+
const hierarchy = resolveOrgHierarchy(reg);
|
|
133
|
+
const chain = resolveManagerChain(["a"], hierarchy);
|
|
137
134
|
expect(chain).toEqual([]);
|
|
138
135
|
});
|
|
139
|
-
it(
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
const names = chain.map((
|
|
145
|
-
expect(names).
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
manager: 'ghost-manager',
|
|
155
|
-
children: [],
|
|
156
|
-
employees: [],
|
|
157
|
-
});
|
|
158
|
-
const chain = resolveManagerChain(['ghost-dept', 'backend'], customDepts, emps);
|
|
159
|
-
// ghost-manager doesn't exist in emps, so only backend-lead
|
|
160
|
-
const names = chain.map((e) => e.name);
|
|
161
|
-
expect(names).not.toContain('ghost-manager');
|
|
162
|
-
expect(names).toContain('backend-lead');
|
|
136
|
+
it("returns managers (employees with direct reports) along the route", () => {
|
|
137
|
+
const reg = registry(emp("coo", { rank: "executive" }), emp("eng-lead", { rank: "manager", department: "eng", reportsTo: "coo" }), emp("dev", { department: "eng", reportsTo: "eng-lead" }), emp("mkt-lead", { rank: "manager", department: "mkt", reportsTo: "coo" }), emp("writer", { department: "mkt", reportsTo: "mkt-lead" }));
|
|
138
|
+
const hierarchy = resolveOrgHierarchy(reg);
|
|
139
|
+
const route = buildRoutePath("dev", "writer", hierarchy);
|
|
140
|
+
const chain = resolveManagerChain(route, hierarchy);
|
|
141
|
+
const names = chain.map((n) => n.employee.name);
|
|
142
|
+
expect(names).toEqual(["eng-lead", "coo", "mkt-lead"]);
|
|
143
|
+
});
|
|
144
|
+
it("deduplicates managers", () => {
|
|
145
|
+
const reg = registry(emp("coo", { rank: "executive" }), emp("a", { reportsTo: "coo" }));
|
|
146
|
+
const hierarchy = resolveOrgHierarchy(reg);
|
|
147
|
+
// Route goes through coo twice conceptually
|
|
148
|
+
const chain = resolveManagerChain(["a", "coo", "coo", "a"], hierarchy);
|
|
149
|
+
const names = chain.map((n) => n.employee.name);
|
|
150
|
+
expect(names).toEqual(["coo"]);
|
|
163
151
|
});
|
|
164
152
|
});
|
|
165
153
|
//# sourceMappingURL=services.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.test.js","sourceRoot":"","sources":["../../../../src/gateway/__tests__/services.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"services.test.js","sourceRoot":"","sources":["../../../../src/gateway/__tests__/services.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG1D,SAAS,GAAG,CAAC,IAAY,EAAE,OAA0B,EAAE;IACrD,OAAO;QACL,IAAI;QACJ,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,IAAI;QACrC,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;QACxC,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,UAAU;QAC7B,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,QAAQ;QAC/B,KAAK,EAAE,IAAI,CAAC,KAAK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C,CAAC;IAEH,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE;QAC/B,MAAM,GAAG,GAAG,QAAQ,CAClB,GAAG,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EACjC,GAAG,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAC/B,CAAC;QACF,MAAM,SAAS,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;QAC3C,4CAA4C;QAC5C,MAAM,KAAK,GAAG,mBAAmB,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,SAAS,CAAC,CAAC;QACvE,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAChD,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -8,6 +8,11 @@ export interface ApiContext {
|
|
|
8
8
|
getConfig: () => JinnConfig;
|
|
9
9
|
emit: (event: string, payload: unknown) => void;
|
|
10
10
|
connectors: Map<string, import("../shared/types.js").Connector>;
|
|
11
|
+
reloadConnectorInstances?: () => Promise<{
|
|
12
|
+
started: string[];
|
|
13
|
+
stopped: string[];
|
|
14
|
+
errors: string[];
|
|
15
|
+
}>;
|
|
11
16
|
}
|
|
12
17
|
export declare function resumePendingWebQueueItems(context: ApiContext): void;
|
|
13
18
|
export declare function handleApiRequest(req: HttpRequest, res: ServerResponse, context: ApiContext): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/gateway/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,IAAI,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMhF,OAAO,KAAK,EAAoC,UAAU,EAAmB,MAAM,oBAAoB,CAAC;AAExG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/gateway/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,IAAI,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMhF,OAAO,KAAK,EAAoC,UAAU,EAAmB,MAAM,oBAAoB,CAAC;AAExG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AA+C7D,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,UAAU,CAAC;IACnB,cAAc,EAAE,cAAc,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,UAAU,CAAC;IAC5B,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,oBAAoB,EAAE,SAAS,CAAC,CAAC;IAChE,wBAAwB,CAAC,EAAE,MAAM,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;CACtG;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAgCpE;AAqOD,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,WAAW,EAChB,GAAG,EAAE,cAAc,EACnB,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,IAAI,CAAC,CA89Cf"}
|