Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/agentplane/src/shared/agent-emoji.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ function fallbackEmojiForAgentId(agentId: string): string {
return FALLBACK_EMOJIS[idx] ?? "🧩";
}

/**
* Resolve commit emoji for an agent.
* Priority: explicit `commit_emoji` in agent JSON -> well-known map/hash fallback.
*/
export async function resolveCommitEmojiForAgent(opts: {
agentsDirAbs: string;
agentId: string;
Expand Down
3 changes: 3 additions & 0 deletions packages/agentplane/src/shared/guards.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Type guard for plain object-like values (`Record<string, unknown>`).
*/
export function isRecord(value: unknown): value is Record<string, unknown> {
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
}
1 change: 1 addition & 0 deletions packages/core/src/tasks/task-id.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { randomInt } from "node:crypto";

// Crockford's base32 alphabet: omits I, L, O (confusable with 1/0) and U (accidental obscenity).
export const TASK_ID_ALPHABET = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";

export function timestampIdPrefix(date: Date): string {
Expand Down