@happyvertical/smrt-dev-mcp 0.62.3 → 0.62.4
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.
|
@@ -24,6 +24,7 @@ Read this before writing queues, schedulers, mailers, uploaders, tenant filters,
|
|
|
24
24
|
|
|
25
25
|
| Intent | Page | Home package(s) | Entry point | Hand-rolled signals |
|
|
26
26
|
| --- | --- | --- | --- | --- |
|
|
27
|
+
| Workbook import and proof | [workbook-import](/intents/workbook-import.md) | [smrt-spreadsheets](/components/smrt-spreadsheets.md), [smrt-app-shell](/components/smrt-app-shell.md), [smrt-workflows](/components/smrt-workflows.md) | `@happyvertical/smrt-spreadsheets/import`: `IMPORT_PLAN_SCHEMA`, `validatePlan`, `checkPlan`, `runImport`, `ImportTarget`; shell `/import`; `createWorkflowRunJobs` | `regex:INSERT.*spreadsheet`; `regex:workbook.*rows` |
|
|
27
28
|
| Background work and retries | [background-work](/intents/background-work.md) | [smrt-jobs](/components/smrt-jobs.md), [smrt-core](/components/smrt-core.md) | `withBackgroundJobs` (`bg()`/`background()`), `SmrtJob`, `TaskRunner` | `import:bullmq`; `import:bull`; `import:bee-queue`; `import:pg-boss`; `import:kue`; `regex:FOR UPDATE SKIP LOCKED` |
|
|
28
29
|
| Scheduled and recurring runs | [scheduled-runs](/intents/scheduled-runs.md) | [smrt-jobs](/components/smrt-jobs.md), [smrt-agents](/components/smrt-agents.md) | `AgentSchedule` + `createScheduleRunner()`/`ScheduleRunner` | `import:node-cron`; `import:cron`; `import:node-schedule`; `import:agenda`; `import:croner`; `call:setInterval`; `regex:cron\.schedule\(` |
|
|
29
30
|
| Outbound email, SMS, chat messages | [outbound-messages](/intents/outbound-messages.md) | [smrt-messages](/components/smrt-messages.md), [smrt-tenancy](/components/smrt-tenancy.md) | `PersonaMessagingService.send()`, `EmailSender`/`SlackSender`/`TelegramSender`/`ZulipSender`, `UserNotificationService` | `import:nodemailer`; `import:@sendgrid/mail`; `import:twilio`; `import:@slack/web-api`; `import:resend`; `import:postmark`; `import:mailgun.js` |
|
|
@@ -37,6 +38,6 @@ Read this before writing queues, schedulers, mailers, uploaders, tenant filters,
|
|
|
37
38
|
| Inbound and outbound webhooks | [webhooks-and-events](/intents/webhooks-and-events.md) | [smrt-webhooks](/components/smrt-webhooks.md), [smrt-core](/components/smrt-core.md), [smrt-jobs](/components/smrt-jobs.md), [smrt-events](/components/smrt-events.md) | `WebhookDispatcher`, `WebhookAdminService`, `registerWebhookRuntime()`; core `createDispatchBus()` | `import:svix`; `regex:createHmac\(`; `regex:x-[a-z-]*signature` |
|
|
38
39
|
| Search, facts, extracted knowledge | [search-facts-knowledge](/intents/search-facts-knowledge.md) | [smrt-facts](/components/smrt-facts.md), [smrt-content](/components/smrt-content.md), [smrt-ingestion](/components/smrt-ingestion.md), [smrt-core](/components/smrt-core.md) | `FactCollection.reconcile()`, `collection.semanticSearch()`, smrt-ingestion models and `/server` services | `import:@pinecone-database/pinecone`; `import:pgvector`; `import:minisearch`; `import:flexsearch`; `import:lunr`; `regex:cosine_?[sS]imilarity` |
|
|
39
40
|
| Auth, users, sessions | [auth-and-users](/intents/auth-and-users.md) | [smrt-users](/components/smrt-users.md), [smrt-tenancy](/components/smrt-tenancy.md) | `SessionService`, `PasswordCredentialService`, `PermissionResolver`, `LoginAttemptLimiter`, `/sveltekit` handlers | `import:bcrypt`; `import:bcryptjs`; `import:argon2`; `import:jsonwebtoken`; `import:passport`; `import:express-session`; `import:lucia` |
|
|
40
|
-
| Prompts and AI operations | [prompts-and-ai-operations](/intents/prompts-and-ai-operations.md) | [smrt-prompts](/components/smrt-prompts.md), [smrt-core](/components/smrt-core.md), [smrt-agents](/components/smrt-agents.md) | `definePrompt()` + `resolvePrompt()` + tracked client (`createTrackedAiClient`), `PromptOverrideService`, `@smrt({ ai: { callable } })`, `SmrtObject.is()/do()/describe()` | `import:openai`; `import:@anthropic-ai/sdk`; `import:langchain`; `regex:You are an? [a-z ]+`; `regex:role:\s*['"]system['"]` |
|
|
41
|
+
| Prompts and AI operations | [prompts-and-ai-operations](/intents/prompts-and-ai-operations.md) | [smrt-prompts](/components/smrt-prompts.md), [smrt-core](/components/smrt-core.md), [smrt-agents](/components/smrt-agents.md) | `definePrompt()` + `resolvePrompt()` + tracked client (`createTrackedAiClient`), chat `runWorkflowStepTurn` for tool-free child turns, `PromptOverrideService`, `@smrt({ ai: { callable } })`, `SmrtObject.is()/do()/describe()` | `import:openai`; `import:@anthropic-ai/sdk`; `import:langchain`; `regex:You are an? [a-z ]+`; `regex:role:\s*['"]system['"]` |
|
|
41
42
|
| Polymorphic links, junctions, trees | [relationships-and-trees](/intents/relationships-and-trees.md) | [smrt-core](/components/smrt-core.md) | `SmrtJunction`/`SmrtJunctionBase`, `SmrtHierarchical`, `SmrtPolymorphicAssociation` | `regex:parent_?[iI]d\s*[:=]`; `regex:WITH RECURSIVE`; `regex:entity_?type` |
|
|
42
43
|
| Local credentials, device tokens and owner sign-in | [local-credentials-and-owner-signin](/intents/local-credentials-and-owner-signin.md) | [smrt-app-runtime](/components/smrt-app-runtime.md), [smrt-users](/components/smrt-users.md) | `openLocalMcpTokenStore()` (`smrt app token`), `claimOwner()` with the loopback `/setup` URL, `SessionService` | `import:keytar`; `import:@napi-rs/keyring`; `regex:security add-generic-password`; `regex:homedir\(\).*(token\|credential)s?[\w.-]*\.json`; `regex:~/\.[\w./-]*(token\|credential)`; `regex:expiresIn\s*:\s*['"]\d+\s*[smhd]['"]` |
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Capability
|
|
3
|
+
title: "Workbook import and proof"
|
|
4
|
+
description: "Reach for smrt-spreadsheets import planning and read-back proof, with app-shell drafts and smrt-workflows for durable owner review."
|
|
5
|
+
tags:
|
|
6
|
+
- smrt
|
|
7
|
+
- intent
|
|
8
|
+
status: draft
|
|
9
|
+
generated:
|
|
10
|
+
by: codex/smrt-5034
|
|
11
|
+
at: 2026-11-16T18:36:30Z
|
|
12
|
+
stale_after: 2027-02-14T00:00:00Z
|
|
13
|
+
audience: internal
|
|
14
|
+
evidence_level: source-inspected
|
|
15
|
+
package_version: 0.62.0
|
|
16
|
+
sources:
|
|
17
|
+
- id: s1
|
|
18
|
+
resource: https://github.com/happyvertical/smrt/blob/e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1/packages/spreadsheets/src/import/index.ts
|
|
19
|
+
path: packages/spreadsheets/src/import/index.ts
|
|
20
|
+
source_revision: e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1
|
|
21
|
+
title: "Public import exports and ImportPlan schema"
|
|
22
|
+
- id: s2
|
|
23
|
+
resource: https://github.com/happyvertical/smrt/blob/e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1/packages/spreadsheets/src/import/run.ts
|
|
24
|
+
path: packages/spreadsheets/src/import/run.ts
|
|
25
|
+
source_revision: e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1
|
|
26
|
+
title: "runImport admission, load planning and read-back proof"
|
|
27
|
+
- id: s3
|
|
28
|
+
resource: https://github.com/happyvertical/smrt/blob/e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1/packages/spreadsheets/src/import/target.ts
|
|
29
|
+
path: packages/spreadsheets/src/import/target.ts
|
|
30
|
+
source_revision: e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1
|
|
31
|
+
title: "ImportTarget atomic batches, provenance and exact totals"
|
|
32
|
+
- id: s4
|
|
33
|
+
resource: https://github.com/happyvertical/smrt/blob/e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1/packages/spreadsheets/src/testing.ts
|
|
34
|
+
path: packages/spreadsheets/src/testing.ts
|
|
35
|
+
source_revision: e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1
|
|
36
|
+
title: "createSqliteReferenceTarget contract fixture target"
|
|
37
|
+
- id: s5
|
|
38
|
+
resource: https://github.com/happyvertical/smrt/blob/e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1/packages/app-shell/src/lib/server/import-workflow.ts
|
|
39
|
+
path: packages/app-shell/src/lib/server/import-workflow.ts
|
|
40
|
+
source_revision: e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1
|
|
41
|
+
title: "Owner-scoped draft import, repeat safety and publish boundary"
|
|
42
|
+
- id: s6
|
|
43
|
+
resource: https://github.com/happyvertical/smrt/blob/e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1/packages/app-shell/src/engine/import-target.ts
|
|
44
|
+
path: packages/app-shell/src/engine/import-target.ts
|
|
45
|
+
source_revision: e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1
|
|
46
|
+
title: "createEngineImportTarget draft-host adapter"
|
|
47
|
+
- id: s7
|
|
48
|
+
resource: https://github.com/happyvertical/smrt/blob/e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1/packages/workflows/src/jobs.ts
|
|
49
|
+
path: packages/workflows/src/jobs.ts
|
|
50
|
+
source_revision: e6f72c7cc37e20d7e93c67fd6d627781b9d5b4a1
|
|
51
|
+
title: "createWorkflowRunJobs durable owner-scoped job bridge"
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
# Workbook import and proof
|
|
55
|
+
|
|
56
|
+
# Entry point
|
|
57
|
+
|
|
58
|
+
Read an `.xlsx` workbook with the `@happyvertical/spreadsheets` SDK, then use
|
|
59
|
+
`@happyvertical/smrt-spreadsheets/import`: `IMPORT_PLAN_SCHEMA` describes the
|
|
60
|
+
model's proposed `ImportPlan`; `validatePlan()` validates its semantics;
|
|
61
|
+
`checkPlan(plan, workbook)` checks the mapping against the workbook. Load with
|
|
62
|
+
`runImport({ plan, workbook, target, limits })`; it includes `checkLoaded()`
|
|
63
|
+
read-back proof. The product supplies an `ImportTarget` with structure, atomic
|
|
64
|
+
batch loading, counts, sums and source-row-ordered stored values. Test an adapter
|
|
65
|
+
against `createSqliteReferenceTarget()` from
|
|
66
|
+
`@happyvertical/smrt-spreadsheets/testing`.[^s1][^s2][^s3][^s4]
|
|
67
|
+
|
|
68
|
+
In app-shell, use the existing owner-only `/import` flow and
|
|
69
|
+
`POST /api/shell/import`. Its `app-shell.import` workflow plans from bounded
|
|
70
|
+
workbook facts and loads through `createEngineImportTarget(draftHost)` from
|
|
71
|
+
`@happyvertical/smrt-app-shell/engine`. Successful proof leaves a draft for the
|
|
72
|
+
existing publish approval. For another host, register a definition with
|
|
73
|
+
`createWorkflowRunJobs()` from `@happyvertical/smrt-workflows` before starting a
|
|
74
|
+
claim-fenced jobs runner; keep large input behind `inputRef` and `readInput`.[^s5][^s6][^s7]
|
|
75
|
+
|
|
76
|
+
# Why not hand-roll it
|
|
77
|
+
|
|
78
|
+
`runImport()` validates and admits the workbook, checks the plan, plans all
|
|
79
|
+
batches and reserves verification work before its first target mutation. It
|
|
80
|
+
refuses table-key clashes, creates structure in dependency order, loads batches
|
|
81
|
+
and proves the stored result against workbook facts. Read-back checks include
|
|
82
|
+
row counts, column sums, references and calculated values against the workbook's
|
|
83
|
+
cached results. Copying rows into a database alone provides none of that
|
|
84
|
+
proof.[^s1][^s2]
|
|
85
|
+
|
|
86
|
+
`ImportTarget` requires all-or-nothing batches and source-row provenance; money
|
|
87
|
+
uses minor units and unsafe integer/money totals remain `bigint`. The SQLite
|
|
88
|
+
reference target gives adapters a reusable contract instead of a second import
|
|
89
|
+
implementation.[^s3][^s4] App-shell records the import-owned draft before loading,
|
|
90
|
+
discards only that draft on repeat or proof failure, and keeps live publication
|
|
91
|
+
behind the existing owner approval. The workflow job bridge retains the run's
|
|
92
|
+
owner, tenant, checkpoint and claim fence across recovery, so retrying a worker
|
|
93
|
+
does not justify loading its half-built tables again.[^s5][^s6][^s7]
|
|
94
|
+
|
|
95
|
+
# Component pages
|
|
96
|
+
|
|
97
|
+
- [smrt-spreadsheets](/components/smrt-spreadsheets.md)
|
|
98
|
+
- [smrt-app-shell](/components/smrt-app-shell.md)
|
|
99
|
+
- [smrt-workflows](/components/smrt-workflows.md)
|
|
100
|
+
|
|
101
|
+
# Detection signals
|
|
102
|
+
|
|
103
|
+
- `regex:INSERT.*spreadsheet`
|
|
104
|
+
- `regex:workbook.*rows`
|
|
105
|
+
|
|
106
|
+
[^s1]: `packages/spreadsheets/src/import/index.ts` at `e6f72c7cc3`: Public import exports and ImportPlan schema.
|
|
107
|
+
[^s2]: `packages/spreadsheets/src/import/run.ts` at `e6f72c7cc3`: runImport admission, load planning and read-back proof.
|
|
108
|
+
[^s3]: `packages/spreadsheets/src/import/target.ts` at `e6f72c7cc3`: ImportTarget atomic batches, provenance and exact totals.
|
|
109
|
+
[^s4]: `packages/spreadsheets/src/testing.ts` at `e6f72c7cc3`: createSqliteReferenceTarget contract fixture target.
|
|
110
|
+
[^s5]: `packages/app-shell/src/lib/server/import-workflow.ts` at `e6f72c7cc3`: Owner-scoped draft import, repeat safety and publish boundary.
|
|
111
|
+
[^s6]: `packages/app-shell/src/engine/import-target.ts` at `e6f72c7cc3`: createEngineImportTarget draft-host adapter.
|
|
112
|
+
[^s7]: `packages/workflows/src/jobs.ts` at `e6f72c7cc3`: createWorkflowRunJobs durable owner-scoped job bridge.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-dev-mcp",
|
|
3
|
-
"version": "0.62.
|
|
3
|
+
"version": "0.62.4",
|
|
4
4
|
"description": "Development MCP server for SMRT framework knowledge, review context, architecture context, and code generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"homepage": "https://github.com/happyvertical/smrt/tree/main/packages/smrt-dev-mcp#readme",
|
|
59
59
|
"license": "MIT",
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@happyvertical/smrt-scanner": "0.62.
|
|
61
|
+
"@happyvertical/smrt-scanner": "0.62.4",
|
|
62
62
|
"@modelcontextprotocol/node": "2.1.2",
|
|
63
63
|
"@modelcontextprotocol/server": "2.4.0",
|
|
64
|
-
"@happyvertical/smrt-types": "0.62.
|
|
64
|
+
"@happyvertical/smrt-types": "0.62.4"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@happyvertical/smrt-config": "0.62.
|
|
68
|
-
"@happyvertical/smrt-core": "0.62.
|
|
67
|
+
"@happyvertical/smrt-config": "0.62.4",
|
|
68
|
+
"@happyvertical/smrt-core": "0.62.4",
|
|
69
69
|
"@happyvertical/sql": "^0.113.0",
|
|
70
70
|
"@modelcontextprotocol/client": "2.4.0",
|
|
71
71
|
"@modelcontextprotocol/conformance": "0.2.0-alpha.11",
|