intentcall_apple 0.1.0
intentcall_apple: ^0.1.0 copied to clipboard
PRE-RELEASE — Apple App Intents manifest generator from intentcall agent manifest JSON.
⚠️ Pre-release (0.1.x) — Highly experimental. APIs may change without notice. Not for production. Details.
intentcall_apple #
Apple platform manifest codegen for intentcall (App Intents / Shortcuts export).
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 snippet — map manifest intents to Shortcuts / App Intents plist entries.
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 + documented Swift/Info.plist mapping for Siri/Shortcuts.
See test/agent_manifest_generator_test.dart.