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
|
@@ -18,13 +18,13 @@ export interface Recommendation {
|
|
|
18
18
|
offer: string | null;
|
|
19
19
|
/** DEPRECATED: use sentiment_score, which carries the same number. Removal will be announced in the changelog. Raw NUMERIC sentiment score between -1 and 1. Null when not computed. */
|
|
20
20
|
sentiment: number | null;
|
|
21
|
-
/** Raw sentiment score between -1 and 1, same semantics as sentiment_score on
|
|
21
|
+
/** Raw sentiment score between -1 and 1, same semantics as sentiment_score on mentions. Null when not computed. */
|
|
22
22
|
sentiment_score: number | null;
|
|
23
|
-
/** Classifier confidence between 0 and 1.
|
|
23
|
+
/** Classifier confidence between 0 and 1. Recommendations below the min_confidence filter (default 0.7) are excluded from list responses. */
|
|
24
24
|
confidence: number;
|
|
25
25
|
/** Role of the speaker delivering the mention, e.g. "host" or "guest". */
|
|
26
26
|
speaker_role: string;
|
|
27
|
-
/** Set when community feedback disputes the classification (e.g. "disputed"). Null when undisputed. Disputed
|
|
27
|
+
/** Set when community feedback disputes the classification (e.g. "disputed"). Null when undisputed. Disputed recommendations are excluded unless include_disputed=true. */
|
|
28
28
|
conflict_status: string | null;
|
|
29
29
|
/** How a disputed classification was resolved. Null until a dispute has been resolved. */
|
|
30
30
|
resolution: string | null;
|
|
@@ -2,7 +2,7 @@ import type * as Arcmira from "../index.js";
|
|
|
2
2
|
export interface RecommendationListResponse {
|
|
3
3
|
/** Newest first. */
|
|
4
4
|
recommendations: Arcmira.Recommendation[];
|
|
5
|
-
/** True when more
|
|
5
|
+
/** True when more results exist past this page. */
|
|
6
6
|
has_more: boolean;
|
|
7
7
|
/** Opaque cursor for the next page. Null on the last page. */
|
|
8
8
|
next_cursor: string | null;
|
|
@@ -3,14 +3,14 @@ import type * as Arcmira from "../index.js";
|
|
|
3
3
|
* The refused price, on a priced refusal: quota_exceeded, spend_limit_exceeded and paid_plan_required.
|
|
4
4
|
*/
|
|
5
5
|
export interface RefusedQuote extends Arcmira.TranscriptQuote {
|
|
6
|
-
/** What the
|
|
6
|
+
/** What the request would charge at the current balance. Absent when no current price could be read. */
|
|
7
7
|
charge?: RefusedQuote.Charge | undefined;
|
|
8
|
-
/** The on-demand
|
|
8
|
+
/** The on-demand usage, in whole cents, this request needs beyond the plan's credits at the current balance. */
|
|
9
9
|
max_on_demand_cents?: number | undefined;
|
|
10
10
|
}
|
|
11
11
|
export declare namespace RefusedQuote {
|
|
12
12
|
/**
|
|
13
|
-
* What the
|
|
13
|
+
* What the request would charge at the current balance. Absent when no current price could be read.
|
|
14
14
|
*/
|
|
15
15
|
interface Charge {
|
|
16
16
|
unit: Charge.Unit;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The one
|
|
2
|
+
* The one entity q means. Set on exact and single_fuzzy only. Name it in the answer.
|
|
3
3
|
*/
|
|
4
4
|
export interface ResolveCandidate {
|
|
5
5
|
/** Public entity id in the form "ent_{n}". */
|
|
@@ -8,21 +8,21 @@ export interface ResolveCandidate {
|
|
|
8
8
|
name: string;
|
|
9
9
|
/** URL slug. Null when the entity has never been slugged. */
|
|
10
10
|
slug: string | null;
|
|
11
|
-
/** Entity type. Values: person (an individual), organization (a company or institution; legacy
|
|
11
|
+
/** Entity type. Values: person (an individual), organization (a company or institution; legacy entities may read company or brand), product (a product or service), topic (a subject or theme), channel (a media source such as a YouTube channel), unknown (type was never classified). */
|
|
12
12
|
type: string;
|
|
13
|
-
/** Number of indexed
|
|
13
|
+
/** Number of indexed appearances and mentions. Results are ordered by this, descending. */
|
|
14
14
|
appearance_count?: number | undefined;
|
|
15
15
|
/** YouTube channel id for channel entities. Null for every other type. */
|
|
16
16
|
youtube_channel_id: string | null;
|
|
17
|
-
/** One catalog sentence that tells
|
|
17
|
+
/** One catalog sentence that tells entities with the same name apart, for example "Common gender-neutral given name or nickname". Null when the catalog has none. */
|
|
18
18
|
description: string | null;
|
|
19
19
|
/** The entity's page on arcmira.com, absolute. Link the name to it when you write the entity into an answer. Null for a type the site has no page for. */
|
|
20
20
|
page: string | null;
|
|
21
|
-
/** How the
|
|
21
|
+
/** How the entity's name relates to q: the whole name, a run of its words (Michael Jordan for Jordan), characters inside a word, the show's initials (My First Million for MFM), or a near spelling. */
|
|
22
22
|
match: ResolveCandidate.Match;
|
|
23
23
|
}
|
|
24
24
|
export declare namespace ResolveCandidate {
|
|
25
|
-
/** How the
|
|
25
|
+
/** How the entity's name relates to q: the whole name, a run of its words (Michael Jordan for Jordan), characters inside a word, the show's initials (My First Million for MFM), or a near spelling. */
|
|
26
26
|
const Match: {
|
|
27
27
|
readonly Exact: "exact";
|
|
28
28
|
readonly Word: "word";
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ResolveCandidate = void 0;
|
|
5
5
|
var ResolveCandidate;
|
|
6
6
|
(function (ResolveCandidate) {
|
|
7
|
-
/** How the
|
|
7
|
+
/** How the entity's name relates to q: the whole name, a run of its words (Michael Jordan for Jordan), characters inside a word, the show's initials (My First Million for MFM), or a near spelling. */
|
|
8
8
|
ResolveCandidate.Match = {
|
|
9
9
|
Exact: "exact",
|
|
10
10
|
Word: "word",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Set when best is null but one
|
|
2
|
+
* Set when best is null but one entity stands out, with the reason and evidence. Use it and tell the user you assumed it.
|
|
3
3
|
*/
|
|
4
4
|
export interface ResolveSuggestion {
|
|
5
5
|
/** Public entity id in the form "ent_{n}". */
|
|
@@ -8,19 +8,19 @@ export interface ResolveSuggestion {
|
|
|
8
8
|
name: string;
|
|
9
9
|
/** URL slug. Null when the entity has never been slugged. */
|
|
10
10
|
slug: string | null;
|
|
11
|
-
/** Entity type. Values: person (an individual), organization (a company or institution; legacy
|
|
11
|
+
/** Entity type. Values: person (an individual), organization (a company or institution; legacy entities may read company or brand), product (a product or service), topic (a subject or theme), channel (a media source such as a YouTube channel), unknown (type was never classified). */
|
|
12
12
|
type: string;
|
|
13
|
-
/** Number of indexed
|
|
13
|
+
/** Number of indexed appearances and mentions. Results are ordered by this, descending. */
|
|
14
14
|
appearance_count?: number | undefined;
|
|
15
15
|
/** YouTube channel id for channel entities. Null for every other type. */
|
|
16
16
|
youtube_channel_id: string | null;
|
|
17
|
-
/** One catalog sentence that tells
|
|
17
|
+
/** One catalog sentence that tells entities with the same name apart, for example "Common gender-neutral given name or nickname". Null when the catalog has none. */
|
|
18
18
|
description: string | null;
|
|
19
19
|
/** The entity's page on arcmira.com, absolute. Link the name to it when you write the entity into an answer. Null for a type the site has no page for. */
|
|
20
20
|
page: string | null;
|
|
21
|
-
/** How the
|
|
21
|
+
/** How the entity's name relates to q: the whole name, a run of its words (Michael Jordan for Jordan), characters inside a word, the show's initials (My First Million for MFM), or a near spelling. */
|
|
22
22
|
match: ResolveSuggestion.Match;
|
|
23
|
-
/** Why this
|
|
23
|
+
/** Why this entity stands out: dominant (10x the appearances of the next match), only_word_match, context (the context parameter points at it), acronym, spelling. */
|
|
24
24
|
reason: ResolveSuggestion.Reason;
|
|
25
25
|
/** The numbers or words behind the reason, to repeat to the user. */
|
|
26
26
|
evidence: string;
|
|
@@ -28,7 +28,7 @@ export interface ResolveSuggestion {
|
|
|
28
28
|
assumed: boolean;
|
|
29
29
|
}
|
|
30
30
|
export declare namespace ResolveSuggestion {
|
|
31
|
-
/** How the
|
|
31
|
+
/** How the entity's name relates to q: the whole name, a run of its words (Michael Jordan for Jordan), characters inside a word, the show's initials (My First Million for MFM), or a near spelling. */
|
|
32
32
|
const Match: {
|
|
33
33
|
readonly Exact: "exact";
|
|
34
34
|
readonly Word: "word";
|
|
@@ -37,7 +37,7 @@ export declare namespace ResolveSuggestion {
|
|
|
37
37
|
readonly Spelling: "spelling";
|
|
38
38
|
};
|
|
39
39
|
type Match = (typeof Match)[keyof typeof Match];
|
|
40
|
-
/** Why this
|
|
40
|
+
/** Why this entity stands out: dominant (10x the appearances of the next match), only_word_match, context (the context parameter points at it), acronym, spelling. */
|
|
41
41
|
const Reason: {
|
|
42
42
|
readonly Dominant: "dominant";
|
|
43
43
|
readonly OnlyWordMatch: "only_word_match";
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ResolveSuggestion = void 0;
|
|
5
5
|
var ResolveSuggestion;
|
|
6
6
|
(function (ResolveSuggestion) {
|
|
7
|
-
/** How the
|
|
7
|
+
/** How the entity's name relates to q: the whole name, a run of its words (Michael Jordan for Jordan), characters inside a word, the show's initials (My First Million for MFM), or a near spelling. */
|
|
8
8
|
ResolveSuggestion.Match = {
|
|
9
9
|
Exact: "exact",
|
|
10
10
|
Word: "word",
|
|
@@ -12,7 +12,7 @@ var ResolveSuggestion;
|
|
|
12
12
|
Acronym: "acronym",
|
|
13
13
|
Spelling: "spelling",
|
|
14
14
|
};
|
|
15
|
-
/** Why this
|
|
15
|
+
/** Why this entity stands out: dominant (10x the appearances of the next match), only_word_match, context (the context parameter points at it), acronym, spelling. */
|
|
16
16
|
ResolveSuggestion.Reason = {
|
|
17
17
|
Dominant: "dominant",
|
|
18
18
|
OnlyWordMatch: "only_word_match",
|
|
@@ -9,7 +9,7 @@ export interface SignupVerifiedResponse {
|
|
|
9
9
|
scopes: string[];
|
|
10
10
|
/** The plan the account is on: free for a new account, its plan when the address already had one. */
|
|
11
11
|
tier: string;
|
|
12
|
-
/**
|
|
12
|
+
/** On a paid plan, its monthly allowance in rows; a row is 4 credits. On the free plan, the account's row allotment from before credits (1,000 for a new account). The free plan uses 1,000 credits a month, read from usage.credits on GET /v1/me. */
|
|
13
13
|
rows_allotted: number;
|
|
14
14
|
/** A curl command for the first call: GET /v1/me with the key. */
|
|
15
15
|
next: string;
|
|
@@ -3,9 +3,9 @@ export interface TranscriptFailed {
|
|
|
3
3
|
quality: TranscriptFailed.Quality;
|
|
4
4
|
video_id: string;
|
|
5
5
|
job: Arcmira.TranscriptJob;
|
|
6
|
-
/** The failed
|
|
6
|
+
/** The failed job in brief, as job.status and job.error. */
|
|
7
7
|
last_attempt: TranscriptFailed.LastAttempt;
|
|
8
|
-
/**
|
|
8
|
+
/** The next step. Read again with retry=true to start a new Premium transcript, or wait while the refund settles. */
|
|
9
9
|
note: string;
|
|
10
10
|
}
|
|
11
11
|
export declare namespace TranscriptFailed {
|
|
@@ -14,16 +14,16 @@ export declare namespace TranscriptFailed {
|
|
|
14
14
|
};
|
|
15
15
|
type Quality = (typeof Quality)[keyof typeof Quality];
|
|
16
16
|
/**
|
|
17
|
-
* The failed
|
|
17
|
+
* The failed job in brief, as job.status and job.error.
|
|
18
18
|
*/
|
|
19
19
|
interface LastAttempt {
|
|
20
|
-
/** How the last
|
|
20
|
+
/** How the last job ended: failed, refunded (the charge was returned), or refund_pending (the refund is still settling). */
|
|
21
21
|
status: LastAttempt.Status;
|
|
22
22
|
/** Why it failed. */
|
|
23
23
|
error: string;
|
|
24
24
|
}
|
|
25
25
|
namespace LastAttempt {
|
|
26
|
-
/** How the last
|
|
26
|
+
/** How the last job ended: failed, refunded (the charge was returned), or refund_pending (the refund is still settling). */
|
|
27
27
|
const Status: {
|
|
28
28
|
readonly Failed: "failed";
|
|
29
29
|
readonly RefundPending: "refund_pending";
|
|
@@ -9,7 +9,7 @@ var TranscriptFailed;
|
|
|
9
9
|
};
|
|
10
10
|
let LastAttempt;
|
|
11
11
|
(function (LastAttempt) {
|
|
12
|
-
/** How the last
|
|
12
|
+
/** How the last job ended: failed, refunded (the charge was returned), or refund_pending (the refund is still settling). */
|
|
13
13
|
LastAttempt.Status = {
|
|
14
14
|
Failed: "failed",
|
|
15
15
|
RefundPending: "refund_pending",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* A Premium transcript job with its processing state, charge and URL for reading the transcript again.
|
|
3
3
|
*/
|
|
4
4
|
export interface TranscriptJob {
|
|
5
5
|
/** Transcription request id (UUID). */
|
|
6
6
|
id: string;
|
|
7
7
|
/** YouTube video id (11 characters). */
|
|
8
8
|
video_id: string;
|
|
9
|
-
/** Coarse outcome: pending until the Premium transcript is servable (ready), the
|
|
9
|
+
/** Coarse outcome: pending until the Premium transcript is servable (ready), the job failed, or it was refunded. */
|
|
10
10
|
state: TranscriptJob.State;
|
|
11
|
-
/** Request status. Values: queued (accepted; audio download not started), downloading (fetching the video audio), transcribing (premium speech-to-text is running), analyzing (entity/commercial analysis is running), complete (premium transcript is servable via GET /v1/transcripts/{video_id}), failed (rejected intent or legacy
|
|
11
|
+
/** Request status. Values: queued (accepted; audio download not started), downloading (fetching the video audio), transcribing (premium speech-to-text is running), analyzing (entity/commercial analysis is running), complete (premium transcript is servable via GET /v1/transcripts/{video_id}), failed (rejected intent, or a legacy request needing accounting review), refund_pending (refund transaction must still complete), refunded (terminal failure; the charge was returned and the unlock this request granted was revoked). */
|
|
12
12
|
status: TranscriptJob.Status;
|
|
13
13
|
/** User-facing stage: downloading folds into transcribing. Values: queued (waiting to start), transcribing (downloading or transcribing), analyzing (analysis running). Null for terminal statuses and refund_pending. */
|
|
14
14
|
stage: TranscriptJob.Stage | null;
|
|
15
|
-
/** What the
|
|
15
|
+
/** What the job charged. Absent only on legacy requests. */
|
|
16
16
|
charge?: TranscriptJob.Charge | undefined;
|
|
17
17
|
/** Estimated seconds until completion, re-derived from live pipeline telemetry on every poll. Only present while the request is in flight; absent on refund_pending, which has no completion ETA. */
|
|
18
18
|
eta_seconds?: number | undefined;
|
|
@@ -30,7 +30,7 @@ export interface TranscriptJob {
|
|
|
30
30
|
status_url: string;
|
|
31
31
|
}
|
|
32
32
|
export declare namespace TranscriptJob {
|
|
33
|
-
/** Coarse outcome: pending until the Premium transcript is servable (ready), the
|
|
33
|
+
/** Coarse outcome: pending until the Premium transcript is servable (ready), the job failed, or it was refunded. */
|
|
34
34
|
const State: {
|
|
35
35
|
readonly Pending: "pending";
|
|
36
36
|
readonly Ready: "ready";
|
|
@@ -38,7 +38,7 @@ export declare namespace TranscriptJob {
|
|
|
38
38
|
readonly Refunded: "refunded";
|
|
39
39
|
};
|
|
40
40
|
type State = (typeof State)[keyof typeof State];
|
|
41
|
-
/** Request status. Values: queued (accepted; audio download not started), downloading (fetching the video audio), transcribing (premium speech-to-text is running), analyzing (entity/commercial analysis is running), complete (premium transcript is servable via GET /v1/transcripts/{video_id}), failed (rejected intent or legacy
|
|
41
|
+
/** Request status. Values: queued (accepted; audio download not started), downloading (fetching the video audio), transcribing (premium speech-to-text is running), analyzing (entity/commercial analysis is running), complete (premium transcript is servable via GET /v1/transcripts/{video_id}), failed (rejected intent, or a legacy request needing accounting review), refund_pending (refund transaction must still complete), refunded (terminal failure; the charge was returned and the unlock this request granted was revoked). */
|
|
42
42
|
const Status: {
|
|
43
43
|
readonly Queued: "queued";
|
|
44
44
|
readonly Downloading: "downloading";
|
|
@@ -58,13 +58,13 @@ export declare namespace TranscriptJob {
|
|
|
58
58
|
};
|
|
59
59
|
type Stage = (typeof Stage)[keyof typeof Stage];
|
|
60
60
|
/**
|
|
61
|
-
* What the
|
|
61
|
+
* What the job charged. Absent only on legacy requests.
|
|
62
62
|
*/
|
|
63
63
|
interface Charge {
|
|
64
64
|
unit: Charge.Unit;
|
|
65
|
-
/** Credits this
|
|
65
|
+
/** Credits this job charged. 0 when a prior unlock made it free. */
|
|
66
66
|
amount: number;
|
|
67
|
-
/** Where the credits came from
|
|
67
|
+
/** Where the credits came from. included is the plan's credits, on_demand is the on-demand budget, mixed is both. Present once the job is funded. */
|
|
68
68
|
from?: Charge.From | undefined;
|
|
69
69
|
}
|
|
70
70
|
namespace Charge {
|
|
@@ -72,7 +72,7 @@ export declare namespace TranscriptJob {
|
|
|
72
72
|
readonly Credits: "credits";
|
|
73
73
|
};
|
|
74
74
|
type Unit = (typeof Unit)[keyof typeof Unit];
|
|
75
|
-
/** Where the credits came from
|
|
75
|
+
/** Where the credits came from. included is the plan's credits, on_demand is the on-demand budget, mixed is both. Present once the job is funded. */
|
|
76
76
|
const From: {
|
|
77
77
|
readonly Included: "included";
|
|
78
78
|
readonly OnDemand: "on_demand";
|
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.TranscriptJob = void 0;
|
|
5
5
|
var TranscriptJob;
|
|
6
6
|
(function (TranscriptJob) {
|
|
7
|
-
/** Coarse outcome: pending until the Premium transcript is servable (ready), the
|
|
7
|
+
/** Coarse outcome: pending until the Premium transcript is servable (ready), the job failed, or it was refunded. */
|
|
8
8
|
TranscriptJob.State = {
|
|
9
9
|
Pending: "pending",
|
|
10
10
|
Ready: "ready",
|
|
11
11
|
Failed: "failed",
|
|
12
12
|
Refunded: "refunded",
|
|
13
13
|
};
|
|
14
|
-
/** Request status. Values: queued (accepted; audio download not started), downloading (fetching the video audio), transcribing (premium speech-to-text is running), analyzing (entity/commercial analysis is running), complete (premium transcript is servable via GET /v1/transcripts/{video_id}), failed (rejected intent or legacy
|
|
14
|
+
/** Request status. Values: queued (accepted; audio download not started), downloading (fetching the video audio), transcribing (premium speech-to-text is running), analyzing (entity/commercial analysis is running), complete (premium transcript is servable via GET /v1/transcripts/{video_id}), failed (rejected intent, or a legacy request needing accounting review), refund_pending (refund transaction must still complete), refunded (terminal failure; the charge was returned and the unlock this request granted was revoked). */
|
|
15
15
|
TranscriptJob.Status = {
|
|
16
16
|
Queued: "queued",
|
|
17
17
|
Downloading: "downloading",
|
|
@@ -33,7 +33,7 @@ var TranscriptJob;
|
|
|
33
33
|
Charge.Unit = {
|
|
34
34
|
Credits: "credits",
|
|
35
35
|
};
|
|
36
|
-
/** Where the credits came from
|
|
36
|
+
/** Where the credits came from. included is the plan's credits, on_demand is the on-demand budget, mixed is both. Present once the job is funded. */
|
|
37
37
|
Charge.From = {
|
|
38
38
|
Included: "included",
|
|
39
39
|
OnDemand: "on_demand",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface TranscriptQuote {
|
|
2
2
|
/** Number of 15-minute blocks in the video, ceiling'd, minimum 1. */
|
|
3
3
|
quarters: number;
|
|
4
|
-
/**
|
|
4
|
+
/** Rows the whole video uses, 75 rows per 15-minute block. A row is 4 credits, so Premium uses 300 credits per block. */
|
|
5
5
|
rows: number;
|
|
6
6
|
}
|
|
@@ -10,6 +10,9 @@ export interface TranscriptRequestListResponse {
|
|
|
10
10
|
export declare namespace TranscriptRequestListResponse {
|
|
11
11
|
type Requests = Requests.Item[];
|
|
12
12
|
namespace Requests {
|
|
13
|
+
/**
|
|
14
|
+
* A Premium transcript job with its processing state, charge and URL for reading the transcript again.
|
|
15
|
+
*/
|
|
13
16
|
interface Item extends Arcmira.TranscriptJob {
|
|
14
17
|
/** Video title for display. Null when unknown. */
|
|
15
18
|
title: string | null;
|
|
@@ -17,9 +17,9 @@ export interface TranscriptResponse {
|
|
|
17
17
|
speakers?: TranscriptResponse.Speakers.Item[] | undefined;
|
|
18
18
|
/** Premium reads only. Opaque id of the transcript you were served, the approved corrections on it, and who speaks each line. It changes when any of those change. */
|
|
19
19
|
revision?: string | undefined;
|
|
20
|
-
/** Echoed when you sent start and end. Lines overlapping the window are returned. On captions only the window is billed
|
|
20
|
+
/** Echoed when you sent start and end. Lines overlapping the window are returned. On captions only the window is billed. An explicit Premium read is charged for the whole video, from the account's plan credits and then its on-demand budget; the window only trims the returned content. */
|
|
21
21
|
range?: TranscriptResponse.Range | undefined;
|
|
22
|
-
/** Rows this
|
|
22
|
+
/** Rows this captions read used: 1 row per started 15 minutes, and a row is 4 credits. 0 on a repeat of the same video, quality, language, and range inside the 7 day dedupe window. Premium reads report 0, because the Premium transcript job carries their charge. */
|
|
23
23
|
rows_billed: number;
|
|
24
24
|
/** When the transcript was produced. */
|
|
25
25
|
as_of: string | null;
|
|
@@ -80,7 +80,7 @@ export declare namespace TranscriptResponse {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* Echoed when you sent start and end. Lines overlapping the window are returned. On captions only the window is billed
|
|
83
|
+
* Echoed when you sent start and end. Lines overlapping the window are returned. On captions only the window is billed. An explicit Premium read is charged for the whole video, from the account's plan credits and then its on-demand budget; the window only trims the returned content.
|
|
84
84
|
*/
|
|
85
85
|
interface Range {
|
|
86
86
|
start: number;
|
|
@@ -176,6 +176,10 @@ export declare namespace TranscriptResponse {
|
|
|
176
176
|
quote?: Arcmira.RefusedQuote | undefined;
|
|
177
177
|
/** On tracker_already_exists, the existing tracker id. Reuse it instead of creating another tracker. */
|
|
178
178
|
existing_id?: string | undefined;
|
|
179
|
+
/** On tracker_limit, the trackers the plan holds. */
|
|
180
|
+
limit?: number | undefined;
|
|
181
|
+
/** On tracker_limit, the trackers the account holds now. */
|
|
182
|
+
count?: number | undefined;
|
|
179
183
|
}
|
|
180
184
|
}
|
|
181
185
|
}
|
|
@@ -157,6 +157,10 @@ export declare namespace TranscriptSearchResponse {
|
|
|
157
157
|
quote?: Arcmira.RefusedQuote | undefined;
|
|
158
158
|
/** On tracker_already_exists, the existing tracker id. Reuse it instead of creating another tracker. */
|
|
159
159
|
existing_id?: string | undefined;
|
|
160
|
+
/** On tracker_limit, the trackers the plan holds. */
|
|
161
|
+
limit?: number | undefined;
|
|
162
|
+
/** On tracker_limit, the trackers the account holds now. */
|
|
163
|
+
count?: number | undefined;
|
|
160
164
|
}
|
|
161
165
|
}
|
|
162
166
|
/**
|
|
@@ -8,7 +8,7 @@ export interface TranscriptVideo {
|
|
|
8
8
|
channel_name: string | null;
|
|
9
9
|
/** Publish timestamp. Cite it as the date of anything you quote. */
|
|
10
10
|
published_at: string | null;
|
|
11
|
-
/** Video length in seconds. Null when unknown, which also means the
|
|
11
|
+
/** Video length in seconds. Null when unknown, which also means the credit estimate was unknown. */
|
|
12
12
|
duration_seconds: number | null;
|
|
13
13
|
/** Canonical YouTube watch URL. */
|
|
14
14
|
watch_url: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* For issue_type wrong_classification: the commercial class the
|
|
2
|
+
* For issue_type wrong_classification: the commercial class the result should carry.
|
|
3
3
|
*/
|
|
4
4
|
export interface WrongClassificationChange {
|
|
5
5
|
/** The correct commercial class. Values: sponsored (an ad-style promotion heard at that moment: a paid sponsor read, promo code, affiliate plug, thanks for supplied goods or venue, or a show promoting its own product as an ad), organic (an unpaid personal recommendation), mention (a neutral commercial mention). */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* For issue_type wrong_entity (and wrong_person): the entity the
|
|
2
|
+
* For issue_type wrong_entity (and wrong_person): the entity the result should have been attributed to.
|
|
3
3
|
*/
|
|
4
4
|
export interface WrongEntityChange {
|
|
5
|
-
/** Public id ("ent_{n}") of the entity the
|
|
5
|
+
/** Public id ("ent_{n}") of the entity the result should point at. */
|
|
6
6
|
entity_id?: string | undefined;
|
|
7
7
|
/** Name of the correct entity when you do not have its id. */
|
|
8
8
|
entity_name?: string | undefined;
|
|
@@ -41,6 +41,7 @@ export * from "./MonitorMutationResponse.js";
|
|
|
41
41
|
export * from "./MonitorTrackersResponse.js";
|
|
42
42
|
export * from "./NamedEntityRef.js";
|
|
43
43
|
export * from "./OpenApiDocument.js";
|
|
44
|
+
export * from "./PremiumQuote.js";
|
|
44
45
|
export * from "./PublicationWindow.js";
|
|
45
46
|
export * from "./Recommendation.js";
|
|
46
47
|
export * from "./RecommendationEnrichmentItem.js";
|
|
@@ -58,7 +59,6 @@ export * from "./TrackerMutationResponse.js";
|
|
|
58
59
|
export * from "./TranscriptFailed.js";
|
|
59
60
|
export * from "./TranscriptJob.js";
|
|
60
61
|
export * from "./TranscriptPending.js";
|
|
61
|
-
export * from "./TranscriptPurchaseQuote.js";
|
|
62
62
|
export * from "./TranscriptQuote.js";
|
|
63
63
|
export * from "./TranscriptRequestListResponse.js";
|
|
64
64
|
export * from "./TranscriptResponse.js";
|
|
@@ -57,6 +57,7 @@ __exportStar(require("./MonitorMutationResponse.js"), exports);
|
|
|
57
57
|
__exportStar(require("./MonitorTrackersResponse.js"), exports);
|
|
58
58
|
__exportStar(require("./NamedEntityRef.js"), exports);
|
|
59
59
|
__exportStar(require("./OpenApiDocument.js"), exports);
|
|
60
|
+
__exportStar(require("./PremiumQuote.js"), exports);
|
|
60
61
|
__exportStar(require("./PublicationWindow.js"), exports);
|
|
61
62
|
__exportStar(require("./Recommendation.js"), exports);
|
|
62
63
|
__exportStar(require("./RecommendationEnrichmentItem.js"), exports);
|
|
@@ -74,7 +75,6 @@ __exportStar(require("./TrackerMutationResponse.js"), exports);
|
|
|
74
75
|
__exportStar(require("./TranscriptFailed.js"), exports);
|
|
75
76
|
__exportStar(require("./TranscriptJob.js"), exports);
|
|
76
77
|
__exportStar(require("./TranscriptPending.js"), exports);
|
|
77
|
-
__exportStar(require("./TranscriptPurchaseQuote.js"), exports);
|
|
78
78
|
__exportStar(require("./TranscriptQuote.js"), exports);
|
|
79
79
|
__exportStar(require("./TranscriptRequestListResponse.js"), exports);
|
|
80
80
|
__exportStar(require("./TranscriptResponse.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.4.
|
|
1
|
+
export declare const SDK_VERSION = "0.4.2";
|
package/dist/cjs/version.js
CHANGED
package/dist/cli/main.js
CHANGED
|
@@ -25,7 +25,7 @@ const SKILLS_DIR = (0, node_path_1.join)(__dirname, "..", "..", "skills");
|
|
|
25
25
|
const SKILLS = (0, node_fs_1.readdirSync)(SKILLS_DIR)
|
|
26
26
|
.filter((name) => (0, node_fs_1.existsSync)((0, node_path_1.join)(SKILLS_DIR, name, "SKILL.md")))
|
|
27
27
|
.map((name) => ({ name, content: (0, node_fs_1.readFileSync)((0, node_path_1.join)(SKILLS_DIR, name, "SKILL.md"), "utf8") }));
|
|
28
|
-
/** Exit codes past 0 ok, 1 API or network error and 2 usage error. A pipeline sees them even with --json. 3 is retired
|
|
28
|
+
/** Exit codes past 0 ok, 1 API or network error and 2 usage error. A pipeline sees them even with --json. 3 is retired. */
|
|
29
29
|
const EXIT_PENDING = 4;
|
|
30
30
|
const GLOBAL = {
|
|
31
31
|
json: { type: "boolean", help: "Print the API response as JSON on stdout; errors as JSON on stderr." },
|
|
@@ -56,7 +56,7 @@ const RESERVED = {
|
|
|
56
56
|
};
|
|
57
57
|
/** Commands earlier versions had, each with what replaces it. */
|
|
58
58
|
const RETIRED = {
|
|
59
|
-
"transcripts request": "a Premium read
|
|
59
|
+
"transcripts request": "a Premium read now starts the transcription itself: arcmira transcripts get <video> --quality premium",
|
|
60
60
|
"transcripts status": "read the transcript again: arcmira transcripts get <video> --quality premium answers the job while it runs",
|
|
61
61
|
};
|
|
62
62
|
class UsageError extends Error {
|
|
@@ -482,6 +482,16 @@ async function runSetup({ values: v, apiKey, baseUrl }) {
|
|
|
482
482
|
process.exitCode = failed > 0 ? 1 : 0;
|
|
483
483
|
return { dry_run: dryRun, auth: auth.kind, lines, next, updates, first_prompt: FIRST_PROMPT, cli_key: Boolean(key), failed };
|
|
484
484
|
}
|
|
485
|
+
/** Credits from the plan, then the on-demand budget; rows only when the account has no credits block. */
|
|
486
|
+
function usageLine(me) {
|
|
487
|
+
const c = me.usage.credits;
|
|
488
|
+
if (!c)
|
|
489
|
+
return `rows used ${me.usage.rows_used} of ${me.usage.monthly_rows}${me.period_resets_at ? `, resets ${day(me.period_resets_at)}` : ""}`;
|
|
490
|
+
const n = (x) => x.toLocaleString("en-US");
|
|
491
|
+
const plan = c.plan.credits == null ? `${n(c.plan.used)} plan credits used` : `${n(c.plan.used)} of ${n(c.plan.credits)} plan credits used`;
|
|
492
|
+
const onDemand = c.on_demand.enabled ? `, on-demand ${n(c.on_demand.used)}${c.on_demand.cap_credits == null ? "" : ` of ${n(c.on_demand.cap_credits)}`}` : ", on-demand off";
|
|
493
|
+
return `${plan}${onDemand}${c.available == null ? "" : `, ${n(c.available)} available`}, resets ${day(c.plan.resets_at)}`;
|
|
494
|
+
}
|
|
485
495
|
const COMMANDS = {
|
|
486
496
|
search: {
|
|
487
497
|
section: "data",
|
|
@@ -721,13 +731,13 @@ const COMMANDS = {
|
|
|
721
731
|
quality: {
|
|
722
732
|
type: "string",
|
|
723
733
|
oneOf: ["captions", "premium"],
|
|
724
|
-
help: "captions (default) or premium, Arcmira's diarized transcript on paid plans. A premium read
|
|
734
|
+
help: "captions (default) or premium, Arcmira's diarized transcript on paid plans. A premium read of a video not transcribed yet uses credits from your plan, then your on-demand budget, and exits 4 while it transcribes.",
|
|
725
735
|
},
|
|
726
736
|
language: { type: "string", short: "l", help: "Caption language priority list, like de,en." },
|
|
727
737
|
paragraphs: { type: "boolean", help: "Paragraphs for reading instead of timestamped lines." },
|
|
728
738
|
start: { type: "string", number: true, help: "Window start in seconds." },
|
|
729
739
|
end: { type: "string", number: true, help: "Window end in seconds." },
|
|
730
|
-
retry: { type: "boolean", help: "Premium only.
|
|
740
|
+
retry: { type: "boolean", help: "Premium only. Transcribe again after the last attempt failed; this uses credits again." },
|
|
731
741
|
},
|
|
732
742
|
run: ({ client, positionals: [video], values: v }) => client.transcripts.get({
|
|
733
743
|
video_id: videoIdOf(video),
|
|
@@ -742,12 +752,12 @@ const COMMANDS = {
|
|
|
742
752
|
if (r.state === "ready")
|
|
743
753
|
return 0;
|
|
744
754
|
if (r.state === "failed") {
|
|
745
|
-
const next = r.last_attempt.status === "refund_pending" ? "Its refund is still settling; try again later." : "Run it again with --retry to
|
|
746
|
-
note(`The last Premium
|
|
755
|
+
const next = r.last_attempt.status === "refund_pending" ? "Its refund is still settling; try again later." : "Run it again with --retry to transcribe it again, which uses credits again.";
|
|
756
|
+
note(`The last Premium transcription of ${r.video_id} ${r.last_attempt.status === "failed" ? "failed" : "was refunded"} (${r.last_attempt.error.replace(/\.$/, "")}). ${next}`);
|
|
747
757
|
return 1;
|
|
748
758
|
}
|
|
749
759
|
const eta = r.job.eta_seconds != null ? `, about ${Math.max(1, Math.round(r.job.eta_seconds / 60))} min left` : "";
|
|
750
|
-
note(`Premium for ${r.video_id} is still ${r.job.status}${eta}. Run the same command again later; it reads this job and never
|
|
760
|
+
note(`Premium for ${r.video_id} is still ${r.job.status}${eta}. Run the same command again later; it reads this job and never uses credits twice.`);
|
|
751
761
|
return EXIT_PENDING;
|
|
752
762
|
},
|
|
753
763
|
print: (r) => {
|
|
@@ -834,7 +844,7 @@ const COMMANDS = {
|
|
|
834
844
|
return note(r.note);
|
|
835
845
|
}
|
|
836
846
|
const me = r;
|
|
837
|
-
console.log(`plan ${me.tier}
|
|
847
|
+
console.log(`plan ${me.tier} ${usageLine(me)} scopes ${me.scopes.join(",")} key from ${keySource}`);
|
|
838
848
|
},
|
|
839
849
|
},
|
|
840
850
|
"trackers create": {
|
|
@@ -1052,7 +1062,7 @@ const COMMANDS = {
|
|
|
1052
1062
|
whoami: {
|
|
1053
1063
|
section: "account",
|
|
1054
1064
|
operations: ["get_me"],
|
|
1055
|
-
summary: "The key in use: its id, label, account, plan, scopes, rate limit,
|
|
1065
|
+
summary: "The key in use: its id, label, account, plan, scopes, rate limit, credits, and where it came from.",
|
|
1056
1066
|
usage: "whoami",
|
|
1057
1067
|
examples: ["arcmira whoami", "arcmira whoami --json"],
|
|
1058
1068
|
positionals: "none",
|
|
@@ -1060,7 +1070,7 @@ const COMMANDS = {
|
|
|
1060
1070
|
run: ({ client }) => client.me.get(),
|
|
1061
1071
|
print: (me) => {
|
|
1062
1072
|
console.log(`plan ${me.tier} scopes ${me.scopes.join(",")} rate limit ${me.rate_limit} a minute`);
|
|
1063
|
-
console.log(
|
|
1073
|
+
console.log(usageLine(me));
|
|
1064
1074
|
const credential = [me.credential_kind === "oauth" ? "oauth token" : "key", me.key_label ? `"${me.key_label}"` : "", me.key_id ?? ""].filter(Boolean).join(" ");
|
|
1065
1075
|
console.log(`${credential}${me.email_masked ? ` account ${me.email_masked}` : ""} from ${keySource}`);
|
|
1066
1076
|
},
|
|
@@ -1242,7 +1252,7 @@ function help(name) {
|
|
|
1242
1252
|
if (!spec.reserved)
|
|
1243
1253
|
lines.push(optionLine(key, spec, 24));
|
|
1244
1254
|
const reserved = Object.entries(GLOBAL).filter(([, spec]) => spec.reserved).map(([key, spec]) => `--${key}${spec.short ? `/-${spec.short}` : ""}`);
|
|
1245
|
-
lines.push(`Reserved flags, not available yet: ${reserved.join(", ")}.`, "", "Examples:", " arcmira setup connect the MCP server and skills to your coding agents, updates on", " arcmira login you@example.com email a code, then: arcmira login you@example.com --code 123456", " arcmira resolve Ramp names to ent_ ids; filter with the id: arcmira mentions --entity ent_14", " arcmira resolve TBPN --type channel shows to UC ids: arcmira sponsors UC-DRzaGnL_vtBUpCFH5M0tg", " arcmira mentions --entity ent_14 --after 2026-09-01 --before 2026-10-01 --json", " arcmira follow Ramp --type org alerts on a name, even before it is indexed", " arcmira api GET /v1/monitors any endpoint; arcmira schema lists them", "", "Key: --key, then ARCMIRA_API_KEY, then the key saved by `arcmira login`.", "Output: data on stdout, messages on stderr; --json prints the API response, and errors as JSON on stderr.", "Errors: every API error line carries the request_id to quote to support.", "Dates: --after is inclusive and --before exclusive, in UTC, on every dated command.", "Exit codes: 0 ok, 1 API or network error, 2 usage error (bad input, a name where an id belongs, no key),", " 4 Premium still transcribing (run the same command again later; it never
|
|
1255
|
+
lines.push(`Reserved flags, not available yet: ${reserved.join(", ")}.`, "", "Examples:", " arcmira setup connect the MCP server and skills to your coding agents, updates on", " arcmira login you@example.com email a code, then: arcmira login you@example.com --code 123456", " arcmira resolve Ramp names to ent_ ids; filter with the id: arcmira mentions --entity ent_14", " arcmira resolve TBPN --type channel shows to UC ids: arcmira sponsors UC-DRzaGnL_vtBUpCFH5M0tg", " arcmira mentions --entity ent_14 --after 2026-09-01 --before 2026-10-01 --json", " arcmira follow Ramp --type org alerts on a name, even before it is indexed", " arcmira api GET /v1/monitors any endpoint; arcmira schema lists them", "", "Key: --key, then ARCMIRA_API_KEY, then the key saved by `arcmira login`.", "Output: data on stdout, messages on stderr; --json prints the API response, and errors as JSON on stderr.", "Errors: every API error line carries the request_id to quote to support.", "Dates: --after is inclusive and --before exclusive, in UTC, on every dated command.", "Exit codes: 0 ok, 1 API or network error, 2 usage error (bad input, a name where an id belongs, no key),", " 4 Premium still transcribing (run the same command again later; it never uses credits twice).", "Telemetry: none. The CLI sends only the API requests you ask for.", "Docs: https://arcmira.com/docs Worked examples: arcmira examples Each command: arcmira <command> --help");
|
|
1246
1256
|
return lines.join("\n");
|
|
1247
1257
|
}
|
|
1248
1258
|
function validate(name, command, values, positionals) {
|