From f0812167c03aeb96265ba2f5a1d2b4f32769e46b Mon Sep 17 00:00:00 2001 From: skycurtain Date: Tue, 28 Oct 2025 21:05:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E8=AE=A1tracer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tracers.ts/action-type.ts | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/src/tracers.ts/action-type.ts b/src/tracers.ts/action-type.ts index 5f1bd5b..a5860d6 100644 --- a/src/tracers.ts/action-type.ts +++ b/src/tracers.ts/action-type.ts @@ -12,11 +12,38 @@ export const ARRAY_TRACER_ACTIONS = [ export type ArrayTracerAction = (typeof ARRAY_TRACER_ACTIONS)[number]; export const STACK_TRACER_ACTIONS = [ - // 'define', - 'push', + 'pick', + 'drop', + 'patch', + 'reset', ] as const; export type StackTracerAction = (typeof STACK_TRACER_ACTIONS)[number]; -export type TracerAction = ArrayTracerAction | StackTracerAction; +export const QUEUE_TRACER_ACTIONS = [ + 'define', + 'pick', + 'drop', + 'patch', + 'reset', +] as const; + +export type QueueTracerAction = (typeof QUEUE_TRACER_ACTIONS)[number]; + +export const MATRIX_TRACER_ACTIONS = [ + 'define', + 'preset', + 'pick', + 'drop', + 'patch', + 'reset', +] as const; + +export type MatrixTracerAction = (typeof MATRIX_TRACER_ACTIONS)[number]; + +export type TracerAction = + | ArrayTracerAction + | StackTracerAction + | QueueTracerAction + | MatrixTracerAction;