flowstate-epic-flowstate-community-epicdm-connector-core
Package-local agent skill for @epicdm/connector-core.
Tags
Publisher
Versions
1 version published — latest: 0.2.6
- 0.2.6publishedInvalid Date
Skill
connector-core Package Skill
Package: @epicdm/connector-core
Repository: epic-flowstate-community
Path: packages/connector-core
Version: 0.2.6
Use this published Dojo skill as the package-level entrypoint. For detailed workflows, use the package-local skills listed below.
Primary Package Workflow
Connector Core Git Kernel
Use this skill for the provider-agnostic Git connector kernel in packages/connector-core/src/git.
Source Map
src/git/index.ts: public Git kernel export surface.src/git/types.ts: adapter, connection, entity, stream, sync, webhook, and policy contracts.src/git/GitConnectionService.ts: connection row lifecycle and in-memory store.src/git/FieldPolicy.ts: field ownership/conflict policy registry.src/git/RateLimitBudget.tsandsrc/git/RedisRateLimitBudget.ts: rate-limit accounting.src/git/EntityStreamRunner.ts: backfill/incremental stream execution.src/git/InstallationTokenCache.ts: installation token cache contract and memory implementation.src/git/WebhookRouter.ts: webhook routing and event persistence.src/git/conflictResolver.ts: field-level conflict behavior.
Mental Model
The Git kernel is provider-neutral. Provider adapters supply API-specific behavior, while the kernel owns durable connection rows, stream execution, field policy, rate-limit budget, token cache abstractions, and webhook event routing.
Implementation Flow
- Start with
types.tsand confirm whether the change belongs in the provider-neutral kernel or a provider adapter. - For connection lifecycle changes, update
GitConnectionServiceand its store interface together. - For sync execution changes, follow
EntityStreamRunnerfrom stream request to batch handling and summary output. - For ownership/conflict behavior, update
FieldPolicyand conflict resolver logic as a pair. - For production rate limiting, prefer
RedisRateLimitBudget; use memory implementations only for tests or local-only hosts. - For webhook behavior, preserve idempotent event storage and route result status semantics.
Guardrails
- Do not import provider-specific code into the Git kernel.
- Keep tenancy checks explicit on connection rows and webhook routing.
- Treat installation tokens as short-lived secrets; do not persist them in logs or skill examples.
- Keep in-memory stores available for tests, but do not let them become the only production path.
- Update
src/git/index.tswhen adding a public kernel contract.
Verification
yarn workspace @epicdm/connector-core test -- Git
yarn workspace @epicdm/connector-core typecheck
If public Git kernel exports change, also build connector-core and typecheck downstream connector consumers.
Package Skill Inventory
Skill Inventory: @epicdm/connector-core
Package path: packages/connector-core.
Skillset
| Skill | Use When | Main Source Evidence |
|---|---|---|
connector-core | Choosing the right connector-core workflow or guarding package boundaries | package.json, src/core/index.ts, src/react/index.ts, src/index.ts |
connector-core-integration-lifecycle | Wiring connect, OAuth callback, sync execution, soft delete, or sync config persistence | src/IntegrationService.ts, src/SyncConfigService.ts, src/oauth, src/types.ts |
connector-core-manifest-connectors | Creating or debugging declarative manifest connectors | manifests/*.yaml, src/manifest, src/runtime, src/pagination, src/sync |
connector-core-provider-development | Adding or changing a TypeScript sync provider | src/SyncProvider.ts, src/BaseSyncProvider.ts, src/SyncProviderRegistry.ts, src/providers |
connector-core-git-kernel | Working on provider-agnostic Git connection/sync infrastructure | src/git/* |
connector-core-react-host-ui | Integrating connector UI in Electron/Next/React hosts | src/react/index.ts, src/components, src/hooks, src/oauth/useOAuthConnection.ts |
Composition Notes
- Use
connector-core-integration-lifecyclebefore host UI or backend connector-service work. - Use
connector-core-manifest-connectorsfor YAML-driven API connectors andconnector-core-provider-developmentfor code-backed providers. - Use
connector-core-git-kernelbefore editing GitHub/Forgejo/GitLab-style adapters. - Use
connector-core-react-host-uionly in UI hosts; keep React imports out of service-side code.
Publication Readiness
Status: drafted, pending verification.
Before Dojo publication, rebuild package Dojo artifacts from this reviewed skillset and verify downstream consumers that rely on connector-core contracts.
Review Gate
Package Skill Review: @epicdm/connector-core
Package path: packages/connector-core.
Review Result
Status: drafted, source-backed, verified with one package-script lint blocker, pending publication.
The skillset is workflow-shaped around connector lifecycle, declarative manifests, provider development, Git kernel infrastructure, and React host UI.
Checks
- Source review: completed from package exports, core/react barrels, integration service, sync config service, provider registry, base provider, manifest runtime/schema, Git kernel, React hooks/components, and generated artifact drift.
- Skill inventory: completed.
- Skill files: completed.
- Verification: completed.
- Generated Dojo replacement: pending.
- Cloud Dojo publication: pending.
Verification Commands
Commands run:
yarn workspace @epicdm/connector-core test
yarn workspace @epicdm/connector-core typecheck
yarn workspace @epicdm/connector-core build
yarn workspace @epicdm/connector-core lint
yarn nx build @epicdm/connector-core
yarn workspace @epicdm/flowstate-connector typecheck
Results:
- Skill file ASCII scan passed.
- Tests passed: 69 suites, 1055 tests passed, 7 skipped.
- Typecheck passed.
- Package build passed with existing esbuild direct-eval warnings from
src/manifest/load.ts. - Nx build passed; dependent
flowstate-cryptoandflowstate-collectionsbuilds came from cache; Nx Cloud reported the existing unconnected-workspace 401. - Downstream
@epicdm/flowstate-connectortypecheck passed. - Lint did not run because the package script resolved
eslintas missing:command not found: eslint.
Optional contract drift checks:
rg -n "@epicdm/connector-core|connector-core" packages docs docker
rg -n "connector-core.d.ts|registerBuiltInProviders|getBuiltInProviderIds" packages/flowstate-connector packages/connector-core
Publication Gate
Do not publish existing .flowstate/dojo artifacts until they are rebuilt from reviewed package skills.
Usage
Start with this skill to understand the package purpose, then use the package-local focused skills for specific workflows. Keep this Dojo version aligned with packages/connector-core/package.json. Do not treat generated feature lists as lessons; use workflow evidence from CODE-REVIEW.md, SKILL-INVENTORY.md, and REVIEW.md.
Install
Run this in your project to install via CLI:
fscloud dojo skill install flowstate-epic-flowstate-community-epicdm-connector-core --target <target> --out ./skillsReplace <target> with your agent target identifier. See the CLI docs for details.