arcmira 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -12
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/channels/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/channels/client/Client.js +1 -1
- package/dist/cjs/api/resources/channels/resources/videos/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/channels/resources/videos/client/Client.js +1 -1
- package/dist/cjs/api/resources/entities/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/entities/client/Client.js +2 -2
- package/dist/cjs/api/resources/feedback/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/feedback/client/Client.js +2 -2
- package/dist/cjs/api/resources/feedback/client/requests/SubmitFeedbackRequest.d.ts +10 -10
- package/dist/cjs/api/resources/feedback/client/requests/SubmitFeedbackRequest.js +4 -4
- package/dist/cjs/api/resources/me/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/me/client/Client.js +1 -1
- package/dist/cjs/api/resources/me/client/requests/UpdateSettingsMeRequest.d.ts +2 -2
- package/dist/cjs/api/resources/me/client/requests/UpdateSettingsMeRequest.js +1 -1
- package/dist/cjs/api/resources/mentions/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/mentions/client/Client.js +2 -2
- package/dist/cjs/api/resources/mentions/client/requests/ListMentionsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/monitors/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/monitors/client/Client.js +1 -1
- package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorsRequest.js +1 -1
- package/dist/cjs/api/resources/monitors/client/requests/UpdateMonitorsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/monitors/client/requests/UpdateMonitorsRequest.js +1 -1
- package/dist/cjs/api/resources/recommendations/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/recommendations/client/Client.js +1 -1
- package/dist/cjs/api/resources/transcripts/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/transcripts/client/Client.js +4 -4
- package/dist/cjs/api/resources/transcripts/client/requests/GetTranscriptsRequest.d.ts +3 -3
- package/dist/cjs/api/resources/transcripts/types/GetTranscriptsRequestQuality.d.ts +1 -1
- package/dist/cjs/api/resources/transcripts/types/GetTranscriptsRequestQuality.js +1 -1
- package/dist/cjs/api/types/Alert.d.ts +10 -7
- package/dist/cjs/api/types/Alert.js +1 -1
- package/dist/cjs/api/types/BadRankingChange.d.ts +3 -3
- package/dist/cjs/api/types/ChannelSponsor.d.ts +1 -1
- package/dist/cjs/api/types/ChannelSponsorsResponse.d.ts +4 -0
- package/dist/cjs/api/types/DeliveryIssueChange.d.ts +1 -1
- package/dist/cjs/api/types/Entity.d.ts +2 -2
- package/dist/cjs/api/types/EntityDetailRecommendationsSummary.d.ts +2 -2
- package/dist/cjs/api/types/EntityMomentumResponse.d.ts +4 -0
- package/dist/cjs/api/types/EntityRef.d.ts +1 -1
- package/dist/cjs/api/types/EntityResolveResponse.d.ts +5 -5
- package/dist/cjs/api/types/EntityResolveResponse.js +1 -1
- package/dist/cjs/api/types/Error_.d.ts +4 -0
- package/dist/cjs/api/types/FeedbackReadbackCorrection.d.ts +1 -1
- package/dist/cjs/api/types/FeedbackReadbackResponse.d.ts +1 -1
- package/dist/cjs/api/types/MeResponse.d.ts +8 -8
- package/dist/cjs/api/types/Mention.d.ts +1 -1
- package/dist/cjs/api/types/MentionListResponse.d.ts +1 -1
- package/dist/cjs/api/types/MissedAlertChange.d.ts +1 -1
- package/dist/cjs/api/types/Monitor.d.ts +1 -1
- package/dist/cjs/api/types/NamedEntityRef.d.ts +1 -1
- package/dist/cjs/api/types/{TranscriptPurchaseQuote.d.ts → PremiumQuote.d.ts} +9 -7
- package/dist/cjs/api/types/{TranscriptPurchaseQuote.js → PremiumQuote.js} +6 -6
- package/dist/cjs/api/types/Recommendation.d.ts +3 -3
- package/dist/cjs/api/types/RecommendationListResponse.d.ts +1 -1
- package/dist/cjs/api/types/RefusedQuote.d.ts +3 -3
- package/dist/cjs/api/types/ResolveCandidate.d.ts +6 -6
- package/dist/cjs/api/types/ResolveCandidate.js +1 -1
- package/dist/cjs/api/types/ResolveSuggestion.d.ts +8 -8
- package/dist/cjs/api/types/ResolveSuggestion.js +2 -2
- package/dist/cjs/api/types/SignupVerifiedResponse.d.ts +1 -1
- package/dist/cjs/api/types/TranscriptFailed.d.ts +5 -5
- package/dist/cjs/api/types/TranscriptFailed.js +1 -1
- package/dist/cjs/api/types/TranscriptJob.d.ts +10 -10
- package/dist/cjs/api/types/TranscriptJob.js +3 -3
- package/dist/cjs/api/types/TranscriptQuote.d.ts +1 -1
- package/dist/cjs/api/types/TranscriptRequestListResponse.d.ts +3 -0
- package/dist/cjs/api/types/TranscriptResponse.d.ts +7 -3
- package/dist/cjs/api/types/TranscriptSearchResponse.d.ts +4 -0
- package/dist/cjs/api/types/TranscriptVideo.d.ts +1 -1
- package/dist/cjs/api/types/WrongClassificationChange.d.ts +1 -1
- package/dist/cjs/api/types/WrongEntityChange.d.ts +2 -2
- package/dist/cjs/api/types/index.d.ts +1 -1
- package/dist/cjs/api/types/index.js +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cli/main.js +21 -11
- package/dist/cli/operations.js +6 -6
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/channels/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/channels/client/Client.mjs +1 -1
- package/dist/esm/api/resources/channels/resources/videos/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/channels/resources/videos/client/Client.mjs +1 -1
- package/dist/esm/api/resources/entities/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/entities/client/Client.mjs +2 -2
- package/dist/esm/api/resources/feedback/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/feedback/client/Client.mjs +2 -2
- package/dist/esm/api/resources/feedback/client/requests/SubmitFeedbackRequest.d.mts +10 -10
- package/dist/esm/api/resources/feedback/client/requests/SubmitFeedbackRequest.mjs +4 -4
- package/dist/esm/api/resources/me/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/me/client/Client.mjs +1 -1
- package/dist/esm/api/resources/me/client/requests/UpdateSettingsMeRequest.d.mts +2 -2
- package/dist/esm/api/resources/me/client/requests/UpdateSettingsMeRequest.mjs +1 -1
- package/dist/esm/api/resources/mentions/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/mentions/client/Client.mjs +2 -2
- package/dist/esm/api/resources/mentions/client/requests/ListMentionsRequest.d.mts +1 -1
- package/dist/esm/api/resources/monitors/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/monitors/client/Client.mjs +1 -1
- package/dist/esm/api/resources/monitors/client/requests/CreateMonitorsRequest.d.mts +2 -2
- package/dist/esm/api/resources/monitors/client/requests/CreateMonitorsRequest.mjs +1 -1
- package/dist/esm/api/resources/monitors/client/requests/UpdateMonitorsRequest.d.mts +2 -2
- package/dist/esm/api/resources/monitors/client/requests/UpdateMonitorsRequest.mjs +1 -1
- package/dist/esm/api/resources/recommendations/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/recommendations/client/Client.mjs +1 -1
- package/dist/esm/api/resources/transcripts/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/transcripts/client/Client.mjs +4 -4
- package/dist/esm/api/resources/transcripts/client/requests/GetTranscriptsRequest.d.mts +3 -3
- package/dist/esm/api/resources/transcripts/types/GetTranscriptsRequestQuality.d.mts +1 -1
- package/dist/esm/api/resources/transcripts/types/GetTranscriptsRequestQuality.mjs +1 -1
- package/dist/esm/api/types/Alert.d.mts +10 -7
- package/dist/esm/api/types/Alert.mjs +1 -1
- package/dist/esm/api/types/BadRankingChange.d.mts +3 -3
- package/dist/esm/api/types/ChannelSponsor.d.mts +1 -1
- package/dist/esm/api/types/ChannelSponsorsResponse.d.mts +4 -0
- package/dist/esm/api/types/DeliveryIssueChange.d.mts +1 -1
- package/dist/esm/api/types/Entity.d.mts +2 -2
- package/dist/esm/api/types/EntityDetailRecommendationsSummary.d.mts +2 -2
- package/dist/esm/api/types/EntityMomentumResponse.d.mts +4 -0
- package/dist/esm/api/types/EntityRef.d.mts +1 -1
- package/dist/esm/api/types/EntityResolveResponse.d.mts +5 -5
- package/dist/esm/api/types/EntityResolveResponse.mjs +1 -1
- package/dist/esm/api/types/Error_.d.mts +4 -0
- package/dist/esm/api/types/FeedbackReadbackCorrection.d.mts +1 -1
- package/dist/esm/api/types/FeedbackReadbackResponse.d.mts +1 -1
- package/dist/esm/api/types/MeResponse.d.mts +8 -8
- package/dist/esm/api/types/Mention.d.mts +1 -1
- package/dist/esm/api/types/MentionListResponse.d.mts +1 -1
- package/dist/esm/api/types/MissedAlertChange.d.mts +1 -1
- package/dist/esm/api/types/Monitor.d.mts +1 -1
- package/dist/esm/api/types/NamedEntityRef.d.mts +1 -1
- package/dist/esm/api/types/{TranscriptPurchaseQuote.d.mts → PremiumQuote.d.mts} +9 -7
- package/dist/esm/api/types/{TranscriptPurchaseQuote.mjs → PremiumQuote.mjs} +5 -5
- package/dist/esm/api/types/Recommendation.d.mts +3 -3
- package/dist/esm/api/types/RecommendationListResponse.d.mts +1 -1
- package/dist/esm/api/types/RefusedQuote.d.mts +3 -3
- package/dist/esm/api/types/ResolveCandidate.d.mts +6 -6
- package/dist/esm/api/types/ResolveCandidate.mjs +1 -1
- package/dist/esm/api/types/ResolveSuggestion.d.mts +8 -8
- package/dist/esm/api/types/ResolveSuggestion.mjs +2 -2
- package/dist/esm/api/types/SignupVerifiedResponse.d.mts +1 -1
- package/dist/esm/api/types/TranscriptFailed.d.mts +5 -5
- package/dist/esm/api/types/TranscriptFailed.mjs +1 -1
- package/dist/esm/api/types/TranscriptJob.d.mts +10 -10
- package/dist/esm/api/types/TranscriptJob.mjs +3 -3
- package/dist/esm/api/types/TranscriptQuote.d.mts +1 -1
- package/dist/esm/api/types/TranscriptRequestListResponse.d.mts +3 -0
- package/dist/esm/api/types/TranscriptResponse.d.mts +7 -3
- package/dist/esm/api/types/TranscriptSearchResponse.d.mts +4 -0
- package/dist/esm/api/types/TranscriptVideo.d.mts +1 -1
- package/dist/esm/api/types/WrongClassificationChange.d.mts +1 -1
- package/dist/esm/api/types/WrongEntityChange.d.mts +2 -2
- package/dist/esm/api/types/index.d.mts +1 -1
- package/dist/esm/api/types/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/llms.txt +1 -1
- package/package.json +7 -3
- package/reference.md +16 -16
- package/skills/arcmira/SKILL.md +4 -4
- package/skills/company-watch/SKILL.md +23 -16
- package/skills/compare-shows/SKILL.md +2 -2
- package/skills/find-quotes/SKILL.md +7 -7
- package/skills/person-research/SKILL.md +5 -5
- package/skills/sponsor-research/SKILL.md +5 -4
package/reference.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Generated from `fern/openapi.json` and the public SDK overlay. Run `python3 scripts/build-reference.py`.
|
|
4
4
|
|
|
5
|
-
Transcript reads return `state: ready` (200) or `state: pending` (202). A Premium read
|
|
5
|
+
Transcript reads return `state: ready` (200) or `state: pending` (202). A Premium read of a video not transcribed yet starts transcribing it, using credits from the account's plan and then its on-demand budget; on `pending`, read again after `Retry-After`. Repeated reads join the same job and never use credits twice. TypeScript uses `.withRawResponse()` for HTTP status and headers. Python uses `.with_raw_response`.
|
|
6
6
|
|
|
7
7
|
Reads take ids: `entity_id` (`ent_N`) and `channel_id` (`UC` plus 22 characters). Resolve a name with `entities.resolve` first. Dated reads take `after` (inclusive) and `before` (exclusive).
|
|
8
8
|
|
|
@@ -16,7 +16,7 @@ Health check
|
|
|
16
16
|
|
|
17
17
|
`GET /v1/me`
|
|
18
18
|
|
|
19
|
-
Available even when the account has exhausted its usage allowance. Returns the credential making the request (key_id, key_label, credential_kind), the masked account email, the tier, scopes, rate limit,
|
|
19
|
+
Available even when the account has exhausted its usage allowance. Returns the credential making the request (key_id, key_label, credential_kind), the masked account email, the tier, scopes, rate limit, usage with period_resets_at, and account settings. usage.credits is the primary measure: credits from the plan, then the on-demand budget. The row fields restate it at 4 credits a row. settings.transcripts is what a transcript request that names no parameter of its own receives: every key of the account resolves against it.
|
|
20
20
|
|
|
21
21
|
## me.updateSettings
|
|
22
22
|
|
|
@@ -32,7 +32,7 @@ Sets the account defaults every key of the account resolves against. Send only t
|
|
|
32
32
|
|
|
33
33
|
`GET /v1/entities/resolve`
|
|
34
34
|
|
|
35
|
-
Call this before passing an id to about, by, entity_ids, channel_ids or channel; those filters refuse names with id_required. Pass context with the user's own words about the name ("the startup bank", "on My First Million"). The answer is one of three: best (the name means one
|
|
35
|
+
Call this before passing an id to about, by, entity_ids, channel_ids or channel; those filters refuse names with id_required. Pass context with the user's own words about the name ("the startup bank", "on My First Million"). The answer is one of three: best (the name means one entity: use it and name it), suggested (no entity is certain but one stands out, with reason and evidence: use it and tell the user you assumed it), or ask (several entities fit: show ask.options, or check every option id and answer per entity). For a show pass type=channel and use the youtube_channel_id; for a brand or a person use the id. Free; uses no credits.
|
|
36
36
|
|
|
37
37
|
| Field | Location | Required | Type |
|
|
38
38
|
|---|---|---|---|
|
|
@@ -55,7 +55,7 @@ Returns the canonical entity envelope for an ent_{n} or numeric id, following me
|
|
|
55
55
|
|
|
56
56
|
`GET /v1/mentions`
|
|
57
57
|
|
|
58
|
-
Cursor-paginated mentions filtered by entity (entity_id is required; resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter), channel (channel_id), text query, sentiment, appearance flag, and publication window [after, before). The signed continuation binds the route, filters, caller and visibility; invalid or old cursors return invalid_cursor. A first-page ID fence excludes later insertions, including old-date backfills. Edits and deletions to existing
|
|
58
|
+
Cursor-paginated mentions filtered by entity (entity_id is required; resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter), channel (channel_id), text query, sentiment, appearance flag, and publication window [after, before). The signed continuation binds the route, filters, caller and visibility; invalid or old cursors return invalid_cursor. A first-page ID fence excludes later insertions, including old-date backfills. Edits and deletions to existing mentions remain live. Positions are start_seconds and end_seconds (integer seconds; 0 means full episode). is_appearance filtering applies to person entities only; passing is_appearance=true for any other type returns a 400 (appearances_person_only). details=full attaches per-mention commercial recommendations and requires a Pro+ plan.
|
|
59
59
|
|
|
60
60
|
| Field | Location | Required | Type |
|
|
61
61
|
|---|---|---|---|
|
|
@@ -74,7 +74,7 @@ Cursor-paginated mentions filtered by entity (entity_id is required; resolve a n
|
|
|
74
74
|
|
|
75
75
|
`GET /v1/recommendations`
|
|
76
76
|
|
|
77
|
-
Cursor-paginated commercial mentions (sponsored, organic and neutral mentions) filtered by entity (entity_id is required; resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter), channel (channel_id), class, confidence, and publication window [after, before). The signed continuation binds the route, filters, caller and visibility; invalid or old cursors return invalid_cursor. A first-page ID fence excludes later insertions, including old-date backfills. Edits and deletions to existing
|
|
77
|
+
Cursor-paginated commercial mentions (sponsored, organic and neutral mentions) filtered by entity (entity_id is required; resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter), channel (channel_id), class, confidence, and publication window [after, before). The signed continuation binds the route, filters, caller and visibility; invalid or old cursors return invalid_cursor. A first-page ID fence excludes later insertions, including old-date backfills. Edits and deletions to existing recommendations remain live. Requires a Pro+ plan. Positions are start_seconds and end_seconds (integer seconds).
|
|
78
78
|
|
|
79
79
|
| Field | Location | Required | Type |
|
|
80
80
|
|---|---|---|---|
|
|
@@ -92,7 +92,7 @@ Cursor-paginated commercial mentions (sponsored, organic and neutral mentions) f
|
|
|
92
92
|
|
|
93
93
|
`POST /v1/feedback`
|
|
94
94
|
|
|
95
|
-
Attach corrections to the exact query you ran: pass the feedback type, the query object you sent, and optional per-item corrections. Public submissions are recorded for human review (status "logged"); nothing is auto-applied. Read the review status back later via GET /v1/feedback/{feedback_id}. recommendations and channel_sponsors feedback types require a Pro+ plan; every other type needs read. monitor_alert feedback targets fired
|
|
95
|
+
Attach corrections to the exact query you ran: pass the feedback type, the query object you sent, and optional per-item corrections. Public submissions are recorded for human review (status "logged"); nothing is auto-applied. Read the review status back later via GET /v1/feedback/{feedback_id}. recommendations and channel_sponsors feedback types require a Pro+ plan; every other type needs read. monitor_alert feedback targets fired alerts: query carries monitor_id and/or tracker_id and/or alert_id, corrections target the alert id, and every referenced alert must belong to the caller (otherwise 404 alert_not_found). missed_alert corrections are expectations with nothing to target: omit the correction id and put { source_url, approximate_timestamp_seconds?, entity_id? } in suggested_change. delivery_issue corrections may carry { channel } in suggested_change. experience feedback says how a task went as a whole rather than correcting a result: it requires category and notes, refuses corrections (400 invalid_feedback_request), and needs no query. category and mcp_call_id, when sent, are recorded in the stored query.
|
|
96
96
|
|
|
97
97
|
| Field | Location | Required | Type |
|
|
98
98
|
|---|---|---|---|
|
|
@@ -113,7 +113,7 @@ Attach corrections to the exact query you ran: pass the feedback type, the query
|
|
|
113
113
|
|
|
114
114
|
`GET /v1/feedback/{feedback_id}`
|
|
115
115
|
|
|
116
|
-
Returns the submission (id, type, query, notes, created_at) plus its
|
|
116
|
+
Returns the submission (id, type, query, notes, created_at) plus its corrections, each with a review status in the public vocabulary: pending_review, needs_information, accepted, accepted_with_changes, rejected, withdrawn, applied, reverted (accepted means a reviewer agreed; applied means the change is live in the index). Only the submitting user's keys can read a submission; unknown ids and other users' submissions both return 404 (never 403).
|
|
117
117
|
|
|
118
118
|
| Field | Location | Required | Type |
|
|
119
119
|
|---|---|---|---|
|
|
@@ -136,7 +136,7 @@ Rollup of recurring sponsors for a YouTube channel, ordered by ad read count. On
|
|
|
136
136
|
|
|
137
137
|
`GET /v1/search`
|
|
138
138
|
|
|
139
|
-
Search indexed YouTube and podcast transcripts for short spoken slices. Each result includes spoken text, a watch URL, and a publish date. Scope with channel_ids (or channel) and entity_ids (a person id filters to that person's appearances); narrow to passages about entities with about, to a speaker with by, and to sponsored, organic or mention passages with kind. Every filter takes ids, never names: resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter. Results carry names beside ids (filters.about, filters.by, chunk about and speakers_by). Use one topic per call. Search results include text on every plan within the plan's publication-date window. Explicitly requesting source=arcmira_premium on a plan without Premium transcripts is refused with filter_requires_paid. An after later than the plan's freshness gate is refused with freshness_requires_paid rather than widened.
|
|
139
|
+
Search indexed YouTube and podcast transcripts for short spoken slices. Each result includes spoken text, a watch URL, and a publish date. Scope with channel_ids (or channel) and entity_ids (a person id filters to that person's appearances); narrow to passages about entities with about, to a speaker with by, and to sponsored, organic or mention passages with kind. Every filter takes ids, never names: resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter. Results carry names beside ids (filters.about, filters.by, chunk about and speakers_by). Use one topic per call. Search results include text on every plan within the plan's publication-date window. Explicitly requesting source=arcmira_premium on a plan without Premium transcripts is refused with filter_requires_paid. An after later than the plan's freshness gate is refused with freshness_requires_paid rather than widened. Uses 4 credits per chunk returned past the first 5. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
|
|
140
140
|
|
|
141
141
|
| Field | Location | Required | Type |
|
|
142
142
|
|---|---|---|---|
|
|
@@ -156,7 +156,7 @@ Search indexed YouTube and podcast transcripts for short spoken slices. Each res
|
|
|
156
156
|
|
|
157
157
|
`GET /v1/entities/{id}/momentum`
|
|
158
158
|
|
|
159
|
-
Mentions in the last 7 and 30 days against the prior 30, an absolute-delta verdict (accelerating, flat, fading, none), the newest media date, and the top shows in the window. It counts the shows we index, not the whole internet, and it is a count, not a score. On a Pro+ plan the card also carries paid_vs_organic; otherwise that field is absent and access names the gate.
|
|
159
|
+
Mentions in the last 7 and 30 days against the prior 30, an absolute-delta verdict (accelerating, flat, fading, none), the newest media date, and the top shows in the window. It counts the shows we index, not the whole internet, and it is a count, not a score. On a Pro+ plan the card also carries paid_vs_organic; otherwise that field is absent and access names the gate. Free; uses no credits. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
|
|
160
160
|
|
|
161
161
|
| Field | Location | Required | Type |
|
|
162
162
|
|---|---|---|---|
|
|
@@ -166,7 +166,7 @@ Mentions in the last 7 and 30 days against the prior 30, an absolute-delta verdi
|
|
|
166
166
|
|
|
167
167
|
`GET /v1/channels/{channel_id}/coverage`
|
|
168
168
|
|
|
169
|
-
How many videos of a YouTube channel are searchable, the newest publish date among them, and the split by transcript source class. Call it when a search or mention lookup came back empty, before telling anyone we do not cover a show, and cite indexed_through as the as-of date for mentions and search_indexed_through for transcript search. It cannot request indexing; channel backfill is not available yet. Free
|
|
169
|
+
How many videos of a YouTube channel are searchable, the newest publish date among them, and the split by transcript source class. Call it when a search or mention lookup came back empty, before telling anyone we do not cover a show, and cite indexed_through as the as-of date for mentions and search_indexed_through for transcript search. It cannot request indexing; channel backfill is not available yet. Free; uses no credits. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
|
|
170
170
|
|
|
171
171
|
| Field | Location | Required | Type |
|
|
172
172
|
|---|---|---|---|
|
|
@@ -176,7 +176,7 @@ How many videos of a YouTube channel are searchable, the newest publish date amo
|
|
|
176
176
|
|
|
177
177
|
`GET /v1/channels/{channel_id}/videos`
|
|
178
178
|
|
|
179
|
-
The indexed videos of a YouTube channel, newest first, each with its video_id, title, publish date, duration, view count, and watch_url on arcmira.com. Pass next_cursor as cursor to continue. The signed token binds the route, filters, caller and visibility; invalid or old tokens return invalid_cursor. A first-page media ID fence excludes later insertions, including old-date backfills; edits and deletions to existing
|
|
179
|
+
The indexed videos of a YouTube channel, newest first, each with its video_id, title, publish date, duration, view count, and watch_url on arcmira.com. Pass next_cursor as cursor to continue. The signed token binds the route, filters, caller and visibility; invalid or old tokens return invalid_cursor. A first-page media ID fence excludes later insertions, including old-date backfills; edits and deletions to existing videos remain live. Call it for the latest or most recent episode of a show, or to list what a show published in a window, then pass a video_id to GET /v1/mentions/counts video_ids for what that episode mentions or to GET /v1/transcripts/{video_id} to read it. indexed_through is the newest date we hold for the channel. An empty list means nothing is indexed; channel backfill is not available yet. Uses 4 credits per video returned past the first 5. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
|
|
180
180
|
|
|
181
181
|
| Field | Location | Required | Type |
|
|
182
182
|
|---|---|---|---|
|
|
@@ -190,7 +190,7 @@ The indexed videos of a YouTube channel, newest first, each with its video_id, t
|
|
|
190
190
|
|
|
191
191
|
`GET /v1/mentions/counts`
|
|
192
192
|
|
|
193
|
-
A small ranked table of entity and channel counts, all-time unless after is set. Pass channel_ids for what shows talk about and entity_types to match the question (topic for subjects, person for guests, organization,product for brands). Pass video_ids with one id from GET /v1/channels/{channel_id}/videos for what a single episode mentions. Two or more channel_ids also return shared, the entities on more than one of them ranked by the smallest per-channel count, which is true overlap. An after later than the plan's freshness gate is refused with freshness_requires_paid rather than widened.
|
|
193
|
+
A small ranked table of entity and channel counts, all-time unless after is set. Pass channel_ids for what shows talk about and entity_types to match the question (topic for subjects, person for guests, organization,product for brands). Pass video_ids with one id from GET /v1/channels/{channel_id}/videos for what a single episode mentions. Two or more channel_ids also return shared, the entities on more than one of them ranked by the smallest per-channel count, which is true overlap. An after later than the plan's freshness gate is refused with freshness_requires_paid rather than widened. Uses 4 credits per ranked entry returned past the first 5. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
|
|
194
194
|
|
|
195
195
|
| Field | Location | Required | Type |
|
|
196
196
|
|---|---|---|---|
|
|
@@ -213,7 +213,7 @@ All monitors for the account with tracker counts, alert counts for the current c
|
|
|
213
213
|
|
|
214
214
|
`POST /v1/monitors`
|
|
215
215
|
|
|
216
|
-
Creating with notify_webhook: true and a webhook_url enables HMAC-signed webhook delivery and returns the signing secret (monitor.webhook_secret) in this response. Store it securely. A retry with the original Idempotency-Key recovers the same secret for up to 24 hours while it remains the current secret or the valid previous secret. An expired or displaced secret returns 409 idempotency_result_expired without rotating again. Reads do not expose the secret. All subsequent reads expose only webhook_secret_set and webhook_secret_hint.
|
|
216
|
+
Creating with notify_webhook: true and a webhook_url enables HMAC-signed webhook delivery and returns the signing secret (monitor.webhook_secret) in this response. Store it securely. A retry with the original Idempotency-Key recovers the same secret for up to 24 hours while it remains the current secret or the valid previous secret. An expired or displaced secret returns 409 idempotency_result_expired without rotating again. Reads do not expose the secret. All subsequent reads expose only webhook_secret_set and webhook_secret_hint. Creating monitors and trackers is free. Each alert uses 25 credits once, however many channels and recipients deliver it: credits from your plan, then your on-demand budget. When the account is out of credits, alerts wait instead of sending.
|
|
217
217
|
|
|
218
218
|
| Field | Location | Required | Type |
|
|
219
219
|
|---|---|---|---|
|
|
@@ -401,7 +401,7 @@ The newest limit alert deliveries for the tracker (default 25, at most 100), as
|
|
|
401
401
|
|
|
402
402
|
`GET /v1/transcripts/{video_id}`
|
|
403
403
|
|
|
404
|
-
Caption
|
|
404
|
+
Caption reads use 4 credits per started 15 minutes. quality=premium is one read. An owned transcript answers 200 ready at no charge. Otherwise this call starts a Premium transcript of the whole video, 300 credits per started 15 minutes, using credits from the account's plan first and then the account's on-demand budget up to its limit, and answers 202 pending with the job and Retry-After until the transcript is ready. Read again after Retry-After; repeated reads join the same job and never charge twice. When the last Premium transcript for the video failed, the read answers 200 state failed with the job and last_attempt and charges nothing; retry=true starts a new one. When the plan or the budget blocks, 403 paid_plan_required (with unlock) or 402 quota_exceeded or spend_limit_exceeded carries the price in quote and nothing is charged. A default-premium account with nothing owned reads captions with a note. start/end only trim the returned content; language selects caption tracks, timestamps=false returns paragraphs. Premium lines carry speaker and index, and the body carries speakers and revision.
|
|
405
405
|
|
|
406
406
|
| Field | Location | Required | Type |
|
|
407
407
|
|---|---|---|---|
|
|
@@ -418,7 +418,7 @@ Caption retrieval costs one row per started 15 minutes. quality=premium is one r
|
|
|
418
418
|
|
|
419
419
|
`GET /v1/transcripts/{video_id}/quote`
|
|
420
420
|
|
|
421
|
-
Optional free quote:
|
|
421
|
+
Optional free quote: what a Premium read of this video would use right now, as rows and credits (a row is 4 credits), where the credits would come from, and max_on_demand_cents, the on-demand budget the read would need beyond the plan's credits within the account limit. It does not reserve credits or budget and does not start a transcript. A video with no known duration, or one past the 12 hour cap, answers 400 invalid_query with param video_id.
|
|
422
422
|
|
|
423
423
|
| Field | Location | Required | Type |
|
|
424
424
|
|---|---|---|---|
|
|
@@ -428,7 +428,7 @@ Optional free quote: the price a Premium read of this video would charge right n
|
|
|
428
428
|
|
|
429
429
|
`GET /v1/transcriptions`
|
|
430
430
|
|
|
431
|
-
Your transcription requests in descending creation time and id order. limit defaults to 20 and accepts 1–100. Follow next_cursor with the same video_id, limit and credential; has_more is false and next_cursor is null on the last page. A traversal excludes requests inserted after its first page. Each entry
|
|
431
|
+
Your transcription requests in descending creation time and id order. limit defaults to 20 and accepts 1–100. Follow next_cursor with the same video_id, limit and credential; has_more is false and next_cursor is null on the last page. A traversal excludes requests inserted after its first page. Each entry is a Premium transcript job with its processing and billing state, a `status_url` for the Premium transcript GET, and a `title` field (the video title, null when unknown). The scheduled reconciler advances requests; reading this list never dispatches work or changes billing. In-flight entries carry `eta_seconds` and `next_poll_seconds`.
|
|
432
432
|
|
|
433
433
|
| Field | Location | Required | Type |
|
|
434
434
|
|---|---|---|---|
|
package/skills/arcmira/SKILL.md
CHANGED
|
@@ -43,12 +43,12 @@ Anything else (one video's transcript, a topic across shows, who recommends a pr
|
|
|
43
43
|
6. Return only the fields the answer needs, not whole responses.
|
|
44
44
|
7. Search as_of is the newest publication date among the returned passages, not the date the whole index was updated. For channel freshness, call arcmira.status({ channelId }) and report channel.search_indexed_through for transcript search. A result date or an empty query does not establish missing recent episodes. Build date windows from `arcmira.today()` and `arcmira.daysAgo(n)`. When the user names no window, use the last 30 days; a week of the index is often thin.
|
|
45
45
|
8. Link each name in the answer to the `page` field the result carries. Do not build arcmira.com URLs by hand.
|
|
46
|
-
9. Premium: `arcmira.transcript(video, { quality: "premium" })` returns the lines
|
|
47
|
-
10.
|
|
46
|
+
9. Premium: `arcmira.transcript(video, { quality: "premium" })` returns the lines. When the video is not transcribed yet, that read uses credits from the user's plan, then the on-demand budget. A Premium request is the go-ahead; do not ask. Still pending: tell the user the `eta_seconds` it returns, then read again once it has passed.
|
|
47
|
+
10. Paid reads use credits from the account's plan, then the on-demand budget the account set in the dashboard. That budget is the approval, so never ask the user for a cents amount. When the budget or plan blocks a read (spend_limit_exceeded, quota_exceeded, a plan gate), tell the user to raise the on-demand budget at https://arcmira.com/dashboard/spending or upgrade the plan at https://arcmira.com/pricing (not on Ultra or Enterprise), and link unlock.url when the refusal carries one.
|
|
48
48
|
|
|
49
49
|
## Monitors
|
|
50
50
|
|
|
51
|
-
MONITORS. Never assume a monitor exists ("Competitors" may not). To follow entities the research found: list the user's monitors with arcmira.monitors.list() and suggest any whose name or trackers fit. If none fits, ask how they want updates, one question at a time, each with a default: email (default) or Slack, then as it happens, an hourly digest or a daily digest (default daily). For Slack, read arcmira.integrations.slack(): with a workspace, set
|
|
51
|
+
MONITORS. Never assume a monitor exists ("Competitors" may not). To follow entities the research found: list the user's monitors with arcmira.monitors.list() and suggest any whose name or trackers fit. If none fits, ask how they want updates, one question at a time, each with a default: email (default) or Slack, then as it happens, an hourly digest or a daily digest (default daily). For Slack, read arcmira.integrations.slack(): with a workspace, set notify_slack: true, its id as slack_integration_id and its default_channel_id as slack_channel_id; with none, link https://arcmira.com/dashboard/integrations to connect one and use email for now, saying so. For a topic, resolve its spelling variants ("data centers", "datacenters", "data centre") and follow every one that is its own topic id. Then in arcmira_execute_write: arcmira.monitors.create when there is no fit, and arcmira.monitors.addEntities with every id in one call. A name that resolves to nothing can still be followed by its exact name with arcmira.monitors.addName(monitorId, [{ name, type }]); a show by its UC id. Tell the user about every result with attached: false: entity_not_found, entity_type_not_trackable, tracker_limit_reached, or tracked_in_another_monitor (name the monitor at current_monitor_id and ask before moving it with arcmira.monitors.attachTrackers). Pause with arcmira.monitors.update(id, { paused: true }); there is no delete. Each alert uses 25 credits from your plan; creating a monitor is free.
|
|
52
52
|
|
|
53
53
|
## The ID rule
|
|
54
54
|
|
|
@@ -62,7 +62,7 @@ RESOLVE ANSWERS ONE OF THREE. best: the name means that row; use it and name it.
|
|
|
62
62
|
|
|
63
63
|
## Access
|
|
64
64
|
|
|
65
|
-
When a plan or usage limit blocks a capability, briefly name the limit and any required tier reported by the API. Link to https://arcmira.com/pricing as "Plan access details" for information; do not upgrade a plan. Requested Premium work uses
|
|
65
|
+
When a plan or usage limit blocks a capability, briefly name the limit and any required tier reported by the API. Link to https://arcmira.com/pricing as "Plan access details" for information; do not upgrade a plan. Requested Premium work uses credits from the account's plan, then its on-demand budget, without another confirmation. Preserve error codes and reported quota or reset facts. If the user requested Premium, keep quality: "premium". Do not retry with captions, suggest third-party transcripts, or present them as equivalent. Only change the requested quality if the user asks.
|
|
66
66
|
|
|
67
67
|
## Docs
|
|
68
68
|
|
|
@@ -37,14 +37,14 @@ For this task:
|
|
|
37
37
|
|
|
38
38
|
## Steps
|
|
39
39
|
|
|
40
|
-
1. What was said lately: run the first program and answer. Then offer to keep following the entity with a monitor;
|
|
40
|
+
1. What was said lately: run the first program and answer. Then offer to keep following the entity with a monitor. Each alert uses 25 credits from your plan; creating a monitor is free. On a yes, go on.
|
|
41
41
|
2. Find what to follow and the monitors that could hold it: the second program, in `arcmira_execute_read`. Reuse ids the research already found instead of resolving again.
|
|
42
42
|
3. A monitor fits when its name or its trackers match the subject. Suggest it by name ("Add Linear to your Dev tools monitor?") and wait for a yes.
|
|
43
43
|
4. None fits: ask how the user wants updates, one question at a time, each with a default they can accept with "yes". First where: email to the account address (default) or Slack. Then when: as it happens, an hourly digest, or a daily digest (default daily). Then the name (default: the subject, like "Data center discourse").
|
|
44
|
-
5. Slack: the first program lists the connected workspaces (`slack`). With one, deliver there: `
|
|
45
|
-
6. Save with the third program, in `arcmira_execute_write`: create the monitor only when none fits (or set Slack on the one that fits), then `addEntities` with every id in one call.
|
|
44
|
+
5. Slack: the first program lists the connected workspaces (`slack`). With one, deliver there: `notify_slack: true`, its id as `slack_integration_id` and its `default_channel_id` as `slack_channel_id`; with several, ask which. With none, link https://arcmira.com/dashboard/integrations to connect one, and save with email for now, saying so; switch it later with `arcmira.monitors.update`.
|
|
45
|
+
6. Save with the third program, in `arcmira_execute_write`: create the monitor only when none fits (or set Slack on the one that fits), then `addEntities` with every id in one call. A name resolve found nothing for can still be followed by its exact name with `addName` (a show by its UC id), which catches it once a show says it.
|
|
46
46
|
7. Tell the user plainly about every id that did not attach. `entity_not_found`: Arcmira has no such entity; offer another spelling. `entity_type_not_trackable`: that kind of entity cannot be followed. `tracker_limit_reached`: the plan's tracker limit is full; pausing or removing trackers in the dashboard, or a higher plan, makes room. `tracked_in_another_monitor`: say which monitor already follows it (`current_monitor_name`) and ask before moving it; on a yes, `arcmira.monitors.attachTrackers(monitorId, [tracker_id])` in `arcmira_execute_write` moves it. When a result carries `canonical_entity_id`, the id was merged into that one; name the canonical entity.
|
|
47
|
-
8. Close with what arrives, where and when, and that `arcmira.monitors.update(id, {
|
|
47
|
+
8. Close with what arrives, where and when, and that `arcmira.monitors.update(id, { paused: true })` pauses it; nothing is deleted.
|
|
48
48
|
|
|
49
49
|
## Worked program
|
|
50
50
|
|
|
@@ -70,12 +70,12 @@ const quotesTagged = quotes.chunks.length > 0; // false: the fallback matched
|
|
|
70
70
|
if (!quotesTagged) quotes = await arcmira.search({ query: m.entity.name, after, limit: 5 });
|
|
71
71
|
return {
|
|
72
72
|
entity: { id, name: m.entity.name, type: m.entity.type, page: m.entity.page, assumed, why },
|
|
73
|
-
window:
|
|
73
|
+
window: occ.window,
|
|
74
74
|
momentum: { verdict: m.verdict, last_7d: m.volume.mentions_7d, last_30d: m.volume.mentions_30d, prior_30d: m.volume.mentions_prior_30d, as_of: m.as_of },
|
|
75
75
|
shows: occ.rows.map(x => ({ show: x.channel_name, channel_id: x.channel_id, episodes: x.count, times_said: x.occurrences })),
|
|
76
|
-
context: notes.
|
|
76
|
+
context: notes.mentions.map(x => ({ show: x.media.source_channel?.name ?? null, episode: x.media.title, date: x.media.published_at, note: x.description })),
|
|
77
77
|
quotes_tagged_to_entity: quotesTagged,
|
|
78
|
-
quotes: quotes.chunks.map(c => ({ said: c.text.slice(0, 300), show: c.
|
|
78
|
+
quotes: quotes.chunks.map(c => ({ said: c.text.slice(0, 300), show: c.channel_name, episode: c.video_title, date: c.published_at, url: c.watch_url })),
|
|
79
79
|
};
|
|
80
80
|
```
|
|
81
81
|
|
|
@@ -97,10 +97,10 @@ for (const t of TOPICS) {
|
|
|
97
97
|
}
|
|
98
98
|
const [{ monitors }, { integrations }] = await Promise.all([arcmira.monitors.list(), arcmira.integrations.slack()]);
|
|
99
99
|
const existing = await Promise.all(monitors.slice(0, 10).map(async m => ({
|
|
100
|
-
id: m.id, name: m.name, paused: m.
|
|
101
|
-
follows: (await arcmira.monitors.trackers(m.id)).trackers.map(t => t.
|
|
100
|
+
id: m.id, name: m.name, paused: m.paused, frequency: m.notify_frequency, slack: Boolean(m.notify_slack),
|
|
101
|
+
follows: (await arcmira.monitors.trackers(m.id)).trackers.map(t => t.display_name ?? t.entity_name),
|
|
102
102
|
})));
|
|
103
|
-
const slack = integrations.map(i => ({
|
|
103
|
+
const slack = integrations.map(i => ({ slack_integration_id: i.id, workspace: i.team_name, slack_channel_id: i.default_channel_id, channel: i.channels.find(c => c.id === i.default_channel_id)?.name ?? null }));
|
|
104
104
|
return { follow, unresolved, monitors: existing, more_monitors: Math.max(0, monitors.length - 10), slack };
|
|
105
105
|
```
|
|
106
106
|
|
|
@@ -109,24 +109,31 @@ return { follow, unresolved, monitors: existing, more_monitors: Math.max(0, moni
|
|
|
109
109
|
```javascript
|
|
110
110
|
const MONITOR_ID = null; // a fitting monitor's id from the first program, or null to create one
|
|
111
111
|
const IDS = ["ent_279443"]; // every id the user agreed to follow
|
|
112
|
-
const
|
|
113
|
-
const
|
|
114
|
-
const
|
|
112
|
+
const NAMES = []; // names resolve found nothing for that the user still wants followed: [{ name: "Acme Robotics", type: "organization" }]
|
|
113
|
+
const DELIVERY = { name: "Linear", notify_frequency: "daily" }; // the user's answers, for a new monitor
|
|
114
|
+
const SLACK = null; // the user chose Slack: { slack_integration_id, slack_channel_id } from the first program's slack
|
|
115
|
+
const slack = SLACK ? { notify_slack: true, slack_integration_id: SLACK.slack_integration_id, ...(SLACK.slack_channel_id ? { slack_channel_id: SLACK.slack_channel_id } : {}) } : {};
|
|
115
116
|
const monitor = MONITOR_ID
|
|
116
117
|
? (SLACK ? (await arcmira.monitors.update(MONITOR_ID, slack)).monitor : { id: MONITOR_ID })
|
|
117
118
|
: (await arcmira.monitors.create({ ...DELIVERY, ...slack })).monitor;
|
|
118
|
-
const { results } = await arcmira.monitors.addEntities(monitor.id, IDS);
|
|
119
|
+
const { results } = IDS.length ? await arcmira.monitors.addEntities(monitor.id, IDS) : { results: [] };
|
|
120
|
+
const byName = [];
|
|
121
|
+
for (const n of NAMES) {
|
|
122
|
+
try { byName.push(...(await arcmira.monitors.addName(monitor.id, [n])).results); }
|
|
123
|
+
catch (err) { byName.push({ name: n.name, code: err.code, message: err.message }); }
|
|
124
|
+
}
|
|
119
125
|
const others = results.some(r => r.reason === "tracked_in_another_monitor") ? (await arcmira.monitors.list()).monitors : [];
|
|
120
126
|
return {
|
|
121
127
|
monitor: { id: monitor.id, name: monitor.name ?? null, created: !MONITOR_ID, slack: Boolean(SLACK) },
|
|
122
128
|
attached: results.filter(r => r.attached).map(r => ({ entity_id: r.canonical_entity_id ?? r.entity_id, merged_from: r.canonical_entity_id ? r.entity_id : null, new_tracker: r.created })),
|
|
123
129
|
not_attached: results.filter(r => !r.attached).map(r => ({ entity_id: r.entity_id, reason: r.reason, tracker_id: r.tracker_id ?? null, current_monitor_id: r.current_monitor_id ?? null, current_monitor_name: others.find(m => m.id === r.current_monitor_id)?.name ?? null })),
|
|
130
|
+
by_name: byName,
|
|
124
131
|
};
|
|
125
132
|
```
|
|
126
133
|
|
|
127
134
|
## A good answer
|
|
128
135
|
|
|
129
|
-
- For what was said: opens with the entity (name, type, id), gives the verdict with the 7-day and 30-day counts and `as_of`, the shows with episode counts for the stated window, and two or three quotes in the speakers' words, each with show, date and `
|
|
136
|
+
- For what was said: opens with the entity (name, type, id), gives the verdict with the 7-day and 30-day counts and `as_of`, the shows with episode counts for the stated window, and two or three quotes in the speakers' words, each with show, date and `watch_url`.
|
|
130
137
|
- Names every entity and topic spelling it will follow, with ids, and any it could not resolve.
|
|
131
138
|
- Suggests an existing monitor only after reading the user's monitors, and says which entities it already follows.
|
|
132
139
|
- Asks the delivery questions one at a time with a default each; for Slack, uses the connected workspace, or links the connection page and says the monitor uses email until then.
|
|
@@ -143,7 +150,7 @@ return {
|
|
|
143
150
|
- `insufficient_scope` means the sign-in lacks monitors:write or trackers:write: tell the user to reconnect Arcmira and allow monitor changes.
|
|
144
151
|
- A topic spelling that resolves to the same id as another adds nothing; keep only distinct ids.
|
|
145
152
|
|
|
146
|
-
When a plan or usage limit blocks a capability, briefly name the limit and any required tier reported by the API. Link to https://arcmira.com/pricing as "Plan access details" for information; do not upgrade a plan. Requested Premium work uses
|
|
153
|
+
When a plan or usage limit blocks a capability, briefly name the limit and any required tier reported by the API. Link to https://arcmira.com/pricing as "Plan access details" for information; do not upgrade a plan. Requested Premium work uses credits from the account's plan, then its on-demand budget, without another confirmation. Preserve error codes and reported quota or reset facts. If the user requested Premium, keep quality: "premium". Do not retry with captions, suggest third-party transcripts, or present them as equivalent. Only change the requested quality if the user asks.
|
|
147
154
|
|
|
148
155
|
Search as_of is the newest publication date among the returned passages, not the date the whole index was updated. For channel freshness, call arcmira.status({ channelId }) and report channel.search_indexed_through for transcript search. A result date or an empty query does not establish missing recent episodes.
|
|
149
156
|
|
|
@@ -59,7 +59,7 @@ const [s0, s1, e0, e1, occ, sp0, sp1] = await Promise.all([
|
|
|
59
59
|
]);
|
|
60
60
|
const inOther = new Map(sp1.sponsors.map(x => [x.entity.id, x.ad_reads]));
|
|
61
61
|
return {
|
|
62
|
-
window:
|
|
62
|
+
window: occ.window,
|
|
63
63
|
shows: ids.map((id, i) => ({ name: names[i], channel_id: id, assumed: Boolean(assumed[i]), why: assumed[i], videos_indexed: [s0, s1][i].channel.searchable_videos, indexed_through: [s0, s1][i].channel.indexed_through, latest: [e0, e1][i].episodes[0]?.title ?? null,
|
|
64
64
|
top: occ.rows.filter(x => x.channel_id === id).slice(0, 5).map(x => [x.name, x.count]) })),
|
|
65
65
|
both_discussed: occ.shared.slice(0, 5).map(x => ({ name: x.name, id: x.entity_id, episodes_by_show: x.by_channel.map(c => [c.channel_name, c.count]) })),
|
|
@@ -79,7 +79,7 @@ return {
|
|
|
79
79
|
- Never count `episodes` to size a show; `status({ channelId }).channel.searchable_videos` is the count.
|
|
80
80
|
- An empty `shared` in a short window is an answer (no overlap in the window), not an error; widen the window only if the user asked for a longer one.
|
|
81
81
|
|
|
82
|
-
When a plan or usage limit blocks a capability, briefly name the limit and any required tier reported by the API. Link to https://arcmira.com/pricing as "Plan access details" for information; do not upgrade a plan. Requested Premium work uses
|
|
82
|
+
When a plan or usage limit blocks a capability, briefly name the limit and any required tier reported by the API. Link to https://arcmira.com/pricing as "Plan access details" for information; do not upgrade a plan. Requested Premium work uses credits from the account's plan, then its on-demand budget, without another confirmation. Preserve error codes and reported quota or reset facts. If the user requested Premium, keep quality: "premium". Do not retry with captions, suggest third-party transcripts, or present them as equivalent. Only change the requested quality if the user asks.
|
|
83
83
|
|
|
84
84
|
Search as_of is the newest publication date among the returned passages, not the date the whole index was updated. For channel freshness, call arcmira.status({ channelId }) and report channel.search_indexed_through for transcript search. A result date or an empty query does not establish missing recent episodes.
|
|
85
85
|
|
|
@@ -5,7 +5,7 @@ description: "Finds exact spoken quotes and clip-ready moments on podcasts and Y
|
|
|
5
5
|
|
|
6
6
|
# Find quotes and clip moments
|
|
7
7
|
|
|
8
|
-
`search` finds the passage; `transcript` with `start` and `end` returns the exact lines around it with second offsets, which give the verbatim quote and the clip boundaries. Caption reads
|
|
8
|
+
`search` finds the passage; `transcript` with `start` and `end` returns the exact lines around it with second offsets, which give the verbatim quote and the clip boundaries. Caption reads meter only the returned lines. A Premium read uses credits for the whole video; start/end only select the returned window.
|
|
9
9
|
|
|
10
10
|
Use it through the arcmira MCP server (`arcmira_describe`, then `arcmira_execute_read` with a program) or the arcmira CLI, whose commands have the same names. `arcmira_describe` carries the full method reference (CLI: `arcmira <command> --help`), and the `arcmira` skill the shared procedure.
|
|
11
11
|
|
|
@@ -49,13 +49,13 @@ const assumed = Boolean(r?.suggested), why = r?.suggested?.evidence ?? null;
|
|
|
49
49
|
const hits = await arcmira.search({ query: "Anthropic IPO", speakerIds: [id], limit: 5 });
|
|
50
50
|
const moments = [];
|
|
51
51
|
for (const c of hits.chunks.slice(0, 2)) {
|
|
52
|
-
const moment = { episode: c.
|
|
52
|
+
const moment = { episode: c.video_title, show: c.channel_name, date: c.published_at, url: c.watch_url, speakers: c.speakers_by.map(s => s.name) };
|
|
53
53
|
try {
|
|
54
|
-
const t = await arcmira.transcript(c.
|
|
55
|
-
moment.clip = { start: t.lines[0]?.start ?? c.
|
|
54
|
+
const t = await arcmira.transcript(c.video_id, { start: Math.max(0, c.start_seconds - 10), end: c.start_seconds + 50 });
|
|
55
|
+
moment.clip = { start: t.lines[0]?.start ?? c.start_seconds, end: t.lines.at(-1)?.end ?? c.start_seconds + 60 };
|
|
56
56
|
moment.lines = t.lines.map(l => `[${Math.round(l.start)}s] ${l.text}`);
|
|
57
57
|
} catch (err) {
|
|
58
|
-
moment.clip = { start: c.
|
|
58
|
+
moment.clip = { start: c.start_seconds, end: c.start_seconds + 60 };
|
|
59
59
|
moment.passage = c.text;
|
|
60
60
|
moment.transcript = err.code;
|
|
61
61
|
}
|
|
@@ -68,7 +68,7 @@ return { speaker: { id, name: e?.name ?? null, assumed, why }, as_of: hits.as_of
|
|
|
68
68
|
|
|
69
69
|
- Names the speaker or show it searched, with the id, and quotes the words exactly as the transcript lines give them, trimmed to whole sentences, never paraphrased inside quotation marks.
|
|
70
70
|
- Gives the show, the episode title, the date, and the speaker when the chunk or a premium transcript names one.
|
|
71
|
-
- Links the `
|
|
71
|
+
- Links the `watch_url`, which starts at the moment, and gives a clip start and end in seconds from the transcript lines.
|
|
72
72
|
- Says so when nothing matched, with `as_of`, instead of offering a quote from memory.
|
|
73
73
|
|
|
74
74
|
## Traps
|
|
@@ -79,7 +79,7 @@ return { speaker: { id, name: e?.name ?? null, assumed, why }, as_of: hits.as_of
|
|
|
79
79
|
- Keep transcript windows short (`start`, `end`): a whole episode bills every line.
|
|
80
80
|
- Some videos have no readable caption track yet (`transcript_unavailable`, `transcript_fetching`); quote the search chunk `text` for those and say the words come from the search passage.
|
|
81
81
|
|
|
82
|
-
When a plan or usage limit blocks a capability, briefly name the limit and any required tier reported by the API. Link to https://arcmira.com/pricing as "Plan access details" for information; do not upgrade a plan. Requested Premium work uses
|
|
82
|
+
When a plan or usage limit blocks a capability, briefly name the limit and any required tier reported by the API. Link to https://arcmira.com/pricing as "Plan access details" for information; do not upgrade a plan. Requested Premium work uses credits from the account's plan, then its on-demand budget, without another confirmation. Preserve error codes and reported quota or reset facts. If the user requested Premium, keep quality: "premium". Do not retry with captions, suggest third-party transcripts, or present them as equivalent. Only change the requested quality if the user asks.
|
|
83
83
|
|
|
84
84
|
Search as_of is the newest publication date among the returned passages, not the date the whole index was updated. For channel freshness, call arcmira.status({ channelId }) and report channel.search_indexed_through for transcript search. A result date or an empty query does not establish missing recent episodes.
|
|
85
85
|
|
|
@@ -51,9 +51,9 @@ const [m, rows, own] = await Promise.all([
|
|
|
51
51
|
]);
|
|
52
52
|
const about = await arcmira.search({ query: m.entity.name, about: [id], after: arcmira.daysAgo(30), limit: 3 });
|
|
53
53
|
const appeared = new Map();
|
|
54
|
-
for (const x of rows.
|
|
54
|
+
for (const x of rows.mentions) if (x.is_appearance) appeared.set(x.media.video_id, { show: x.media.source_channel?.name ?? null, episode: x.media.title, date: x.media.published_at });
|
|
55
55
|
let fromAppearance = null; // no speaker-tagged chunks: read their newest appearance instead
|
|
56
|
-
const ep = own.chunks.length === 0 ? rows.
|
|
56
|
+
const ep = own.chunks.length === 0 ? rows.mentions.find(x => x.is_appearance) : undefined;
|
|
57
57
|
if (ep) {
|
|
58
58
|
try {
|
|
59
59
|
const t = await arcmira.transcript(ep.media.video_id, { start: Math.max(0, ep.start_seconds - 5), end: ep.start_seconds + 90 });
|
|
@@ -68,9 +68,9 @@ return {
|
|
|
68
68
|
attention: { verdict: m.verdict, last_30d: m.volume.mentions_30d, prior_30d: m.volume.mentions_prior_30d, as_of: m.as_of, top_shows: m.top_shows.map(s => [s.channel_name, s.mentions]) },
|
|
69
69
|
appeared_on: [...appeared.values()].slice(0, 8),
|
|
70
70
|
appeared_on_partial: rows.has_more, // true: only the newest 40 mention rows were read
|
|
71
|
-
in_their_words: own.chunks.map(c => ({ said: c.text.slice(0, 300), episode: c.
|
|
71
|
+
in_their_words: own.chunks.map(c => ({ said: c.text.slice(0, 300), episode: c.video_title, show: c.channel_name, date: c.published_at, url: c.watch_url })),
|
|
72
72
|
from_their_appearance: fromAppearance,
|
|
73
|
-
said_about_them: about.chunks.map(c => ({ said: c.text.slice(0, 200), show: c.
|
|
73
|
+
said_about_them: about.chunks.map(c => ({ said: c.text.slice(0, 200), show: c.channel_name, date: c.published_at, url: c.watch_url })),
|
|
74
74
|
};
|
|
75
75
|
```
|
|
76
76
|
|
|
@@ -88,7 +88,7 @@ return {
|
|
|
88
88
|
- Put the user's topic in `query` for the speaker search (it needs a word or phrase of two or more characters).
|
|
89
89
|
- Mentions and momentum count the shows Arcmira indexes, not all media.
|
|
90
90
|
|
|
91
|
-
When a plan or usage limit blocks a capability, briefly name the limit and any required tier reported by the API. Link to https://arcmira.com/pricing as "Plan access details" for information; do not upgrade a plan. Requested Premium work uses
|
|
91
|
+
When a plan or usage limit blocks a capability, briefly name the limit and any required tier reported by the API. Link to https://arcmira.com/pricing as "Plan access details" for information; do not upgrade a plan. Requested Premium work uses credits from the account's plan, then its on-demand budget, without another confirmation. Preserve error codes and reported quota or reset facts. If the user requested Premium, keep quality: "premium". Do not retry with captions, suggest third-party transcripts, or present them as equivalent. Only change the requested quality if the user asks.
|
|
92
92
|
|
|
93
93
|
Search as_of is the newest publication date among the returned passages, not the date the whole index was updated. For channel freshness, call arcmira.status({ channelId }) and report channel.search_indexed_through for transcript search. A result date or an empty query does not establish missing recent episodes.
|
|
94
94
|
|
|
@@ -64,11 +64,12 @@ const id = ID ?? e.id;
|
|
|
64
64
|
const assumed = Boolean(r?.suggested), why = r?.suggested?.evidence ?? null;
|
|
65
65
|
const after = arcmira.daysAgo(90);
|
|
66
66
|
const reads = [];
|
|
67
|
-
let cursor, entity;
|
|
67
|
+
let cursor, entity, window;
|
|
68
68
|
do {
|
|
69
69
|
const page = await arcmira.recommendations(id, { kind: "sponsored", after, limit: 50, cursor });
|
|
70
70
|
entity = page.entity;
|
|
71
|
-
|
|
71
|
+
window = page.window;
|
|
72
|
+
reads.push(...page.recommendations);
|
|
72
73
|
cursor = page.has_more ? page.next_cursor : undefined;
|
|
73
74
|
} while (cursor && reads.length < 500);
|
|
74
75
|
const shows = new Map();
|
|
@@ -81,7 +82,7 @@ for (const x of reads) {
|
|
|
81
82
|
shows.set(name, row);
|
|
82
83
|
}
|
|
83
84
|
return {
|
|
84
|
-
brand: { id, name: entity?.name ?? e?.name ?? null, type: entity?.type ?? e?.type ?? null, assumed, why }, window
|
|
85
|
+
brand: { id, name: entity?.name ?? e?.name ?? null, type: entity?.type ?? e?.type ?? null, assumed, why }, window, ad_reads_total: reads.length,
|
|
85
86
|
shows: [...shows.values()].sort((a, b) => b.ad_reads - a.ad_reads).slice(0, 10).map(s => ({ ...s, episodes: s.episodes.size })),
|
|
86
87
|
sample_read: reads[0] ? { said: reads[0].verbatim_quote, show: reads[0].media.source_channel?.name ?? null, date: reads[0].media.published_at, promo_code: reads[0].promo_code } : null,
|
|
87
88
|
};
|
|
@@ -100,7 +101,7 @@ return {
|
|
|
100
101
|
- An ad read is sponsored; an unpaid on-air endorsement is `kind: "organic"`. Do not mix them in one count.
|
|
101
102
|
- Page with `cursor` until `has_more` is false before you count reads; one page is at most 50 rows.
|
|
102
103
|
|
|
103
|
-
When a plan or usage limit blocks a capability, briefly name the limit and any required tier reported by the API. Link to https://arcmira.com/pricing as "Plan access details" for information; do not upgrade a plan. Requested Premium work uses
|
|
104
|
+
When a plan or usage limit blocks a capability, briefly name the limit and any required tier reported by the API. Link to https://arcmira.com/pricing as "Plan access details" for information; do not upgrade a plan. Requested Premium work uses credits from the account's plan, then its on-demand budget, without another confirmation. Preserve error codes and reported quota or reset facts. If the user requested Premium, keep quality: "premium". Do not retry with captions, suggest third-party transcripts, or present them as equivalent. Only change the requested quality if the user asks.
|
|
104
105
|
|
|
105
106
|
Search as_of is the newest publication date among the returned passages, not the date the whole index was updated. For channel freshness, call arcmira.status({ channelId }) and report channel.search_indexed_through for transcript search. A result date or an empty query does not establish missing recent episodes.
|
|
106
107
|
|