intentcall_apple 0.6.0
intentcall_apple: ^0.6.0 copied to clipboard
PRE-RELEASE — Apple App Intents manifest generator from intentcall agent manifest JSON.
⚠️ Pre-release train — Highly experimental. APIs may change without notice. Not for production. Details.
intentcall_apple #
Apple platform manifest projection for IntentCall.
Current generated App Intents collect supported primitive parameters, enqueue a
pending invocation envelope, and open or wake the Flutter app for Dart registry
execution. nativeInline can call app-owned Swift code in the main app target.
dartExtensionInline is experimental scaffold-only in intentcall_platform;
it does not yet prove Dart business logic inside an App Intent extension.
This package owns Apple manifest JSON projection only. Flutter project sync and
generated Swift AppIntent artifacts live in intentcall_platform, so there is
one implementation of Flutter-native Apple wrapper generation.
Author workflow #
- Author tools — hand-written
AgentCallEntryor optional@AgentToolcodegen (intentcall_codegen). - Collect descriptors —
entry.toRegistration().descriptoror registry snapshot. - Generate manifest —
generateAppleAgentManifest(descriptors)→agent_manifest.json. - Platform wrapper — let
intentcall_platformgenerate Shortcuts / App Intents metadata that dispatches to Dart.
import 'package:intentcall_apple/intentcall_apple.dart';
final json = generateAppleAgentManifest([
entry.toRegistration().descriptor,
]);
// write to ios/Runner/agent_manifest.json
Example Swift-oriented snippet derived from manifest (hand-off to Xcode codegen):
// agent_manifest.json → App Intents (illustrative)
// Intent: app_demo_ping — "Returns pong for a message"
// Parameters: message (String, required)
Input: agent_manifest.json (platform: apple, intents[]).
Output: JSON manifest for the Flutter project sync layer.
See test/agent_manifest_generator_test.dart.