Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/missionmatch / frontend/src/tools/missionmatch/api.ts |
| Date | Not specified in source |
| Repository | Janady13/missionmatch |
| Revision | 720d47fae476b0d38477ae4401697d372b1ea2bc |
| Branch | feature/opportunity-to-outcome |
| Path or archive member | frontend/src/tools/missionmatch/api.ts |
| Original SHA-256 | f45cd7e4b6bf9947cb4db22bfd0e7e305fcfe2936bfc17190207148584d50e20 |
| Git blob SHA | 5260d42b2737a7a0dc85b0e1f95c05a0110938f9 |
| Reading-copy SHA-256 | f45cd7e4b6bf9947cb4db22bfd0e7e305fcfe2936bfc17190207148584d50e20 |
Every recorded occurrence
These 4 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/missionmatch / frontend/src/tools/missionmatch/api.ts | feature/opportunity-to-outcome | 720d47fae476b0d38477ae4401697d372b1ea2bc | Open original |
| Janady13/missionmatch / frontend/src/tools/missionmatch/api.ts | master | 1e9249840a4302ec82e123b9c9cb6f75badea3e4 | Open original |
| Janady13/missionmatch / frontend/src/tools/missionmatch/api.ts | presentation-readiness | eb574acaa29d71ce4d0f852572e87c275c79fdb7 | Open original |
| Janady13/missionmatch / frontend/src/tools/missionmatch/api.ts | feature/aioe-upgrade | 2178e7298d0e5d9af83afa12402fd587f0ba6ed8 | Open original |
Recovered source transcript
Download complete source text ↓39 lines · 1.7 KB
// missionMATCH API client: the workforce readiness rollups and reads over the /api/missionmatch
// namespace. Every number it returns comes from the ONE shared core (and the persisted screenMATCH
// evaluations for who can support), so it always agrees with screenMATCH and slateMATCH.
import { request } from '../../lib/api'
import type {
AdoptForecastInput,
AdoptForecastResult,
AskAnswer,
CandidateIntelligence,
CommandCenterView,
RequirementListView,
SupportView,
} from '../../lib/types'
const NS = '/missionmatch'
export const missionApi = {
commandCenter: () => request<CommandCenterView>(`${NS}/command-center`),
// ask sends a free text question to the closed Registry AI brain. The brain routes it, answers only
// from the tenant's own cleared data, and cites its evidence. It is capability gated, so the logged in
// session is the tenant source. A refused question comes back as a 422 the caller renders calmly.
ask: (question: string) =>
request<AskAnswer>('/ai/query', {
method: 'POST',
body: JSON.stringify({ question }),
}),
adoptForecast: (recordID: string, input: AdoptForecastInput) =>
request<AdoptForecastResult>(`${NS}/command-center/upcoming/${encodeURIComponent(recordID)}/adopt`, {
method: 'POST',
body: JSON.stringify(input),
}),
candidateIntelligence: (limit = 250) =>
request<CandidateIntelligence[]>(`${NS}/candidates/intelligence?limit=${limit}`),
requirements: () => request<RequirementListView[]>(`${NS}/requirements?limit=200`),
// Who can support this mission today: read from the stored screenMATCH qualifications for a requirement.
whoCanSupport: (requirementId: string) =>
request<SupportView[]>(`${NS}/requirements/${encodeURIComponent(requirementId)}/support`),
}