Skip to main content

nativemind_copilot 1.4.0 copy "nativemind_copilot: ^1.4.0" to clipboard
nativemind_copilot: ^1.4.0 copied to clipboard

The NativeMind copilot for Flutter: agent panel, decisions and spending policy, voice and attachments, protocol client, OAuth / MCP connect screens.

1.4.0 #

Additive (SDD consilium.nativemind.net flows/sdd-consilium-design-oauth: the OAuth consent page and «Connected apps» in the look of the Konsilium OAuth prototype). Every new constructor parameter and field is optional and keeps the 1.3.0 look and behaviour when unset. Needs nativemind_core ^1.7.0 (NmStickyActionBar).

  • New widgets (lib/src/ui/connect/nm_consent_parts.dart): NmConnectPair (the app's initial on its colour ↔ the service's mark, a lock / tick / cross between; NmConnectPairState), NmClientBadges (verified / not verified and where the browser returns, «on this computer · localhost:PORT»), NmConsentAccount («Signed in as» + Switch), NmConsentTechDetails (collapsible key → value in monospace), NmConsentOutcome.
  • NmConsentScope(id, label, {description, required = true, icon, code}): a scope with a description or required: false switches the list to rows with «required» or a switch.
  • NmConsentRequest(…, {clientInitial, clientColor, local, denied, techDetails, warning}).
  • NmOAuthConsent(…, {body, account, note, onScopesChanged, stickyActions, showPair, outcome, serviceInitial}): a product block slot (body:) between the account and the rights, «It won't be able to», a note, technical details, «Allow read only» when every optional scope is off, Deny / Allow in an NmStickyActionBar (stickyActions, needs a bounded height).
  • NmConsentPhase.granted, .denied, .invalidClient (with outcome). Note: an exhaustive switch over NmConsentPhase without a default in an app must add these cases.
  • NmConnectedApp(…, {clientInitial, clientColor, local, redirectHost, lang, details}) and NmConnectedApps(…, {onEdit, actionsBuilder, showTitle = true, empty}): the card shows the tile, the badges, the language, a product block and «Change» / product actions.
  • 20 new texts (consentVerified … connectedEdit) in en, ru, th, zh, hi; they get an English default in the abstract class (tool/gen_text_keys.dart additive14), so nativemind_translations keeps compiling.
  • Japanese (copilot_ja.arb, every key); the delegate's languages are en, ru, th, hi, zh, ja.

1.3.0 #

Additive (SDD dropexpired.net flows/sdd-dropexpired-nativemind-framework): gaps found while moving the dropexpired.net agent panel to the framework, kept generic. No existing constructor, signature or default changed; every new option is optional and keeps the 1.2.0 behaviour when unset.

  • NmCopilotPreviewBar({required onOpen, maxLines = 1, placeholder}): the collapsed bar of a phone layout. It shows the first words of the latest agent reply as it streams («The agent is working…» before the first text) and opens the full panel on tap. It reads the NmCopilotScope controller. NmCopilotPreviewBar.replyOf(turn) gives the line.
  • NmCopilotDecisionCard(acceptLabel:, declineLabel:): button labels. Null keeps the library texts.
  • NmCopilotChangeRow(undoKey:): the key of the Undo button. Null keeps Key('copilot-change-undo').
  • NmCopilotController.adopt(conversationId, {turns = const []}): continues an existing conversation without sending anything and without calling the engine. The given turns are shown and the next message goes to that conversation. Use it instead of continueAnswer(text: '').
  • NmCopilotIssue.details (default {}; also in copyWith): the error's details, e.g. plan limit numbers. A turn that failed on a thrown NmCopilotError now passes its details to its issue; before, only lastError had them. nmIssueFromError fills the field. The library wording does not read it, so the rendering is unchanged. An issue builder slot can read it.
  • NmCopilotConfig: stepLabelBuilder, strategyLabelBuilder, memoryKeyLabelsBuilder and suggestionsBuilder receive a BuildContext (labels in the user's language). When one is set, it is used instead of the fixed stepLabel / NmStrategy.label / memoryKeyLabels / suggestions. The resolvers stepLabelOf, strategyLabelOf, memoryKeyLabelsOf and suggestionsOf are for custom designs.

Additive (SDD pbn.nativemind.net flows/sdd-pbn-feedbacks, F2): gaps found while moving the PBN agent panel to the copilot engine. Same rule: nothing existing changes; without the new options and data the panel renders as in 1.2.0.

  • Composer lock. NmCopilotController.lock(String hint) / unlock() / locked: the input, send button and suggestion chips are disabled and the composer shows hint instead of its placeholder (canSend is false, lockedHint is the hint). Programmatic ask / send still work.
  • Resumable conversation stream. A new optional engine interface NmConversationStreamEngine (watchConversation(conversationId, {lastEventId}) → NmConversationEvent(turnId, event, {userText})), implemented next to NmCopilotEngine — the engine interface itself is unchanged. NmCopilotController.resume(conversationId, {afterSeq}) follows it (watching, lastEventId, stopWatching()); NmCopilotConfig.resumeConversations does it on its own for started, opened and adopted conversations; resumeRetryDelay (2 s) paces the resubscribe after a drop, from the last id. Turns started on another device appear; replays are dropped by event id; a turn whose own send stream ends or drops (retryable) after turn goes on over the conversation stream; conversation events that arrive before the turn's id is known are held for it. receive(event) applies a pushed event.
  • Activity line. The activity event (NmActivityEvent(text, {phase, stepKey, at})) sets NmAgentTurn.activity (NmTurnActivity) while the turn runs: shown as the running step's detail when stepKey matches a running step, else as the live row (instead of «The agent is working…»); cleared when the turn ends.
  • Skipped steps. NmTurnStep.skipped (protocol state: "skipped"): a faded row with the Fugue arrow-skip glyph and «Skipped». The step's state stays wait, so the NmTurnStepState enum is unchanged (no break of exhaustive switches).
  • Elapsed seconds. NmTurnStep.startedAt and NmAgentTurn.startedAt (turn.startedAt / NmTurnEvent.startedAt): the running step and the live row show «12 s», ticking (NmCopilotElapsed, also public).
  • Error code. NmTurnStep.detailCode: the tooltip of a step's detail line (and in its semantics label).
  • Follow-ups and cancellation over the protocol. The actions event (NmActionsEvent) sets NmAgentTurn.actions (rendered since 1.2 and routed to config.onAction); the cancelled event (NmCancelledEvent) ends a turn as cancelled (e.g. stopped on another device).
  • nmDecisionFromJson / nmDecisionToJson carry note.
  • New texts stepSkipped, elapsedSeconds in the 5 languages; as additive keys they have an English default in NmCopilotL10n, so translation classes compiled against earlier versions still compile (tool/gen_text_keys.dart now also gives additive keys with placeholders a default).
  • Compatibility notes: the new events extend NmUnknownEvent (not NmCopilotEvent directly), so exhaustive switches over the sealed event type written for 1.2 stay exhaustive and 1.2-style handlers keep ignoring them; the wire names activity, actions and cancelled used to decode to a plain NmUnknownEvent and still match it. New members of NmCopilotController (lock, unlock, locked, resume, stopWatching, watching, lastEventId, receive) were chosen not to clash with known subclasses (lock(String) matches an existing PBN override).

1.2.0 #

Additive (SDD widgets.nativemind.net flows/sdd-nativemind-widgets-liendeed; carried from the LienDeed apps' ld_copilot, with the product names made options). Includes the unpublished 1.1.1 maintenance release below.

  • NmSelectedModelProvider: the on-device provider for the model picked in NmModelManager, read on every request.
  • nmManagedHybrid(models:, tools:, prompt:, remote:): on the device with the selected model, and the cloud when the platform has no on-device models, no model is selected, or it does not fit.
  • NmMeteredEngine: wraps an engine for metered guests, with a soft prompt after N answers and a callback with the server's reason when a guest turn is refused (limitCode, default ACCOUNT_REQUIRED).
  • nmPresetForDevice(desktop:, ramBytes:): the default open chat model for a device.

1.1.1 #

Maintenance release, no API or behaviour change. Checked with Flutter 3.50.0 (stable, Dart 3.14): analyzer clean apart from the SDK deprecation of package:flutter/material.dart / cupertino.dart in favour of material_ui / cupertino_ui, which stays: moving would require Flutter 3.47+ and break apps on 3.32–3.44. Dependency constraints and the SDK floor are unchanged; every dependency resolves to its latest compatible version.

  • example/example.dart: a runnable example for pub.dev.
  • Shorter pubspec description (pub.dev shows up to 180 characters).
  • homepage removed: widgets.nativemind.net is not online; repository stays.

1.1.0 #

Additive (SDD consilium.nativemind.net flows/sdd-konsilium-nativemind-framework, specification §1): no existing signature changed, every new field and flag defaults to the old behaviour.

  • Default voice-mode stop words cover every panel language (the words the «say stop» hint names: ru, en, th, hi, zh, ja, ko, ar, he, bn, km, lo, my, de, fr, it, pt, es, uk, sw).

  • Web voice (package:web, no plugins; stubs off the web): NmWebAudioRecorder (MediaRecorder, AnalyserNode level) with the new optional interface NmAudioRecorderControls (cancel, level); NmWebSpeechInput (SpeechRecognition / webkitSpeechRecognition, partial results, continuous, locale).

  • Speech output: the NmSpeechOutput port, NmWebSpeechOutput (speechSynthesis, rate, voiceName, a voice for the locale) and NmFakeSpeechOutput.

  • Defaults: nmDefaultVoiceInput(engine), nmDefaultAudioRecorder(), nmDefaultSpeechOutput(), nmDefaultAttachmentPicker() — the browser implementations on the web, null elsewhere (native ones: the separate package nativemind_copilot_media).

  • NmServerVoiceInput(onNoTranscript: …): a recording without transcript comes back as an audio draft (nmAudioDraft).

  • Web attachments: NmWebAttachmentPicker (files / images / camera, several at once, acceptFiles); nmPasteDraft(images: true) reads an image from the web clipboard; NmAttachmentDropTarget (drop files, paste images; transparent off the web). NmCopilotPanel wraps itself in it when attachments are on (NmCopilotFeatures.dropFiles); NmCopilotComposer(attachments: …) can share the panel's attachment list.

  • Voice assistant mode (#F77): NmVoiceAssistantConfig (NmCopilotConfig.voiceAssistant, default NmVoiceAssistantConfig.off), NmVoiceAssistantPhase, NmVoiceAssistantReason, NmVoiceAssistantController (listen → send → think → speak briefly → listen; stop words and new speech interrupt the speech, never the turn; silence pauses), NmVoiceAssistantBar, the header button (NmCopilotFeatures.voiceAssistant), the slot NmCopilotBuilders.voiceAssistantBar; helpers nmSpokenText, nmIsStopPhrase, nmHasStopWord.

  • Strings voiceMode* and attachDropHint in en, ru, th, hi, zh. In the abstract NmCopilotL10n they have an English default (tool/gen_text_keys.dart), so language classes built for 1.0 (nativemind_translations ≤ 1.0.2) still compile.

1.0.1 #

  • Docs: README (install, handmade authors and roles, links), migration guide, PROVENANCE.
  • pubspec: repository field so README links resolve on pub.dev.

1.0.0 #

Major release of the NativeMind framework (SDD flows/sdd-widgets-handmade, task 3.1). Guide: doc/migration-1.0.md.

  • Removed (deprecated since 0.1.0 / 0.2.0 «removed in 0.2.0»):
    • the 0.3 widgets of src/legacy/: NmAgentChat, NmChatAttachAction, NmAgentPanel, NmAgentMessageBubble, NmAgentApprovalCard, NmAgentJobSteps, NmCostFormatter, NmAgentController, NmAgentBubble, NmAgentToolTrace, NmAgentResultCard, NmAgentConfirmCard, NmAgentSuggestions, NmCopilotSheet, NmCopilotSheetController, NmCopilotResult;
    • the 0.4 conversation widgets: NmAgentStepCard, NmAgentDecisionCard, NmAgentTurnView, NmAgentConversationPanel, NmAgentLauncher and the NmAutonomyTip typedef they used;
    • the 0.4 names NmAi and NmAiL10n (use NmCopilot and NmCopilotL10n).
  • Kept: the 0.3 models (NmAgentMessage, NmAgentRole, NmAgentAction, NmAgentApproval, NmAgentJobStep, nmAgentNeedsApproval) and NmAgentConversationController (the contract NmCopilotController implements).
  • Requires nativemind_core ^1.0.0. flutter_llama comes from pub.dev (^1.2.0); the local path override was removed.
  • License: NativeMindNONC (part of the NativeMind framework).

0.2.0 #

  • Prototype engine (NmPrototypeEngine): the tool loop with NmCopilotTool and NmPromptLayers; OpenAI-compatible and Anthropic providers with streaming, tool calls and image parts; the insecure-keys guard.
  • On-device models:
    • NmLocalLlmProvider over flutter_llama 1.2 (open models only);
    • NmModelManager with NmModelPicker (download, fit check, selection);
    • NmHybridEngine: device first, the cloud when the device cannot.
  • Voice port NmVoiceInput:
    • states idle / listening / transcribing / denied / unavailable;
    • NmServerVoiceInput over engine.transcribe;
    • a fake for tests;
    • the composer mic (hidden when not configured).
  • Attachments port NmAttachmentPicker:
    • paste and links without plugins;
    • NmAttachmentPolicy limits;
    • chips with progress, remove, and 413 / 415 errors;
    • thumbnails in the user turn.
  • Native recorders and pickers are not in this package.
  • Web: the stream client no longer passes JS interop tear-offs (fixes a dart2js crash).
  • Requires nativemind_core 0.1.1 (the image, camera and clipboard-paste icons) and flutter_llama 1.2.0.

0.1.0 #

  • Package created (copilot moved out of nativemind_widgets).
  • Depends on nativemind_core instead of nativemind_widgets (light: essential icons, no plugins).
  • 23 extra languages via nativemind_translations.
0
likes
140
points
483
downloads

Documentation

API reference

Publisher

verified publisherframework.nativemind.net

Weekly Downloads

The NativeMind copilot for Flutter: agent panel, decisions and spending policy, voice and attachments, protocol client, OAuth / MCP connect screens.

Repository (GitLab)

Topics

#ai #agent #copilot #chat #mcp

License

unknown (license)

Dependencies

flutter, flutter_llama, flutter_localizations, http, http_parser, intl, nativemind_core, web

More

Packages that depend on nativemind_copilot