Skip to content

Feature/authenticate extension calls#525

Open
Joabesv wants to merge 50 commits into
mainfrom
feature/authenticate-extension-calls
Open

Feature/authenticate extension calls#525
Joabesv wants to merge 50 commits into
mainfrom
feature/authenticate-extension-calls

Conversation

@Joabesv

@Joabesv Joabesv commented Jul 12, 2026

Copy link
Copy Markdown
Member

Descrição

Tickets relacionados

Como testar esse PR

Joabesv added 30 commits June 7, 2026 14:06
Keep connectors in-app for first iteration. Reverts app files to
migration versions using @/connectors/* and @/errors/*, restores
apps/core connectors and errors, drops @next/connectors dep from
core and extension package.json. Standalone packages/connectors
preserved for later use.
Duplicate logger was left at src/logger.ts by a merge conflict.
Removes it and updates server.ts and two job/route imports to
use @/utils/logger.js.
Enable allowImportingTsExtensions and switch internal relative
imports from .js to .ts to match the package's direct-.ts exports.
Remove config.ts and configureConnectors/getConnectorConfig.
UfabcParserConnector now takes (baseURL, requesterKey, traceId).
SigaaConnector, UfabcMatriculaConnector, MoodleConnector now take
(baseURL, traceId) instead of hardcoding URLs. Drop their singleton
caching since baseURL is per-call. Remove ./config from package
exports.
Remove schemas/index.ts barrel. Add per-schema subpath exports
(./schemas/next-api, ./schemas/ufabc-parser, ./schemas/moodle)
to package.json. Errors remains the only barrel export.
Replace node:timers/promises sleep with globalThis.setTimeout-based
Promise in moodle connector and node:crypto randomUUID with
globalThis.crypto.randomUUID in base-aws-connector.
Joabesv added 20 commits June 27, 2026 15:43
Add defaultHeaders support to BaseRequester (merged into every
outgoing request before global-trace-id). AIProxyConnector now
takes an options object (baseURL, defaultHeaders, globalTraceId)
instead of a dedicated serviceHeader param; callers pass
x-service-id via defaultHeaders.
Replace extension's ofetch-based services with the shared
@next/connectors package:

- services/ufabc-parser.ts: use UfabcParserConnector (baseURL from
  WXT_UFABC_PARSER_URL); getUFComponents now returns
  UfabcParserComponent from @next/connectors/schemas/ufabc-parser.
- services/next.ts: use NextApiConnector (baseURL from
  WXT_UFABC_NEXT_URL); re-export schema types Component,
  MatriculaStudent, SigStudent, UpdatedStudent; keep view-specific
  local types (TeacherReview, SubjectReview, Grade).
- KicksModal.vue: adopt UfabcParserComponent fields (ufComponentId,
  shift) replacing legacy UFSeasonComponents (UFComponentId, turno).
- Add ./next-api to package exports; make UfabcParserConnector
  traceId optional to support browser long-lived instances.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant